fix(css): remove dark class

This commit is contained in:
curben 2019-09-04 06:57:03 +01:00
parent 8f2c3037cf
commit 9d72e9b0d8
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
3 changed files with 17 additions and 62 deletions

View File

@ -91,9 +91,6 @@ feed:
# theme config
theme_config:
# Dark Mode
dark: true
# Header
menu:
Home: /blog/

View File

@ -3,17 +3,9 @@
<%- partial('_partial/head') %>
<%/* set /about page to use "home" page layout */%>
<% if (is_current('about/index.html')) { %>
<% if (theme.dark) { %>
<body class="home-body dark">
<% } else { %>
<body class="home-body">
<% } %>
<% } else {%>
<% if (theme.dark) { %>
<body class="dark">
<% } else { %>
<body>
<% } %>
<% } %>
<div id="container" class="container">
<%- body %>

View File

@ -9,6 +9,8 @@ html {
}
body {
color: #e6e6e6;
background: black;
font-family: sans-serif;
font-size: 1.2em;
line-height: 1.5;
@ -67,6 +69,7 @@ a {
a:active,
a:hover {
outline-width: 0;
color: white;
}
a,
@ -164,12 +167,11 @@ kbd,
pre,
samp {
font-size: 0.9em;
background: #d8d8d8;
background: #333;
}
.article .article-entry blockquote footer cite a:hover,
.article .article-nav-link-wrap:hover {
color: #22c5e5;
border-bottom: 1px solid;
transition: color 0.1s linear;
}
@ -270,7 +272,7 @@ blockquote {
.copyright a:hover,
.footer-content a:hover,
.footer-links a:hover {
color: #fff;
color: white;
}
.archive-footer,
@ -305,13 +307,16 @@ blockquote {
.home {
font-weight: lighter;
line-height: 1.4;
color: #505050;
text-align: center;
position: relative;
}
.home a {
border-bottom: 1px solid #eee;
border-bottom: 1px solid #e6e6e6;
}
.home a:hover {
border-bottom: 1px solid white;
}
.home .content {
@ -618,45 +623,13 @@ blockquote {
display: none;
}
.dark,
.dark .container,
.dark .footer {
color: #e6e6e6;
background: black;
}
.dark a:hover {
color: white;
}
.dark .home a {
border-bottom: 1px solid #e6e6e6;
}
.dark .home a:hover {
border-bottom: 1px solid white;
}
.dark code,
.dark kbd,
.dark pre,
.dark samp {
background: #333;
}
.dark table caption,
.dark table td,
.dark td {
table caption,
table td,
td {
border: 1px solid #ddd;
}
.dark .article-entry .highlight table caption,
.dark .article-entry .highlight table td,
.dark .article-entry .highlight td {
border: 0;
}
.dark .article-entry .highlight .line.marked {
.article-entry .highlight .line.marked {
background: #444;
}
@ -695,6 +668,8 @@ blockquote {
padding: 0;
}
pre .comment,
pre .title,
.article-entry .highlight figcaption {
color: #8e908c;
}
@ -703,15 +678,6 @@ blockquote {
float: right;
}
.article-entry .highlight .line.marked {
background: #e6e6e6;
}
pre .comment,
pre .title {
color: #8e908c;
}
pre .attribute,
pre .css .class,
pre .css .id,
@ -783,7 +749,7 @@ pre .keyword {
/* overlap other elements */
.mobile-nav-link {
background: #000;
background: black;
border: 2px solid #999;
border-radius: 5px;
right: 0;