Files
nhgooi.nl/resources/assets/sass/abstracts/_mixin.scss
T
2026-11-19 16:11:52 +01:00

92 lines
1.6 KiB
SCSS
Vendored

@use "variables" as *;
@mixin container {
max-width: 1170px;
margin: 0 auto;
}
@mixin reset-list {
margin: 0;
padding: 0;
list-style: none;
}
@mixin font_base {
font-family: var(--font-base);
font-weight: 500;
line-height: 3.17;
letter-spacing: normal;
text-align: left;
}
@mixin font_normal {
@include font_base;
font-size: 14px;
}
@mixin font_small {
@include font_base;
font-size: 12px;
}
@mixin post_date {
@include font_small;
color: $text-secondary-color;
display: block;
height: 30px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
text-transform: uppercase;
}
@mixin read_more_link {
font-family: var(--font-base);
font-size: 14px;
font-weight: 500;
line-height: 1.57;
color: $primary;
font-weight: 700;
text-transform: uppercase;
}
@mixin program_name {
@include font_small;
color: $dark;
margin-right: 10px;
text-decoration: none;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
@mixin sub_title {
width: 100%;
display: flex;
.program_name {
@include program_name;
}
.post_date {
@include post_date;
}
}
@mixin btn-base {
display: block;
width: calc(100% - 48px);
padding: 5px 24px;
border-radius: 999px;
background-color: var(--brand-accent);
font-family: var(--font-base);
font-size: 12px;
font-weight: 700;
line-height: 1.2;
text-align: center;
color: $gold;
margin-bottom: 10px;
text-decoration: none;
text-transform: uppercase;
border: none;
&:hover,
&:active {
color: $gold;
filter: brightness(.92);
}
}