libreavous/squelettes/scss/base/_typo.scss

147 lines
3.0 KiB
SCSS
Raw Normal View History

2021-02-09 08:03:46 +01:00
/* Font Awesome */
.fas {
font-family:Fontawesome-s;
color:$couleurPrincipale;
}
.fab {
font-family:Fontawesome-b;
color:$couleurPrincipale;
}
/* autres */
$typo-labeur: 'Lato', sans-serif;
$typo-titre: 'Metropolis', sans-serif;
$typo-texte: $typo-labeur;
$couleur-titres: $couleurPrincipale;
$couleur-lien: $couleurPrincipale;
2021-02-09 08:03:46 +01:00
body {
$_computed_bfs: strip-unit($body-font-size) / strip-unit($_base-font-size);
font-size: $_computed_bfs * (14/strip-unit($body-font-size))*1em;
@include media($bp-small-up) {
font-size: $_computed_bfs * (15/strip-unit($body-font-size))*1em;
}
@include media($bp-medium-up) {
font-size: $_computed_bfs * (16/strip-unit($body-font-size))*1em;
}
@include media($bp-large-up) {
font-size: $_computed_bfs*1em;
}
font-family: $typo-texte;
font-weight: 200;
2021-02-09 08:03:46 +01:00
line-height: $typo-line-height;
color: $couleurPrincipale;
2021-02-09 08:03:46 +01:00
text-rendering: geometricPrecision;
}
html.rtl * {
// pas d'italique pour les langues RTL
font-style: normal !important;
}
a {
2021-06-21 10:00:24 +02:00
border-bottom:1px solid $couleurSecondaireClaire;
text-decoration:none;
&.spip_out {
color: $couleurTertiaire;
2021-06-21 10:00:24 +02:00
border:0;
font-weight:700;
&:hover, &:focus {
color:$couleurPrincipaleOn;
border-color:$couleurPrincipaleOn;
}
}
2021-02-09 08:03:46 +01:00
&:hover, &:focus {
text-decoration: none;
2021-02-09 08:03:46 +01:00
color: $couleur-lien-hover;
border-color: $couleur-lien-hover;
outline: 0;
}
/* &:focus {
background-color: $couleur-lien !important;
border-color: $couleur-lien !important;
color: white !important;
text-shadow: none !important;
transition: all 0s !important;
svg * {
//fill: white !important;
}
}*/
2021-09-03 09:08:35 +02:00
.sociaux &, .pagination & {
border:0;
}
2021-02-09 08:03:46 +01:00
}
.nav.principale {
font-family:$typo-labeur;
2021-02-09 08:03:46 +01:00
}
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
2021-03-11 16:29:35 +01:00
h6, .h6,
.surtitre {
2021-02-09 08:03:46 +01:00
font-family: $typo-titre;
font-weight: 700;
2021-02-09 08:03:46 +01:00
line-height: 1.2;
font-style: normal;
color: $couleur-titres;
2021-09-10 12:36:03 +02:00
margin: 1.2em 0 0.3em 0;
2021-02-09 08:03:46 +01:00
letter-spacing: 0.02em;
a:link, a:visited {
/*color: $couleur-titres;*/
}
a:hover {
color: $couleur-lien-hover;
}
}
h1, .h1 {
font-size: em(35px);
2021-02-09 08:03:46 +01:00
@include media($bp-medium-up) {
font-size: em(50px);
2021-02-09 08:03:46 +01:00
}
}
h2, .h2 {
font-size: em(22px);
@include media($bp-medium-up) {
font-size: em(26px);
}
}
h3, .h3 {
font-size: em(20px);
@include media($bp-medium-up) {
font-size: em(23px);
}
}
h4, .h4 {
font-size: em(18px);
@include media($bp-medium-up) {
font-size: em(20px);
}
}
h5, .h5,
h6, .h6 {
@include media($bp-medium-up) {
font-size: em(18px);
}
}
::selection {
color: white !important;
background: darken($couleur-lien, 10%) !important;
text-shadow: none !important;
transition: all 0s !important;
}