index-main/assets/css/base/_body.scss

138 lines
2.2 KiB
SCSS
Raw Normal View History

2025-11-04 08:33:39 +01:00
* {
margin: 0;
padding: 0;
2025-11-04 08:33:39 +01:00
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
2026-01-06 11:19:25 +01:00
scroll-behavior: smooth;
2025-11-04 08:33:39 +01:00
}
a {
color: currentColor;
2025-11-04 08:33:39 +01:00
}
button {
background: none;
outline: none;
border: none;
color: var(--color-txt);
2025-11-04 08:33:39 +01:00
}
iframe {
border: none;
2025-11-04 08:33:39 +01:00
}
body {
font-family: var(--font);
line-height: var(--leading-normal);
font-size: var(--fs-normal);
2025-11-04 08:33:39 +01:00
color: var(--color-txt);
background-color: var(--color-bg);
2025-11-04 08:33:39 +01:00
}
img {
max-width: 100%;
2026-01-06 15:43:31 +01:00
}
.link-block {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
cursor: pointer;
// &:hover{
// background-color: rgba(255, 0, 0, 0.244);
// }
2026-01-06 16:15:49 +01:00
}
.swiper-button-next,
.swiper-button-prev,
body,
#site-header,
#site-footer {
transition: background-color 0.3s ease, color 0.3s ease;
2026-01-06 17:14:32 +01:00
}
@mixin grid-content() {
display: grid;
grid-gap: var(--padding-inner);
grid-template-columns: 2fr 3fr;
position: relative;
2026-01-23 17:38:08 +01:00
}
@mixin hide-scroll() {
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
2026-01-23 17:38:08 +01:00
display: none;
}
2026-01-23 17:38:08 +01:00
}
2026-01-25 19:40:55 +01:00
2026-01-25 22:25:08 +01:00
@mixin clamp($lines) {
display: -webkit-box;
-webkit-line-clamp: $lines;
-webkit-box-orient: vertical;
overflow: hidden;
}
@mixin hover-card-line() {
border-bottom: var(--border-light);
&:first-of-type {
border-top: var(--border-light);
}
position: relative;
&::before {
content: "";
width: 100%;
border-top: 1px solid transparent;
position: absolute;
top: -1px;
left: 0;
}
2026-01-28 01:15:51 +01:00
&:not([data-impact-type="media"]) {
&:hover {
background-color: var(--grey-950);
border-color: var(--color-txt);
&::before {
2026-01-28 01:15:51 +01:00
border-color: var(--color-txt);
}
2026-01-28 01:15:51 +01:00
}
}
2026-01-28 01:15:51 +01:00
}
@mixin pin() {
.pin {
z-index: 90;
width: 18px;
height: 18px;
transform: rotate(45deg);
transform-origin: center;
svg {
width: 100%;
height: 100%;
fill: var(--color-txt);
2026-02-09 13:50:20 +01:00
}
}
2026-02-09 13:50:20 +01:00
}
@mixin icon($size) {
.icon {
display: flex;
width: $size;
height: $size;
svg {
width: $size;
height: $size;
2026-02-20 14:09:25 +01:00
}
}
2026-02-20 14:09:25 +01:00
}
2026-01-25 19:40:55 +01:00
body.menu-open,
body.is-hidden {
overflow-y: hidden;
2026-01-25 19:40:55 +01:00
}