web/_sass/abstracts/_placeholders.scss

161 lines
2.4 KiB
SCSS
Raw Normal View History

@use 'variables' as v;
@use 'mixins' as mx;
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: v.$font-family-heading;
scroll-margin-top: 3.5rem;
2021-04-10 20:18:19 +03:00
}
2021-12-05 21:40:51 +03:00
%anchor {
.anchor {
font-size: 80%;
2021-12-05 21:40:51 +03:00
}
2021-12-09 15:45:20 +03:00
@media (hover: hover) {
.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 {
.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 {
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 {
2023-03-24 21:58:58 +03:00
transition: all 0.3s ease-in-out;
2021-09-21 13:00:29 +03:00
}
%no-cursor {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
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;
}
%rounded {
border-radius: v.$radius-lg;
}
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: var(--sidebar-muted-color);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
2022-01-21 12:46:01 +03:00
user-select: none;
}
%text-clip {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
2024-10-20 08:47:54 +03:00
%text-ellipsis {
@include mx.text-ellipsis;
2024-10-20 08:47:54 +03:00
}
%text-highlight {
color: var(--text-muted-highlight-color);
font-weight: 600;
}
2023-10-07 23:40:16 +03:00
%text-sm {
font-size: 0.85rem;
}
2023-10-07 23:40:16 +03:00
%text-xs {
font-size: 0.8rem;
}
%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;
}
}
%btn-color {
button i {
color: #999999;
}
}
%code-snippet-bg {
background-color: var(--highlight-bg-color);
}
%code-snippet-padding {
padding-left: 1rem;
padding-right: 1.5rem;
2020-02-25 12:56:03 +03:00
}
%max-w-100 {
max-width: 100%;
2022-01-21 12:46:01 +03:00
}
%panel-border {
border-left: 1px solid var(--main-border-color);
}