Fix darkmode post-gallery image opacity

This commit is contained in:
Mimi 2020-08-08 21:14:25 +08:00
parent f436facb20
commit 04ced15d8a
4 changed files with 6 additions and 9 deletions

View File

@ -17,6 +17,8 @@
img { img {
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
// Override darkmode image opacity.
opacity: 1;
width: 100%; width: 100%;
} }
} }

View File

@ -59,11 +59,6 @@
margin-top: 1em; margin-top: 1em;
} }
// Top main padding from header to posts (default 40px).
.post-block:first-of-type {
padding-top: initial;
}
// Post delimiters. // Post delimiters.
.post-eof { .post-eof {
display: none; display: none;

View File

@ -48,10 +48,6 @@
} }
} }
.post-block:first-of-type {
padding-top: 40px;
}
.footer-inner { .footer-inner {
if (hexo-config('sidebar.position') == 'right') { if (hexo-config('sidebar.position') == 'right') {

View File

@ -3,3 +3,7 @@
@import '_menu'; @import '_menu';
@import '_sub-menu'; @import '_sub-menu';
@import '_sidebar'; @import '_sidebar';
.post-block:first-of-type {
padding-top: 40px;
}