1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

refactor: update the sass mixed declarations (#1872)

See: https://sass-lang.com/d/mixed-decls
This commit is contained in:
Andrew
2024-08-09 01:24:30 -04:00
committed by Cotes Chung
parent e347d0632f
commit 23729c9c8f
4 changed files with 28 additions and 28 deletions

View File

@@ -1,6 +1,8 @@
/* The common styles */
html {
font-size: 16px;
@media (prefers-color-scheme: light) {
&:not([data-mode]),
&[data-mode='light'] {
@@ -22,8 +24,6 @@ html {
@include light-scheme;
}
}
font-size: 16px;
}
body {
@@ -218,13 +218,13 @@ i {
#access-lastmod {
a {
color: inherit;
&:hover {
@extend %link-hover;
}
@extend %no-bottom-border;
color: inherit;
}
}
@@ -682,15 +682,15 @@ $btn-mb: 0.5rem;
background: var(--sidebar-bg);
border-right: 1px solid var(--sidebar-border-color);
/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
/* Hide scrollbar for Chrome, Safari and Opera */
&::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
%sidebar-link-hover {
&:hover {
color: var(--sidebar-active-color);
@@ -1036,6 +1036,9 @@ search {
padding-bottom: 3rem;
a {
font-size: 1.4rem;
line-height: 2.5rem;
&:hover {
@extend %link-hover;
}
@@ -1043,9 +1046,6 @@ search {
@extend %link-color;
@extend %no-bottom-border;
@extend %heading;
font-size: 1.4rem;
line-height: 2.5rem;
}
> article {