Move light theme into light class

This commit is contained in:
mdinger 2015-09-13 23:31:18 -04:00
parent 872f9ea5e6
commit be33f6afad
1 changed files with 58 additions and 35 deletions

View File

@ -4,6 +4,56 @@ html, body {
} }
@media only screen { @media only screen {
/* Light theme */
.light .sidebar {
border-right: 1px solid rgba(0, 0, 0, 0.07);
background-color: #fafafa;
color: #364149;
}
.light .page-wrapper {
background: none repeat scroll 0 0 #FFF;
}
.light .chapter li {
color: #AAA;
}
.light .chapter li a {
color: #333;
}
.light .chapter li .active {
color: #008cff;
}
.light .chapter li a:hover {
/* Animate color change */
color: #008cff;
}
.light .menu-bar {
color: #CCC;
}
.light .menu-bar :hover {
/* Animate color change */
color: #333;
}
.light .menu-title {
color: #7E7E7E;
}
.light .menu-bar:hover .menu-title {
color: #7E7E7E;
}
.light .content a {
color: #4183c4;
}
.light .nav-chapters {
color: #CCC;
}
.light .nav-chapters:hover {
color: #333;
}
.light .theme-popup {
border: 1px solid #fafafa;
}
.light .theme-popup .theme:hover {
background-color: #fafafa;
}
.sidebar { .sidebar {
position: absolute; position: absolute;
left: 0; left: 0;
@ -11,13 +61,10 @@ html, body {
bottom: 0; bottom: 0;
width: 300px; width: 300px;
overflow-y: auto; overflow-y: auto;
border-right: 1px solid rgba(0, 0, 0, 0.07);
padding: 10px 10px; padding: 10px 10px;
font-size: 14px; font-size: 14px;
box-sizing: border-box; box-sizing: border-box;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
background-color: #fafafa;
color: #364149;
/* Animation: slide away */ /* Animation: slide away */
-webkit-transition: left 0.5s; /* Safari */ -webkit-transition: left 0.5s; /* Safari */
@ -34,7 +81,6 @@ html, body {
top: 0; top: 0;
bottom: 0; bottom: 0;
box-sizing: border-box; box-sizing: border-box;
background: none repeat scroll 0 0 #FFF;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
min-height: 100%; min-height: 100%;
@ -82,23 +128,12 @@ html, body {
white-space: nowrap; white-space: nowrap;
} }
.chapter li {
color: #AAA;
}
.chapter li a { .chapter li a {
color: #333;
padding: 5px 0; padding: 5px 0;
text-decoration: none; text-decoration: none;
} }
.chapter li .active {
color: #008cff;
}
.chapter li a:hover { .chapter li a:hover {
/* Animate color change */
color: #008cff;
text-decoration: none; text-decoration: none;
} }
@ -116,7 +151,6 @@ html, body {
.menu-bar { .menu-bar {
position: relative; position: relative;
height: 50px; height: 50px;
color: #CCC;
} }
.menu-bar i { .menu-bar i {
@ -138,17 +172,11 @@ html, body {
float: right; float: right;
} }
.menu-bar :hover {
/* Animate color change */
color: #333;
}
.menu-bar i:hover { .menu-bar i:hover {
cursor: pointer; cursor: pointer;
} }
.menu-title { .menu-title {
color: #7E7E7E;
display: inline-block; display: inline-block;
font-weight: 200; font-weight: 200;
font-size: 20px; font-size: 20px;
@ -169,7 +197,6 @@ html, body {
} }
.menu-bar:hover .menu-title { .menu-bar:hover .menu-title {
color: #7E7E7E;
opacity: 1; opacity: 1;
} }
@ -184,7 +211,6 @@ html, body {
/* Content */ /* Content */
.content a { .content a {
color: #4183c4;
text-decoration: none; text-decoration: none;
} }
@ -194,7 +220,6 @@ html, body {
/* Nav icons */ /* Nav icons */
.nav-chapters { .nav-chapters {
color: #CCC;
font-size: 40px; font-size: 40px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
@ -219,7 +244,6 @@ html, body {
.mobile-nav-chapters { display: none; } .mobile-nav-chapters { display: none; }
.nav-chapters:hover { .nav-chapters:hover {
color: #333;
text-decoration: none; text-decoration: none;
} }
@ -237,7 +261,6 @@ html, body {
position: fixed; position: fixed;
left: -40px; left: -40px;
border: 1px solid #fafafa;
border-radius: 4px; border-radius: 4px;
font-size: 0.7em; font-size: 0.7em;
@ -249,11 +272,6 @@ html, body {
line-height: 25px; line-height: 25px;
white-space: nowrap; white-space: nowrap;
} }
.theme-popup .theme:hover {
background-color: #fafafa;
}
} }
@ -270,12 +288,19 @@ html, body {
/* Fix the navigation arrows that collapsed with the text on smaller screens */ /* Fix the navigation arrows that collapsed with the text on smaller screens */
@media only screen and (max-width: 1250px) { @media only screen and (max-width: 1250px) {
/* Light theme */
.light .mobile-nav-chapters {
color: #CCC;
background-color: #E0E0E0;
color: #999;
}
.nav-chapters { .nav-chapters {
display: none; display: none;
} }
.mobile-nav-chapters { .mobile-nav-chapters {
color: #CCC;
font-size: 40px; font-size: 40px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
@ -291,8 +316,6 @@ html, body {
margin-bottom: 50px; margin-bottom: 50px;
border-radius: 5px; border-radius: 5px;
background-color: #E0E0E0;
color: #999;
} }
.next { .next {