about summary refs log tree commit diff stats
path: root/app/assets/stylesheets/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/main')
-rw-r--r--app/assets/stylesheets/main/entries.scss429
-rw-r--r--app/assets/stylesheets/main/games.scss79
-rw-r--r--app/assets/stylesheets/main/layout.scss195
-rw-r--r--app/assets/stylesheets/main/records.scss13
-rw-r--r--app/assets/stylesheets/main/rouge.css.erb15
5 files changed, 666 insertions, 65 deletions
diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index 4d884fa..b9e3e0b 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss
@@ -2,29 +2,117 @@
2// They will automatically be included in application.css. 2// They will automatically be included in application.css.
3// You can use Sass (SCSS) here: http://sass-lang.com/ 3// You can use Sass (SCSS) here: http://sass-lang.com/
4 4
5@import url('https://fonts.googleapis.com/css?family=Slabo+27px'); 5.blog-post {
6@import url('https://fonts.googleapis.com/css?family=Roboto:400,700'); 6 line-height: 1.5em;
7 margin: 0 1em 1em;
8 clear: both;
7 9
8#blog-post { 10 .blog-title {
9 font-size: 16px; 11 flex-grow: 1;
10 line-height: 24px;
11 margin: 0 3em;
12 12
13 h2 { 13 h2 {
14 font-size: 45px; 14 margin-left: 10px;
15 line-height: 48px; 15 margin-top: 0;
16 margin-top: .5em; 16 margin-bottom: 0;
17 } 17 margin-right: 10px;
18 color: #59770e;
19 border-bottom: 1px dotted #CCCCCC;
20 padding-bottom: 3px;
21 font-family: "Trebuchet MS", sans-serif;
22
23 a {
24 text-decoration: none;
25 color: #59770e;
18 26
19 h3 { 27 &:visited {
20 font-size: 37px; 28 color: #59770e;
21 line-height: 42px; 29 }
30
31 &:hover {
32 text-decoration: underline;
33 }
34 }
35 }
22 } 36 }
23 37
24 h2, h3 { 38 header {
25 font-family: 'Slabo 27px', serif; 39 display: flex;
26 margin-bottom: 0; 40
27 font-weight: normal; 41 .post-calendar {
42 width: 45px;
43 height: 49px;
44 flex-shrink: 0;
45
46 &.post-date-1 {
47 background: image-url("date-bg-1.gif") no-repeat;
48 }
49
50 &.post-date-2 {
51 background: image-url("date-bg-2.gif") no-repeat;
52 }
53
54 &.post-date-3 {
55 background: image-url("date-bg-3.gif") no-repeat;
56 }
57
58 &.post-date-4 {
59 background: image-url("date-bg-4.gif") no-repeat;
60 }
61
62 .post-month {
63 font-size: 11px;
64 color: white;
65 text-align: center;
66 display: block;
67 line-height: 11px;
68 padding-top: 2px;
69 margin-left: -3px;
70 }
71
72 .post-day {
73 font-size: 18px;
74 color: #999999;
75 text-align: center;
76 display: block;
77 line-height: 18px;
78 padding-top: 7px;
79 margin-left: -3px;
80 }
81 }
82
83 .post-author {
84 background: image-url("Hatkirby.ico") no-repeat;
85 padding-left: 20px;
86 margin-left: 10px;
87 float: left;
88 font-size: 95%;
89 font: 75%/150% sans-serif;
90 color: #999;
91 }
92
93 .post-tag-3 {
94 background: image-url("tag.png") no-repeat;
95 padding-left: 20px;
96 margin: 0 0 0 3em;
97 float: left;
98 font-size: 95%;
99 color: #999999;
100 font: 75%/150% sans-serif;
101 display: block;
102
103 li {
104 display: inline-block;
105 margin-right: 0.5em;
106
107 a {
108 text-decoration: none;
109
110 &:hover {
111 text-decoration: underline;
112 }
113 }
114 }
115 }
28 } 116 }
29} 117}
30 118
@@ -65,7 +153,6 @@
65 153
66 .update-posted { 154 .update-posted {
67 display: block; 155 display: block;
68 font-style: italic;
69 background-color: #EAADEA; 156 background-color: #EAADEA;
70 font-size: 16px; 157 font-size: 16px;
71 margin: .5em -20px; 158 margin: .5em -20px;
@@ -73,6 +160,16 @@
73 border-width: 1px 0 1px 0; 160 border-width: 1px 0 1px 0;
74 border-style: solid; 161 border-style: solid;
75 border-color: #DB70DB; 162 border-color: #DB70DB;
163
164 time {
165 font-style: italic;
166 }
167
168 .update-edit-link {
169 float: right;
170 color: blue;
171 font-weight: normal;
172 }
76 } 173 }
77 } 174 }
78} 175}
@@ -80,7 +177,6 @@
80.entry-content { 177.entry-content {
81 hyphens: auto; 178 hyphens: auto;
82 word-wrap: break-word; 179 word-wrap: break-word;
83 text-align: justify;
84 font-family: 'Roboto', sans-serif; 180 font-family: 'Roboto', sans-serif;
85 181
86 a { 182 a {
@@ -105,9 +201,18 @@
105 201
106 img { 202 img {
107 max-width: 100%; 203 max-width: 100%;
204 height: auto;
108 box-sizing: border-box; 205 box-sizing: border-box;
109 } 206 }
110 207
208 video {
209 max-width: 100%;
210 }
211
212 iframe {
213 max-width: 100%;
214 }
215
111 figure { 216 figure {
112 background-color: #eee; 217 background-color: #eee;
113 border: 1px solid #bbb; 218 border: 1px solid #bbb;
@@ -115,6 +220,10 @@
115 font-size: 0.75em; 220 font-size: 0.75em;
116 line-height: 24px; 221 line-height: 24px;
117 222
223 @media only screen and (max-width: 767px) {
224 margin: 0;
225 }
226
118 img { 227 img {
119 display: block; 228 display: block;
120 border: 1px solid #bbb; 229 border: 1px solid #bbb;
@@ -126,4 +235,284 @@
126 margin: 0.25em; 235 margin: 0.25em;
127 } 236 }
128 } 237 }
238
239 .footnotes {
240 font-size: small;
241 }
242}
243
244#blog-archive {
245 margin-left: 1em;
246
247 h2, h3 {
248 font-family: "Trebuchet MS", sans-serif;
249 }
250}
251
252.archive-link {
253 margin-left: 1em;
254
255 a {
256 text-decoration: none;
257 font-weight: bold;
258
259 &, &:visited {
260 color: #ee2c2c;
261 }
262
263 &:hover {
264 text-decoration: underline;
265 color: #9ea1ad;
266 }
267 }
268
269 small {
270 margin-left: 1.5em;
271 }
272}
273
274.blog-comment {
275 margin: 0 1em;
276
277 .comment-avatar {
278 float: right;
279 margin-top: 1em;
280 }
281
282 .comment-reply-to {
283 float: right;
284 margin-right: 0.5em;
285
286 img {
287 display: block;
288 }
289 }
290}
291
292#comment-form {
293 #comment-reply-msg {
294 display: none;
295 margin-top: 1em;
296 margin-bottom: 0;
297 margin-left: 0;
298
299 .comment-reply-author {
300 font-weight: bold;
301 }
302 }
303
304 fieldset {
305 border: 0;
306
307 &#comment-body-field {
308 label {
309 display: none;
310 }
311
312 textarea {
313 margin-top: 1em;
314 width: 99%;
315 height: 6em;
316 resize: none;
317 }
318 }
319
320 &#comment-other-fields {
321 display: table;
322 padding: 1em;
323 width: 75%;
324 margin: 0 auto;
325
326 .comment-field {
327 display: table-row;
328
329 .comment-field-label {
330 text-align: right;
331 display: table-cell;
332 padding-right: 1em;
333 padding-bottom: 1em;
334 width: 50%;
335
336 label:after {
337 content: ":";
338 }
339 }
340
341 .field_with_errors {
342 label {
343 color: red;
344 }
345 }
346
347 .comment-field-input {
348 display: table-cell;
349 width: 50%;
350 }
351 }
352 }
353 }
354}
355
356.pagination {
357 text-align: center;
358 padding: 0.3em;
359 cursor: default;
360 margin-bottom: 1em;
361
362 a, span, em {
363 padding: 0.2em 0.5em;
364 }
365
366 .disabled {
367 color: #aaaaaa;
368 }
369
370 .current {
371 font-style: normal;
372 font-weight: bold;
373 color: #ff0084;
374 }
375
376 a {
377 border: 1px solid #dddddd;
378 color: #0063dc;
379 text-decoration: none;
380
381 &:hover, &:focus {
382 border-color: #003366;
383 background: #0063dc;
384 color: white;
385 }
386 }
387
388 .page_info {
389 color: #aaaaaa;
390 padding-top: 0.8em;
391 }
392
393 .previous_page, .next_page {
394 border-width: 2px;
395 }
396
397 .previous_page {
398 margin-right: 1em;
399 }
400
401 .next_page {
402 margin-left: 1em;
403 }
404}
405
406#tag-cloud {
407 width: 75%;
408 margin: 0 auto;
409 text-align: center;
410
411 a {
412 display: inline-block;
413 margin-right: 0.5em;
414 text-decoration: none;
415
416 &:hover {
417 text-decoration: underline;
418 }
419
420 &:visited {
421 color: blue;
422 }
423 }
424
425 .xs {
426 font-size: 0.75em;
427 }
428
429 .m {
430 font-size: 2em;
431 }
432
433 .l {
434 font-size: 3em;
435 }
436
437 .xl {
438 font-size: 3em;
439 font-weight: bold;
440 }
441}
442
443.post-vote {
444 float: right;
445 position: relative;
446 right: 0.5em;
447
448 a {
449 text-decoration: none;
450 }
451}
452
453.back-post, .next-post {
454 margin-left: 1em;
455 margin-bottom: 1em;
456 margin-right: 1em;
457
458 a, a:visited {
459 color: #555d66;
460 text-decoration: none;
461 font-size: .75em;
462 }
463
464 a:hover {
465 text-decoration: underline;
466 }
467}
468
469.back-post {
470 float: left;
471}
472
473.next-post {
474 float: right;
475}
476
477#streams-index {
478 width: 100%;
479 border-collapse: collapse;
480
481 #streams-index-header-row {
482 th {
483 background-color: #bdbdbd;
484 padding-left: 0.5em;
485 border-top: 1px solid #848484;
486 border-bottom: 1px solid #848484;
487 }
488 }
489
490 th {
491 padding-bottom: 0.5em;
492 padding-top: 0.5em;
493 text-align: left;
494 }
495
496 td {
497 padding-top: 1em;
498 padding-left: 0.5em;
499
500 time {
501 font-size: .75em;
502 }
503
504 .stream-link {
505 font-weight: bold;
506 text-decoration: none;
507
508 &, &:visited {
509 color: #ee2c2c;
510 }
511
512 &:hover {
513 text-decoration: underline;
514 color: #9ea1ad;
515 }
516 }
517 }
129} 518}
diff --git a/app/assets/stylesheets/main/games.scss b/app/assets/stylesheets/main/games.scss new file mode 100644 index 0000000..331c0c8 --- /dev/null +++ b/app/assets/stylesheets/main/games.scss
@@ -0,0 +1,79 @@
1// Place all the styles related to the GamesController controller here.
2// They will automatically be included in application.css.
3// You can use Sass (SCSS) here: http://sass-lang.com/
4#games-table {
5 border-spacing: 0;
6 width: 100%;
7
8 tr {
9 &.odd {
10 background-color: #fff;
11 }
12
13 &.even {
14 background-color: #edf;
15 }
16 }
17
18 td {
19 padding: 0.5em;
20 }
21
22 thead {
23 th {
24 border-bottom: 1px solid #aaa;
25 text-align: left;
26 padding: 0.5em;
27
28 a {
29 text-decoration: none;
30
31 &:visited {
32 color: blue;
33 }
34 }
35
36 .current {
37 padding-right: 12px;
38 background-repeat: no-repeat;
39 background-position: right center;
40
41 &.asc {
42 background-image: image-url("up_arrow.gif");
43 }
44
45 &.desc {
46 background-image: image-url("down_arrow.gif");
47 }
48 }
49 }
50 }
51}
52
53.game-progress p {
54 margin: 0;
55}
56
57.game-title {
58 display: block;
59
60 & + span {
61 margin-top: 0.25em;
62 }
63}
64
65.game-started, .game-finished {
66 display: block;
67 font-size: 0.8em;
68 color: #777;
69}
70
71h2#games-title {
72 background-color: #d6aeff;
73 display: block;
74 font-size: 20px;
75 font-family: 'Roboto', sans-serif;
76 padding: 0.5em 20px;
77 border-top: 1px solid #edf;
78 border-bottom: 1px solid #edf;
79}
diff --git a/app/assets/stylesheets/main/layout.scss b/app/assets/stylesheets/main/layout.scss index 96aebea..d5fe7a7 100644 --- a/app/assets/stylesheets/main/layout.scss +++ b/app/assets/stylesheets/main/layout.scss
@@ -1,50 +1,47 @@
1body#main-body { 1body#main-body {
2 background-color: #bfefff;
3 height: 100%; 2 height: 100%;
3 font-family: sans-serif;
4 font-size: 16px;
4} 5}
5 6
6#container { 7#container {
7 height: 100%; 8 height: 100%;
8 margin: 7em auto 2em;
9 width: 75%; /* 66% */
10 box-sizing: border-box; 9 box-sizing: border-box;
11 min-width: 890px;
12 display: flex;
13 flex-direction: row-reverse;
14}
15 10
16@keyframes trottingPonies { 11 @media only screen and (min-width: 768px) {
17 from { background-position-x: 0px; } 12 margin: 10px auto;
18 to { background-position-x: -1280px; } 13 width: 75%; /* 66% */
14 min-width: 910px;
15 }
19} 16}
20 17
21#banner { 18#banner {
22 background-image: image-url("walk_cycle.png"); 19 margin: 0 auto;
23 background-repeat: repeat-x;
24 animation: trottingPonies 1s steps(16) infinite;
25 width: 100%;
26 padding: 1em;
27 box-sizing: border-box;
28 text-indent: -9999px;
29 height: 80px;
30 margin-bottom: -80px;
31 position: relative;
32 top: -70px;
33 20
34 a { 21 h1 {
35 display: block; 22 display: none;
23 }
24
25 img {
36 width: 100%; 26 width: 100%;
37 height: 55px; 27 max-width: 900px;
28 display: block;
29 margin: 0 auto;
30 }
31}
32
33#page-body {
34 display: flex;
35
36 @media only screen and (max-width: 767px) {
37 flex-direction: column-reverse;
38 } 38 }
39} 39}
40 40
41#main { 41#main {
42 background-color: white; 42 @media only screen and (min-width: 768px) {
43 -webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75); 43 width: 70%;
44 -moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75); 44 }
45 box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
46 width: 75%;
47 min-width: 720px
48} 45}
49 46
50#content { 47#content {
@@ -56,7 +53,8 @@ body#main-body {
56 width: 100%; 53 width: 100%;
57 text-align: center; 54 text-align: center;
58 padding: .25em; 55 padding: .25em;
59 font-weight: bold 56 font-weight: bold;
57 box-sizing: border-box;
60} 58}
61 59
62.flash-notice { 60.flash-notice {
@@ -69,31 +67,31 @@ body#main-body {
69 67
70#sidebar { 68#sidebar {
71 box-sizing: border-box; 69 box-sizing: border-box;
72 width: 25%;
73 font-size: .75em; 70 font-size: .75em;
74 color: black; 71 color: black;
75 border-left: 1px solid #eee;
76 margin-top: 1em; 72 margin-top: 1em;
77 margin-bottom: 2em; 73 margin-bottom: 2em;
74 font-family: sans-serif;
75
76 @media only screen and (max-width: 767px) {
77 width: 100%;
78 }
79
80 @media only screen and (min-width: 768px) {
81 width: 30%;
82 }
78} 83}
79 84
80#sidebar h2 { 85#sidebar h2, #mobile-header h2 {
81 font-size: 1em; 86 font-size: 1em;
82 margin: 0;
83} 87}
84 88
85.sidebar-module { 89.sidebar-module {
86 padding: 1em; 90 padding: 0 1em;
87 margin-top: 1em;
88 box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);
89}
90
91.sidebar-module:nth-child(2n+1) {
92 background-color: #feff8f;
93}
94 91
95.sidebar-module:nth-child(2n+2) { 92 & + .sidebar-module {
96 background-color: #8fefab; 93 margin-top: 1em;
94 }
97} 95}
98 96
99.sidebar-module p { 97.sidebar-module p {
@@ -121,8 +119,88 @@ body#main-body {
121 color: #352712; 119 color: #352712;
122} 120}
123 121
122blockquote.bubble {
123 margin: 0;
124 border: 1px solid #c9c2c1;
125 background-color: #fff;
126 position: relative;
127
128 div {
129 margin: 10px;
130 padding: 0;
131 }
132}
133
134.bubble {
135 width: auto;
136 margin-bottom: 24px;
137 padding: 0 1em 1em;
138
139 &.rounded {
140 margin-bottom: 10px;
141 border: 3px solid #fff;
142 background-color: #b7e0ff;
143 border-radius: 10px;
144
145 blockquote {
146 border: 0;
147 background-color: transparent;
148
149 div {
150 margin: 0 10px;
151 }
152 }
153 }
154
155 &.pimped {
156 color: white;
157 border: 3px solid white;
158 background-color: #111;
159 }
160
161 div.bquote blockquote {
162 margin: 0;
163 padding: 0;
164 border: 1px solid #c9c2c1;
165 background-color: white;
166 }
167}
168
169cite.bubble {
170 font-style: normal;
171 position: relative;
172 margin: 0;
173 padding: 7px 0px 0px 15px;
174}
175
176blockquote.bubble::after {
177 /* (B1-1) ATTACH TRANSPARENT BORDERS */
178 content: "";
179 border: 10px solid transparent;
180
181 /* (B1-2) NECESSARY TO POSITION THE "TAIL" */
182 position: absolute;
183}
184
185/* (B2) BOTTOM "CALLOUT TAIL" */
186blockquote.bubble.bottom::after {
187 /* (B2-1) DOWN TRIANGLE */
188 border-top-color: #b7e0ff;
189 border-bottom: 0;
190
191 /* (B2-2) POSITION AT BOTTOM */
192 bottom: -10px;
193 left: 3.5em;
194 margin-left: -20px;
195
196 &.pimped {
197 border-top-color: black;
198 }
199}
200
124.breadcrumb { 201.breadcrumb {
125 margin-left: 1em; 202 margin-left: 1em;
203 margin-bottom: 1em;
126 204
127 a, a:visited { 205 a, a:visited {
128 color: #555d66; 206 color: #555d66;
@@ -134,3 +212,30 @@ body#main-body {
134 text-decoration: underline; 212 text-decoration: underline;
135 } 213 }
136} 214}
215
216.clear {
217 clear: both;
218}
219
220h2.centered {
221 text-align: center;
222}
223
224.fun-links {
225 a {
226 font-size: 1.1em;
227 vertical-align: super;
228 text-decoration: none;
229 }
230}
231
232#scrobble-box {
233 img {
234 margin: 0 auto;
235 display: block;
236 }
237
238 p {
239 text-align: center;
240 }
241}
diff --git a/app/assets/stylesheets/main/records.scss b/app/assets/stylesheets/main/records.scss index f57dded..a8b7754 100644 --- a/app/assets/stylesheets/main/records.scss +++ b/app/assets/stylesheets/main/records.scss
@@ -31,6 +31,7 @@
31 .tags { 31 .tags {
32 margin: .25em; 32 margin: .25em;
33 display: flex; 33 display: flex;
34 flex-wrap: wrap;
34 padding-left: 0; 35 padding-left: 0;
35 36
36 li { 37 li {
@@ -56,6 +57,18 @@
56 &.entry-type-stream, &.entry-type-update { 57 &.entry-type-stream, &.entry-type-update {
57 background-color: #98FB98; 58 background-color: #98FB98;
58 } 59 }
60
61 &.entry-type-link {
62 background-color: #FFCC99;
63 }
64 }
65
66 &.entry-tag {
67 margin-left: 0.5em;
68
69 &:before {
70 content: "#";
71 }
59 } 72 }
60 73
61 & + li { 74 & + li {
diff --git a/app/assets/stylesheets/main/rouge.css.erb b/app/assets/stylesheets/main/rouge.css.erb new file mode 100644 index 0000000..123da27 --- /dev/null +++ b/app/assets/stylesheets/main/rouge.css.erb
@@ -0,0 +1,15 @@
1<%= Rouge::Themes::Pastie.render(:scope => '.highlight') %>
2
3.highlight {
4 background-color: white;
5 padding: 1em;
6}
7
8div.highlight {
9 overflow-x: auto;
10}
11
12.highlight .err {
13 color: #a61717;
14 background-color: #f5f7f9;
15}