xarxaprod-wp-theme/sass/base/typography/_headings.scss

162 lines
2.8 KiB
SCSS
Raw Normal View History

2024-01-09 16:13:20 +01:00
@media screen {
h1,
h2,
h3,
h4,
2024-01-10 17:26:45 +01:00
h5,
h6,
.h1,.h2,.h3,.h4,.h5,.h6{
2024-01-09 16:13:20 +01:00
clear: both;
line-height: $font__line-height-header;
}
h1,.h1 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*1.8;
&.small {
font-size: $font__size-body*1.5;
}
2024-01-09 16:13:20 +01:00
}
h2,.h2 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*1.5;
&.small {
font-size: $font__size-body*1.2;
}
2024-01-09 16:13:20 +01:00
}
h3,.h3 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*1.3;
&.small {
font-size: $font__size-body*1;
}
2024-01-09 16:13:20 +01:00
}
h4,.h4 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*1.2;
2024-02-23 11:53:50 +01:00
font-weight: 500;
&.small {
font-size: $font__size-body*0.9;
}
2024-01-09 16:13:20 +01:00
}
h5,.h5 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*1.1;
2024-02-23 11:53:50 +01:00
font-weight: 500;
&.small {
font-size: $font__size-body*0.8;
}
2024-01-09 16:13:20 +01:00
}
h6,.h6 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*1.1;
2024-02-23 11:53:50 +01:00
font-weight: 100;
&.small {
font-size: $font__size-body*0.8;
}
2024-01-09 16:13:20 +01:00
}
.site-main {
h1,
h2,
h3,
h4,
h5,
h6,
.h1,.h2,.h3,.h4,.h5,.h6,
2024-01-09 16:13:20 +01:00
.entry-content {
margin: 0;
}
}
.single {
h1,.h1 {
2024-01-09 16:13:20 +01:00
font-family: $font__black;
}
}
.home-featured {
h2,.h2 {
2024-01-09 16:13:20 +01:00
margin: 1.2rem 0;
font-size: $font__size-body*2;
line-height: 1.2;
border-bottom: 0.6rem solid $color__black;
}
}
/* used in
* ./template-parts/section-agenda.php
* ./template-parts/section-last-convos.php
* */
section.agenda,
section.last-convos {
h2 a::after {
display: inline-block;
font-size: 0.4em;
color: white;
background-color: black;
padding: 0.4em;
float: right;
}
}
[lang="ca"] section.agenda h2 a::after {
content: "Verure totes les activitas";
}
[lang*="es"] section.agenda h2 a::after {
content: "Ver todas las actividades";
}
[lang="ca"] section.last-convos h2 a::after {
content: "Verure totes les convocatories";
}
[lang*="es"] section.last-convos h2 a::after {
content: "Ver todas las convocatorias";
}
2024-01-09 16:13:20 +01:00
}
@media screen and (min-width: 48em) {
h1,.h1 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*3.5;
}
h2,.h2 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*2.5;
}
h3,.h3 {
font-size: $font__size-body*1.5;
2024-01-09 16:13:20 +01:00
}
h4,.h4 {
2024-01-09 16:13:20 +01:00
font-family: $font__black;
font-size: $font__size-body*1.3;
2024-01-09 16:13:20 +01:00
}
h5,.h5 {
font-size: $font__size-body*1.3;
}
h6,.h6 {
font-size: $font__size-body*1.3;
}
.home-featured {
h2,.h2 {
font-size: $font__size-body*3.5;
border-bottom: 0.8rem solid $color__black;
}
}
}
@media screen and (min-width: 1440px) {
h1,.h1 {
font-size: $font__size-body*3.5;
}
h2,.h2 {
font-size: $font__size-body*2.5;
}
h3,.h3 {
font-size: $font__size-body*1.6;
}
h4,.h4 {
font-family: $font__black;
font-size: $font__size-body*1.4;
}
h5,.h5 {
font-size: $font__size-body*1.4;
}
h6,.h6 {
font-size: $font__size-body*1.4;
2024-01-09 16:13:20 +01:00
}
.home-featured {
h2,.h2 {
2024-01-09 16:13:20 +01:00
font-size: $font__size-body*3.5;
border-bottom: 0.8rem solid $color__black;
}
}
}
@media screen and (min-width: 80em) {
}