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

212 lines
3.7 KiB
SCSS

@media screen {
h1,
h2,
h3,
h4,
h5,
h6,
.h1,.h2,.h3,.h4,.h5,.h6{
clear: both;
margin-top: 0;
margin-bottom: 0;
line-height: $font__line-height-header;
}
h1,.h1 {
font-size: $font__size-body*1.8;
&.small {
font-size: $font__size-body*1.5;
}
}
h2,.h2 {
font-size: $font__size-body*1.5;
&.small {
font-size: $font__size-body*1.2;
}
}
h3,.h3 {
font-size: $font__size-body*1.3;
&.small {
font-size: $font__size-body*1;
}
}
h4,.h4 {
font-size: $font__size-body*1.2;
&.small {
font-size: $font__size-body*0.9;
}
}
h5,.h5 {
font-size: $font__size-body*1.1;
font-weight: 500;
&.small {
font-size: $font__size-body*0.9;
}
}
h6,.h6 {
font-size: $font__size-body*1;
font-weight: 100;
&.small {
font-size: $font__size-body*0.8;
}
}
.small {
h1,.h1 {
font-size: $font__size-body*1.5;
}
h2,.h2 {
font-size: $font__size-body*1.2;
}
h3,.h3 {
font-size: $font__size-body*1;
}
h4,.h4 {
font-size: $font__size-body*0.9;
}
h5,.h5 {
font-size: $font__size-body*0.9;
}
h6,.h6 {
font-size: $font__size-body*0.8;
}
}
.big {
h1,.h1 {
font-size: $font__size-body*2.2;
}
h2,.h2 {
font-size: $font__size-body*2;
}
h3,.h3 {
font-size: $font__size-body*1.6;
}
h4,.h4 {
font-size: $font__size-body*1.4;
}
h5,.h5 {
font-size: $font__size-body*1.2;
}
h6,.h6 {
font-size: $font__size-body*1.1;
}
}
//.site-main {
// h1,h2,h3,h4,h5,h6,
// .h1,.h2,.h3,.h4,.h5,.h6 {
// margin: 0;
// }
//}
.archive,.category {
.page-header {
text-transform: capitalize;
}
}
.home-featured {
h2,.h2 {
margin: 1.2rem 0;
font-size: $font__size-body*2;
line-height: 1.2;
border-bottom: $border__line;
//border-bottom: 0.6rem solid $color__black;
}
}
/* entry content */
.entry-content h6 {
padding: 0.5em 0;
}
/*
* big lletters block below titles
* */
.xarxaprod-intro {
// h1,h2,h3,h4,h5,h6,
//.h1,.h2,.h3,.h4,.h5,.h6 {
// margin: 0;
//}
h1 {}
h2 {}
h3 {
font-size: $font__size-body*2.3;
}
h4 {
font-size: $font__size-body*2.1;
}
h5 {
font-size: $font__size-body*1.8;
}
h6 {
font-size: $font__size-body*1.6;
padding: 0;
}
}
/* used in
* ./template-parts/section-agenda.php
* ./template-parts/section-last-convos.php
* */
section.agenda,
section.last-convos {
h2 a {
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: space-between;
&::after {
display: inline-block;
align-self: center;
//justify-self: center;
font-size: 0.8rem;
color: $color__white;
background-color: $color__black;
padding: 0.6em 0.8em;
}
}
}
[lang="ca"] section.agenda h2 a::after {
content: "Veure totes les activitas";
}
[lang*="es"] section.agenda h2 a::after {
content: "Ver todas las actividades";
}
[lang="ca"] section.last-convos h2 a::after {
content: "Veure totes les convocatories";
}
[lang*="es"] section.last-convos h2 a::after {
content: "Ver todas las convocatorias";
}
}
@media screen and (min-width: 48em) {
h1,.h1 {
font-size: $font__size-body*3;
}
h2,.h2 {
font-size: $font__size-body*2.5;
}
h3,.h3 {
font-size: $font__size-body*1.4;
}
h4,.h4 {
font-size: $font__size-body*1.3;
}
h5,.h5 {
font-size: $font__size-body*1.2;
}
h6,.h6 {
font-size: $font__size-body*1;
}
.home-featured {
h2,.h2 {
font-size: $font__size-body*3.5;
//border-bottom: 0.8rem solid $color__black;
border-bottom: $border__line;
}
}
}
@media screen and (min-width: 1440px) {
}
@media screen and (min-width: 80em) {
}