Skip to content

Commit 0e7ed5c

Browse files
committed
Move theme color definition to end of stylesheet
1 parent 51577da commit 0e7ed5c

File tree

1 file changed

+95
-94
lines changed

1 file changed

+95
-94
lines changed

_sass/_ed.scss

+95-94
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
*/
1313

1414
/*
15-
To apply a different color scheme to the whole scroll down to the themes section for instructions
15+
To apply a different color scheme to the whole scroll down to the themes section instructions at
16+
the very bottom of this file
1617
*/
1718

1819

@@ -502,99 +503,6 @@ a.sidebar-nav-item:focus {
502503
}
503504

504505

505-
/*
506-
Themes
507-
508-
Applies custom color schemes by adding the appropriate class to the `body`. Based on colors from
509-
Base16: http://chriskempson.com/projects/base16/
510-
*/
511-
512-
/* Red */
513-
.theme-base-red .sidebar,
514-
.theme-base-red .sidebar-toggle:active,
515-
.theme-base-red #sidebar-checkbox:checked ~ .sidebar-toggle {
516-
background-color: #ac4142;
517-
}
518-
519-
.theme-base-red .container a,
520-
.theme-base-red .sidebar-toggle,
521-
.theme-base-red .related-posts li a:hover {
522-
color: #ac4142;
523-
}
524-
525-
/* Orange */
526-
.theme-base-orange .sidebar,
527-
.theme-base-orange .sidebar-toggle:active {
528-
background-color: #d28445;
529-
}
530-
531-
.theme-base-orange .container a,
532-
.theme-base-orange .sidebar-toggle,
533-
.theme-base-orange .related-posts li a:hover {
534-
color: #d28445;
535-
}
536-
537-
/* Green */
538-
.theme-base-green .sidebar,
539-
.theme-base-green .sidebar-toggle:active {
540-
background-color: #90a959;
541-
}
542-
543-
.theme-base-green .container a,
544-
.theme-base-green .sidebar-toggle,
545-
.theme-base-green .related-posts li a:hover {
546-
color: #90a959;
547-
}
548-
549-
/* Cyan */
550-
.theme-base-cyan .sidebar,
551-
.theme-base-cyan .sidebar-toggle:active {
552-
background-color: #75b5aa;
553-
}
554-
555-
.theme-base-cyan .container a,
556-
.theme-base-cyan .sidebar-toggle,
557-
.theme-base-cyan .related-posts li a:hover {
558-
color: #75b5aa;
559-
}
560-
561-
/* Blue */
562-
.theme-base-blue .sidebar,
563-
.theme-base-blue .sidebar-toggle:active {
564-
background-color: #6a9fb5;
565-
}
566-
567-
.theme-base-blue .container a,
568-
.theme-base-blue .sidebar-toggle,
569-
.theme-base-blue .related-posts li a:hover {
570-
color: #6a9fb5;
571-
}
572-
573-
/* Magenta */
574-
.theme-base-magenta .sidebar,
575-
.theme-base-magenta .sidebar-toggle:active {
576-
background-color: #aa759f;
577-
}
578-
579-
.theme-base-magenta .container a,
580-
.theme-base-magenta .sidebar-toggle,
581-
.theme-base-magenta .related-posts li a:hover {
582-
color: #aa759f;
583-
}
584-
585-
/* Brown */
586-
.theme-base-brown .sidebar,
587-
.theme-base-brown .sidebar-toggle:active {
588-
background-color: #8f5536;
589-
}
590-
591-
.theme-base-brown .container a,
592-
.theme-base-brown .sidebar-toggle,
593-
.theme-base-brown .related-posts li a:hover {
594-
color: #8f5536;
595-
}
596-
597-
598506
/*
599507
ED special layouts
600508
*/
@@ -798,3 +706,96 @@ li.prose {
798706
li.prose-indent {
799707
text-indent: 2rem;
800708
}
709+
710+
711+
/*
712+
Themes
713+
714+
Applies custom color schemes by adding the appropriate class to the `body`. Based on colors from
715+
Base16: http://chriskempson.com/projects/base16/
716+
*/
717+
718+
/* Red */
719+
.theme-base-red .sidebar,
720+
.theme-base-red .sidebar-toggle:active,
721+
.theme-base-red #sidebar-checkbox:checked ~ .sidebar-toggle {
722+
background-color: #ac4142;
723+
}
724+
725+
.theme-base-red .container a,
726+
.theme-base-red .sidebar-toggle,
727+
.theme-base-red .related-posts li a:hover {
728+
color: #ac4142;
729+
}
730+
731+
/* Orange */
732+
.theme-base-orange .sidebar,
733+
.theme-base-orange .sidebar-toggle:active {
734+
background-color: #d28445;
735+
}
736+
737+
.theme-base-orange .container a,
738+
.theme-base-orange .sidebar-toggle,
739+
.theme-base-orange .related-posts li a:hover {
740+
color: #d28445;
741+
}
742+
743+
/* Green */
744+
.theme-base-green .sidebar,
745+
.theme-base-green .sidebar-toggle:active {
746+
background-color: #90a959;
747+
}
748+
749+
.theme-base-green .container a,
750+
.theme-base-green .sidebar-toggle,
751+
.theme-base-green .related-posts li a:hover {
752+
color: #90a959;
753+
}
754+
755+
/* Cyan */
756+
.theme-base-cyan .sidebar,
757+
.theme-base-cyan .sidebar-toggle:active {
758+
background-color: #75b5aa;
759+
}
760+
761+
.theme-base-cyan .container a,
762+
.theme-base-cyan .sidebar-toggle,
763+
.theme-base-cyan .related-posts li a:hover {
764+
color: #75b5aa;
765+
}
766+
767+
/* Blue */
768+
.theme-base-blue .sidebar,
769+
.theme-base-blue .sidebar-toggle:active {
770+
background-color: #6a9fb5;
771+
}
772+
773+
.theme-base-blue .container a,
774+
.theme-base-blue .sidebar-toggle,
775+
.theme-base-blue .related-posts li a:hover {
776+
color: #6a9fb5;
777+
}
778+
779+
/* Magenta */
780+
.theme-base-magenta .sidebar,
781+
.theme-base-magenta .sidebar-toggle:active {
782+
background-color: #aa759f;
783+
}
784+
785+
.theme-base-magenta .container a,
786+
.theme-base-magenta .sidebar-toggle,
787+
.theme-base-magenta .related-posts li a:hover {
788+
color: #aa759f;
789+
}
790+
791+
/* Brown */
792+
.theme-base-brown .sidebar,
793+
.theme-base-brown .sidebar-toggle:active {
794+
background-color: #8f5536;
795+
}
796+
797+
.theme-base-brown .container a,
798+
.theme-base-brown .sidebar-toggle,
799+
.theme-base-brown .related-posts li a:hover {
800+
color: #8f5536;
801+
}

0 commit comments

Comments
 (0)