web/_sass/addon/module.scss

134 lines
2.1 KiB
SCSS
Raw Normal View History

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;
font-family: 'Lato', 'Microsoft Yahei', sans-serif;
}
2021-12-05 21:40:51 +03:00
%section {
padding-top: 3.5rem;
margin-top: -2.5rem;
#core-wrapper & {
line-height: 1.2;
margin-bottom: 1rem;
}
}
%anchor {
> a {
font-size: 70%;
visibility: hidden;
margin-left: 0.25rem;
border-bottom: none !important;
opacity: 0;
transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
}
&:hover {
> a {
visibility: visible;
opacity: 1;
transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
}
}
}
%anchor-relative {
@extend %anchor;
> a {
position: relative;
bottom: 1px;
}
}
2020-02-25 12:56:03 +03:00
%tag-hover {
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 {
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;
}
%no-cursor {
user-select: none;
}
2020-02-25 12:56:03 +03:00
%no-bottom-border {
border-bottom: none;
}
%cursor-pointer {
cursor: pointer;
}
%normal-font-style {
font-style: normal;
}
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;
}
2021-09-21 17:37:28 +03:00
%sidebar-links {
color: rgba(117, 117, 117, 0.9);
2020-02-25 12:56:03 +03:00
user-select: none;
}
@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%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}