blob: c5eacd51912fa72228a0a3ad617e23d014d86520 [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;
pR0Ps0aea77e2015-01-21 21:55:39 -05008
pR0Psa9f82032015-03-11 21:36:35 -04009$code-border: #c7c7c7;
10$code-background: #f6f6f6;
11$code-linebg: #dddddd;
pR0Ps0aea77e2015-01-21 21:55:39 -050012
pR0Psa9f82032015-03-11 21:36:35 -040013$blue: #0e94ec;
14$accent: $blue;
pR0Ps61e10042014-04-07 18:10:00 -040015
pR0Psa9f82032015-03-11 21:36:35 -040016@import url("//fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono");
17$sans: 'Ubuntu', sans-serif;
18$mono: 'Ubuntu 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 Metcalfe0c84fdb2014-09-29 09:51:00 -040027//The minimum size the screen can be without scaling the main content
pR0Psa9f82032015-03-11 21:36:35 -040028$min_screen: floor((($content_size + $horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050029
Giulio Fidente44ccac72013-03-21 18:51:03 +010030body {
31 margin: 0;
32 padding: 0;
pR0Psa9f82032015-03-11 21:36:35 -040033 background-color: $white;
34 color: $dark-grey;
35 font-family: $sans;
pR0Pseae22672014-04-07 19:17:02 -040036 font-size: 16px;
pR0Ps69c71b22014-10-01 20:32:38 -040037 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010038}
39
40a {
pR0Psa9f82032015-03-11 21:36:35 -040041 color: $black;
Giulio Fidente44ccac72013-03-21 18:51:03 +010042 text-decoration: none;
43}
44
pR0Ps41bf7d32013-12-05 16:33:55 -050045a[href]:not(.nohover) {
46 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -040047 color: $accent;
pR0Ps41bf7d32013-12-05 16:33:55 -050048 }
49}
50
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010051hr {
pR0Psa9f82032015-03-11 21:36:35 -040052 background-color: $border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010053 height: 1px;
54 border: none;
55}
56
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010057aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010058 div#user_meta {
pR0Psa9f82032015-03-11 21:36:35 -040059 padding: $horiz_pad 20px $horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010060 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010061
pR0Ps27341772013-12-20 09:20:32 -050062 img#logo {
pR0Psa9f82032015-03-11 21:36:35 -040063 width: $logo_size;
64 height: $logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040065 border-radius: 50%;
pR0Ps27341772013-12-20 09:20:32 -050066 }
67
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020068 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010069 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010070 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010071
72 p {
pR0Ps58acb372015-03-05 00:18:35 -050073 margin: 0px;
Giulio Fidentefe93c232013-10-05 14:42:43 +020074 font-size: 14px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010075 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020076
pR0Ps58acb372015-03-05 00:18:35 -050077 i {
78 width: 30px;
79 text-align: center;
80 vertical-align: middle;
81 }
82
83 div.social {
84 margin-top:15px;
85
86 a {
87 display: inline-block;
88 height: 30px;
89 }
90 }
91
Giulio Fidente44ccac72013-03-21 18:51:03 +010092 ul {
pR0Ps58acb372015-03-05 00:18:35 -050093 margin: 0px;
94 padding-left: 0px;
Giulio Fidentefe93c232013-10-05 14:42:43 +020095 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010096 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +020097
Giulio Fidente44ccac72013-03-21 18:51:03 +010098 li {
pR0Psfee52252013-12-11 11:47:26 -050099 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +0100100
Giulio Fidente44ccac72013-03-21 18:51:03 +0100101 a {
pR0Psfee52252013-12-11 11:47:26 -0500102 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -0500103 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -0500104 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100105 }
106 }
107 }
Giulio Fidentee88666d2013-04-29 12:25:51 +0200108 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100109}
110
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100111main {
pR0Psa6d15c32013-12-05 20:36:35 -0500112 position: relative;
113 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500114 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500115
Giulio Fidente44ccac72013-03-21 18:51:03 +0100116 header {
pR0Psa9f82032015-03-11 21:36:35 -0400117 padding: 0px $horiz_pad 0px $horiz_pad;
118 border-top: $border_color 1px solid;
119 border-bottom: $border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500120 text-align: center;
pR0Psa9f82032015-03-11 21:36:35 -0400121 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100122
Giulio Fidentea6c58672013-03-30 14:55:03 +0100123 p {
124 font-weight: bold;
pR0Pseae22672014-04-07 19:17:02 -0400125 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100126 text-transform: uppercase;
127 }
pR0Ps09af9c42013-12-06 04:51:29 -0500128
129 p#header {
pR0Psa9f82032015-03-11 21:36:35 -0400130 color: $black;
pR0Ps09af9c42013-12-06 04:51:29 -0500131 }
132
133 p:not(#header){
134 a {
pR0Psa9f82032015-03-11 21:36:35 -0400135 color: $med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500136 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -0400137 color: $accent;
pR0Ps09af9c42013-12-06 04:51:29 -0500138 }
139 }
140 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100141 }
142
143 article {
pR0Psa9f82032015-03-11 21:36:35 -0400144 padding: 10px $horiz_pad 10px $horiz_pad;
145 max-width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400146 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100147
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100148 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100149 }
150
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100151 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200152 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100153 a {
154 text-decoration: underline;
155 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100156
pR0Psa9f82032015-03-11 21:36:35 -0400157 @mixin codeformat {
pR0Ps0aea77e2015-01-21 21:55:39 -0500158 color: black;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200159 font-size: 14px;
pR0Psa9f82032015-03-11 21:36:35 -0400160 font-family: $mono;
161 }
pR0Ps0aea77e2015-01-21 21:55:39 -0500162
163 code {
pR0Psa9f82032015-03-11 21:36:35 -0400164 @include codeformat;
pR0Ps89c43aa2015-01-22 23:00:03 -0500165 padding: 2px 3px;
pR0Psa9f82032015-03-11 21:36:35 -0400166 background: $light-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100167 }
168
169 pre {
pR0Psa9f82032015-03-11 21:36:35 -0400170 @include codeformat;
Giulio Fidente0161f712013-04-13 02:55:10 +0200171 line-height: 1.125em;
pR0Ps0aea77e2015-01-21 21:55:39 -0500172 margin-bottom: 0px;
173 margin-top: 0px;
174 padding-top: 5px;
175 padding-bottom: 10px;
176 }
177
178 div.highlight pre {
179 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200180 overflow-x: auto;
pR0Psa9f82032015-03-11 21:36:35 -0400181 border: 1px solid $code-border;
182 border-left: 3px solid $accent;
183 background: $code-background;
pR0Ps0aea77e2015-01-21 21:55:39 -0500184 }
185
186 /* Line numbers are enabled*/
187 table.highlighttable {
188 table-layout: fixed;
189 width: 100%;
pR0Psa9f82032015-03-11 21:36:35 -0400190 border: 1px solid $code-border;
pR0Ps0aea77e2015-01-21 21:55:39 -0500191 border-collapse: collapse;
192
193 pre {
194 border: none;
195 }
196
pR0Psd883e122015-01-22 16:20:30 -0500197 td {
198 padding: 0px;
199 }
200
pR0Ps0aea77e2015-01-21 21:55:39 -0500201 td.linenos {
202 width: 30px;
203 overflow: hidden;
204 text-align: right;
pR0Psa9f82032015-03-11 21:36:35 -0400205 border-left: 3px solid $accent;
206 border-right: 1px solid $code-border;
207 background: $code-linebg;
pR0Ps0aea77e2015-01-21 21:55:39 -0500208 vertical-align:top;
209
210 div.linenodiv pre {
211 padding-right: 4px;
212 float: right;
213 }
214 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100215 }
216
pR0Pse889f472015-01-22 00:50:31 -0500217 div.admonition {
218
219 border-width: 1px 1px 1px 7px;
220 border-radius: 10px;
221 border-style: solid;
pR0Psa9f82032015-03-11 21:36:35 -0400222 border-color: $code-border;
223 border-left-color: $dark-grey;
224 background-color: $code-background;
pR0Pse889f472015-01-22 00:50:31 -0500225
226 &.update, &.hint, &.important, &.note, &.tip {
pR0Psa9f82032015-03-11 21:36:35 -0400227 border-left-color: $accent;
pR0Pse889f472015-01-22 00:50:31 -0500228 }
229
230 &.warning, &.attention, &.caution, &.danger {
231 border-left-color: red;
232 }
233
234 p {
235 margin: 0px;
236 padding: 10px 15px;
237 }
238
239 p.admonition-title{
240 text-transform: uppercase;
241 font-weight: bold;
242 padding: 5px 15px;
pR0Psa9f82032015-03-11 21:36:35 -0400243 border-bottom: 1px solid $code-border;
pR0Pse889f472015-01-22 00:50:31 -0500244 }
245 }
246
Giulio Fidentea6c58672013-03-30 14:55:03 +0100247 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200248 margin: 22px 2px 22px 2px;
pR0Psa9f82032015-03-11 21:36:35 -0400249 padding-left: $horiz_pad;
250 color: $med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200251 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100252 }
Giulio Fidentefe93c232013-10-05 14:42:43 +0200253 }
254
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100255 div.article_meta {
Giulio Fidentefe93c232013-10-05 14:42:43 +0200256 font-size: 12px;
pR0Psa9f82032015-03-11 21:36:35 -0400257 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100258 }
pR0Ps032e7d82015-02-07 01:43:51 -0500259
260 div#article_comments{
261 padding-top: 10px;
262 padding-bottom: 10px;
263
264 i {
265 padding-right: 10px;
266 }
267 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100268 }
269
270 footer {
pR0Psa9f82032015-03-11 21:36:35 -0400271 border-top: $border_color 1px solid;
272 padding: 30px $horiz_pad 30px $horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100273
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200274 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500275 font-weight: bold;
276 font-size: 15px;
277 text-transform: uppercase;
278 overflow: auto;
279 text-align: center;
280
pR0Ps69c71b22014-10-01 20:32:38 -0400281 div{
282 display: inline-block;
283 }
284
pR0Ps981a8392013-12-11 13:11:32 -0500285 span {
pR0Psa9f82032015-03-11 21:36:35 -0400286 width: $pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500287 }
288
pR0Ps981a8392013-12-11 13:11:32 -0500289 span#left {
290 float: left;
291 text-align: left;
292 }
293
294 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500295 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500296 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500297 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100298 }
299 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100300
301 div#ending_message {
pR0Psa9f82032015-03-11 21:36:35 -0400302 border-top: $border_color 1px solid;
303 padding: 0 $horiz_pad 0 $horiz_pad;
304 color: $med-grey;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200305 font-size: 10px;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100306 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100307}
Giulio Fidentee3776082013-03-27 15:21:32 +0100308
pR0Psa9f82032015-03-11 21:36:35 -0400309@media screen and (min-width: $min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100310 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400311 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100312 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500313 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100314 top: 0;
315 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100316
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200317 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100318 margin: 10px 0 0 0;
319 }
320
Giulio Fidentee3776082013-03-27 15:21:32 +0100321 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100322 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200323 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500324 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100325 }
326 }
327
328 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100329 position: absolute;
330 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400331 left: 25%;
332 width: 75%;
333 margin-left: -1px;
pR0Psa9f82032015-03-11 21:36:35 -0400334 border-left: $border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100335 overflow-x: hidden;
336 overflow-y: hidden;
337
338 header {
pR0Psa9f82032015-03-11 21:36:35 -0400339 padding: 10px $horiz_pad 10px $horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100340 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500341 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100342 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400343
344 article {
pR0Psa9f82032015-03-11 21:36:35 -0400345 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400346 margin: 0;
347 }
348
349 footer{
350 div#paginator {
pR0Psa9f82032015-03-11 21:36:35 -0400351 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400352 }
353 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100354 }
pR0Psba37f022013-12-05 16:46:27 -0500355}