pR0Ps | 69cebd6 | 2014-04-07 18:11:01 -0400 | [diff] [blame] | 1 | @red: #ff0000; |
2 | @black: #000000; | ||||
3 | @white: #ffffff; | ||||
4 | @light-grey: #eeeeee; | ||||
pR0Ps | eae2267 | 2014-04-07 19:17:02 -0400 | [diff] [blame] | 5 | @med-grey: #5f5f5f; |
pR0Ps | 69cebd6 | 2014-04-07 18:11:01 -0400 | [diff] [blame] | 6 | @dark-grey: #202020; |
7 | @blue: #0e94ec; | ||||
8 | @accent: @blue; | ||||
pR0Ps | 61e1004 | 2014-04-07 18:10:00 -0400 | [diff] [blame] | 9 | |
Vincent Cheng | 8d10ff2 | 2014-04-30 19:12:51 -0700 | [diff] [blame] | 10 | @import (css) "//fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono"; |
pR0Ps | 2faeb22 | 2014-04-07 18:23:39 -0400 | [diff] [blame] | 11 | @sans: 'Ubuntu', sans-serif; |
12 | @mono: 'Ubuntu Mono', monospace; | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 13 | |
Carey Metcalfe | 4bc468b | 2014-09-25 13:50:13 -0400 | [diff] [blame] | 14 | @border_color: #c2c2c2; |
pR0Ps | d351cde | 2013-12-29 14:32:17 -0500 | [diff] [blame] | 15 | @pag_label_size: 60px; |
pR0Ps | 2734177 | 2013-12-20 09:20:32 -0500 | [diff] [blame] | 16 | @logo_size: 150px; |
pR0Ps | a6d15c3 | 2013-12-05 20:36:35 -0500 | [diff] [blame] | 17 | |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 18 | @content_size: 640px; |
19 | @horiz_pad: 40px; | ||||
20 | |||||
Carey Metcalfe | 0c84fdb | 2014-09-29 09:51:00 -0400 | [diff] [blame^] | 21 | //The minimum size the screen can be without scaling the main content |
22 | @min_screen: floor(((@content_size + @horiz_pad * 2) * 1.33)); | ||||
pR0Ps | 0a59c1a | 2014-01-31 01:15:49 -0500 | [diff] [blame] | 23 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 24 | body { |
25 | margin: 0; | ||||
26 | padding: 0; | ||||
27 | background-color: @white; | ||||
28 | color: @dark-grey; | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 29 | font-family: @sans; |
pR0Ps | eae2267 | 2014-04-07 19:17:02 -0400 | [diff] [blame] | 30 | font-size: 16px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 31 | } |
32 | |||||
33 | a { | ||||
34 | color: @black; | ||||
35 | text-decoration: none; | ||||
36 | } | ||||
37 | |||||
pR0Ps | 41bf7d3 | 2013-12-05 16:33:55 -0500 | [diff] [blame] | 38 | a[href]:not(.nohover) { |
39 | &:hover{ | ||||
40 | color: @accent; | ||||
41 | } | ||||
42 | } | ||||
43 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 44 | hr { |
pR0Ps | 5a6e4f0 | 2013-12-10 21:11:44 -0500 | [diff] [blame] | 45 | color: @border_color; |
46 | background-color: @border_color; | ||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 47 | height: 1px; |
48 | border: none; | ||||
49 | } | ||||
50 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 51 | aside { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 52 | div#user_meta { |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 53 | padding: @horiz_pad 20px @horiz_pad 20px; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 54 | text-align: center; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 55 | |
pR0Ps | 2734177 | 2013-12-20 09:20:32 -0500 | [diff] [blame] | 56 | img#logo { |
57 | width: @logo_size; | ||||
58 | height: @logo_size; | ||||
Carey Metcalfe | 4bc468b | 2014-09-25 13:50:13 -0400 | [diff] [blame] | 59 | border-radius: 50%; |
pR0Ps | 2734177 | 2013-12-20 09:20:32 -0500 | [diff] [blame] | 60 | } |
61 | |||||
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 62 | h2 { |
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 63 | margin: 15px 0 5px 0; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 64 | } |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 65 | |
66 | p { | ||||
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 67 | margin: 0 0 15px 0; |
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 68 | font-size: 14px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 69 | } |
Giulio Fidente | e88666d | 2013-04-29 12:25:51 +0200 | [diff] [blame] | 70 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 71 | ul { |
pR0Ps | e5f49ca | 2014-03-04 01:47:54 -0500 | [diff] [blame] | 72 | margin: 20px 0 0 0; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 73 | padding-left: 0; |
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 74 | font-size: 16px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 75 | list-style-type: none; |
Giulio Fidente | e88666d | 2013-04-29 12:25:51 +0200 | [diff] [blame] | 76 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 77 | li { |
pR0Ps | fee5225 | 2013-12-11 11:47:26 -0500 | [diff] [blame] | 78 | display: block; |
79 | line-height: 2em; | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 80 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 81 | a { |
pR0Ps | fee5225 | 2013-12-11 11:47:26 -0500 | [diff] [blame] | 82 | i { |
pR0Ps | 8dbfbd8 | 2013-12-18 17:46:54 -0500 | [diff] [blame] | 83 | padding-left: 5px; |
pR0Ps | fee5225 | 2013-12-11 11:47:26 -0500 | [diff] [blame] | 84 | color: @black; |
pR0Ps | 8dbfbd8 | 2013-12-18 17:46:54 -0500 | [diff] [blame] | 85 | width: 30px; |
pR0Ps | fee5225 | 2013-12-11 11:47:26 -0500 | [diff] [blame] | 86 | text-align: center; |
87 | vertical-align: middle; | ||||
88 | } | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 89 | } |
90 | } | ||||
91 | } | ||||
Giulio Fidente | e88666d | 2013-04-29 12:25:51 +0200 | [diff] [blame] | 92 | } |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 93 | } |
94 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 95 | main { |
pR0Ps | a6d15c3 | 2013-12-05 20:36:35 -0500 | [diff] [blame] | 96 | position: relative; |
97 | width: 100%; | ||||
pR0Ps | 44330eb | 2013-12-06 02:02:23 -0500 | [diff] [blame] | 98 | margin: auto; |
pR0Ps | a6d15c3 | 2013-12-05 20:36:35 -0500 | [diff] [blame] | 99 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 100 | header { |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 101 | padding: 20px @horiz_pad 20px @horiz_pad; |
pR0Ps | 5a6e4f0 | 2013-12-10 21:11:44 -0500 | [diff] [blame] | 102 | border-top: @border_color 1px solid; |
103 | border-bottom: @border_color 1px solid; | ||||
pR0Ps | 44330eb | 2013-12-06 02:02:23 -0500 | [diff] [blame] | 104 | text-align: center; |
pR0Ps | eae2267 | 2014-04-07 19:17:02 -0400 | [diff] [blame] | 105 | color: @med-grey; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 106 | |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 107 | p { |
108 | font-weight: bold; | ||||
pR0Ps | eae2267 | 2014-04-07 19:17:02 -0400 | [diff] [blame] | 109 | font-size: 16px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 110 | text-transform: uppercase; |
111 | } | ||||
pR0Ps | 09af9c4 | 2013-12-06 04:51:29 -0500 | [diff] [blame] | 112 | |
113 | p#header { | ||||
114 | color: @black; | ||||
115 | } | ||||
116 | |||||
117 | p:not(#header){ | ||||
118 | a { | ||||
pR0Ps | eae2267 | 2014-04-07 19:17:02 -0400 | [diff] [blame] | 119 | color: @med-grey; |
pR0Ps | 09af9c4 | 2013-12-06 04:51:29 -0500 | [diff] [blame] | 120 | &:hover{ |
121 | color: @accent; | ||||
122 | } | ||||
123 | } | ||||
124 | } | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 125 | } |
126 | |||||
127 | article { | ||||
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 128 | padding: 10px @horiz_pad 10px @horiz_pad; |
129 | max-width: @content_size; | ||||
130 | margin: auto; | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 131 | |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 132 | div.article_title { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 133 | } |
134 | |||||
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 135 | div.article_text { |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 136 | line-height: 1.375em; |
Giulio Fidente | 5b17419 | 2013-03-22 23:40:00 +0100 | [diff] [blame] | 137 | a { |
138 | text-decoration: underline; | ||||
139 | } | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 140 | |
141 | code { | ||||
142 | margin: 2px; | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame] | 143 | padding: 0; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 144 | color: @black; |
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 145 | font-size: 14px; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 146 | font-family: @mono; |
147 | background: @light-grey; | ||||
148 | } | ||||
149 | |||||
150 | pre { | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame] | 151 | margin: 22px 2px 22px 2px; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 152 | padding: 2px; |
153 | color: @black; | ||||
154 | border-left: 3px solid @accent; | ||||
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 155 | font-size: 14px; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 156 | font-family: @mono; |
157 | background: @light-grey; | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame] | 158 | line-height: 1.125em; |
Giulio Fidente | 28d7964 | 2013-04-14 02:48:44 +0200 | [diff] [blame] | 159 | overflow-x: auto; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 160 | } |
161 | |||||
162 | blockquote { | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame] | 163 | margin: 22px 2px 22px 2px; |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 164 | padding-left: @horiz_pad; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 165 | color: @med-grey; |
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame] | 166 | font-style: italic; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 167 | } |
pR0Ps | ba37f02 | 2013-12-05 16:46:27 -0500 | [diff] [blame] | 168 | |
169 | .footnote-reference { | ||||
170 | vertical-align: super; | ||||
171 | font-size: 12px; | ||||
172 | text-decoration: none; | ||||
173 | line-height: 1; | ||||
174 | } | ||||
175 | |||||
176 | .footnote { | ||||
177 | font-size: smaller; | ||||
178 | .fn-backref{ | ||||
179 | margin-right: 5px; | ||||
180 | text-decoration: none; | ||||
181 | } | ||||
182 | } | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 183 | } |
184 | |||||
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 185 | div.gist { |
186 | line-height: .875em; | ||||
187 | } | ||||
188 | |||||
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 189 | div.article_meta { |
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 190 | font-size: 12px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 191 | color: @med-grey; |
192 | } | ||||
193 | } | ||||
194 | |||||
195 | footer { | ||||
pR0Ps | 5a6e4f0 | 2013-12-10 21:11:44 -0500 | [diff] [blame] | 196 | border-top: @border_color 1px solid; |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 197 | padding: 30px @horiz_pad 30px @horiz_pad; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 198 | |
Giulio Fidente | ebb4c7a | 2013-10-20 01:45:10 +0200 | [diff] [blame] | 199 | div#paginator { |
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 200 | font-weight: bold; |
201 | font-size: 15px; | ||||
202 | text-transform: uppercase; | ||||
203 | overflow: auto; | ||||
204 | text-align: center; | ||||
205 | |||||
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 206 | span { |
207 | width: @pag_label_size; | ||||
208 | min-height: 1px; | ||||
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 209 | } |
210 | |||||
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 211 | span#left { |
212 | float: left; | ||||
213 | text-align: left; | ||||
214 | } | ||||
215 | |||||
216 | span#right { | ||||
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 217 | float: right; |
pR0Ps | 981a839 | 2013-12-11 13:11:32 -0500 | [diff] [blame] | 218 | text-align: right; |
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 219 | } |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 220 | } |
221 | } | ||||
Giulio Fidente | bc2f70a | 2013-03-27 15:41:07 +0100 | [diff] [blame] | 222 | |
223 | div#ending_message { | ||||
pR0Ps | 5a6e4f0 | 2013-12-10 21:11:44 -0500 | [diff] [blame] | 224 | border-top: @border_color 1px solid; |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 225 | padding: 0 @horiz_pad 0 @horiz_pad; |
Giulio Fidente | 069c6d6 | 2013-08-16 16:05:02 +0200 | [diff] [blame] | 226 | color: @med-grey; |
Giulio Fidente | fe93c23 | 2013-10-05 14:42:43 +0200 | [diff] [blame] | 227 | font-size: 10px; |
Giulio Fidente | bc2f70a | 2013-03-27 15:41:07 +0100 | [diff] [blame] | 228 | } |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 229 | } |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 230 | |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 231 | @media screen and (min-width: @min_screen) { |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 232 | aside { |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 233 | width: 25%; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 234 | height: 100%; |
pR0Ps | 5a6e4f0 | 2013-12-10 21:11:44 -0500 | [diff] [blame] | 235 | position: absolute; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 236 | top: 0; |
237 | left: 0; | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 238 | |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 239 | h2 { |
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 240 | margin: 10px 0 0 0; |
241 | } | ||||
242 | |||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 243 | div#user_meta { |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 244 | max-width: 192px; |
Giulio Fidente | a9b6351 | 2013-06-21 03:50:46 +0200 | [diff] [blame] | 245 | text-align: right; |
pR0Ps | a6d15c3 | 2013-12-05 20:36:35 -0500 | [diff] [blame] | 246 | margin: 0 20px 0 auto; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 247 | } |
248 | } | ||||
249 | |||||
250 | main { | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 251 | position: absolute; |
252 | top: 0; | ||||
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 253 | left: 25%; |
254 | width: 75%; | ||||
255 | margin-left: -1px; | ||||
pR0Ps | 5a6e4f0 | 2013-12-10 21:11:44 -0500 | [diff] [blame] | 256 | border-left: @border_color 1px solid; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 257 | overflow-x: hidden; |
258 | overflow-y: hidden; | ||||
259 | |||||
260 | header { | ||||
261 | border-top: 0; | ||||
pR0Ps | 44330eb | 2013-12-06 02:02:23 -0500 | [diff] [blame] | 262 | text-align: left; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 263 | } |
pR0Ps | 5fd3a0f | 2014-09-27 00:56:41 -0400 | [diff] [blame] | 264 | |
265 | article { | ||||
266 | width: @content_size; | ||||
267 | margin: 0; | ||||
268 | } | ||||
269 | |||||
270 | footer{ | ||||
271 | div#paginator { | ||||
272 | width: @content_size; | ||||
273 | } | ||||
274 | } | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 275 | } |
pR0Ps | ba37f02 | 2013-12-05 16:46:27 -0500 | [diff] [blame] | 276 | } |