/
sections.css
executable file
·1608 lines (1410 loc) · 29.1 KB
/
sections.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
This is where all styling related to a specific page or area is put.
/*
/* Styles for the homepage.
------------------------------------------------- */
.latestp1
width: 100px
font-size: .9em
line-height: 1.3em
div
overflow: hidden
white-space: nowrap
.latestp2
padding: .5em .7em !important
a:first-child
opacity: .7
/* Styles for the board index.
------------------------------------------------- */
// The board title!
.board_list
box-sizing: border-box
.info a.subject
font: 400 120%/120% $subject_font
color: $board_col
.children
color: #555
margin-top: 4px
.stats
font-size: 90%
width: 15%
text-align: center
.lastpost
line-height: 1.3em
font-size: 85%
width: 24%
.icon
text-align: center
width: 6%
ul.stats
padding-left: 24px
p.moderators
font-size: 80%
@if member
// The posting icons
#posting_icons
margin: 0
padding: 0 1em 1.5em
line-height: 1em
font-size: .9em
img
vertical-align: -5px
padding: 0 2px 0 10px
.mark_read extends .clearfix
padding: 0 .5em
@endif
// The newsfader
@if $settings['show_newsfader']
#fadeScroller
text-align: center
padding: 0 2em
overflow: auto
margin: 1em 0
display: none
color: #575757 // Shouldn't be shorthand style, due to a JS bug in IE!
@endif
/* Styles for the info center on the board index.
---------------------------------------------------- */
section.ic
p
margin: 0 0 .5em
padding: .5em
.last
margin: 0
border-top: 1px dotted #bbb
.inline
border: none
margin: 0
.pminfo
margin: 0
.stats
margin-top: 8px
padding-top: 0
.title
margin-bottom: .7em
.ic + .ic .title final
margin-top: 0
.onlineinfo
.contact mixes .inline-block
width, height: 16px
background-image: raw-url($images/icons/online.gif) // this doesn't get much use
.notonline mixes .inline-block
width, height: 16px
background-image: raw-url($images/hidden.png) // nor this
// The small stats, shown if the info center is disabled.
@if !$settings['show_stats_index']
#index_common_stats
display: block
margin: 0 0 .5em
text-align: right
font-size: .9em
@endif
/* Styles for the topic list.
---------------------------------------------------- */
// The page navigation area
#childboards .table_list
margin-bottom: 1em
thead
display: none
.legend
line-height: 1.8
span
vertical-align: -3px
margin: 0
.lastpost img
float: right
padding: 4px 0 0 4px
#messageindex .table_grid
table-layout: fixed
/* Styles for the Display template (topic view).
---------------------------------------------------- */
// Topic title and Quick access
.posthead
width: 100%
padding: 8px
border-radius: 12px
background: rgba(0,0,0, .015)
box-sizing: border-box
@if ie[-7]
div mixes .inline-block
@elseif $can_flex
display: flex
flex-wrap: wrap
align-items: center
> div
flex: 1 1 auto
@else
display: table
> div
display: table-cell
vertical-align: middle
@endif
#top_subject
padding: 4px 8px
font: 100 1.6em/1.2em $head_font
text-align: center
color: gray
letter-spacing: -1px
// Previous/next topic links inside .posthead
.prevnext_prev
font: 400 1em/1.3em $main_font
text-align: left
width: 20%
a
color: $reddish
.prevnext_next extends .prevnext_prev
text-align: right
#modbuttons extends .clearfix
li
margin: 4px 2px 0
// A generic bar, for use in polls and stats.
.bar
float: left
gradient: luma(#6294ce, +20%), hue(luma(#6294ce, -20%), -10)
border-radius: 4px
margin: 0 4px
height: 16px
.poll
overflow: hidden
h4
padding: 0 0 .5em 2em
// Poll vote options
ul
border-top: 1px solid #9999aa
padding: 1em 2.5em 0 2em
margin: 0 0 1em
.sendpoll
clear: both
padding: 0 0 1em 2em
margin: 0
// Poll results
dl
border: solid #9999aa
border-width: 1px 0 0 0
padding: 1em 2.5em 0 2em
margin: 0 1em 1em 0
line-height: 1.1em !important
dt
padding: .3em 0
width: 30%
float, clear: left
margin: 0
dd
margin: 0 0 0 2em
padding: .1em 0 0
width: 60%
max-width: 450px
float: left
.voted
font-weight: 700
.percentage
display: block
float: right
padding: .2em 0 .3em
// Poll notices
p
margin: 0 1.5em .2em
padding: 0 .5em .5em
.bar
max-width: 100%
margin-top: 3px
.poll_moderation extends .clearfix
margin: .5em 0 0
padding: 0 .2em .2em 0
/* Post styling (Msg template)
---------------------------------------------------- */
.msg
@if !$can_flex
display: table
// Without this, wide code blocks will break layout.
table-layout: fixed
// height: 100% does nothing per se (thankfully), but it allows Chrome
// (and only it for now..?) to properly set a height on table cells.
width, height: 100%
& .merged, &.merged
display: block
height: auto
@endif
// Alternating backgrounds for posts
background: $post_bg
:nth-of-type(even)
background: $post_bg2
// A post separator, useful when printing.
hr.sep
visibility: hidden
@if ie[-7]
display: block
margin: -6px 0
@else
margin: 1px 0
:last-child
margin, height: 0
@endif
// Like #forumposts, but for blogs only.
.blog
.first-post
background: none
margin-top: 16px
.inner
font: $blog_font_size $blog_font
.msg, .msg .poster
background: none
.msg:not(:first-child)
.poster ul.info
min-height: 58px // Needed to avoid the arrow breaking on avatar-less posts.
.poster > div:before
position: relative
content: ""
float: left // Without this, all of .poster is moved down.
left: 100%
top: 40px
width, height, font-size: 0
border: 24px solid transparent
border-right-color: $window_bg
margin: 0 0 0 -36px // 24px + .poster > div's 12px right margin.
.postarea
background: $window_bg
border-radius: 16px 0 0 16px
.msg:nth-of-type(even)
.poster > div:before
border-right-color: $window_bg2
.postarea
background: $window_bg2
// Poster and postarea + moderation area underneath
.post_wrapper
width: 100%
@if $can_flex
display: flex
@else
display: table-row
overflow: auto
@endif
// Post title, date and action list
.postheader extends .clearfix
display: table
table-layout: fixed
width: 100%
padding: 10px 0 5px
border-bottom: 1px solid #ccc
h5 + div
font-size: .9em
ins
padding-left: 8px
text-decoration: none
font-style: italic
color: #a0aaa0
@if member
.inline_mod_check
float: right
margin: 0 -3px 0 10px
@endif
// Poster details and list of items
.poster
@if $can_flex
flex: 0 0 20%
@else
display: table-cell
width: 20%
@endif
min-width: 9em
@if !ie[-8]
background: rgba(0,0,0, .025)
@endif
padding: 6px 12px 16px 0
vertical-align: top
> div
width: 100%
top: 6px
@if $can_sticky
position: @is (ios, -prefix-sticky, sticky)
@endif
h4
padding: 3px 0 3px 16px // 19px originally.
font: 400 120%/120% $subject_font
ul.info extends ul.reset
margin: 0 12px 0 20px
line-height: 1.3em
font-size: 90%
// Custom fields
ul
margin: .3em 1em 0 0
padding: 0
li
display: inline
li.stars, li.avatar, li.blurb, li.postcount, li.im_icons ul
margin-top: .5em
li.blurb, li.avatar
color: #888
overflow: hidden
li.warning
line-height: 1.2em
padding-top: 1em
a img
vertical-align: bottom
padding: 0 .2em
/* These squares will show up next to the author name in a post. They quickly tell you
whether a user is online, has a website, is male/female or is a contact of yours. */
.pixelicons mixes .inline-block
width: 15px
overflow: hidden
@if ie[-7]
margin: 4px 2px 0 0
@else
margin: 2px -4px 0 0
@endif
i mixes .inline-block
float: left
margin: 0 1px 1px 0
width, height: 5px
background: gray
@if ie6
overflow: hidden
@endif
:only-child
width, height: 11px
.online
background: #69d249
.website
background: #c96
.contact
background: #e56717
.male
background: #7ad
.female
background: #e799a3
.postarea
width: 0
padding: 0 15px
@if $can_flex
display: flex
flex-direction: column
flex: 1 0 1em
@else
display: table-cell
position: relative // Needed for quick-edit in IE 6-8.
@endif
/* Soft-merged posts shouldn't have a background. */
.msg
background: none
article
position: relative
@if $can_flex
display: flex
flex-direction: column
flex: 1 0 auto
.merged
flex: none
@endif
@if member
.quicked
position: absolute
left, right: 3px
top: 0
textarea
overflow-y: hidden
margin-bottom: 10px
font-size: 100%
@if ie[-8]
max-width, min-width: 100%
width: 635px
@else
width: 100%
@endif
.right
margin-bottom: 10px
@endif
/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
font: $post_font_size $post_font
padding: .1em 0
clear: right
.post
margin, padding: 0
@if $can_flex
.msg &
flex: 1 0 auto
.merged &
flex: none
@endif
.merged
border-top: 1px solid #ccc
:first-child
border-top: 0
// Setting a margin here helps take advantage of margin collapsing. (e.g. when a post starts with a quote.)
.inner
margin: 1.2em .7em
// All the signatures used in the forum. You might want to add max-height here ;)
.signature, .attachments
overflow: auto
padding: 8px 0
border-top: 1px solid #ccc
line-height: 1.4em
font-size: .9em
color: #888
.custom_fields
clear: right
padding: 1em 0 3px
border-top: 1px solid #ccc
line-height: 1.4em
font-size: .85em
.messageicon
float: left
margin: 0 .5em 0 0
padding: 3px 3px 1px
img
padding: 6px 3px
// The action buttons
.actions
padding: 0 3% 0 0
margin: 0
vertical-align: bottom
li mixes .inline-block
padding: 0
margin: 0 0 0 5px
img
vertical-align: middle
a
word-wrap: normal
display: block
padding-left: 25px
:hover
color: #a70
/**
* This is where you can change the reply/edit/delete etc. icons for your posts.
* You can either modify the actions.png sprite file (in which case you just
* need to set background-position to the correction position as seen below),
* or simply use another file like this: background: url($here/file) no-repeat 0 0
*/
// Sprited action buttons
.vbtn virtual
background: url($images/buttons/actions.png) 0 0 no-repeat
padding: 0 4px 0 22px
height: 20px
.quote_button extends .vbtn
background-position: 3px 0
@if member
.remove_button extends .vbtn
background-position: 0 -30px
.edit_button extends .vbtn
background-position: 0 -60px
.split_button extends .vbtn
background-position: 4px -90px
.mergepost_button extends .vbtn
background-position: 4px -150px
@endif
.reply_button extends .vbtn
background-position: 0 -120px
.context_button extends .vbtn
background-position: 3px -180px
.like_button extends .vbtn
background-position: 2px -210px
.unlike_button extends .vbtn
background-position: 2px -240px
.profile_button extends .vbtn
background-image: raw-url($images/icons/profile_sm.gif)
.email_button extends .vbtn
background-image: raw-url($images/email_sm.gif)
.ip_button extends .vbtn
background-image: raw-url($images/ip.gif)
.www_button extends .vbtn
background-image: raw-url($images/www_sm.gif)
// !!! While waiting for a better icon... Here's a temp.
.post_button extends .vbtn
background-image: raw-url($images/new_some.png)
.report_button extends .vbtn
background-image: raw-url($images/report.png)
background-position: 2px 0
@if member
.approve_button extends .vbtn
background-image: raw-url($images/buttons/approve.gif)
background-position: 3px 0
.restore_button extends .vbtn
background-image: raw-url($images/buttons/restore.gif)
background-position: 2px 3px
.warn_button extends .vbtn
background-image: raw-url($images/warn.gif)
background-position: 2px 0
@endif
// These user menu options definitely aren't available to guests.
@if member
.contact_button extends .vbtn
background-image: raw-url($images/icons/online.gif)
background-position: 0 0
padding-left: 26px
.pm_button extends .vbtn
background-image: raw-url($images/im_on.gif)
background-position: 0 0
.unread_button extends .vbtn
background-image: raw-url($images/admin/mail.gif)
background-position: 5px 3px
@endif
/**
* End of list.
*/
// Likes and Action menu...
.actionbar extends .clearfix
padding: 6px 0 4px
border-top: 1px solid #ccc
.actions
float: right
a
color: luma(#47a, -80%)
opacity: .6
transition: opacity .3s ease
:hover
opacity: 1
transition: opacity .3s ease
.report
margin-right: 1.5em
img
vertical-align: -3px
.attachments
padding: 1em 1em 2em
p
margin: 0 0 1em
ul.buttonlist extends "ul.reset, .clearfix"
margin: 5px -8px 5px 0
padding: 0 1% 0 0
float: right
li
margin, padding: 0
float: left
border-right: 1px solid #ddd
&.last
border-right: 0
a
padding: 0 8px
color: #679
line-height: 15px
&.active
font-weight: 700
:hover
color: #a54
// YouTube embeds are popular, so they get their own CSS.
@if $settings['embed_enabled']
.ytb
position: relative
width: 100%
height: 0
// Base size should be a 640x385 iframe.
padding-bottom: round(math(100 * 385 / 640), 2)%
iframe
position: absolute
width, height: 100%
left, top: 0
@endif
input.modify extends .edit_button
background-position: 4px -58px
background-color: #f0f0d0
padding: 3px 5px 4px 26px
height: auto
/* Styles for the quick reply area.
---------------------------------------------------- */
// Horizontal alignments go a bit wonky in IE6 and IE7, but is it really worth worrying about?
#postmodify
margin: 0
.roundframe
padding-left: 5%
padding-right: 5%
.qr_content
padding: 0 10px
#qr_options
padding: 12px 9px 0
form textarea
height: 100px
margin: .25em 0 0
font-size: .9em
.roundframe extends #postmodify .roundframe
/* Styles for the login areas. Never seen by members.
------------------------------------------------------- */
@if guest
.login
margin: auto
dl
clear: right
dt, dd
margin: 0 0 .4em
width: 44%
padding: .1em
dt
float: left
clear: both
text-align: right
font-weight: 700
dd
width: 54%
float: right
text-align: left
p
text-align: center
@media (max-width: 600px)
.login
dt, dd
text-align: left
width: 100%
#login #main
vertical-align: middle
@endif
/* Styles for the registration section. Ditto.
------------------------------------------------------- */
@if guest
.register_error
border: 1px dashed red
padding: 5px
margin: 0 1ex 1ex 1ex
span
text-decoration: underline
// Additional profile fields
dl.register_form
margin: 0
clear: right
dt
font-weight: 400
float: left
clear: both
width: 50%
margin: .5em 0 0
dd
float: left
width: 49%
margin: .5em 0 0
#confirm_buttons
text-align: center
padding: 1em 0
.coppa_contact
padding: 4px
width: 32ex
background-color: #fff
color: #000
margin-left: 5ex
border: 1px solid #000
.valid_input
background-color: #f5fff0
.invalid_input
background-color: #fff0f0
@endif
.vv_special mixes .hide
/* Styles for the board index's topic table.
------------------------------------------------------- */
.topic_table
.stats
text-align: center
.icon
text-align: center
.subject
padding: 5px 8px
table
width: 100%
thead
border-bottom: 1px solid #fff
td
font-size: 1em
.stats,
.subject p,
.lastpost p
font-size: .85em
padding: 0 6px
margin: 0
// Topic status icons
.icon_pinned mixes .inline-block
padding: 8px
margin: 0 -4px 0 4px
background: url($images/icons/quick_pin.gif) center no-repeat
.icon_locked mixes .inline-block
padding: 8px
margin: 0 -4px 0 4px
background: url($images/icons/quick_lock.gif) center no-repeat
.icon_poll mixes .inline-block
padding: 8px
margin: 0 -4px 0 4px
background: url($images/icons/quick_poll.gif) center no-repeat
.icon_my mixes .inline-block
padding: 8px
margin: 0 -4px 0 4px
background: url($images/icons/quick_my.gif) center no-repeat
tr.windowbg td
padding: .3em .7em
/* Styles for errors.
------------------------------------------------- */
.errorbox
padding: 1em
margin-bottom: 10px
border: 1px solid #c34
color: #000
background-color: #ffe4e9
h3
font-size: 1.1em
ul
margin-bottom: 0
margin-top: .5em
padding-left: 20px
ul:first-child
margin-top: 0
p
margin: 1em 0 0
.alert
margin, padding: 0
width: 1em
font-size: 1.5em
// Styling for mismatched tags
.bread
padding: 4px 8px
font-family: monospace
color: #000
strong
color: red
/* Styles for the profile section.
------------------------------------------------- */
#profile_home
display: flex
width: 100%
// The basic user info on the left
#basicinfo
flex: 0 1 20%
margin: 0 10px 0 0
min-width: 180px
width: 20%
float: left
h4
font: 400 120%/105% $subject_font
white-space: pre-wrap
overflow: hidden
span.position
font-size: 80%
font-weight: 100
display: block
img.avatar
display: block
margin: 10px 0 0
ul
list-style: none
margin: 10px 0 0
li
display: block
float: left
margin-right: 5px
height: 20px
#userstatus
display: block
clear: both
font-size: .9em
img
vertical-align: -1px
#profile_box
dl
clear: right
margin: 0 0 18px
padding: 0 0 15px
border-bottom: 1px #ccc solid
dt
width: 35%
float: left
margin: 0 0 3px
padding: 0
font-weight: 700
clear: both
dd
width: 65%
float: left
margin: 0 0 3px
padding: 0
#tracking extends #profile_box
dl
margin, padding, border-bottom: 0
#detailedinfo extends #profile_box
flex: 1 1 79.5%
margin: 0
width: 75%
float: right
dl.noborder
border-bottom: 0
dt.clear
width: 100%
a
border-bottom: 1px dotted #999
// Signature header
.signature h5
color: #444
font-size: 1.2em
margin-bottom: 10px
#personal_picture
display: block
margin-bottom: .3em
#avatar_server_stored div
float: left
padding: 0 3px
#contacts
margin-top: 20px
.save
margin-top: 8px
// If the screen is too small, show the avatar on top
@media all and (max-width: 900px)
@if !$can_flex
.prevnext_prev
display: none
@endif
#profile_home
display: block
#basicinfo, #detailedinfo
width: 100%
#basicinfo
.username
float: left
img.avatar
float: right
vertical-align: top
#position
float: right
#basicinfo ul, #userstatus
clear: left
#infolinks
display: none
clear: both
// Simple feedback messages
#profile_error, #profile_success
margin: 0 0 1em
padding: 1em 2em
border: 1px solid
#profile_error
border-color: red
color: red
background: #fee
span
text-decoration: underline
#profile_success
border-color: green