blob: 21212cb341dc641b8ba2b2d7112204d02ab892db [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;
18$mono: 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;
Carey Metcalfe4a365052019-01-23 04:19:51 -050030$code_font_size: 1rem;
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;
63}
64
Carey Metcalfe07235a22015-08-24 22:39:36 -040065img {
66 max-width: 100%;
67}
68
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010069aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010070 div#user_meta {
pR0Psa9f82032015-03-11 21:36:35 -040071 padding: $horiz_pad 20px $horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010072 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010073
pR0Ps27341772013-12-20 09:20:32 -050074 img#logo {
pR0Psa9f82032015-03-11 21:36:35 -040075 width: $logo_size;
76 height: $logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040077 border-radius: 50%;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050078 border: 5px solid $black;
79 background-color: $black;
80 box-shadow: 0px 0px 1px $black;
pR0Ps27341772013-12-20 09:20:32 -050081 }
82
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020083 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010084 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010085 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010086
87 p {
pR0Ps58acb372015-03-05 00:18:35 -050088 margin: 0px;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040089 font-size: $subtitle_font_size;
Giulio Fidente44ccac72013-03-21 18:51:03 +010090 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020091
pR0Ps58acb372015-03-05 00:18:35 -050092 i {
93 width: 30px;
94 text-align: center;
95 vertical-align: middle;
96 }
97
98 div.social {
99 margin-top:15px;
100
101 a {
102 display: inline-block;
103 height: 30px;
104 }
105 }
106
Giulio Fidente44ccac72013-03-21 18:51:03 +0100107 ul {
pR0Ps58acb372015-03-05 00:18:35 -0500108 margin: 0px;
109 padding-left: 0px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100110 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +0200111
Giulio Fidente44ccac72013-03-21 18:51:03 +0100112 li {
pR0Psfee52252013-12-11 11:47:26 -0500113 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +0100114
Giulio Fidente44ccac72013-03-21 18:51:03 +0100115 a {
pR0Psfee52252013-12-11 11:47:26 -0500116 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -0500117 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -0500118 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100119 }
120 }
121 }
Giulio Fidentee88666d2013-04-29 12:25:51 +0200122 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100123}
124
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100125main {
pR0Psa6d15c32013-12-05 20:36:35 -0500126 position: relative;
127 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500128 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500129
Giulio Fidente44ccac72013-03-21 18:51:03 +0100130 header {
pR0Psa9f82032015-03-11 21:36:35 -0400131 padding: 0px $horiz_pad 0px $horiz_pad;
132 border-top: $border_color 1px solid;
133 border-bottom: $border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500134 text-align: center;
pR0Psa9f82032015-03-11 21:36:35 -0400135 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100136
Giulio Fidentea6c58672013-03-30 14:55:03 +0100137 p {
138 font-weight: bold;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400139 font-size: $nav_font_size;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100140 text-transform: uppercase;
141 }
pR0Ps09af9c42013-12-06 04:51:29 -0500142
143 p#header {
pR0Psa9f82032015-03-11 21:36:35 -0400144 color: $black;
pR0Ps09af9c42013-12-06 04:51:29 -0500145 }
146
147 p:not(#header){
148 a {
pR0Psa9f82032015-03-11 21:36:35 -0400149 color: $med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500150 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -0400151 color: $accent;
pR0Ps09af9c42013-12-06 04:51:29 -0500152 }
153 }
154 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100155 }
156
157 article {
pR0Psa9f82032015-03-11 21:36:35 -0400158 padding: 10px $horiz_pad 10px $horiz_pad;
159 max-width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400160 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100161
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100162 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100163 }
164
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100165 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200166 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100167 a {
168 text-decoration: underline;
169 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100170
pR0Psa9f82032015-03-11 21:36:35 -0400171 @mixin codeformat {
pR0Ps0aea77e2015-01-21 21:55:39 -0500172 color: black;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400173 font-size: $code_font_size;
pR0Psa9f82032015-03-11 21:36:35 -0400174 font-family: $mono;
175 }
pR0Ps0aea77e2015-01-21 21:55:39 -0500176
177 code {
pR0Psa9f82032015-03-11 21:36:35 -0400178 @include codeformat;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400179 padding: 1px 3px;
pR0Psa9f82032015-03-11 21:36:35 -0400180 background: $light-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100181 }
182
183 pre {
pR0Psa9f82032015-03-11 21:36:35 -0400184 @include codeformat;
Carey Metcalfe4a365052019-01-23 04:19:51 -0500185 line-height: 1.25;
pR0Ps0aea77e2015-01-21 21:55:39 -0500186 margin-bottom: 0px;
187 margin-top: 0px;
188 padding-top: 5px;
189 padding-bottom: 10px;
190 }
191
Carey Metcalfe4a365052019-01-23 04:19:51 -0500192 div.highlight {
193 overflow: auto;
194 }
195
pR0Ps0aea77e2015-01-21 21:55:39 -0500196 div.highlight pre {
Carey Metcalfe4a365052019-01-23 04:19:51 -0500197 display: inline-block;
pR0Ps0aea77e2015-01-21 21:55:39 -0500198 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200199 overflow-x: auto;
pR0Psa9f82032015-03-11 21:36:35 -0400200 border: 1px solid $code-border;
201 border-left: 3px solid $accent;
202 background: $code-background;
pR0Ps0aea77e2015-01-21 21:55:39 -0500203 }
204
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400205 /* Line numbers are enabled */
pR0Ps0aea77e2015-01-21 21:55:39 -0500206 table.highlighttable {
207 table-layout: fixed;
208 width: 100%;
pR0Psa9f82032015-03-11 21:36:35 -0400209 border: 1px solid $code-border;
pR0Ps0aea77e2015-01-21 21:55:39 -0500210 border-collapse: collapse;
211
212 pre {
213 border: none;
214 }
215
pR0Psd883e122015-01-22 16:20:30 -0500216 td {
217 padding: 0px;
218 }
219
pR0Ps0aea77e2015-01-21 21:55:39 -0500220 td.linenos {
221 width: 30px;
222 overflow: hidden;
223 text-align: right;
pR0Psa9f82032015-03-11 21:36:35 -0400224 border-left: 3px solid $accent;
225 border-right: 1px solid $code-border;
226 background: $code-linebg;
pR0Ps0aea77e2015-01-21 21:55:39 -0500227 vertical-align:top;
228
229 div.linenodiv pre {
230 padding-right: 4px;
231 float: right;
232 }
233 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100234 }
235
pR0Pse889f472015-01-22 00:50:31 -0500236 div.admonition {
237
238 border-width: 1px 1px 1px 7px;
239 border-radius: 10px;
240 border-style: solid;
pR0Psa9f82032015-03-11 21:36:35 -0400241 border-color: $code-border;
242 border-left-color: $dark-grey;
243 background-color: $code-background;
pR0Pse889f472015-01-22 00:50:31 -0500244
245 &.update, &.hint, &.important, &.note, &.tip {
pR0Psa9f82032015-03-11 21:36:35 -0400246 border-left-color: $accent;
pR0Pse889f472015-01-22 00:50:31 -0500247 }
248
249 &.warning, &.attention, &.caution, &.danger {
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400250 border-left-color: $danger;
pR0Pse889f472015-01-22 00:50:31 -0500251 }
252
253 p {
254 margin: 0px;
255 padding: 10px 15px;
256 }
257
258 p.admonition-title{
259 text-transform: uppercase;
260 font-weight: bold;
261 padding: 5px 15px;
pR0Psa9f82032015-03-11 21:36:35 -0400262 border-bottom: 1px solid $code-border;
pR0Pse889f472015-01-22 00:50:31 -0500263 }
264 }
265
Giulio Fidentea6c58672013-03-30 14:55:03 +0100266 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200267 margin: 22px 2px 22px 2px;
pR0Psa9f82032015-03-11 21:36:35 -0400268 padding-left: $horiz_pad;
269 color: $med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200270 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100271 }
Giulio Fidentefe93c232013-10-05 14:42:43 +0200272 }
273
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100274 div.article_meta {
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400275 font-size: $article_meta_font_size;
pR0Psa9f82032015-03-11 21:36:35 -0400276 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100277 }
pR0Ps032e7d82015-02-07 01:43:51 -0500278
279 div#article_comments{
280 padding-top: 10px;
281 padding-bottom: 10px;
282
283 i {
284 padding-right: 10px;
285 }
286 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100287 }
288
289 footer {
pR0Psa9f82032015-03-11 21:36:35 -0400290 border-top: $border_color 1px solid;
291 padding: 30px $horiz_pad 30px $horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100292
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200293 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500294 font-weight: bold;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400295 font-size: $pagination_font_size;
pR0Ps721949b2013-12-11 13:09:22 -0500296 text-transform: uppercase;
297 overflow: auto;
298 text-align: center;
299
pR0Ps69c71b22014-10-01 20:32:38 -0400300 div{
301 display: inline-block;
302 }
303
pR0Ps981a8392013-12-11 13:11:32 -0500304 span {
pR0Psa9f82032015-03-11 21:36:35 -0400305 width: $pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500306 }
307
pR0Ps981a8392013-12-11 13:11:32 -0500308 span#left {
309 float: left;
310 text-align: left;
311 }
312
313 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500314 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500315 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500316 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100317 }
318 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100319
320 div#ending_message {
pR0Psa9f82032015-03-11 21:36:35 -0400321 border-top: $border_color 1px solid;
322 padding: 0 $horiz_pad 0 $horiz_pad;
323 color: $med-grey;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400324 font-size: $footer_font_size;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100325 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100326}
Giulio Fidentee3776082013-03-27 15:21:32 +0100327
pR0Psa9f82032015-03-11 21:36:35 -0400328@media screen and (min-width: $min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100329 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400330 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100331 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500332 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100333 top: 0;
334 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100335
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200336 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100337 margin: 10px 0 0 0;
338 }
339
Giulio Fidentee3776082013-03-27 15:21:32 +0100340 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100341 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200342 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500343 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100344 }
345 }
346
347 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100348 position: absolute;
349 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400350 left: 25%;
351 width: 75%;
352 margin-left: -1px;
pR0Psa9f82032015-03-11 21:36:35 -0400353 border-left: $border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100354 overflow-x: hidden;
355 overflow-y: hidden;
356
357 header {
pR0Psa9f82032015-03-11 21:36:35 -0400358 padding: 10px $horiz_pad 10px $horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100359 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500360 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100361 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400362
363 article {
pR0Psa9f82032015-03-11 21:36:35 -0400364 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400365 margin: 0;
366 }
367
368 footer{
369 div#paginator {
pR0Psa9f82032015-03-11 21:36:35 -0400370 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400371 }
372 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100373 }
pR0Psba37f022013-12-05 16:46:27 -0500374}