blob: 6b874dd915bad89c35b6dd50a5d588fbc1ce2277 [file] [log] [blame]
pR0Ps69cebd62014-04-07 18:11:01 -04001@black: #000000;
2@white: #ffffff;
3@light-grey: #eeeeee;
pR0Pseae22672014-04-07 19:17:02 -04004@med-grey: #5f5f5f;
pR0Ps69cebd62014-04-07 18:11:01 -04005@dark-grey: #202020;
pR0Ps0aea77e2015-01-21 21:55:39 -05006
7@code-border: #c7c7c7;
8@code-background: #f6f6f6;
9@code-linebg: #dddddd;
10
pR0Ps69cebd62014-04-07 18:11:01 -040011@blue: #0e94ec;
12@accent: @blue;
pR0Ps61e10042014-04-07 18:10:00 -040013
Vincent Cheng8d10ff22014-04-30 19:12:51 -070014@import (css) "//fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono";
pR0Ps2faeb222014-04-07 18:23:39 -040015@sans: 'Ubuntu', sans-serif;
16@mono: 'Ubuntu Mono', monospace;
Giulio Fidente44ccac72013-03-21 18:51:03 +010017
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040018@border_color: #c2c2c2;
pR0Psd351cde2013-12-29 14:32:17 -050019@pag_label_size: 60px;
pR0Ps27341772013-12-20 09:20:32 -050020@logo_size: 150px;
pR0Psa6d15c32013-12-05 20:36:35 -050021
pR0Ps5fd3a0f2014-09-27 00:56:41 -040022@content_size: 640px;
23@horiz_pad: 40px;
24
Carey Metcalfe0c84fdb2014-09-29 09:51:00 -040025//The minimum size the screen can be without scaling the main content
26@min_screen: floor(((@content_size + @horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050027
Giulio Fidente44ccac72013-03-21 18:51:03 +010028body {
29 margin: 0;
30 padding: 0;
31 background-color: @white;
32 color: @dark-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +010033 font-family: @sans;
pR0Pseae22672014-04-07 19:17:02 -040034 font-size: 16px;
pR0Ps69c71b22014-10-01 20:32:38 -040035 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010036}
37
38a {
39 color: @black;
40 text-decoration: none;
41}
42
pR0Ps41bf7d32013-12-05 16:33:55 -050043a[href]:not(.nohover) {
44 &:hover{
45 color: @accent;
46 }
47}
48
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010049hr {
pR0Ps5a6e4f02013-12-10 21:11:44 -050050 color: @border_color;
51 background-color: @border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010052 height: 1px;
53 border: none;
54}
55
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010056aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010057 div#user_meta {
pR0Ps5fd3a0f2014-09-27 00:56:41 -040058 padding: @horiz_pad 20px @horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010059 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010060
pR0Ps27341772013-12-20 09:20:32 -050061 img#logo {
62 width: @logo_size;
63 height: @logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040064 border-radius: 50%;
pR0Ps27341772013-12-20 09:20:32 -050065 }
66
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020067 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010068 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010069 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010070
71 p {
Giulio Fidente68c65412013-03-30 15:22:42 +010072 margin: 0 0 15px 0;
Giulio Fidentefe93c232013-10-05 14:42:43 +020073 font-size: 14px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010074 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020075
Giulio Fidente44ccac72013-03-21 18:51:03 +010076 ul {
pR0Pse5f49ca2014-03-04 01:47:54 -050077 margin: 20px 0 0 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010078 padding-left: 0;
Giulio Fidentefe93c232013-10-05 14:42:43 +020079 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010080 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +020081
Giulio Fidente44ccac72013-03-21 18:51:03 +010082 li {
pR0Psfee52252013-12-11 11:47:26 -050083 display: block;
84 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +010085
Giulio Fidente44ccac72013-03-21 18:51:03 +010086 a {
pR0Psfee52252013-12-11 11:47:26 -050087 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -050088 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -050089 color: @black;
pR0Ps8dbfbd82013-12-18 17:46:54 -050090 width: 30px;
pR0Psfee52252013-12-11 11:47:26 -050091 text-align: center;
92 vertical-align: middle;
93 }
Giulio Fidente44ccac72013-03-21 18:51:03 +010094 }
95 }
96 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020097 }
Giulio Fidente44ccac72013-03-21 18:51:03 +010098}
99
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100100main {
pR0Psa6d15c32013-12-05 20:36:35 -0500101 position: relative;
102 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500103 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500104
Giulio Fidente44ccac72013-03-21 18:51:03 +0100105 header {
pR0Ps0edc5562014-12-18 01:20:01 -0500106 padding: 0px @horiz_pad 0px @horiz_pad;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500107 border-top: @border_color 1px solid;
108 border-bottom: @border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500109 text-align: center;
pR0Pseae22672014-04-07 19:17:02 -0400110 color: @med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100111
Giulio Fidentea6c58672013-03-30 14:55:03 +0100112 p {
113 font-weight: bold;
pR0Pseae22672014-04-07 19:17:02 -0400114 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100115 text-transform: uppercase;
116 }
pR0Ps09af9c42013-12-06 04:51:29 -0500117
118 p#header {
119 color: @black;
120 }
121
122 p:not(#header){
123 a {
pR0Pseae22672014-04-07 19:17:02 -0400124 color: @med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500125 &:hover{
126 color: @accent;
127 }
128 }
129 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100130 }
131
132 article {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400133 padding: 10px @horiz_pad 10px @horiz_pad;
134 max-width: @content_size;
135 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100136
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100137 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100138 }
139
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100140 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200141 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100142 a {
143 text-decoration: underline;
144 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100145
pR0Ps0aea77e2015-01-21 21:55:39 -0500146 @codeformat: {
147 color: black;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200148 font-size: 14px;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100149 font-family: @mono;
pR0Ps0aea77e2015-01-21 21:55:39 -0500150 };
151
152 code {
153 @codeformat();
154 padding: 0px 2px;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100155 background: @light-grey;
156 }
157
158 pre {
pR0Ps0aea77e2015-01-21 21:55:39 -0500159 @codeformat();
Giulio Fidente0161f712013-04-13 02:55:10 +0200160 line-height: 1.125em;
pR0Ps0aea77e2015-01-21 21:55:39 -0500161 margin-bottom: 0px;
162 margin-top: 0px;
163 padding-top: 5px;
164 padding-bottom: 10px;
165 }
166
167 div.highlight pre {
168 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200169 overflow-x: auto;
pR0Ps0aea77e2015-01-21 21:55:39 -0500170 border: 1px solid @code-border;
171 border-left: 3px solid @accent;
172 background: @code-background;
173 }
174
175 /* Line numbers are enabled*/
176 table.highlighttable {
177 table-layout: fixed;
178 width: 100%;
179 border: 1px solid @code-border;
180 border-collapse: collapse;
181
182 pre {
183 border: none;
184 }
185
186 td.linenos {
187 width: 30px;
188 overflow: hidden;
189 text-align: right;
190 border-left: 3px solid @accent;
191 border-right: 1px solid @code-border;
192 background: @code-linebg;
193 vertical-align:top;
194
195 div.linenodiv pre {
196 padding-right: 4px;
197 float: right;
198 }
199 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100200 }
201
202 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200203 margin: 22px 2px 22px 2px;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400204 padding-left: @horiz_pad;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100205 color: @med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200206 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100207 }
pR0Psba37f022013-12-05 16:46:27 -0500208
209 .footnote-reference {
210 vertical-align: super;
211 font-size: 12px;
212 text-decoration: none;
213 line-height: 1;
214 }
215
216 .footnote {
217 font-size: smaller;
218 .fn-backref{
219 margin-right: 5px;
220 text-decoration: none;
221 }
222 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100223 }
224
Giulio Fidentefe93c232013-10-05 14:42:43 +0200225 div.gist {
226 line-height: .875em;
227 }
228
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100229 div.article_meta {
Giulio Fidentefe93c232013-10-05 14:42:43 +0200230 font-size: 12px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100231 color: @med-grey;
232 }
233 }
234
235 footer {
pR0Ps5a6e4f02013-12-10 21:11:44 -0500236 border-top: @border_color 1px solid;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400237 padding: 30px @horiz_pad 30px @horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100238
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200239 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500240 font-weight: bold;
241 font-size: 15px;
242 text-transform: uppercase;
243 overflow: auto;
244 text-align: center;
245
pR0Ps69c71b22014-10-01 20:32:38 -0400246 div{
247 display: inline-block;
248 }
249
pR0Ps981a8392013-12-11 13:11:32 -0500250 span {
251 width: @pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500252 }
253
pR0Ps981a8392013-12-11 13:11:32 -0500254 span#left {
255 float: left;
256 text-align: left;
257 }
258
259 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500260 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500261 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500262 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100263 }
264 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100265
266 div#ending_message {
pR0Ps5a6e4f02013-12-10 21:11:44 -0500267 border-top: @border_color 1px solid;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400268 padding: 0 @horiz_pad 0 @horiz_pad;
Giulio Fidente069c6d62013-08-16 16:05:02 +0200269 color: @med-grey;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200270 font-size: 10px;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100271 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100272}
Giulio Fidentee3776082013-03-27 15:21:32 +0100273
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400274@media screen and (min-width: @min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100275 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400276 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100277 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500278 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100279 top: 0;
280 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100281
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200282 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100283 margin: 10px 0 0 0;
284 }
285
Giulio Fidentee3776082013-03-27 15:21:32 +0100286 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100287 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200288 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500289 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100290 }
291 }
292
293 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100294 position: absolute;
295 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400296 left: 25%;
297 width: 75%;
298 margin-left: -1px;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500299 border-left: @border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100300 overflow-x: hidden;
301 overflow-y: hidden;
302
303 header {
pR0Ps0edc5562014-12-18 01:20:01 -0500304 padding: 10px @horiz_pad 10px @horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100305 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500306 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100307 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400308
309 article {
310 width: @content_size;
311 margin: 0;
312 }
313
314 footer{
315 div#paginator {
316 width: @content_size;
317 }
318 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100319 }
pR0Psba37f022013-12-05 16:46:27 -0500320}