blob: bb4eb3d6bc1a29d18011f2bdd07273f901461060 [file] [log] [blame]
pR0Psae71ee12015-03-05 01:03:27 -05001@charset "UTF-8";
2
pR0Psa9f82032015-03-11 21:36:35 -04003$black: #000000;
4$white: #ffffff;
5$light-grey: #eeeeee;
6$med-grey: #5f5f5f;
7$dark-grey: #202020;
Carey Metcalfe76e251e2016-03-12 15:36:12 -05008$bg-grey: #FAFAFA;
pR0Ps0aea77e2015-01-21 21:55:39 -05009
pR0Psa9f82032015-03-11 21:36:35 -040010$code-border: #c7c7c7;
11$code-background: #f6f6f6;
12$code-linebg: #dddddd;
pR0Ps0aea77e2015-01-21 21:55:39 -050013
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040014$accent: #0e94ec;
15$danger: red;
pR0Ps61e10042014-04-07 18:10:00 -040016
Carey Metcalfefbcb7512019-01-23 04:22:57 -050017$sans: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
Luigi Santivetti6ce0e132020-10-07 23:28:00 +010018$mono: "Source Code Pro", monospace;
Giulio Fidente44ccac72013-03-21 18:51:03 +010019
pR0Psa9f82032015-03-11 21:36:35 -040020$border_color: #c2c2c2;
21$pag_label_size: 60px;
22$logo_size: 150px;
pR0Psa6d15c32013-12-05 20:36:35 -050023
pR0Psa9f82032015-03-11 21:36:35 -040024$content_size: 640px;
25$horiz_pad: 40px;
pR0Ps5fd3a0f2014-09-27 00:56:41 -040026
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040027$main_font_size: 1rem;
28$nav_font_size: 1rem;
29$subtitle_font_size: 0.9rem;
Luigi Santivetti6ce0e132020-10-07 23:28:00 +010030$code_font_size: 12px;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040031$article_meta_font_size: 0.8rem;
32$pagination_font_size: 0.9rem;
33$footer_font_size: 0.7rem;
34
Carey Metcalfe0c84fdb2014-09-29 09:51:00 -040035//The minimum size the screen can be without scaling the main content
pR0Psa9f82032015-03-11 21:36:35 -040036$min_screen: floor((($content_size + $horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050037
Giulio Fidente44ccac72013-03-21 18:51:03 +010038body {
39 margin: 0;
40 padding: 0;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050041 background-color: $bg-grey;
pR0Psa9f82032015-03-11 21:36:35 -040042 color: $dark-grey;
43 font-family: $sans;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040044 font-size: $main_font_size;
pR0Ps69c71b22014-10-01 20:32:38 -040045 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010046}
47
48a {
pR0Psa9f82032015-03-11 21:36:35 -040049 color: $black;
Giulio Fidente44ccac72013-03-21 18:51:03 +010050 text-decoration: none;
51}
52
pR0Ps41bf7d32013-12-05 16:33:55 -050053a[href]:not(.nohover) {
54 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -040055 color: $accent;
pR0Ps41bf7d32013-12-05 16:33:55 -050056 }
57}
58
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010059hr {
pR0Psa9f82032015-03-11 21:36:35 -040060 background-color: $border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010061 height: 1px;
62 border: none;
Luigi Santivetti6ce0e132020-10-07 23:28:00 +010063 margin: 0em;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010064}
65
Carey Metcalfe07235a22015-08-24 22:39:36 -040066img {
67 max-width: 100%;
68}
69
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010070aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010071 div#user_meta {
pR0Psa9f82032015-03-11 21:36:35 -040072 padding: $horiz_pad 20px $horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010073 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010074
pR0Ps27341772013-12-20 09:20:32 -050075 img#logo {
pR0Psa9f82032015-03-11 21:36:35 -040076 width: $logo_size;
77 height: $logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040078 border-radius: 50%;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050079 border: 5px solid $black;
80 background-color: $black;
81 box-shadow: 0px 0px 1px $black;
pR0Ps27341772013-12-20 09:20:32 -050082 }
83
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020084 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010085 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010086 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010087
88 p {
pR0Ps58acb372015-03-05 00:18:35 -050089 margin: 0px;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040090 font-size: $subtitle_font_size;
Giulio Fidente44ccac72013-03-21 18:51:03 +010091 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020092
pR0Ps58acb372015-03-05 00:18:35 -050093 i {
94 width: 30px;
95 text-align: center;
96 vertical-align: middle;
97 }
98
99 div.social {
100 margin-top:15px;
101
102 a {
103 display: inline-block;
104 height: 30px;
105 }
106 }
107
Giulio Fidente44ccac72013-03-21 18:51:03 +0100108 ul {
pR0Ps58acb372015-03-05 00:18:35 -0500109 margin: 0px;
110 padding-left: 0px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100111 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +0200112
Giulio Fidente44ccac72013-03-21 18:51:03 +0100113 li {
pR0Psfee52252013-12-11 11:47:26 -0500114 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +0100115
Giulio Fidente44ccac72013-03-21 18:51:03 +0100116 a {
pR0Psfee52252013-12-11 11:47:26 -0500117 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -0500118 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -0500119 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100120 }
121 }
122 }
Giulio Fidentee88666d2013-04-29 12:25:51 +0200123 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100124}
125
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100126main {
pR0Psa6d15c32013-12-05 20:36:35 -0500127 position: relative;
128 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500129 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500130
Giulio Fidente44ccac72013-03-21 18:51:03 +0100131 header {
pR0Psa9f82032015-03-11 21:36:35 -0400132 padding: 0px $horiz_pad 0px $horiz_pad;
133 border-top: $border_color 1px solid;
134 border-bottom: $border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500135 text-align: center;
pR0Psa9f82032015-03-11 21:36:35 -0400136 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100137
Giulio Fidentea6c58672013-03-30 14:55:03 +0100138 p {
139 font-weight: bold;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400140 font-size: $nav_font_size;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100141 text-transform: uppercase;
142 }
pR0Ps09af9c42013-12-06 04:51:29 -0500143
144 p#header {
pR0Psa9f82032015-03-11 21:36:35 -0400145 color: $black;
pR0Ps09af9c42013-12-06 04:51:29 -0500146 }
147
148 p:not(#header){
149 a {
pR0Psa9f82032015-03-11 21:36:35 -0400150 color: $med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500151 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -0400152 color: $accent;
pR0Ps09af9c42013-12-06 04:51:29 -0500153 }
154 }
155 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100156 }
157
158 article {
pR0Psa9f82032015-03-11 21:36:35 -0400159 padding: 10px $horiz_pad 10px $horiz_pad;
160 max-width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400161 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100162
Luigi Santivetti6ce0e132020-10-07 23:28:00 +0100163 /* Input form */
164 fieldset {
165 border: 0px;
166 }
167
168 div.form_errors {
169 p {
170 color: red;
171 font-weight: bold;
172 }
173 }
174
175 div.submit_msg {
176 p {
177 color: green;
178 font-weight: bold;
179 }
180 }
181
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100182 div.article_title {
Luigi Santivetti6ce0e132020-10-07 23:28:00 +0100183 h3 {
184 padding: 2px;
185 margin: 2px;
186 }
187 p {
188 padding: 2px;
189 margin: 2px;
190 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100191 }
192
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100193 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200194 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100195 a {
196 text-decoration: underline;
197 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100198
Luigi Santivetti6ce0e132020-10-07 23:28:00 +0100199 .field {
200 border: 0;
201 }
202
pR0Psa9f82032015-03-11 21:36:35 -0400203 @mixin codeformat {
pR0Ps0aea77e2015-01-21 21:55:39 -0500204 color: black;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400205 font-size: $code_font_size;
pR0Psa9f82032015-03-11 21:36:35 -0400206 font-family: $mono;
207 }
pR0Ps0aea77e2015-01-21 21:55:39 -0500208
209 code {
pR0Psa9f82032015-03-11 21:36:35 -0400210 @include codeformat;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400211 padding: 1px 3px;
pR0Psa9f82032015-03-11 21:36:35 -0400212 background: $light-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100213 }
214
215 pre {
pR0Psa9f82032015-03-11 21:36:35 -0400216 @include codeformat;
Carey Metcalfe4a365052019-01-23 04:19:51 -0500217 line-height: 1.25;
pR0Ps0aea77e2015-01-21 21:55:39 -0500218 margin-bottom: 0px;
219 margin-top: 0px;
220 padding-top: 5px;
221 padding-bottom: 10px;
222 }
223
Carey Metcalfe4a365052019-01-23 04:19:51 -0500224 div.highlight {
225 overflow: auto;
226 }
227
pR0Ps0aea77e2015-01-21 21:55:39 -0500228 div.highlight pre {
Luigi Santivetti6ce0e132020-10-07 23:28:00 +0100229 display: block;
pR0Ps0aea77e2015-01-21 21:55:39 -0500230 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200231 overflow-x: auto;
pR0Psa9f82032015-03-11 21:36:35 -0400232 border: 1px solid $code-border;
233 border-left: 3px solid $accent;
234 background: $code-background;
pR0Ps0aea77e2015-01-21 21:55:39 -0500235 }
236
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400237 /* Line numbers are enabled */
pR0Ps0aea77e2015-01-21 21:55:39 -0500238 table.highlighttable {
239 table-layout: fixed;
240 width: 100%;
pR0Psa9f82032015-03-11 21:36:35 -0400241 border: 1px solid $code-border;
pR0Ps0aea77e2015-01-21 21:55:39 -0500242 border-collapse: collapse;
243
244 pre {
245 border: none;
246 }
247
pR0Psd883e122015-01-22 16:20:30 -0500248 td {
249 padding: 0px;
250 }
251
pR0Ps0aea77e2015-01-21 21:55:39 -0500252 td.linenos {
253 width: 30px;
254 overflow: hidden;
255 text-align: right;
pR0Psa9f82032015-03-11 21:36:35 -0400256 border-left: 3px solid $accent;
257 border-right: 1px solid $code-border;
258 background: $code-linebg;
pR0Ps0aea77e2015-01-21 21:55:39 -0500259 vertical-align:top;
260
261 div.linenodiv pre {
262 padding-right: 4px;
263 float: right;
264 }
265 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100266 }
267
pR0Pse889f472015-01-22 00:50:31 -0500268 div.admonition {
269
270 border-width: 1px 1px 1px 7px;
271 border-radius: 10px;
272 border-style: solid;
pR0Psa9f82032015-03-11 21:36:35 -0400273 border-color: $code-border;
274 border-left-color: $dark-grey;
275 background-color: $code-background;
pR0Pse889f472015-01-22 00:50:31 -0500276
277 &.update, &.hint, &.important, &.note, &.tip {
pR0Psa9f82032015-03-11 21:36:35 -0400278 border-left-color: $accent;
pR0Pse889f472015-01-22 00:50:31 -0500279 }
280
281 &.warning, &.attention, &.caution, &.danger {
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400282 border-left-color: $danger;
pR0Pse889f472015-01-22 00:50:31 -0500283 }
284
285 p {
286 margin: 0px;
287 padding: 10px 15px;
288 }
289
290 p.admonition-title{
291 text-transform: uppercase;
292 font-weight: bold;
293 padding: 5px 15px;
pR0Psa9f82032015-03-11 21:36:35 -0400294 border-bottom: 1px solid $code-border;
pR0Pse889f472015-01-22 00:50:31 -0500295 }
296 }
297
Giulio Fidentea6c58672013-03-30 14:55:03 +0100298 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200299 margin: 22px 2px 22px 2px;
pR0Psa9f82032015-03-11 21:36:35 -0400300 padding-left: $horiz_pad;
301 color: $med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200302 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100303 }
Giulio Fidentefe93c232013-10-05 14:42:43 +0200304 }
305
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100306 div.article_meta {
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400307 font-size: $article_meta_font_size;
pR0Psa9f82032015-03-11 21:36:35 -0400308 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100309 }
pR0Ps032e7d82015-02-07 01:43:51 -0500310
311 div#article_comments{
312 padding-top: 10px;
313 padding-bottom: 10px;
314
315 i {
316 padding-right: 10px;
317 }
318 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100319 }
320
321 footer {
pR0Psa9f82032015-03-11 21:36:35 -0400322 border-top: $border_color 1px solid;
323 padding: 30px $horiz_pad 30px $horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100324
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200325 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500326 font-weight: bold;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400327 font-size: $pagination_font_size;
pR0Ps721949b2013-12-11 13:09:22 -0500328 text-transform: uppercase;
329 overflow: auto;
330 text-align: center;
331
pR0Ps69c71b22014-10-01 20:32:38 -0400332 div{
333 display: inline-block;
334 }
335
pR0Ps981a8392013-12-11 13:11:32 -0500336 span {
pR0Psa9f82032015-03-11 21:36:35 -0400337 width: $pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500338 }
339
pR0Ps981a8392013-12-11 13:11:32 -0500340 span#left {
341 float: left;
342 text-align: left;
343 }
344
345 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500346 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500347 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500348 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100349 }
350 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100351
352 div#ending_message {
pR0Psa9f82032015-03-11 21:36:35 -0400353 border-top: $border_color 1px solid;
354 padding: 0 $horiz_pad 0 $horiz_pad;
355 color: $med-grey;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400356 font-size: $footer_font_size;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100357 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100358}
Giulio Fidentee3776082013-03-27 15:21:32 +0100359
pR0Psa9f82032015-03-11 21:36:35 -0400360@media screen and (min-width: $min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100361 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400362 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100363 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500364 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100365 top: 0;
366 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100367
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200368 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100369 margin: 10px 0 0 0;
370 }
371
Giulio Fidentee3776082013-03-27 15:21:32 +0100372 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100373 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200374 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500375 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100376 }
377 }
378
379 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100380 position: absolute;
381 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400382 left: 25%;
383 width: 75%;
384 margin-left: -1px;
pR0Psa9f82032015-03-11 21:36:35 -0400385 border-left: $border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100386 overflow-x: hidden;
387 overflow-y: hidden;
388
389 header {
pR0Psa9f82032015-03-11 21:36:35 -0400390 padding: 10px $horiz_pad 10px $horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100391 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500392 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100393 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400394
395 article {
pR0Psa9f82032015-03-11 21:36:35 -0400396 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400397 margin: 0;
398 }
399
400 footer{
401 div#paginator {
pR0Psa9f82032015-03-11 21:36:35 -0400402 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400403 }
404 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100405 }
pR0Psba37f022013-12-05 16:46:27 -0500406}