2 header ('Content-type: text/css; charset=utf-8');
4 $platform = @$argv[1] ?
: 'Mac';
5 $UI_font = ($platform == 'Windows') ?
"'Whitney', 'a_Avante'" : "'Concourse', 'a_Avante'";
7 $content_width_settings = [
10 'fluid' => 'calc(100% - 300px)'
13 function fit_content($selector, $property = "width") {
14 foreach (["-moz-fit-content", "fit-content"] as $pvalue) echo
15 "@supports (width: {$pvalue}) {
17 {$property}: {$pvalue};
29 box
-sizing
: border
-box
;
32 *, *::before
, *::after
{
45 background
-color
: inherit
;
57 /*=----------------------------=*/
58 /*= Immediate children of body =*/
59 /*=----------------------------=*/
62 width
: calc(100%
- 300px
);
72 grid
-template
-columns
: repeat(3, 1fr
);
73 grid
-auto
-flow
: dense
;
92 grid
-column
: 1 / span
3;
95 /*=----------------------=*/
96 /*= Floating UI elements =*/
97 /*=----------------------=*/
99 #ui-elements-container {
107 pointer
-events
: none
;
109 #ui-elements-container > * {
110 pointer
-events
: auto
;
113 /*=----------------=*/
114 /*= Images overlay =*/
115 /*=----------------=*/
116 /* (To exclude images in posts from theme tweaks) */
137 /*=---------------=*/
138 /*= Nav bar items =*/
139 /*=---------------=*/
145 text
-overflow
: ellipsis
;
155 #secondary-bar .nav-inner {
163 h1
.listing ~
#bottom-bar {
166 #bottom-bar .nav-item {
170 /*=-----------------=*/
171 /*= Accesskey hints =*/
172 /*=-----------------=*/
175 content
: attr(accesskey
);
179 /*=---------------=*/
180 /*= Pagination UI =*/
181 /*=---------------=*/
183 #bottom-bar .nav-item a::before,
184 #top-nav-bar a::before {
185 font
-family
: Font Awesome
;
192 #bottom-bar #nav-item-first a::before,
193 #top-nav-bar a.nav-item-first::before {
196 #bottom-bar #nav-item-top a::before {
199 #bottom-bar #nav-item-prev a::before,
200 #top-nav-bar a.nav-item-prev::before {
203 #bottom-bar #nav-item-next a::before,
204 #top-nav-bar a.nav-item-next::before {
207 #bottom-bar #nav-item-last a::before,
208 #top-nav-bar a.nav-item-last::before {
211 #bottom-bar #nav-item-next a::before {
216 #bottom-bar #nav-item-last a::before {
222 /*= Hover tooltips =*/
227 #top-nav-bar a::after {
228 bottom
: calc(100%
- 3px
);
229 content
: attr(data
-target
-page
);
231 #bottom-bar a:not([href='#top'])::after {
232 content
: "Page " attr(data
-target
-page
);
237 #top-nav-bar a::after,
238 #bottom-bar a:not([href='#top'])::after {
246 #top-nav-bar a:hover::after,
247 #bottom-bar a:hover::after {
251 /*=-----------------------=*/
252 /*= Decorative bottom bar =*/
253 /*=-----------------------=*/
254 /* (On short pages with no pagination) */
256 #bottom-bar.decorative {
259 #bottom-bar.decorative .nav-item {
270 #nav-item-search form::before {
272 font
-family
: Font Awesome
;
274 display
: inline
-block
;
279 #nav-item-search input {
281 width
: calc(95%
- 80px
);
284 #nav-item-search button {
294 padding
-right
: 0.5em
;
297 /*******************/
298 /* INBOX INDICATOR */
299 /*******************/
308 #inbox-indicator::before {
310 font
-family
: "Font Awesome";
312 font
-size
: 1.1875rem
;
321 #inbox-indicator.new-messages::before {
325 0.5px
0.5px
1px
#777;
327 a
#inbox-indicator:hover::before {
334 0.5px
0.5px
1px
#777;
336 a
#inbox-indicator.new-messages:hover::before {
342 0.5px
0.5px
1px
#777;
355 #content > .page-toolbar {
358 #content.user-page > .page-toolbar {
359 grid
-column
: 2 / span
2;
362 /*=--------------------------=*/
363 /*= Page toolbar items (all) =*/
364 /*=--------------------------=*/
367 display
: inline
-block
;
370 .page
-toolbar
.button
::before
{
371 font
-family
: "Font Awesome";
373 padding
-right
: 0.3em
;
376 /*=-------------------------------=*/
377 /*= Page toolbar items (specific) =*/
378 /*=-------------------------------=*/
384 .new-private-message
::before
{
388 .logout
-button
::before
{
393 content
: url('data:image/svg+xml;base64,<?php echo base64_encode(file_get_contents("assets/rss.svg")) ?>');
394 display
: inline
-block
;
396 padding
-right
: 0.2em
;
401 /*********************/
402 /* TOP PAGINATION UI */
403 /*********************/
407 margin
: 0.25em
0 0 0;
408 padding
: 0.75em
0 0 0;
412 justify
-content
: center
;
417 #top-nav-bar a.disabled {
418 pointer
-events
: none
;
421 #top-nav-bar .page-number {
423 display
: inline
-block
;
426 #top-nav-bar .page-number-label {
429 text
-transform
: uppercase
;
434 #top-nav-bar a::before {
436 display
: inline
-block
;
446 justify
-content
: center
;
449 #content > .sublevel-nav:not(.sort) {
454 .sublevel
-nav
.sublevel
-item
{
456 padding
: 0.125em
0.5em
;
459 .sublevel
-nav
.sublevel
-item
:active
{
462 .sublevel
-nav
.sublevel
-item
.selected
{
466 /***********************/
467 /* SORT ORDER SELECTOR */
468 /***********************/
475 #content > .sublevel-nav.sort {
477 grid
-row
: 5 / span
2;
482 #content.index-page > .sublevel-nav.sort {
484 grid
-row
: 3 / span
1;
489 .sublevel
-nav
.sort
::before
{
497 .sublevel
-nav
.sort
.sublevel
-item
{
503 /*******************************/
504 /* COMMENTS SORT MODE SELECTOR */
505 /*******************************/
507 .comments
> .sublevel
-nav
.sort
{
508 margin
: 1em auto
0 auto
;
510 <?php
fit_content(".comments > .sublevel-nav.sort"); ?
>
521 #width-selector button {
527 background
-repeat
: no
-repeat
;
528 background
-size
: 100%
;
529 background
-origin
: content
-box
;
531 #width-selector button,
532 #width-selector button:active,
533 #width-selector button:focus {
537 #width-selector button:disabled {
540 #width-selector button.select-width-normal {
541 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/normal.gif")) ?>');
543 #width-selector button.select-width-wide {
544 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/wide.gif")) ?>');
546 #width-selector button.select-width-fluid {
547 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/fluid.gif")) ?>');
550 /*=----------------=*/
551 /*= Hover tooltips =*/
552 /*=----------------=*/
554 #width-selector button::after {
555 content
: attr(data
-name
);
564 #width-selector button.selected::after {
565 content
: attr(data
-name
) " (selected)";
567 #width-selector button:hover:not(:active)::after {
572 global $content_width_settings;
573 foreach ($content_width_settings as $name => $setting) {
574 echo "head.content-width-{$name} + body > * {\n max-width: {$setting};\n}\n";
590 #theme-selector:hover {
594 /*=----------------------=*/
595 /*= Theme select buttons =*/
596 /*=----------------------=*/
598 .theme
-selector button
{
603 margin
: 1px
7px
0 7px
;
605 background
-size
: 16px
16px
;
606 background
-origin
: content
-box
;
608 .theme
-selector button
,
609 .theme
-selector button
:hover
,
610 .theme
-selector button
:active
,
611 .theme
-selector button
:focus
{
615 .theme
-selector button
:disabled
{
619 /*=----------------------------=*/
620 /*= Pre-rendered button images =*/
621 /*=----------------------------=*/
622 /* (Each is just a capital letter A through whatever) */
624 .theme
-selector button
:nth
-of
-type(1) {
625 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_A.gif")) ?>');
627 .theme
-selector button
:nth
-of
-type(2) {
628 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_B.gif")) ?>');
630 .theme
-selector button
:nth
-of
-type(3) {
631 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_C.gif")) ?>');
633 .theme
-selector button
:nth
-of
-type(4) {
634 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_D.gif")) ?>');
636 .theme
-selector button
:nth
-of
-type(5) {
637 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_E.gif")) ?>');
639 .theme
-selector button
:nth
-of
-type(6) {
640 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_F.gif")) ?>');
642 .theme
-selector button
:nth
-of
-type(7) {
643 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_G.gif")) ?>');
645 .theme
-selector button
:nth
-of
-type(8) {
646 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_H.gif")) ?>');
648 .theme
-selector button
:nth
-of
-type(9) {
649 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/theme_I.gif")) ?>');
652 /*=------------------------------=*/
653 /*= Theme select button tooltips =*/
654 /*=------------------------------=*/
655 /* (with the name & description of the theme that each button selects) */
657 #theme-selector button {
661 #theme-selector button::before {
662 content
: attr(data
-theme
-name
);
666 padding
: 5px
6px
6px
6px
;
673 #theme-selector:hover button::before {
676 #theme-selector:hover ~ #theme-tweaker-toggle,
677 #theme-selector:active ~ #theme-tweaker-toggle {
681 /************************/
682 /* THEME TWEAKER TOGGLE */
683 /************************/
685 #theme-tweaker-toggle {
690 #theme-tweaker-toggle button {
691 font
-family
: Font Awesome
;
697 #theme-tweaker-toggle button:hover {
701 /*******************/
702 /* QUICKNAV WIDGET */
703 /*******************/
711 font
-family
: 'Font Awesome';
721 #quick-nav-ui a[href='#comments'].no-comments {
722 pointer
-events
: none
;
727 #content.post-page ~ #ui-elements-container #quick-nav-ui a[href='#comments'] {
731 /************************/
732 /* NEW COMMENT QUICKNAV */
733 /************************/
735 #new-comment-nav-ui {
740 #new-comment-nav-ui > * {
744 #new-comment-nav-ui.no-comments {
748 /*=--------------------=*/
749 /*= New comments count =*/
750 /*=--------------------=*/
752 #new-comment-nav-ui .new-comments-count {
760 #new-comment-nav-ui .new-comments-count::selection {
761 background
-color
: transparent
;
763 #new-comment-nav-ui .new-comments-count::after {
769 /*=-----------------------------------=*/
770 /*= Next/previous new comment buttons =*/
771 /*=-----------------------------------=*/
773 #new-comment-nav-ui .new-comment-sequential-nav-button {
775 font
-family
: 'Font Awesome';
780 #new-comment-nav-ui .new-comment-previous {
783 #new-comment-nav-ui .new-comment-next {
786 #new-comment-nav-ui .new-comment-sequential-nav-button:disabled {
788 pointer
-events
: none
;
791 /*******************/
792 /* HNS DATE PICKER */
793 /*******************/
801 #hns-date-picker:hover,
802 #hns-date-picker:focus-within {
805 #hns-date-picker.no-comments {
809 /*=---------------=*/
810 /*= "Since" label =*/
811 /*=---------------=*/
813 #hns-date-picker span {
816 text
-transform
: uppercase
;
819 /*=--------------------=*/
820 /*= "Since" text field =*/
821 /*=--------------------=*/
823 #hns-date-picker input {
828 box
-shadow
: 0 0 0 1px transparent
;
831 /************************/
832 /* ANTI-KIBITZER TOGGLE */
833 /************************/
835 #anti-kibitzer-toggle {
840 #anti-kibitzer-toggle button {
846 #anti-kibitzer-toggle button::before,
847 #anti-kibitzer-toggle button::after {
848 font
-family
: Font Awesome
;
850 #anti-kibitzer-toggle button::before {
856 #anti-kibitzer-toggle button::after {
857 content
: "\F007\2004\F164";
861 #anti-kibitzer-toggle.engaged button::before {
865 /************************/
866 /* TEXT SIZE ADJUSTMENT */
867 /************************/
869 #text-size-adjustment-ui {
875 #text-size-adjustment-ui:hover {
879 /* This doesn't work in Mozilla browsers, so hide it */
880 @-moz
-document url
-prefix() {
881 #text-size-adjustment-ui {
890 #text-size-adjustment-ui button {
892 font
-family
: Font Awesome
;
898 #text-size-adjustment-ui button.default {
899 font
-family
: inherit
;
904 #text-size-adjustment-ui button:disabled {
907 #text-size-adjustment-ui button:disabled:hover {
911 /*=----------------=*/
912 /*= Hover tooltips =*/
913 /*=----------------=*/
915 #text-size-adjustment-ui::after {
916 content
: "Adjust text size";
926 #text-size-adjustment-ui:hover::after {
930 /*******************************/
931 /* COMMENTS VIEW MODE SELECTOR */
932 /*******************************/
934 #comments-view-mode-selector {
940 #comments-view-mode-selector:hover {
948 #comments-view-mode-selector a {
950 font
-family
: Font Awesome
;
957 #comments-view-mode-selector a.threaded {
958 transform
: scaleY(-1);
961 #comments-view-mode-selector a.chrono {
964 #comments-view-mode-selector a.selected,
965 #comments-view-mode-selector a:hover {
967 text
-decoration
: none
;
969 #comments-view-mode-selector a.selected {
977 #keyboard-help-overlay {
980 background
-color
: rgba(0,0,0,0.7);
986 justify
-content
: center
;
988 padding
: 20px
30px
30px
20px
;
993 #keyboard-help-overlay .keyboard-help-container {
994 background
-color
: #fff;
995 filter
: drop
-shadow(4px
4px
2px
#000);
1001 #keyboard-help-overlay .keyboard-help-container h1 {
1003 border
-bottom
: 1px solid
#ddd;
1007 #keyboard-help-overlay .keyboard-help-container .note {
1012 #keyboard-help-overlay .keyboard-help-container .keyboard-shortcuts-lists {
1016 border
-top
: 1px solid
#ddd;
1019 #keyboard-help-overlay .keyboard-help-container ul {
1020 list-style
-type
: none
;
1023 break-inside
: avoid
;
1025 #keyboard-help-overlay .keyboard-help-container ul:nth-of-type(n+2) {
1028 #keyboard-help-overlay .keyboard-help-container ul li.section {
1030 font
-size
: 1.125rem
;
1033 #keyboard-help-overlay .keyboard-help-container .keys {
1034 margin
: 0 0.5em
0 0;
1036 display
: inline
-block
;
1038 #keyboard-help-overlay .keyboard-help-container .keys code {
1041 #keyboard-help-overlay .keyboard-help-container code {
1042 display
: inline
-block
;
1043 background
-color
: #eee;
1044 border
: 1px solid
#ccc;
1045 padding
: 3px
8px
4px
8px
;
1048 #keyboard-help-overlay .keyboard-help-container code.ak {
1049 background
-color
: #ffeb83;
1050 border
-color
: #d4a500;
1052 #keyboard-help-overlay .keyboard-help-container code.ak::before {
1059 padding
-right
: 0.25em
;
1061 #nav-item-about button.open-keyboard-help {
1062 font
-family
: Font Awesome
;
1071 #keyboard-help-overlay button.close-keyboard-help {
1075 font
-family
: Font Awesome
;
1085 margin
: 1.25em
0.5em
0 0.5em
;
1091 .archive
-nav
*[class^
='archive-nav-item'] {
1095 padding
: 6px
4px
4px
4px
;
1098 @-moz
-document url
-prefix() {
1099 .archive
-nav
*[class^
='archive-nav-item'] {
1103 .archive
-nav
-days
.archive
-nav
-item
-day
{
1105 padding
: 7px
0 5px
0;
1108 .archive
-nav
-days
.archive
-nav
-item
-day
:first
-child
{
1117 margin
: 1.25em
0.5em
0 0.5em
;
1123 .archive
-nav
*[class^
='archive-nav-item'] {
1127 padding
: 6px
4px
4px
4px
;
1130 @-moz
-document url
-prefix() {
1131 .archive
-nav
*[class^
='archive-nav-item'] {
1135 .archive
-nav
-days
.archive
-nav
-item
-day
{
1137 padding
: 7px
0 5px
0;
1140 .archive
-nav
-days
.archive
-nav
-item
-day
:first
-child
{
1149 font
-size
: 1.875rem
;
1159 /* Links to link-posts (not the link-post links themselves; that's below) */
1160 h1
.listing a
[href^
='http'] + a
{
1161 margin
-left
: 0.25em
;
1163 /* Link-post links */
1164 h1
.listing a
[href^
="http"] {
1167 vertical
-align
: top
;
1172 /*=----------------------=*/
1173 /*= Listing hover reveal =*/
1174 /*=----------------------=*/
1175 /* (On desktops, hover over a multi-line listing to reveal all of it) */
1177 @media only screen
and (hover
: hover
), not screen
and (-moz
-touch
-enabled
) {
1180 display
: inline
-block
;
1181 white
-space
: nowrap
;
1182 text
-overflow
: ellipsis
;
1184 border
-bottom
: 1px solid transparent
;
1185 -webkit
-hyphens
: auto
;
1190 padding
: 0 0 1px
1px
;
1192 h1
.listing a
[href^
='http'] + a
{
1193 max
-width
: calc(100%
- 33px
);
1196 h1
.listing a
:focus
{
1197 text
-decoration
: dotted underline
;
1198 white
-space
: initial
;
1202 h1
.listing
:focus
-within
::before
{
1204 font
-family
: Font Awesome
;
1210 /* Adds hysteresis to the hover area (i.e., prevents oscillation due to small
1212 <?php
$margin_of_hover_error = '10px'; ?
>
1214 h1
.listing a
:not(.edit
-post
-link
):hover
::before
{
1217 top
: -<?php
echo $margin_of_hover_error; ?
>;
1218 right
: -<?php
echo $margin_of_hover_error; ?
>;
1219 bottom
: -<?php
echo $margin_of_hover_error; ?
>;
1220 left
: -<?php
echo $margin_of_hover_error; ?
>;
1223 h1
.listing a
[href^
="http"]:hover
{
1224 text
-decoration
: none
;
1228 /*=-----------------------=*/
1229 /*= In-listing edit links =*/
1230 /*=-----------------------=*/
1232 h1
.listing
.edit
-post
-link
{
1237 /*=---------------------------------=*/
1238 /*= Error messages on listing pages =*/
1239 /*=---------------------------------=*/
1244 padding
: 1.25em
0 1.25em
0;
1248 /*********************/
1249 /* LISTING POST-META */
1250 /*********************/
1252 h1
.listing +
.post
-meta
{
1254 justify
-content
: flex
-start
;
1255 margin
: 0 20px
0 21px
;
1258 h1
.listing +
.post
-meta
> * {
1262 h1
.listing +
.post
-meta
.post
-section
{
1267 h1
.listing +
.post
-meta
.post
-section
::before
{
1272 h1
.listing +
.post
-meta
.read
-time
{
1284 #content.user-page > #top-nav-bar {
1288 /*=---------------------=*/
1289 /*= User's display name =*/
1290 /*=---------------------=*/
1292 #content.user-page h1.page-main-heading {
1293 margin
: 0.25em
0 0 0;
1298 /*=--------------------=*/
1299 /*= User's karma total =*/
1300 /*=--------------------=*/
1302 #content.user-page .user-stats {
1309 /*=----------------------=*/
1310 /*= Expanded vs. compact =*/
1311 /*=----------------------=*/
1313 #content.user-page #comments-list-mode-selector {
1314 grid
-row
: 5 / span
2;
1316 #content.user-page #comments-list-mode-selector button {
1320 /*=----------------------------------------------------=*/
1321 /*= All, Posts, Comments, Drafts, Conversations, Inbox =*/
1322 /*=----------------------------------------------------=*/
1324 #content.user-page .sublevel-nav {
1325 margin
-bottom
: 0.5em
;
1328 /*=--------------=*/
1329 /*= User's posts =*/
1330 /*=--------------=*/
1332 #content.user-page h1.listing {
1333 margin
: 0.5em
0 0 0;
1340 /*=----------------------=*/
1341 /*= List of participants =*/
1342 /*=----------------------=*/
1344 #content.conversation-page .conversation-participants {
1345 grid
-column
: 2 / span
2;
1348 margin
: 0.5em
0 0 0;
1351 .conversation
-participants ul
,
1352 .conversation
-participants li
{
1353 list-style
-type
: none
;
1354 display
: inline
-block
;
1358 .conversation
-participants li
{
1359 margin
-left
: 0.375em
;
1361 .conversation
-participants li
:not(:last
-of
-type
)::after
{
1365 /*=-------------------------=*/
1366 /*= Posting controls (form) =*/
1367 /*=-------------------------=*/
1369 #content.conversation-page .posting-controls {
1372 #content.conversation-page .post-meta-fields {
1375 flex
-flow
: row wrap
;
1377 #content.conversation-page textarea {
1378 margin
-top
: 0.375em
;
1380 #conversation-form {
1381 padding
: 0 1em
3em
1em
;
1383 #conversation-form input[type='text'],
1384 #conversation-form label {
1387 #conversation-form label {
1391 border
: 1px solid transparent
;
1393 #conversation-form input[type='text'] {
1394 width
: calc(100%
- 4em
);
1397 #conversation-form input[type='submit'] {
1400 #content.conversation-page #markdown-hints-checkbox ~ label {
1401 white
-space
: nowrap
;
1403 #content.conversation-page #markdown-hints {
1404 top
: calc(100% +
2em
);
1407 /*=--------------------=*/
1408 /*= Conversation title =*/
1409 /*=--------------------=*/
1411 #content.conversation-page h1.page-main-heading {
1421 #content.conversation-page > ul.comment-thread:last-of-type {
1425 /******************/
1426 /* SEARCH RESULTS */
1427 /******************/
1429 #content.search-results-page h1.listing {
1441 flex
-flow
: row wrap
;
1444 .login
-container form
{
1447 grid
-row
-gap
: 0.5em
;
1448 align
-content
: start
;
1450 .login
-container form label
{
1452 padding
: 0.25em
0.5em
;
1453 white
-space
: nowrap
;
1456 .login
-container form input
{
1460 .login
-container form input
[type
='submit'],
1461 .login
-container form a
{
1463 justify
-self
: center
;
1465 .login
-container form input
[type
='submit'] {
1469 margin
: 0.5em
0 0 0;
1471 .login
-container form h1
{
1480 grid
-template
-columns
: 5.5em
1fr
;
1481 padding
: 0.5em
2em
0.5em
0;
1484 /* “Create account” form */
1488 grid
-template
-columns
: 8.5em
1fr
;
1489 padding
: 0.5em
1em
1em
1em
;
1494 #signup-form input[type='submit'] {
1495 padding
: 0.4em
0.5em
0.5em
0.5em
;
1500 .login
-container
.login
-tip
{
1501 padding
: 0.5em
0.5em
0.5em
3em
;
1502 margin
: 2em
4em
0 4em
;
1506 .login
-container
.login
-tip span
{
1512 #content.login-page .error-box {
1513 margin
: 1.5em
0.875em
-1.5em
0.875em
;
1515 .error
-box
, .success
-box
{
1520 /***********************/
1521 /* PASSWORD RESET PAGE */
1522 /***********************/
1524 .reset
-password
-container
{
1527 .reset
-password
-container input
[type
='submit'] {
1528 padding
: 0.2em
0.5em
;
1531 .reset
-password
-container input
{
1535 .reset
-password
-container label
{
1536 display
: inline
-block
;
1539 .reset
-password
-container form
> div
{
1542 .reset
-password
-container
.action
-container
{
1546 .reset
-password
-container
.error
-box
{
1550 /*********************/
1551 /* TABLE OF CONTENTS */
1552 /*********************/
1558 margin
: 1.25em
0 0.75em
1.25em
;
1559 padding
: 7px
14px
10px
10px
;
1566 margin
-bottom
: 0.25em
;
1569 .post
-body
.contents ul
{
1570 list-style
-type
: none
;
1571 margin
: 0 0 0 0.5em
;
1572 counter
-reset
: toc
-item
-1 toc
-item
-2 toc
-item
-3;
1576 .post
-body
.contents li
{
1577 margin
: 0.15em
0 0.3em
1em
;
1583 .post
-body
.contents li
::before
{
1590 .contents
.toc
-item
-1 {
1591 counter
-increment
: toc
-item
-1;
1592 counter
-reset
: toc
-item
-2 toc
-item
-3;
1594 .contents
.toc
-item
-1::before
{
1595 content
: counter(toc
-item
-1);
1597 .contents
.toc
-item
-1 ~
.toc
-item
-2 {
1601 .contents
.toc
-item
-2 {
1602 counter
-increment
: toc
-item
-2;
1603 counter
-reset
: toc
-item
-3;
1605 .contents
.toc
-item
-1 ~
.toc
-item
-2::before
{
1606 content
: counter(toc
-item
-1) "." counter(toc
-item
-2);
1608 .contents
.toc
-item
-2::before
{
1609 content
: counter(toc
-item
-2);
1611 .contents
.toc
-item
-1 +
.toc
-item
-3 {
1612 counter
-increment
: toc
-item
-2 toc
-item
-3;
1614 .contents
.toc
-item
-2 ~
.toc
-item
-3,
1615 .contents
.toc
-item
-1 ~
.toc
-item
-3 {
1619 .contents
.toc
-item
-1 ~
.toc
-item
-2 ~
.toc
-item
-3 {
1623 .contents
.toc
-item
-3 {
1624 counter
-increment
: toc
-item
-3;
1626 .contents
.toc
-item
-1 ~
.toc
-item
-2 ~
.toc
-item
-3::before
{
1627 content
: counter(toc
-item
-1) "." counter(toc
-item
-2) "." counter(toc
-item
-3);
1629 .contents
.toc
-item
-1 ~
.toc
-item
-3::before
{
1630 content
: counter(toc
-item
-1) "." counter(toc
-item
-3);
1632 .contents
.toc
-item
-2 ~
.toc
-item
-3::before
{
1633 content
: counter(toc
-item
-2) "." counter(toc
-item
-3);
1635 .contents
.toc
-item
-3::before
{
1636 content
: counter(toc
-item
-3);
1638 .contents
.toc
-item
-4,
1639 .contents
.toc
-item
-5,
1640 .contents
.toc
-item
-6 {
1644 /********************/
1645 /* POSTS & COMMENTS */
1646 /********************/
1650 display
: inline
-block
;
1652 font
-size
: 1.0625em
;
1653 white
-space
: nowrap
;
1657 overflow
-wrap
: break-word
;
1658 text
-align
: justify
;
1664 .retracted
.post
-body
,
1665 .retracted
.comment
-body
{
1666 text
-decoration
: line
-through
;
1671 word
-break: break-all
;
1681 flex
-flow
: row wrap
;
1682 justify
-content
: center
;
1684 .post
-meta
.lw2
-link
{
1689 .post
-meta
.post
-section
::before
{
1692 .post
-meta
.post
-section
{
1697 .post
-meta
.post
-section
::before
{
1698 visibility
: visible
;
1699 font
-family
: "Font Awesome";
1702 .post
-section
.frontpage
::before
{
1705 .post
-section
.featured
::before
{
1708 .post
-section
.meta
::before
{
1711 .post
-section
.personal
::before
{
1714 .post
-section
.draft
::before
{
1717 .post
-section
.alignment
-forum
::before
{
1719 font
-family
: Concourse
;
1722 /*= Karma controls hover tooltips =*/
1724 @media only screen
and (hover
: hover
), not screen
and (-moz
-touch
-enabled
) {
1726 .comment
-item
.karma
{
1729 .post
.karma
.active
-controls
::after
,
1730 .comment
-item
.karma
.active
-controls
::after
{
1731 content
: "Double-click for strong vote";
1733 pointer
-events
: none
;
1736 max
-width
: calc(100%
- 12px
);
1738 white
-space
: normal
;
1740 font
-size
: 0.875rem
;
1742 transition
: opacity
0.2s ease
;
1744 .post
.karma
.active
-controls
:hover
::after
,
1745 .comment
-item
.karma
.active
-controls
:hover
::after
{
1749 .post
.karma
.karma
-value
::after
,
1750 .comment
-item
.karma
.karma
-value
::after
{
1751 content
: attr(title
);
1753 pointer
-events
: none
;
1756 transform
: translateX(-50%
);
1757 white
-space
: nowrap
;
1759 font
-size
: 0.875rem
;
1762 transition
: opacity
0.2s ease
;
1764 .post
.karma
.karma
-value
:hover
::after
,
1765 .comment
-item
.karma
.karma
-value
:hover
::after
{
1768 .comment
-item
.karma
.karma
-value
:hover
::after
{
1787 margin
: 0.5em
0 0 0;
1790 margin
: 1.1em
0 0.35em
0;
1801 .post
.top
-post
-meta
:last
-child
{
1802 margin
-bottom
: 40px
;
1804 .post
.bottom
-post
-meta
{
1806 padding
: 20px
0 22px
0;
1813 .post
.link
-post
> .post
-body
> p
:first
-child
{
1816 margin
: 0.5em
0 0 0;
1818 .post
.link
-post
> .post
-body
> p
:only
-child
{
1822 .post
.link
-post a
.link
-post
-link
::before
{
1824 font
-family
: Font Awesome
;
1829 margin
-right
: 0.25em
;
1849 pointer
-events
: none
;
1852 list-style
-type
: none
;
1856 .comments
.comment
-thread
> li
{
1859 #content > #top-nav-bar + .comment-thread .comment-item {
1866 .comment
-item
.comment
-item
{
1867 margin
: 1em
8px
8px
16px
;
1869 .comment
-item
.comment
-item +
.comment
-item
{
1870 margin
: 2em
8px
8px
16px
;
1879 list-style
-type
: circle
;
1881 .comment
-body
> *:first
-child
{
1884 .comment
-body
> *:last
-child
{
1888 .comments
-empty-message
{
1891 padding
: 0.75em
0 0.9em
0;
1895 /**********************************/
1896 /* DEEP COMMENT THREAD COLLAPSING */
1897 /**********************************/
1899 .comment
-item input
[id^
="expand"] {
1902 .comment
-item input
[id^
="expand"] + label
{
1908 .comment
-item input
[id^
="expand"] + label
::after
{
1909 content
: "(Expand " attr(data
-child
-count
) " below)";
1910 visibility
: visible
;
1913 white
-space
: nowrap
;
1916 .comment
-item input
[id^
="expand"]:checked + label
::after
{
1917 content
: "(Collapse " attr(data
-child
-count
) " below)";
1919 .comment
-item input
[id^
="expand"] ~
.comment
-thread
{
1923 .comment
-item input
[id^
="expand"] ~
.comment
-thread
> li
:first
-child
{
1926 .comment
-item input
[id^
="expand"]:checked ~
.comment
-thread
{
1927 max
-height
: 1000000px
;
1930 .comment
-item input
[id^
="expand"]:checked ~
.comment
-thread
.comment
-thread
.comment
-item
{
1933 .comment
-item input
[id^
="expand"]:checked ~
.comment
-thread
.comment
-thread
.comment
-item a
.comment
-parent
-link
:hover
::after
{
1942 padding
: 2px
24px
2px
10px
;
1946 flex
-flow
: row wrap
;
1947 align
-items
: baseline
;
1949 .user
-page
.comment
-meta
,
1950 .conversation
-page
.comment
-meta
{
1951 padding
-right
: 10px
;
1953 .comment
-meta
.comment
-post
-title
{
1956 text
-overflow
: ellipsis
;
1959 .conversation
-page
.comment
-meta
.comment
-post
-title
{
1964 display
: none
; /* Not sure if we need to display this... */
1966 .comment
-item
.author
:not(.redacted
).original
-poster
::after
{
1967 content
: "\2004(OP)";
1971 /*****************************/
1972 /* COMMENT THREAD NAVIGATION */
1973 /*****************************/
1975 a
.comment
-parent
-link
:not(.inline
-author
),
1976 a
.comment
-parent
-link
.inline
-author
::before
{
1979 a
.comment
-parent
-link
:hover
{
1982 a
.comment
-parent
-link
::before
{
1984 font
-family
: "Font Awesome";
1991 padding
: 3px
3px
0 3px
;
1993 height
: calc(100% +
2px
);
1997 a
.comment
-parent
-link
::after
{
2002 width
: calc(100% +
26px
);
2003 height
: calc(100% +
38px
);
2006 pointer
-events
: none
;
2010 a
.comment
-parent
-link
:hover
::after
{
2011 visibility
: visible
;
2014 .comment
-child
-links
{
2017 .comment
-child
-link
{
2019 display
: inline
-block
;
2021 .comment
-child
-link
::before
{
2023 display
: inline
-block
;
2035 pointer
-events
: none
;
2037 .comment
-popup
.comment
-parent
-link
{
2040 .comment
-popup
.comment
-body
{
2041 font
-size
: 1.0625rem
;
2044 /**********************/
2045 /* COMMENT PERMALINKS */
2046 /**********************/
2047 /********************/
2048 /* COMMENT LW LINKS */
2049 /********************/
2051 .comment
-meta
.permalink
::before
,
2052 .comment
-meta
.lw2
-link
::before
,
2053 .individual
-thread
-page a
.comment
-parent
-link
:empty::before
{
2055 display
: inline
-block
;
2062 0 0 0 3px transparent
;
2064 background
-size
: 100%
;
2069 .comment
-meta
.permalink
::before
{
2070 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/anchor-white-on-blue.gif")) ?>');
2072 .comment
-meta
.lw2
-link
::before
{
2073 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/lw-white-on-blue.gif")) ?>');
2075 .individual
-thread
-page a
.comment
-parent
-link
:empty::before
{
2077 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/up-arrow-white-on-blue.gif")) ?>');
2079 .comment
-meta
.permalink
:hover
::before
{
2080 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/anchor-blue-on-white.gif")) ?>');
2082 .comment
-meta
.lw2
-link
:hover
::before
{
2083 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/lw-blue-on-white.gif")) ?>');
2085 .individual
-thread
-page a
.comment
-parent
-link
:empty:hover
::before
{
2086 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/up-arrow-blue-on-white.gif")) ?>');
2088 .comment
-meta
.permalink
:hover
::before
,
2089 .comment
-meta
.lw2
-link
:hover
::before
,
2090 .individual
-thread
-page a
.comment
-parent
-link
:empty:hover
::before
{
2093 0 0 0 3px transparent
;
2097 .comment
-meta
.permalink
:active
::before
,
2098 .comment
-meta
.lw2
-link
:active
::before
,
2099 .individual
-thread
-page a
.comment
-parent
-link
:empty:active
::before
{
2100 transform
: scale(0.9);
2103 .comment
-meta
.permalink
,
2104 .comment
-meta
.lw2
-link
,
2105 .individual
-thread
-page
.comment
-parent
-link
:empty {
2109 .comment
-meta
.permalink
::after
,
2110 .comment
-meta
.lw2
-link
::after
,
2111 .individual
-thread
-page
.comment
-parent
-link
:empty::after
{
2120 pointer
-events
: auto
;
2121 visibility
: visible
;
2124 /*************************/
2125 /* COMMENTS COMPACT VIEW */
2126 /*************************/
2128 #comments-list-mode-selector,
2129 #content.index-page #comments-list-mode-selector,
2130 #content.user-page #comments-list-mode-selector {
2135 justify
-self
: start
;
2138 #comments-list-mode-selector button {
2145 background
-repeat
: no
-repeat
;
2146 background
-size
: 100%
;
2147 background
-origin
: content
-box
;
2149 #comments-list-mode-selector button:disabled {
2152 #comments-list-mode-selector button.expanded {
2153 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/expanded_2x.gif")) ?>');
2155 #comments-list-mode-selector button.compact {
2156 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/compact_2x.gif")) ?>');
2158 @media only screen
and (max
-resolution
: 1dppx
) {
2159 #comments-list-mode-selector button.expanded {
2160 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/expanded_1x.gif")) ?>');
2162 #comments-list-mode-selector button.compact {
2163 background
-image
: url('data:image/gif;base64,<?php echo base64_encode(file_get_contents("assets/compact_1x.gif")) ?>');
2167 #content > ul.comment-thread > li.comment-item,
2168 #content.compact > ul.comment-thread > li.comment-item {
2172 #content > .comment-thread {
2175 #content.compact > .comment-thread {
2176 font
-size
: 0.9375rem
;
2179 #content.compact > .comment-thread:hover {
2182 #content.compact > .comment-thread .comment-body {
2183 font
-size
: 1.0625rem
;
2185 #content.compact > .comment-thread .comment-item {
2190 pointer
-events
: none
;
2192 #content.compact > .comment-thread .comment-item::after {
2199 padding
: 0 16px
10px
64px
;
2200 pointer
-events
: auto
;
2202 @media only screen
and (hover
: hover
), not screen
and (-moz
-touch
-enabled
) {
2203 #content.compact:not(:focus-within) > .comment-thread .comment-item:hover,
2204 #content.compact > .comment-thread .comment-item.expanded {
2206 pointer
-events
: auto
;
2210 @media only screen
and (hover
: none
), only screen
and (-moz
-touch
-enabled
) {
2211 #content.compact > .comment-thread.expanded .comment-item {
2213 pointer
-events
: auto
;
2217 #content.compact > .comment-thread .comment-item .comment-meta {
2218 white
-space
: nowrap
;
2220 text
-overflow
: ellipsis
;
2223 #content.compact > .comment-thread .comment-item:hover .comment-meta {
2226 #content.compact > .comment-thread .comment-item .comment-meta a {
2227 pointer
-events
: auto
;
2229 #content.compact > .comment-thread .comment-item .comment-meta .comment-post-title {
2232 #content.compact > .comment-thread .comment-item .comment-meta .karma + .comment-post-title {
2233 margin
-left
: 0.75em
;
2235 @media only screen
and (hover
: hover
), not screen
and (-moz
-touch
-enabled
) {
2236 #content.compact > .comment-thread:last-of-type .comment-item:hover,
2237 #content.compact > .comment-thread:last-of-type .comment-item.expanded {
2240 #content.compact > .comment-thread .comment-item:hover .comment,
2241 #content.compact > .comment-thread .comment-item.expanded .comment {
2247 #content.compact > .comment-thread .comment-item:hover .comment::before,
2248 #content.compact > .comment-thread .comment-item.expanded .comment::before{
2252 width
: calc(100% +
20px
);
2253 height
: calc(100% +
20px
);
2258 #content.compact > .comment-thread:last-of-type .comment-item:hover .comment,
2259 #content.compact > .comment-thread:last-of-type .comment-item.expanded .comment{
2263 @media only screen
and (hover
: none
), only screen
and (-moz
-touch
-enabled
) {
2264 #content.compact > .comment-thread.expanded:last-of-type .comment-item {
2267 #content.compact > .comment-thread.expanded .comment-item .comment {
2273 #content.compact > .comment-thread.expanded .comment-item .comment::before {
2277 width
: calc(100% +
14px
);
2278 height
: calc(100% +
20px
);
2283 #content.compact > .comment-thread.expanded:last-of-type .comment-item .comment {
2286 #content.compact > .comment-thread.expanded .comment-item .comment::after {
2295 background
-color
: rgba(0,0,0,0.5);
2299 /*****************************/
2300 /* HIGHLIGHTING NEW COMMENTS */
2301 /*****************************/
2303 .new-comment
::before
{
2309 pointer
-events
: none
;
2312 /***********************************/
2313 /* COMMENT THREAD MINIMIZE BUTTONS */
2314 /***********************************/
2316 .comment
-minimize
-button
{
2317 font
-family
: Font Awesome
;
2328 .comment
-minimize
-button
:active
{
2329 transform
: scale(0.9);
2331 .comment
-minimize
-button
::after
{
2332 content
: attr(data
-child
-count
);
2333 font
-weight
: normal
;
2334 font
-size
: 0.8125rem
;
2341 #content.individual-thread-page .comment-minimize-button {
2345 /***********************************/
2346 /* INDIVIDUAL COMMENT THREAD PAGES */
2347 /***********************************/
2349 .individual
-thread
-page
> h1
{
2351 margin
: 0.75em
0 3px
0;
2353 .individual
-thread
-page
.comments
{
2365 font
-family
: Font Awesome
;
2372 .karma
.waiting button
{
2373 pointer
-events
: none
;
2376 /* Replicated karma controls at bottom of comments. */
2377 .comment
-controls
.karma
{
2380 font
-size
: 0.9375em
;
2383 /*****************************/
2384 /* COMMENTING AND POSTING UI */
2385 /*****************************/
2389 margin
: 0 8px
8px
16px
;
2393 .comment
-thread
.comment
-controls +
.comment
-thread
> li
:first
-child
{
2396 .comments
> .comment
-controls
{
2399 .comments
> .comment
-controls
:last
-child
{
2400 margin
: 8px
0 16px
0;
2403 .posting
-controls input
[type
='submit'] {
2406 font
-size
: 1.125rem
;
2409 .comment
-controls
.cancel
-comment
-button
{
2415 padding
: 4px
8px
2px
4px
;
2418 .comment
-controls
.cancel
-comment
-button
::before
{
2419 font
-family
: Font Awesome
;
2427 .comment +
.comment
-controls
.action
-button
{
2428 font
-weight
: normal
;
2429 font
-size
: 1.0625em
;
2432 .comment
-controls
.action
-button
::before
{
2433 font
-family
: Font Awesome
;
2436 .new-comment
-button
{
2440 .comment
-controls
.reply
-button
::before
{
2449 margin
: 0.75em
0 0 0;
2458 display
: inline
-block
;
2459 margin
-bottom
: 0.25em
;
2460 font
-size
: 1.125rem
;
2462 .edit
-post
-link
::before
{
2463 margin
-right
: 0.3em
;
2465 .comment
-controls
.edit
-button
::before
,
2466 .edit
-post
-link
::before
{
2468 font
-family
: "Font Awesome";
2475 .comment
-controls
.delete
-button
{
2476 margin
-right
: 0.25em
;
2478 .comment
-controls
.edit
-button
,
2479 .comment
-controls
.retract
-button
,
2480 .comment
-controls
.unretract
-button
{
2483 .comment
-controls
.retract
-button
::before
{
2487 .comment
-controls
.unretract
-button
::before
{
2491 .comment
-controls
.delete
-button
::before
{
2495 .comment
-controls
.retract
-button
::before
,
2496 .comment
-controls
.unretract
-button
::before
,
2497 .comment
-controls
.delete
-button
::before
{
2502 .comment
-controls form
{
2505 .textarea
-container
{
2508 .posting
-controls textarea
{
2513 max
-height
: calc(100vh
- 6em
);
2517 border
-style
: solid
;
2518 border
-width
: 29px
1px
1px
1px
;
2522 /* GUIEdit buttons */
2524 .guiedit
-buttons
-container
{
2528 width
: calc(100%
- 2px
);
2531 padding
: 1px
4px
0 4px
;
2534 .comment
-thread
-page
.guiedit
-buttons
-container
{
2535 padding
-right
: 60px
;
2537 .guiedit
-buttons
-container button
{
2541 font
-size
: 0.875rem
;
2545 .guiedit
-buttons
-container button
:active
{
2548 .guiedit
-buttons
-container button
:active div
{
2549 transform
: scale(0.9);
2551 .guiedit
-buttons
-container button sup
{
2555 content
: attr(data
-tooltip
);
2557 font
-weight
: normal
;
2563 white
-space
: nowrap
;
2566 .guiedit
:hover
::after
{
2567 visibility
: visible
;
2570 /* Markdown hints */
2572 .posting
-controls
.markdown
-reference
-link
{
2574 padding
: 1px
0 0 6px
;
2576 .posting
-controls
.markdown
-reference
-link a
{
2577 padding
-right
: 1.5em
;
2578 margin
-right
: 0.15em
;
2579 background
-image
: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAQAAABNTyozAAAEDklEQVR4Ae3cY3QDjRaG0V1e27Zt27Zt27Ztf7Zt27Zt10jOdZtZzbSN2q41533+tsFO4zRi0TKRJVACJdDiJVACJVACJVACZQmUQAmUQAmUQAmUQFkCJVACJVACJVACJVDWuD7P8icnGRcVbdyJ/uRZ+jTZYxwq/lN2qMcozvtMibmySe/TsPeqi0JZ3XsAHm1SZAua9CjgoMQo6UB4uiim5gbXV7Ab1EQxT+P3RRw/dHtV3e39UL3g8XuOEw39QNX3g4LHcYwU/n5uo+q7beGKNqLwJ3U1cteKuepEQ1cid03BJIESKIESKIESKIESaIkl0I3dv7Q7a293c//ShrWym7l/abdbGaCnidJGPFzre6opUdqDtLJXitJ+svpA4Uy30dru6hJRHaCws37L37CDRbWAwvctf38S1QOqe43l7f2iikDheg+x9J5ksqpA4TS3svju5CJRXaCwvX7lG3KAqDZQ+Jby/U4kUM0rNN+7hAQSrvNAC/c4Ewn0/052C8Xd0fkigebbRp/5DdpHJFCxr5nfr4QEUqzmJYC3iQRq1jXuj8cYT6CyTnAv54oEKm9EJFBnJVAC7eoS0XJn2r8qQP/wNFOipUY8wvbVAeIjooXq3ki1gPhHC0A/oWWgQZ/37ZI2FaUdVPpb33LHlQS6scPFstrDQBtAvEpNdLEfsZJA3N3lYsnOcTvaAuKzomttqW+lgXimabFoYx5N20D8SXSlw9yElQfiE0J5dW+lI6BBu4uOO8+dWB0g1hel/YIOgbiVE0VHXefhrB7QTRwtmra3gS4AcW+Xibab8SJWE4h7uaLpn/Ud6AoQTzIu2uzDrDYQzzUjCo17HF0D4g3qoo1+yWoCld8hv5OuAvFl0XLb6V8rQGws5votXQfqs45oqaPdjLUDdNO5f7Xa32APgBhu6b2SC92VtQTEfVwlXOhO9ASI2zhNLKsRj2atAfFCo55Iz4C4nyvFks16OWsRiPvQUyCeblIs0adYq0B6DsTb1EV5fk+1gfiWKG0XAwnUZyPRtOPdggTiRg4UC7rEPUkg4PbOFIXGPIEEmt+DCmeu5rUkUHHPaXj76Qsk0MK9R/ynv5FAzfdDYS9Da+n/xe6ovd2lS/8vVlyfH7o1vQLKJVACJVACJVACJVACIYGW/A6z/A6zG8RcNbdT9d1eTcx1A8eKhn6s6vtxweNYfisaqvupu+jXV8H63cXP1Asev+Wpopi6aVMVbFpdFPMUlP6jdrY/8AgTYkHZhEcAvFNdFMpq3qFh78y/okIT3qk4j8zborn290hN91S/c6zrzapVsFnXO9bvPFXjYtEykSVQAnVUAiVQAiVQAiVQAiVQlkAJlEAJlEAJlEAJlCVQAiVQAiVQAiVQAmX/BMHb3CdNrgcrAAAAAElFTkSuQmCC');
2580 background
-size
: 1.25em
;
2581 background
-repeat
: no
-repeat
;
2582 background
-position
: right center
;
2585 #markdown-hints-checkbox + label {
2587 margin
: 2px
0 0 1em
;
2591 #edit-post-form #markdown-hints-checkbox + label {
2594 #markdown-hints-checkbox {
2598 #markdown-hints-checkbox + label::after {
2599 content
: "(Show Markdown help)";
2601 #markdown-hints-checkbox:checked + label::after {
2602 content
: "(Hide Markdown help)";
2604 #markdown-hints-checkbox + label::before {
2606 font
-family
: Font Awesome
;
2610 #markdown-hints-checkbox:checked + label::before {
2611 font
-weight
: normal
;
2614 margin
: 4px
0 0 4px
;
2618 top
: calc(100%
- 1em
);
2622 .comment
-controls
#markdown-hints {
2623 top
: calc(100% +
1.75em
);
2625 #markdown-hints-checkbox:checked ~ #markdown-hints {
2628 .markdown
-hints
-row
{
2631 #markdown-hints .markdown-hints-row span,
2632 #markdown-hints .markdown-hints-row code {
2634 display
: table
-cell
;
2636 background
-color
: inherit
;
2637 padding
: 0 12px
0 0;
2640 /******************/
2641 /* EDIT POST FORM */
2642 /******************/
2645 padding
: 1em
1em
4em
1em
;
2647 #edit-post-form .post-meta-fields {
2649 grid
-template
-columns
: 5em auto auto auto
1fr auto
;
2650 margin
-bottom
: 0.625em
;
2653 #edit-post-form label[for='title'],
2654 #edit-post-form label[for='url'],
2655 #edit-post-form label[for='section'] {
2658 #edit-post-form input[type='text'] {
2660 grid
-column
: 2 / span
4;
2661 margin
-bottom
: 0.5em
;
2664 #edit-post-form .link-post-checkbox,
2665 #edit-post-form .link-post-checkbox + label {
2669 #edit-post-form .question-checkbox,
2670 #edit-post-form .question-checkbox + label {
2673 justify
-self
: start
;
2677 #edit-post-form .post-meta-fields input[type='checkbox'] {
2680 pointer
-events
: none
;
2682 #edit-post-form .post-meta-fields input[type='checkbox'] + label {
2683 white
-space
: nowrap
;
2686 padding
: 0.25em
0.5em
0.25em
calc(20px +
0.25em +
0.3725em
);
2689 #edit-post-form .post-meta-fields input[type='checkbox'] + label::before {
2691 font
-family
: Font Awesome
;
2692 font
-size
: 1.375rem
;
2701 #edit-post-form label[for='url'],
2702 #edit-post-form input[name='url'] {
2705 #edit-post-form .link-post-checkbox:checked ~ label[for='url'],
2706 #edit-post-form .link-post-checkbox:checked ~ input[name='url'] {
2709 #edit-post-form label {
2710 line
-height
: normal
;
2711 border
: 1px solid transparent
;
2713 padding
: 0.25em
0.5em
;
2714 white
-space
: nowrap
;
2716 #edit-post-form input[type='radio'] {
2720 pointer
-events
: none
;
2722 #edit-post-form input[type='radio'] + label {
2725 border
-style
: solid
;
2726 border
-width
: 1px
1px
1px
0;
2729 #edit-post-form input[type='radio']:checked + label {
2733 #edit-post-form label[for='section'] {
2736 #edit-post-form input[type='radio'] + label {
2739 <?php
fit_content("#edit-post-form input[type='radio'] + label"); ?
>
2741 #edit-post-form textarea {
2745 #edit-post-form input[type='submit'] {
2749 #edit-post-form #markdown-hints {
2750 top
: calc(100% +
2em
);
2753 #edit-post-form button.guiedit div {
2756 .guiedit
-mobile
-auxiliary
-button
{
2765 input
[type
='submit'] {
2766 font
-family
: inherit
;
2768 background
-color
: inherit
;
2791 margin
: 1em
0 0.75em
0;
2834 .post
-body
.comment
-box
.comment
-body
{
2837 padding
-left
: 0.5em
;
2839 padding
-bottom
: 3px
;
2841 blockquote
*:first
-child
{
2844 blockquote
*:last
-child
{
2847 blockquote blockquote
{
2851 /* Pseudo-blockquotes that LW sometimes uses for some reason */
2853 .post
-body
.comment
-box
.user
-name
{
2856 .post
-body
.comment
-box
.user
-name
::after
{
2859 .post
-body
.comment
-box
{
2892 .comment
-body table
{
2893 border
-collapse
: collapse
;
2894 font
-family
: Inconsolata
, Menlo
, monospace
;
2897 .post
-body table th
,
2898 .post
-body table td
,
2899 .comment
-body table th
,
2900 .comment
-body table td
{
2905 .post
-body table td
:nth
-of
-type(n+
2),
2906 .comment
-body table td
:nth
-of
-type(n+
2) {
2909 .post
-body table caption
,
2910 .comment
-body table caption
{
2911 margin
: 0 0 0.25em
0;
2920 /*= Superscripts & subscripts =*/
2922 /* Make sure superscripts and subscripts do not affect line spacing. */
2924 vertical
-align
: baseline
;
2934 /*= Code blocks & other "unstyled" text. =*/
2938 font
-family
: Inconsolata
, Menlo
, monospace
;
2941 white
-space
: pre
-wrap
;
2945 display
: inline
-block
;
2946 padding
: 0 4px
1px
5px
;
2951 padding
: 3px
4px
5px
8px
;
2960 /*= Removing browser default styling of various elements =*/
2962 /* On various input elements such as text fields and buttons, remove "blue glow" focus outlines on Macs, dotted black outlines in Firefox, etc. */
2967 /* Remove "embossed" appearance of horizontal rules. */
2975 -webkit
-appearance
: none
;
2976 -moz
-appearance
: none
;
2981 font
-family
: inherit
;
2983 font
-weight
: inherit
;
2991 counter
-reset
: ordered
-list;
2993 .footnote
-definition
{
2995 list-style
-type
: none
;
2996 counter
-increment
: ordered
-list;
2999 .footnote
-definition p
{
3000 font
-size
: inherit
!important
;
3002 .footnote
-definition
::before
{
3003 content
: counter(ordered
-list) ".";
3016 margin
-bottom
: 0.5em
;
3022 .comment
-body ul p
{
3031 .post
-body ol
> li
{
3033 counter
-increment
: ol
;
3034 padding
: 0 0 0 2.5em
;
3035 margin
: 0.25em
0 0 0;
3037 .post
-body ol
> li
::before
{
3038 content
: counter(ol
) ".";
3048 .post
-body ul
:not(.contents
-list) li
{
3050 padding
: 0 0 0 2.5em
;
3051 margin
: 0.25em
0 0 0;
3053 .post
-body ul
:not(.contents
-list) li
::before
{
3060 .post
-body li
> ul
:first
-child
> li
{
3063 .post
-body li
> ul
:first
-child
> li
::before
{
3075 .error
-retry
-form input
[type
="submit"] {
3076 border
: 1px solid
#aaa;
3078 font
-size
: 1.125rem
;
3079 padding
: 0.5em
1.25em
;
3086 #content.about-page .contents {
3089 #content.about-page .accesskey-table {
3090 border
-collapse
: collapse
;
3093 #content.about-page .accesskey-table th,
3094 #content.about-page .accesskey-table td {
3097 #content.about-page .accesskey-table td:first-child {
3098 padding
-right
: 1.5em
;
3100 #content.about-page .accesskey-table td:last-child {
3102 font
-family
: Inconsolata
, Menlo
, monospace
;
3104 #content.about-page h3:nth-of-type(n+2) {
3108 /******************/
3109 /* IMAGES OVERLAY */
3110 /******************/
3112 #images-overlay + #content .post-body img {
3116 #images-overlay div {
3119 #images-overlay div::after {
3120 content
: "Click to enlarge";
3129 background
-color
: rgba(0,0,0,0.6);
3133 transition
: opacity
0.15s ease
;
3134 pointer
-events
: none
;
3136 <?php
fit_content("#images-overlay div::after"); ?
>
3137 #images-overlay div:hover::after {
3141 #images-overlay img {
3150 #images-overlay img:hover {
3151 filter
: drop
-shadow(0 0 3px
#777);
3154 #content img:active,
3155 #images-overlay img:active {
3156 transform
: scale(0.975);
3159 #image-focus-overlay {
3168 #image-focus-overlay::before {
3176 background
-color
: #000;
3180 #image-focus-overlay.engaged {
3184 #image-focus-overlay img {
3189 transform
: translateX(-50%
) translateY(-50%
);
3192 #image-focus-overlay .help-overlay {
3199 border
-radius
: 10px
;
3203 white
-space
: nowrap
;
3209 background
-color
1s ease
,
3212 #image-focus-overlay .help-overlay:hover {
3215 background
-color
: rgba(0,0,0,0.85);
3217 visibility
: visible
;
3219 visibility
0.2s ease
0.3s
,
3220 color
0.2s ease
0.3s
,
3221 background
-color
0.2s ease
0.3s
;
3224 #image-focus-overlay .help-overlay::after {
3226 font
-family
: Font Awesome
;
3234 filter
: drop
-shadow(0 0 6px
#fff);
3235 visibility
: visible
;
3240 #image-focus-overlay .help-overlay:hover::after {
3243 visibility
0.2s ease
0.3s
;
3246 #image-focus-overlay .help-overlay p {
3253 #image-focus-overlay .help-overlay p + p {
3254 margin
: 0.75em
0 0 0;
3256 #image-focus-overlay .help-overlay.hidden {
3260 #image-focus-overlay .image-number {
3274 white
-space
: nowrap
;
3275 transition
: bottom
0.3s ease
;
3277 #image-focus-overlay .image-number::before {
3281 #image-focus-overlay .image-number::after {
3282 content
: " of " attr(data
-number
-of
-images
);
3285 #image-focus-overlay .image-number:hover::before,
3286 #image-focus-overlay .image-number:hover::after {
3289 #image-focus-overlay .image-number.hidden {
3293 #image-focus-overlay .slideshow-buttons {
3301 justify
-content
: space
-between
;
3302 pointer
-events
: none
;
3304 #image-focus-overlay .slideshow-buttons button {
3305 font
-family
: Font Awesome
;
3314 pointer
-events
: auto
;
3316 #image-focus-overlay .slideshow-buttons button::selection {
3317 background
-color
: transparent
;
3319 @media only screen
and (hover
: hover
), not screen
and (-moz
-touch
-enabled
) {
3320 #image-focus-overlay .slideshow-buttons button:hover {
3321 background
-color
: rgba(0,0,0,0.1);
3325 #image-focus-overlay .slideshow-buttons button:active {
3329 #image-focus-overlay .slideshow-buttons button:disabled {
3331 background
-color
: transparent
;
3336 #image-focus-overlay .slideshow-button.previous.hidden {
3339 #image-focus-overlay .slideshow-button.next.hidden {
3347 /**************************/
3348 /* QUALIFIED HYPERLINKING */
3349 /**************************/
3351 #content.no-comments .comments,
3352 #content.no-comments .post-meta .comment-count,
3353 #content.no-comments .post-meta .karma,
3354 #content.no-comments + #ui-elements-container #new-comment-nav-ui,
3355 #content.no-comments + #ui-elements-container #hns-date-picker,
3356 #content.no-comments + #ui-elements-container #quick-nav-ui {
3360 #content.no-nav-bars #primary-bar,
3361 #content.no-nav-bars #secondary-bar {
3364 #content.no-nav-bars {
3367 #content.no-nav-bars + #ui-elements-container > * {
3374 left
: calc((100%
- 900px
) / 2 - 69px
);
3381 display
: table
-cell
;
3383 vertical
-align
: middle
;
3384 font
-family
: Font Awesome
;
3391 .qualified
-linking
{
3395 .qualified
-linking input
[type
='checkbox'] {
3401 .qualified
-linking label
{
3402 font
-family
: Font Awesome
;
3406 display
: inline
-block
;
3407 margin
-left
: 0.25em
;
3409 .qualified
-linking label
:hover
{
3412 .qualified
-linking label
:active span
{
3413 display
: inline
-block
;
3414 transform
: scale(0.9);
3416 .qualified
-linking label
::selection
{
3417 background
-color
: transparent
;
3420 .qualified
-linking label
::after
{
3430 .qualified
-linking input
[type
='checkbox']:checked + label
::after
{
3434 .qualified
-linking
-toolbar
{
3440 .qualified
-linking input
[type
='checkbox'] ~
.qualified
-linking
-toolbar
{
3443 .qualified
-linking input
[type
='checkbox']:checked ~
.qualified
-linking
-toolbar
{
3446 #qualified-linking-toolbar-toggle-checkbox-bottom ~ .qualified-linking-toolbar {
3451 .qualified
-linking
-toolbar a
{
3456 .qualified
-linking
-toolbar a
::selection
{
3457 background
-color
: transparent
;
3464 .mathjax
-block
-container
{
3467 margin
: 1em
0 1.5em
0;
3469 .mathjax
-inline
-container
{
3471 display
: inline
-block
;
3475 vertical
-align
: text
-top
;
3478 .post
.mathjax
-inline
-container
{
3482 .comment
.mathjax
-inline
-container
{
3486 .mathjax
-inline
-container
.mjx
-chtml
{
3496 background
-color
: currentColor
;
3500 box
-shadow
: 0 0 0 1px currentColor inset
;
3503 .spoiler
:not(:last
-child
) {
3506 #content .spoiler * {
3512 background
-color
: unset;
3515 color
0.1s ease
-out
0.1s
,
3516 background
-color
0.1s ease
-out
0.1s
,
3517 text
-shadow
0.1s ease
-out
0.1s
;
3519 .spoiler
::selection
,
3520 .spoiler
::selection
{
3522 background
-color
: #000;
3524 .spoiler
:not(:hover
)::selection
,
3525 .spoiler
:not(:hover
) ::selection
{
3526 background
-color
: transparent
;
3529 /*= Fix for LessWrong being weird =*/
3534 .spoiler
> p
:first
-child
{
3537 .spoiler
> p
:last
-child
{
3539 padding
-bottom
: 0.25em
;
3541 .spoiler
> p
:hover ~ p
{
3542 background
-color
: currentColor
;
3547 .spoiler
> p
:not(:first
-child
) {
3550 .spoiler
> p
:not(:last
-child
) {
3551 padding
-bottom
: 0.5em
;
3554 /*******************/
3555 /* ALIGNMENT FORUM */
3556 /*******************/
3558 #content.alignment-forum-index-page::after {
3559 content
: "Alignment Forum";
3562 margin
: 0.375em
0 0 -0.375em
;
3565 /**********************/
3566 /* FOR NARROW SCREENS */
3567 /**********************/
3569 @media only screen
and (max
-width
: 1440px
) {
3572 padding
: 8px
10px
10px
10px
;
3576 #hns-date-picker::before {
3581 height
: calc(100% +
2px
);
3587 @media only screen
and (max
-width
: 1160px
) {
3588 #new-comment-nav-ui {
3596 #hns-date-picker::before {
3597 width
: calc(100%
- 35px
);
3599 #theme-selector button::before {
3603 #theme-selector:hover::after {
3607 width
: calc(6em
- 7px
);
3608 height
: calc(100% +
2px
);
3610 left
: calc(100% +
1px
);
3612 #anti-kibitzer-toggle {
3616 @media only screen
and (max
-width
: 1080px
) {
3620 #width-selector button {
3623 #text-size-adjustment-ui {
3627 #text-size-adjustment-ui button {
3631 #text-size-adjustment-ui button.increase {
3634 #text-size-adjustment-ui button.decrease {
3641 #theme-tweaker-toggle {
3645 #theme-tweaker-toggle button {
3653 #new-comment-nav-ui {
3659 #hns-date-picker::before {
3660 width
: calc(100%
- 22px
);
3662 #anti-kibitzer-toggle {
3666 @media only screen
and (max
-width
: 1040px
) {
3670 #new-comment-nav-ui {
3676 #hns-date-picker::before {
3677 width
: calc(100%
- 17px
);
3679 #anti-kibitzer-toggle {
3683 @media only screen
and (max
-width
: 1020px
) {
3687 #new-comment-nav-ui {
3690 #new-comment-nav-ui .new-comments-count::before {
3694 height
: calc(100% +
45px
);
3702 #hns-date-picker::before {
3705 #anti-kibitzer-toggle {
3709 @media only screen
and (max
-width
: 1000px
) {
3716 #theme-selector button {
3719 #text-size-adjustment-ui {
3723 @media not screen
and (hover
: none
), not screen
and (-moz
-touch
-enabled
) {
3725 #new-comment-nav-ui,
3726 #new-comment-nav-ui + #hns-date-picker,
3727 #anti-kibitzer-toggle {
3730 #quick-nav-ui:hover,
3731 #new-comment-nav-ui:hover,
3732 #new-comment-nav-ui + #hns-date-picker:hover,
3733 #new-comment-nav-ui + #hns-date-picker:focus-within,
3734 #new-comment-nav-ui:hover + #hns-date-picker,
3735 #anti-kibitzer-toggle:hover {
3739 #theme-tweaker-toggle {
3755 #ui-elements-container {
3761 #images-overlay + #content .post-body img {
3762 visibility
: visible
;
3767 #comments-sort-mode-selector {
3770 .comment
-minimize
-button
{
3773 .post
-meta
.qualified
-linking
,
3774 .post
-meta
.lw2
-link
{
3777 .comment
-meta
.permalink
,
3778 .comment
-meta
.lw2
-link
,
3779 .comment
-meta
.comment
-parent
-link
{
3782 .new-comment
::before
{
3790 <?php
include("style_mobile_additions.css.php"); ?
>
3792 <?php
if (isset($argv[2]) && preg_match("/\\.css(.php)?$/", $argv[2])) include($argv[2]); ?
>
3796 ## TO BE IMPLEMENTED:
3797 ## This will be specified via command-line argument; but for now, we just
3798 ## include all available additions (currently, only 'accordius').
3804 foreach ($additions as $addition) {
3805 $potential_includes = [
3807 "style_mobile_additions.css.php"
3809 foreach ($potential_includes as $include) {
3810 $include_path = "{$addition}/{$include}";
3811 if (file_exists($include_path))
3812 include ($include_path);