From 3dc8ff5e6201943e488dc07f8c1cc7e0cf2fa668 Mon Sep 17 00:00:00 2001 From: mdinger Date: Mon, 14 Sep 2015 05:25:42 -0400 Subject: [PATCH] Add a rust theme --- src/theme/book.css | 45 ++++++++++++++++++++++++++++++++++++++++++++- src/theme/book.js | 1 + 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/theme/book.css b/src/theme/book.css index 166f634d..5f676fb4 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -108,6 +108,42 @@ html, body { .navy .theme-popup .theme:hover { background-color: #282e40; } + /* Rust theme */ + .rust { + background-color: #e1e1db; + color: #262625; + } + .rust .sidebar { + background-color: #3b2e2a; + color: #c8c9db; + } + .rust .chapter li .active, + .rust .chapter li a:hover { + /* Animate color change */ + color: #e69f67; + } + .rust .menu-bar, + .rust .nav-chapters { + color: #737480; + } + .rust .chapter li a { + color: #bfbfba; + } + .rust .menu-bar i:hover, + .rust .nav-chapters:hover { + color: #262625; + } + .rust .content a { + color: #2b79a2; + } + /* Theme changer */ + .rust .theme-popup { + background: #e1e1db; + border: 1px solid #b38f6b; + } + .rust .theme-popup .theme:hover { + background-color: #99908a; + } .sidebar { position: absolute; left: 0; @@ -366,7 +402,14 @@ html, body { .navy .mobile-nav-chapters i:hover { color: #b7b9cc; } - + /* Rust theme */ + .rust .mobile-nav-chapters { + background-color: #4d413d; + color: #737480; + } + .rust .mobile-nav-chapters i:hover { + color: #b7b9cc; + } .nav-chapters { display: none; } diff --git a/src/theme/book.js b/src/theme/book.js index bb441de9..98e2bc87 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -50,6 +50,7 @@ $( document ).ready(function() { } else { var popup = $('
') .append($('
Light (default)
')) + .append($('
Rust
')) .append($('
Coal
')) .append($(''));