html {
font-family: $global-font-family;
font-size: $global-font-size;
font-weight: $global-font-weight;
line-height: $global-line-height;
width:100%;
}
/* scrollbar, only support webkit */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb {
background-color: $scrollbar-color;
&:hover {
background-color: $scrollbar-hover-color;
}
}
::selection {
background: $selection-color;
.dark-theme & {
background: $selection-color-dark;
}
}
body {
background-color: $global-background-color;
color: $global-font-color;
overflow-wrap: break-word;
&::before {
content: "";
background-repeat: no-repeat;
background-position: center;
opacity: 0.05;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: gray;
}
&.dark-theme {
color: $global-font-color-dark;
background-color: $global-background-color-dark;
}
}
b, strong {
font-weight: bold;
}
a {
color: $global-link-color;
text-decoration: none;
&:hover {
color: $global-link-hover-color;
}
.dark-theme & {
color: $global-link-color-dark;
&:hover {
color: $global-link-hover-color-dark;
}
}
}
b, strong {
font-weight: bold;
.dark-theme & {
color: #ddd;
}
}
#dynamic-to-top {
display: none;
overflow: hidden;
width: auto;
z-index: 100;
position: fixed;
bottom: 2rem;
right: 2rem;
top: auto;
left: auto;
font-size: 1.4rem;
line-height: 1.8rem;
padding: .6rem .6rem;
color: $global-font-secondary-color;
background: $header-background-color;
border: 1px solid $global-border-color;
border-radius: 2rem;
&:hover, &:active {
color: $global-font-color;
background: $global-background-color;
cursor: pointer;
}
&:active, &:focus, &:hover {
outline: none;
}
.dark-theme & {
color: $global-font-secondary-color-dark;
background: $header-background-color-dark;
border-color: $global-border-color-dark;
&:hover, &:active {
color: $global-font-color-dark;
background: $global-background-color-dark;
}
}
}