2020-02-25 12:56:03 +03:00
|
|
|
/*
|
|
|
|
* Mainly scss modules, only imported to `assets/css/main.scss`
|
|
|
|
*/
|
|
|
|
|
2020-08-19 16:18:14 +03:00
|
|
|
/* ---------- scss placeholder --------- */
|
2020-02-25 12:56:03 +03:00
|
|
|
|
2021-04-10 20:18:19 +03:00
|
|
|
%heading {
|
|
|
|
color: var(--heading-color);
|
|
|
|
font-weight: 400;
|
2023-04-16 20:31:49 +03:00
|
|
|
font-family: $font-family-heading;
|
2021-04-10 20:18:19 +03:00
|
|
|
}
|
|
|
|
|
2021-12-05 21:40:51 +03:00
|
|
|
%section {
|
|
|
|
#core-wrapper & {
|
2021-12-08 11:53:48 +03:00
|
|
|
margin-top: 2.5rem;
|
2022-02-13 14:19:01 +03:00
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
|
|
|
|
&:focus {
|
2022-02-14 18:18:24 +03:00
|
|
|
outline: none; /* avoid outline in Safari */
|
2022-02-13 14:19:01 +03:00
|
|
|
}
|
2021-12-05 21:40:51 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%anchor {
|
2021-12-30 10:57:02 +03:00
|
|
|
.anchor {
|
2022-02-13 14:19:01 +03:00
|
|
|
font-size: 80%;
|
2021-12-05 21:40:51 +03:00
|
|
|
}
|
|
|
|
|
2021-12-09 15:45:20 +03:00
|
|
|
@media (hover: hover) {
|
2021-12-30 10:57:02 +03:00
|
|
|
.anchor {
|
2021-12-09 15:45:20 +03:00
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-12-30 10:57:02 +03:00
|
|
|
.anchor {
|
2021-12-09 15:45:20 +03:00
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
|
|
|
|
}
|
2021-12-05 21:40:51 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
%tag-hover {
|
2020-02-27 16:05:50 +03:00
|
|
|
background: var(--tag-hover);
|
2020-02-25 12:56:03 +03:00
|
|
|
transition: background 0.35s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
%table-cell {
|
2020-08-19 16:18:14 +03:00
|
|
|
padding: 0.4rem 1rem;
|
2020-02-25 12:56:03 +03:00
|
|
|
font-size: 95%;
|
2020-12-13 20:54:29 +03:00
|
|
|
white-space: nowrap;
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
%link-hover {
|
2020-08-19 16:18:14 +03:00
|
|
|
color: #d2603a !important;
|
2020-02-25 12:56:03 +03:00
|
|
|
border-bottom: 1px solid #d2603a;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
%link-color {
|
2020-02-27 16:05:50 +03:00
|
|
|
color: var(--link-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
|
2020-02-28 19:16:47 +03:00
|
|
|
%link-underline {
|
|
|
|
border-bottom: 1px solid var(--link-underline-color);
|
|
|
|
}
|
|
|
|
|
2021-09-21 13:00:29 +03:00
|
|
|
%clickable-transition {
|
|
|
|
transition: color 0.35s ease-in-out;
|
|
|
|
}
|
|
|
|
|
2021-11-02 12:54:36 +03:00
|
|
|
%no-cursor {
|
2022-10-21 16:34:41 +03:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
2023-03-18 01:28:44 +03:00
|
|
|
-ms-user-select: none;
|
2021-11-02 12:54:36 +03:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
%no-bottom-border {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2021-09-17 11:58:32 +03:00
|
|
|
%cursor-pointer {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-12-04 01:56:33 +03:00
|
|
|
%normal-font-style {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2022-12-20 11:04:39 +03:00
|
|
|
%rounded {
|
|
|
|
border-radius: 6px;
|
2022-12-13 16:41:32 +03:00
|
|
|
}
|
|
|
|
|
2022-01-12 20:07:47 +03:00
|
|
|
%img-caption {
|
|
|
|
+ em {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
font-style: normal;
|
|
|
|
font-size: 80%;
|
|
|
|
padding: 0;
|
|
|
|
color: #6d6c6c;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-21 12:46:01 +03:00
|
|
|
%sidebar-links {
|
|
|
|
color: rgba(117, 117, 117, 0.9);
|
2022-10-21 16:34:41 +03:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
2023-03-18 01:28:44 +03:00
|
|
|
-ms-user-select: none;
|
2022-01-21 12:46:01 +03:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2023-03-18 01:28:44 +03:00
|
|
|
%text-clip {
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
2020-08-19 16:18:14 +03:00
|
|
|
/* ---------- scss mixin --------- */
|
2020-02-25 12:56:03 +03:00
|
|
|
|
|
|
|
@mixin no-text-decoration {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-12-13 16:41:32 +03:00
|
|
|
@mixin mt-mb($value) {
|
|
|
|
margin-top: $value;
|
|
|
|
margin-bottom: $value;
|
|
|
|
}
|
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
@mixin ml-mr($value) {
|
|
|
|
margin-left: $value;
|
|
|
|
margin-right: $value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin pl-pr($val) {
|
|
|
|
padding-left: $val;
|
|
|
|
padding-right: $val;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin input-placeholder {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
2020-04-07 15:23:57 +03: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 13:25:57 +03:00
|
|
|
|
|
|
|
@mixin align-center {
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
}
|
2022-01-21 12:46:01 +03:00
|
|
|
|
2023-03-15 22:36:52 +03:00
|
|
|
@mixin prompt($type, $fa-content, $fa-style: 'solid') {
|
2022-01-21 12:46:01 +03:00
|
|
|
&.prompt-#{$type} {
|
|
|
|
background-color: var(--prompt-#{$type}-bg);
|
|
|
|
|
|
|
|
&::before {
|
2022-12-08 01:08:26 +03:00
|
|
|
content: $fa-content;
|
2022-01-21 12:46:01 +03:00
|
|
|
color: var(--prompt-#{$type}-icon-color);
|
2022-12-08 01:08:26 +03:00
|
|
|
font: var(--fa-font-#{$fa-style});
|
2022-01-21 12:46:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|