aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-05-23 10:57:47 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-05-23 10:57:47 +0200
commitfd97d56894a2fb3403df44641d5c93bf3ed5f336 (patch)
treec246eb5de301123600268e446140827cfbb9e1dd /css
parent9cd7f3f37b564808a77e8a2448f9c92f8aae0aaf (diff)
parenta9566dfbd48741b4566b4bdbe07c1222dd48771f (diff)
downloadperl-software-in-gnu-guix-fd97d56894a2fb3403df44641d5c93bf3ed5f336.tar
perl-software-in-gnu-guix-fd97d56894a2fb3403df44641d5c93bf3ed5f336.tar.gz
Merge pull request #1537 from vincentbernat/fix/dark-background-simple-theme
make theme "simple" use white titles on dark backgrounds
Diffstat (limited to 'css')
-rw-r--r--css/theme/simple.css3
-rw-r--r--css/theme/source/simple.scss5
2 files changed, 8 insertions, 0 deletions
diff --git a/css/theme/simple.css b/css/theme/simple.css
index 33809ec..cb840d9 100644
--- a/css/theme/simple.css
+++ b/css/theme/simple.css
@@ -7,6 +7,9 @@
*/
@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
+section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
+ color: #fff; }
+
/*********************************************
* GLOBAL STYLES
*********************************************/
diff --git a/css/theme/source/simple.scss b/css/theme/source/simple.scss
index 84c7d9b..394c9cd 100644
--- a/css/theme/source/simple.scss
+++ b/css/theme/source/simple.scss
@@ -31,6 +31,11 @@ $linkColor: #00008B;
$linkColorHover: lighten( $linkColor, 20% );
$selectionBackgroundColor: rgba(0, 0, 0, 0.99);
+section.has-dark-background {
+ &, h1, h2, h3, h4, h5, h6 {
+ color: #fff;
+ }
+}
// Theme template ------------------------------