refactor font-family styles to avoid unecessary diplicities (#983)

This commit is contained in:
Murilo Brito 2025-08-17 09:37:39 -03:00 committed by GitHub
parent 2820c96259
commit 96d26a1e5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
69 changed files with 220 additions and 246 deletions

View file

@ -44,3 +44,73 @@
gap: @gap;
align-items: center;
}
/**
* Apply default typography styles.
*/
.dh-typography() {
h1 {
font-family: @font-title;
margin: 0;
border: none;
font-weight: normal;
}
h1 input[type='text'] {
font-family: @font-title;
}
h2,
h3 {
font-family: @font-subtitle;
margin: 0;
border: none;
font-weight: normal;
}
h4 {
font-family: @font-body;
font-size: 14px;
border: none;
font-weight: 700;
margin: 0;
text-shadow: none;
font-weight: normal;
}
h5 {
font-family: @font-body;
font-size: 14px;
margin: 0;
font-weight: normal;
}
p,
span,
textarea,
label,
select,
multi-select .tags .tag,
table,
fieldset legend,
input[type='text'],
input[type='number'],
input[type='search'],
.tagify__dropdown,
li {
font-family: @font-body;
}
button span {
font-weight: bold;
}
small {
font-family: @font-body;
opacity: 0.8;
}
nav a {
font-family: @font-body;
}
}