krata/_sass/addon/module.scss

120 lines
1.9 KiB
SCSS
Raw Normal View History

2020-02-25 10:56:03 +01:00
/*
* Mainly scss modules, only imported to `assets/css/main.scss`
*/
2020-08-19 15:18:14 +02:00
/* ---------- scss placeholder --------- */
2020-02-25 10:56:03 +01:00
2021-04-10 19:18:19 +02:00
%heading {
color: var(--heading-color);
font-weight: 400;
font-family: 'Lato', 'Microsoft Yahei', sans-serif;
}
2020-02-25 10:56:03 +01:00
%tag-hover {
background: var(--tag-hover);
2020-02-25 10:56:03 +01:00
transition: background 0.35s ease-in-out;
}
%table-cell {
2020-08-19 15:18:14 +02:00
padding: 0.4rem 1rem;
2020-02-25 10:56:03 +01:00
font-size: 95%;
2020-12-13 18:54:29 +01:00
white-space: nowrap;
2020-02-25 10:56:03 +01:00
}
%link-hover {
2020-08-19 15:18:14 +02:00
color: #d2603a !important;
2020-02-25 10:56:03 +01:00
border-bottom: 1px solid #d2603a;
text-decoration: none;
}
%link-color {
color: var(--link-color);
2020-02-25 10:56:03 +01:00
}
2020-02-28 17:16:47 +01:00
%link-underline {
border-bottom: 1px solid var(--link-underline-color);
}
2020-02-25 10:56:03 +01:00
%no-bottom-border {
border-bottom: none;
}
%section {
2020-02-28 17:16:47 +01:00
#post-wrapper & {
line-height: 1.2;
margin-bottom: 1rem;
}
2020-02-25 10:56:03 +01:00
}
%anchor {
2020-06-02 15:18:50 +02:00
padding-top: 3.5rem;
margin-top: -2.5rem;
2020-02-25 10:56:03 +01:00
}
%cursor-pointer {
cursor: pointer;
}
2020-08-19 15:18:14 +02:00
/* ---------- scss mixin --------- */
2020-02-25 10:56:03 +01:00
@mixin no-text-decoration {
text-decoration: none;
}
@mixin sidebar-links($color: rgba(255, 255, 255, 0.5)) {
color: $color;
2020-02-25 10:56:03 +01:00
transition: color 0.35s ease-in-out;
user-select: none;
}
@mixin icon-round($diameter) {
border: 1px solid;
border-radius: 50%;
width: $diameter;
height: $diameter;
}
@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 14:23:57 +02:00
@mixin semi-bold {
font-weight: 600;
}
@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 12:25:57 +02:00
@mixin panel-label {
2020-10-27 15:08:04 +01:00
@include label(inherit);
display: block;
line-height: 1.2;
2020-10-27 15:08:04 +01:00
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-top: 0;
margin-bottom: 0;
letter-spacing: -0.02em;
}
2020-09-02 12:25:57 +02:00
@mixin align-center {
position: relative;
left: 50%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}