git.fiddlerwoaroof.com
Browse code

Styling cleanup

Ed L authored on 07/04/2019 23:14:40
Showing 4 changed files
... ...
@@ -1,2 +1,3 @@
1 1
 node_modules
2 2
 css
3
+.*.sw?
... ...
@@ -12,6 +12,46 @@ ul.breadcrumb {
12 12
   float: left;
13 13
 }
14 14
 
15
+.page-container, #repositories {
16
+  grid-template-rows: 4em 9fr 1fr;
17
+  grid-template-columns: 2fr 9fr;
18
+  display: grid;
19
+  height: 100vh;
20
+  width: 100%;
21
+
22
+  main {
23
+    overflow: auto;
24
+    padding: 12px;
25
+    grid-area: main;
26
+  }
27
+}
28
+
29
+.page-container {
30
+  grid-template-areas: "nav  main"
31
+                       "nav  main"
32
+                       "foot main";
33
+}
34
+
35
+#repositories {
36
+  grid-template-areas: "nav  head"
37
+                       "nav  main"
38
+                       "foot main";
39
+}
40
+
41
+.fwoar-nav {
42
+  grid-area: nav;
43
+
44
+  padding-top: 12px;
45
+  padding-left: 12px;
46
+  .brand {
47
+    font-weight: bolder;
48
+    display: block;
49
+    text-align: center;
50
+    margin-bottom: 2em;
51
+    padding: 1rem;
52
+  }
53
+}
54
+
15 55
 @media screen and (max-width: 1499px) {
16 56
   :root {
17 57
     --no-cols: 3;
... ...
@@ -29,8 +69,36 @@ ul.breadcrumb {
29 69
   :root {
30 70
     --no-cols: 1;
31 71
   }
72
+
73
+  .page-container, #repositories {
74
+    grid-template-areas: "nav  nav"
75
+                         "head head"
76
+                         "main main"
77
+                         "foot foot"
78
+                         ;
79
+    grid-template-rows: 8rem 6.5rem 1fr 3.2em;
80
+    height: auto;
81
+  }
82
+
83
+  .fwoar-nav {
84
+    ul { display: flex; justify-content: space-around; }
85
+  }
86
+
87
+  .repository-list {
88
+    overflow-y: visible;
89
+  }
32 90
 }
33 91
 
92
+div.search {
93
+  grid-area: head;
94
+}
95
+
96
+footer {
97
+  padding: 1em;
98
+  grid-area: foot;
99
+}
100
+
101
+
34 102
 * { box-sizing: border-box; }
35 103
 
36 104
 div.source-view .source-header {
... ...
@@ -46,31 +114,13 @@ div.source-view .source-header {
46 114
   display: block;
47 115
 }
48 116
 
49
-.page-container, #repositories {
50
-  display: grid;
51
-  grid-template-columns: 2fr 9fr;
52
-  grid-template-rows: 1fr 9fr 1fr;
53
-  height: 100vh;
54
-  width: 100%;
55
-
56
-  main {
57
-    padding: 12px;
58
-    grid-row-end: span 3;
59
-  }
60
-}
61 117
 
62 118
 .page-container main {
63 119
   overflow-y: auto;
64 120
 }
65 121
 
66
-footer {
67
-  padding: 1em;
68
-  grid-column: 1;
69
-  grid-row: 3;
70
-}
71 122
 
72 123
 div.search {
73
-  grid-column: 2;
74 124
   padding: 12px;
75 125
   position: relative;
76 126
   input {
... ...
@@ -85,30 +135,14 @@ div.search {
85 135
   }
86 136
 }
87 137
 
88
-.fwoar-nav {
89
-  grid-column: 1;
90
-  grid-row: 1 / span 2;
91
-  padding-top: 12px;
92
-  padding-left: 12px;
93
-  .brand {
94
-    font-weight: bolder;
95
-    display: block;
96
-    margin-bottom: 2em;
97
-    padding: 1rem;
98
-  }
99
-}
100
-
101 138
 .repository-list {
102
-    overflow-y: scroll;
103
-    grid-row-end: span 2;
104
-    padding: 12px 12px;
139
+  grid-row-end: span 2;
140
+  padding: 12px 12px;
105 141
 
106
-  grid-column: 2;
107 142
   display: grid;
108 143
   grid-template-columns: repeat(var(--no-cols), 1fr);
109 144
   justify-content: space-between;
110 145
   grid-gap: 10px 14px;
111
-  grid-auto-rows: 1fr;
112 146
 }
113 147
 
114 148
 .source-view {
... ...
@@ -146,7 +180,7 @@ div.search {
146 180
     height:600pt;
147 181
   }
148 182
   .source-diff {
149
-    background-color: lighten(@bodyBackground, 10%);
183
+    background-color: @bodyBackgroundLight;
150 184
     pre {
151 185
       margin: 0;
152 186
       padding: 0 0 0 6pt;
... ...
@@ -154,7 +188,7 @@ div.search {
154 188
       .border-radius(0);
155 189
 
156 190
       &:hover {
157
-        background-color: lighten(@bodyBackground, 10%);
191
+        background-color: @bodyBackgroundLight;
158 192
       }
159 193
     }
160 194
     table td {
... ...
@@ -167,12 +201,12 @@ div.search {
167 201
       background-color: hsl(0, 50%, 10%);
168 202
     }
169 203
     .chunk {
170
-      background-color:lighten(@bodyBackground, 5%);
204
+      background-color: @bodyBackgroundLight;
171 205
       color:@grayLighter;
172 206
     }
173 207
     .lineNo {
174 208
       color: #aaa;
175
-      background-color: lighten(@bodyBackground, 15%);
209
+      background-color: @bodyBackgroundLight;
176 210
       padding: 0 6pt;
177 211
       text-align: right;
178 212
       border-right: 1pt solid @grayDarker;
... ...
@@ -187,7 +221,7 @@ div.search {
187 221
 
188 222
 .blame-view {
189 223
   width: 100%;
190
-  background-color: lighten(@bodyBackground, 10%);
224
+  background-color: @bodyBackgroundLight;
191 225
   td {
192 226
   vertical-align:top;
193 227
   padding:8pt;
... ...
@@ -12,7 +12,7 @@ body {/*
12 12
 */}
13 13
 
14 14
 body {
15
-  overscroll-behavior: none;
15
+  /*overscroll-behavior: none;*/
16 16
   margin: 0;
17 17
   overflow-y: auto;
18 18
   font-family: @baseFontFamily;
... ...
@@ -33,7 +33,9 @@
33 33
 
34 34
 // Scaffolding
35 35
 // -------------------------
36
+@bodyBackgroundLight:        @grayDark;
36 37
 @bodyBackground:        @grayDarker;
38
+@bodyBackgroundDark:        @black;
37 39
 @zenburnFgLight: #FFFFEF;
38 40
 @zenburnFg:       #DCDCCC;
39 41
 @zenburnFgDark: #656555;