90 lines
2.3 KiB
SCSS
90 lines
2.3 KiB
SCSS
@import "https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans+KR:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Sans:wght@400;500;700&display=swap";
|
|
@import "https://fonts.cdnfonts.com/css/bender";
|
|
@import "https://fonts.cdnfonts.com/css/geometos";
|
|
|
|
@mixin light-theme() {
|
|
--text-color: rgba(0, 0, 0, 87%);
|
|
--text-color-full: #000;
|
|
--secondary-text-color: #97958d;
|
|
--date-color: rgba(0, 0, 0, 20%);
|
|
--border-color: #8f8f8f;
|
|
--link-highlight-color: #33b5e5;
|
|
--drawer-background-color: rgba(255, 255, 255, 88%);
|
|
--root-background-color: #ececec;
|
|
--home-item-hover-background-color: rgba(188, 188, 188, 30%);
|
|
--home-item-background-linear-gradient-color: rgba(0, 0, 0, 10%);
|
|
--home-item-outline-color: rgba(41, 41, 41, 30%);
|
|
--button-color: #999;
|
|
}
|
|
|
|
@mixin dark-theme() {
|
|
--text-color: rgba(255, 255, 255, 87%);
|
|
--text-color-full: #fff;
|
|
--secondary-text-color: #686a72;
|
|
--date-color: rgba(255, 255, 255, 20%);
|
|
--border-color: #707070;
|
|
--link-highlight-color: #33b5e5;
|
|
--drawer-background-color: rgba(0, 0, 0, 88%);
|
|
--root-background-color: #131313;
|
|
--home-item-hover-background-color: rgba(67, 67, 67, 30%);
|
|
--home-item-background-linear-gradient-color: rgba(255, 255, 255, 10%);
|
|
--home-item-outline-color: rgba(214, 214, 214, 30%);
|
|
--button-color: #666;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
@include dark-theme();
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
@include light-theme();
|
|
}
|
|
}
|
|
|
|
:root {
|
|
font-family: Geometos, 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans', sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.2em;
|
|
font-weight: 400;
|
|
color: var(--text-color);
|
|
background-color: var(--root-background-color);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#root {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
justify-content: flex-start;
|
|
align-items: stretch;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
*::-webkit-scrollbar {
|
|
width: 12px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: var(--border-color);
|
|
border-radius: 100px;
|
|
border: 5px solid transparent;
|
|
background-clip: padding-box;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
border: 4px solid transparent;
|
|
background-color: var(--text-color);
|
|
}
|
|
|
|
a {
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
}
|