carhop__carhop-theme__DEV/resources/css/base/typography.css
2025-10-16 11:42:56 +02:00

86 lines
2.0 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
body .editor-visual-editor,
body.front-end {
font-family: 'Nunito Sans', sans-serif;
@apply text-carhop-gray text-lg;
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Fjalla One', sans-serif;
@apply text-primary;
}
h1 {
@apply text-5xl;
}
h2 {
@apply text-4xl;
line-height: 1.2;
}
}
p,
li {
@apply font-light;
line-height: 1.6;
}
.wp-block-post-title,
.wp-block-heading {
@apply pb-4;
}
/* body.wp-admin h1:not(.editor-visual-editor h1),
body.wp-admin h2:not(.editor-visual-editor h2),
body.wp-admin h3:not(.editor-visual-editor h3),
body.wp-admin h4:not(.editor-visual-editor h4),
body.wp-admin h5:not(.editor-visual-editor h5),
body.wp-admin h6:not(.editor-visual-editor h6) {
font-family: initial !important;
font-style: initial !important;
font-size: initial !important;
line-height: initial !important;
letter-spacing: initial !important;
text-transform: initial !important;
text-align: initial !important;
} */
.nunito {
font-family: 'Nunito Sans', sans-serif;
}
.fjalla {
font-family: 'Fjalla One', sans-serif;
}
body :is(h1, h2, h3, h4, h5, h6).title-small {
@apply text-lg mb-6 font-bold tracking-wider uppercase nunito;
}
.title-small {
@apply text-lg mb-6 !font-bold !tracking-wider !uppercase nunito;
}
.title-small-important {
@apply !text-2xl !mb-6 !font-medium !tracking-wider !uppercase;
font-family: 'Nunito Sans', sans-serif !important;
}
/* Règles pour surcharger les styles par défaut des titres */
h2.title-small,
h2.title-small-important,
h2.chapter-section__title {
font-family: 'Nunito Sans', sans-serif !important;
}
.subtitle-big {
@apply text-4xl md:text-5xl font-normal uppercase fjalla pb-6;
line-height: 1.2;
@screen lg {
line-height: 1.3;
}
/* text-rendering: geometricPrecision; */
font-weight: 400 !important;
}