2020-02-25 17:56:03 +08:00
|
|
|
/*
|
|
|
|
* Mainly scss modules, only imported to `assets/css/main.scss`
|
|
|
|
*/
|
|
|
|
|
2020-08-19 21:18:14 +08:00
|
|
|
/* ---------- scss placeholder --------- */
|
2020-02-25 17:56:03 +08:00
|
|
|
|
2021-04-11 01:18:19 +08:00
|
|
|
%heading {
|
|
|
|
color: var(--heading-color);
|
|
|
|
font-weight: 400;
|
2023-04-17 01:31:49 +08:00
|
|
|
font-family: $font-family-heading;
|
2024-10-11 18:32:10 +04:00
|
|
|
scroll-margin-top: 3.5rem;
|
2021-04-11 01:18:19 +08:00
|
|
|
}
|
|
|
|
|
2021-12-06 02:40:51 +08:00
|
|
|
%anchor {
|
2021-12-30 16:57:02 +09:00
|
|
|
.anchor {
|
2022-02-13 19:19:01 +08:00
|
|
|
font-size: 80%;
|
2021-12-06 02:40:51 +08:00
|
|
|
}
|
|
|
|
|
2021-12-09 20:45:20 +08:00
|
|
|
@media (hover: hover) {
|
2021-12-30 16:57:02 +09:00
|
|
|
.anchor {
|
2021-12-09 20:45:20 +08:00
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-12-30 16:57:02 +09:00
|
|
|
.anchor {
|
2021-12-09 20:45:20 +08:00
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
|
|
|
|
}
|
2021-12-06 02:40:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:56:03 +08:00
|
|
|
%tag-hover {
|
2020-02-27 21:05:50 +08:00
|
|
|
background: var(--tag-hover);
|
2020-02-25 17:56:03 +08:00
|
|
|
transition: background 0.35s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
%table-cell {
|
2020-08-19 21:18:14 +08:00
|
|
|
padding: 0.4rem 1rem;
|
2020-02-25 17:56:03 +08:00
|
|
|
font-size: 95%;
|
2020-12-14 01:54:29 +08:00
|
|
|
white-space: nowrap;
|
2020-02-25 17:56:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
%link-hover {
|
2020-08-19 21:18:14 +08:00
|
|
|
color: #d2603a !important;
|
2020-02-25 17:56:03 +08:00
|
|
|
border-bottom: 1px solid #d2603a;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
%link-color {
|
2020-02-27 21:05:50 +08:00
|
|
|
color: var(--link-color);
|
2020-02-25 17:56:03 +08:00
|
|
|
}
|
|
|
|
|
2020-02-29 00:16:47 +08:00
|
|
|
%link-underline {
|
|
|
|
border-bottom: 1px solid var(--link-underline-color);
|
|
|
|
}
|
|
|
|
|
2021-09-21 18:00:29 +08:00
|
|
|
%clickable-transition {
|
2023-03-25 02:58:58 +08:00
|
|
|
transition: all 0.3s ease-in-out;
|
2021-09-21 18:00:29 +08:00
|
|
|
}
|
|
|
|
|
2021-11-02 17:54:36 +08:00
|
|
|
%no-cursor {
|
2022-10-21 21:34:41 +08:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
2023-03-18 06:28:44 +08:00
|
|
|
-ms-user-select: none;
|
2021-11-02 17:54:36 +08:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:56:03 +08:00
|
|
|
%no-bottom-border {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2021-09-17 16:58:32 +08:00
|
|
|
%cursor-pointer {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-12-04 06:56:33 +08:00
|
|
|
%normal-font-style {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2022-12-20 16:04:39 +08:00
|
|
|
%rounded {
|
2024-08-25 18:17:38 +08:00
|
|
|
border-radius: $radius-lg;
|
2022-12-13 21:41:32 +08:00
|
|
|
}
|
|
|
|
|
2022-01-13 01:07:47 +08:00
|
|
|
%img-caption {
|
|
|
|
+ em {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
font-style: normal;
|
|
|
|
font-size: 80%;
|
|
|
|
padding: 0;
|
|
|
|
color: #6d6c6c;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-21 17:46:01 +08:00
|
|
|
%sidebar-links {
|
2023-08-02 05:18:35 +08:00
|
|
|
color: var(--sidebar-muted-color);
|
2022-10-21 21:34:41 +08:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
2023-03-18 06:28:44 +08:00
|
|
|
-ms-user-select: none;
|
2022-01-21 17:46:01 +08:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2023-03-18 06:28:44 +08:00
|
|
|
%text-clip {
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
2023-08-02 05:18:35 +08:00
|
|
|
%text-highlight {
|
2024-07-02 06:00:39 +08:00
|
|
|
color: var(--text-muted-highlight-color);
|
2023-08-02 05:18:35 +08:00
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2023-10-08 04:40:16 +08:00
|
|
|
%text-sm {
|
2023-10-04 14:29:44 -05:00
|
|
|
font-size: 0.85rem;
|
|
|
|
}
|
|
|
|
|
2023-10-08 04:40:16 +08:00
|
|
|
%text-xs {
|
|
|
|
font-size: 0.8rem;
|
|
|
|
}
|
|
|
|
|
2023-09-20 04:27:32 +08:00
|
|
|
%sup-fn-target {
|
|
|
|
&:target {
|
|
|
|
background-color: var(--footnote-target-bg);
|
|
|
|
width: -moz-fit-content;
|
|
|
|
width: -webkit-fit-content;
|
|
|
|
width: fit-content;
|
|
|
|
transition: background-color 1.75s ease-in-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-11 18:32:10 +04:00
|
|
|
%btn-color {
|
|
|
|
button i {
|
|
|
|
color: #999999;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-21 07:20:32 +08:00
|
|
|
/* ---------- scss mixin --------- */
|
|
|
|
|
2022-12-13 21:41:32 +08:00
|
|
|
@mixin mt-mb($value) {
|
|
|
|
margin-top: $value;
|
|
|
|
margin-bottom: $value;
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:56:03 +08:00
|
|
|
@mixin ml-mr($value) {
|
|
|
|
margin-left: $value;
|
|
|
|
margin-right: $value;
|
|
|
|
}
|
|
|
|
|
2023-03-25 02:58:58 +08:00
|
|
|
@mixin pt-pb($val) {
|
|
|
|
padding-top: $val;
|
|
|
|
padding-bottom: $val;
|
|
|
|
}
|
|
|
|
|
2020-02-25 17:56:03 +08:00
|
|
|
@mixin pl-pr($val) {
|
|
|
|
padding-left: $val;
|
|
|
|
padding-right: $val;
|
|
|
|
}
|
|
|
|
|
2023-09-09 22:38:19 +08:00
|
|
|
@mixin placeholder {
|
|
|
|
color: var(--text-muted-color) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin placeholder-focus {
|
2020-02-25 17:56:03 +08:00
|
|
|
opacity: 0.6;
|
|
|
|
}
|
2020-04-07 20:23:57 +08:00
|
|
|
|
|
|
|
@mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) {
|
|
|
|
color: $color;
|
|
|
|
font-size: $font-size;
|
|
|
|
font-weight: $font-weight;
|
|
|
|
}
|
2020-09-02 18:25:57 +08:00
|
|
|
|
|
|
|
@mixin align-center {
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
}
|
2022-01-21 17:46:01 +08:00
|
|
|
|
2024-07-04 02:21:22 +08:00
|
|
|
@mixin prompt($type, $fa-content, $fa-style: 'solid', $rotate: 0) {
|
2022-01-21 17:46:01 +08:00
|
|
|
&.prompt-#{$type} {
|
|
|
|
background-color: var(--prompt-#{$type}-bg);
|
|
|
|
|
|
|
|
&::before {
|
2022-12-08 06:08:26 +08:00
|
|
|
content: $fa-content;
|
2022-01-21 17:46:01 +08:00
|
|
|
color: var(--prompt-#{$type}-icon-color);
|
2022-12-08 06:08:26 +08:00
|
|
|
font: var(--fa-font-#{$fa-style});
|
2024-07-04 02:21:22 +08:00
|
|
|
|
|
|
|
@if $rotate != 0 {
|
|
|
|
transform: rotate(#{$rotate}deg);
|
|
|
|
}
|
2022-01-21 17:46:01 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|