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
theme_config: theme_config:
# Dark Mode
dark: true
# Header # Header
menu: menu:
Home: /blog/ Home: /blog/

View File

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

View File

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