gnosis-css/css/scss/bootstrap/_typography.scss

103 lines
1.8 KiB
SCSS
Raw Normal View History

2024-05-28 13:11:00 +02:00
%heading {
margin-top: 0; // 1
2024-06-12 19:31:18 +02:00
margin-bottom: 0.25em;
2024-05-28 13:11:00 +02:00
font-family: $headings-font-family;
font-optical-sizing: auto;
font-style: $headings-font-style;
color: var(--#{$prefix}heading-color);
}
a {
color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, 1));
text-decoration: $link-decoration;
text-underline-offset: 0.25rem;
text-decoration-thickness: 2px;
&:hover {
--#{$prefix}link-color-rgb: var(--#{$prefix}link-hover-color-rgb);
text-decoration: $link-hover-decoration;
}
}
h1 {
@extend %heading;
@include font-size($h1-font-size);
2024-06-12 19:31:18 +02:00
font-weight: $headings-font-bold;
2024-05-28 13:11:00 +02:00
line-height: 1.48;
}
h2 {
@extend %heading;
@include font-size($h2-font-size);
2024-06-12 19:31:18 +02:00
font-weight: $headings-font-bold;
2024-05-28 13:11:00 +02:00
line-height: 1.5;
}
h3 {
@extend %heading;
@include font-size($h3-font-size);
2024-06-12 19:31:18 +02:00
font-weight: $headings-font-bold;
2024-05-28 13:11:00 +02:00
line-height: 1.52;
}
h4 {
@extend %heading;
@include font-size($h4-font-size);
2024-06-12 19:31:18 +02:00
font-weight: $headings-font-medium;
2024-05-28 13:11:00 +02:00
line-height: 1.5;
}
h5 {
@extend %heading;
@include font-size($h5-font-size);
2024-06-12 19:31:18 +02:00
font-weight: $headings-font-medium;
2024-05-28 13:11:00 +02:00
line-height: 1.5;
}
h6 {
@extend %heading;
@include font-size($h6-font-size);
2024-06-12 19:31:18 +02:00
font-weight: $headings-font-medium;
2024-05-28 13:11:00 +02:00
line-height: 1.52;
}
p {
2024-06-12 19:31:18 +02:00
text-wrap: balance;
2024-05-28 13:11:00 +02:00
max-width: 80ch;
}
.alternative {
font-family: $display-font-family;
line-height: 1.1;
font-weight: 500;
font-size: 21px;
}
2024-06-12 19:31:18 +02:00
p.first-paragraph {
font-size: 1.125em;
}
p.first-paragraph:first-line {
color: var(--#{$prefix}primary);
text-transform: uppercase;
font-size: 0.85em;
font-weight: bold;
}
[data-#{$prefix}theme='dark'] {
p.first-paragraph:first-line {
color: var(--#{$prefix}primary-text-emphasis);
}
}
@include media-breakpoint-down(lg) {
p.first-paragraph br {
display: none;
}
}
smaller,
.smaller {
@include rfs($smaller-font-size, --#{$prefix}smaller-font-size);
font-size: $smaller-font-size;
}