aboutsummaryrefslogtreecommitdiff
path: root/budget/static/css/main.css
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2017-02-15 20:42:48 +0100
committerGitHub <noreply@github.com>2017-02-15 20:42:48 +0100
commit3dd7c67ecf5e2c5d21ec387bbd82e0fa3b90ad5b (patch)
treef15a0a568faf6ea5e0c14abcef274f0c658c4b3f /budget/static/css/main.css
parentbb5ad597f5b1f20e741be0b8ac1f54c1538df4a3 (diff)
parent57596b5f46555b2163c849c83f97ac5d779d9b25 (diff)
downloadihatemoney-mirror-3dd7c67ecf5e2c5d21ec387bbd82e0fa3b90ad5b.zip
ihatemoney-mirror-3dd7c67ecf5e2c5d21ec387bbd82e0fa3b90ad5b.tar.gz
ihatemoney-mirror-3dd7c67ecf5e2c5d21ec387bbd82e0fa3b90ad5b.tar.bz2
Merge pull request #172 from JocelynDelalande/jd-bootstrap-4
WIP: Upgrade to bootstrap 4
Diffstat (limited to 'budget/static/css/main.css')
-rw-r--r--budget/static/css/main.css64
1 files changed, 43 insertions, 21 deletions
diff --git a/budget/static/css/main.css b/budget/static/css/main.css
index f3fe8a0..11963d2 100644
--- a/budget/static/css/main.css
+++ b/budget/static/css/main.css
@@ -1,19 +1,29 @@
@import "bootstrap.min.css";
-@import "datepicker.css";
+@import "bootstrap-datepicker3.standalone.css";
@import "../fonts/fontfaces.css";
/* General */
body {
- margin-top: 40px;
+ /* For fixed navbar */
+ padding-top: 3.5rem;
+ padding-bottom: 2rem;
}
/* Navbar */
-.navbar h1{ margin-left: 75px; }
+.navbar h1 {
+ font-size: 1rem;
+ margin: 0;
+ padding: 0;
+}
.navbar .primary-nav { padding-left: 75px; }
-.navbar .secondary-nav { padding-right: 75px; }
-.brand{ font-family: 'Lobster', arial, serif; }
+.navbar .secondary-nav {
+ text-align: right;
+ flex-direction: row-reverse;
+
+}
+.navbar-brand{ font-family: 'Lobster', arial, serif; }
/* Header */
@@ -36,6 +46,14 @@ body {
#header .tryout {
margin-right: 10em;
+ color: #fff;
+ background-color: #414141;
+ border-color: #414141;
+}
+
+#header .tryout:hover {
+ background-color: #606060;
+ border-color: #606060;
}
#header .additional-content {
@@ -55,28 +73,20 @@ body {
background-position: center bottom;
background-repeat: no-repeat;
height: 100%;
- width: 230px;
- padding-left: 10px;
- padding-right: 20px;
- padding-top: 10px;
- margin-left: -20px;
- margin-top: -10px;
- margin-right: 15px;
color: black;
position: fixed;
}
#add-member-form { padding-top: 1em; padding-bottom: 1em; }
#add-member-form input[type="text"] { width: 60%; }
-#add-member-form button { width: 35%; }
-#table_overflow { overflow-y: auto; overflow-x: hidden; width: 235px; }
+#table_overflow { overflow-y: auto; overflow-x: hidden;}
+
/* Content */
.content {
- padding-top: 1em;
- padding-left: 250px;
+ margin-top: 1rem;
}
/* Home */
@@ -94,7 +104,9 @@ body {
height: 100px;
}
-#footer{
+footer{
+ margin-left: -15px;
+ margin-right: -15px;
margin-top: 30px;
position: fixed;
bottom: 0px;
@@ -109,6 +121,16 @@ body {
float: right;
}
+#new-bill, .identifier {
+ margin-top: 16px;
+ margin-bottom: 16px;
+}
+
+/* Avoid text color flickering when it loose focus as the modal appears */
+.btn-primary[data-toggle="modal"] {
+ color: #fff;
+}
+
.password-reminder{
float: right;
margin-right: 20px;
@@ -186,6 +208,10 @@ tr.payer_line .balance-name{
color: white;
}
+.balance.table {
+ table-layout: fixed;
+}
+
#bill-form > fieldset {
margin-top: 10px;
}
@@ -206,10 +232,6 @@ tr:hover .extra-info {
display: inline;
}
-.modal-body {
- max-height:455px;
-}
-
/* Fluid Offsets for Boostrap */
.row-fluid > [class*="span"]:not([class*="offset"]):first-child{margin-left:0;}