librealire/squelettes/scss/styles/_perso.scss

372 lines
6.4 KiB
SCSS
Raw Normal View History

2020-05-22 10:36:20 +02:00
/* les surcharges de chaque site dans un plugin indépendant */
2020-05-28 00:34:37 +02:00
@mixin gradient-4 ($couleur1: #007682,$couleur2: $couleurConnex 7.5%,$couleur3: $couleurConnex 92.5%,$couleur4: #007884) {
background: -webkit-linear-gradient($couleur1,$couleur2,$couleur3,$couleur4);
background: -moz-linear-gradient($couleur1,$couleur2,$couleur3,$couleur4);
background: -ms-linear-gradient($couleur1,$couleur2,$couleur3,$couleur4);
background: -o-linear-gradient($couleur1,$couleur2,$couleur3,$couleur4);
2020-05-22 10:36:20 +02:00
}
2020-05-27 01:16:39 +02:00
2020-05-28 00:34:37 +02:00
2020-10-07 19:01:29 +02:00
@mixin bouton($clair:#fff, $sombre:$couleurPrincipale) {
$couleurSaturate : saturate($clair, 45%);
$couleurSaturateLight : lighten($couleurSaturate, 10%);
display: inline-block;
line-height: 1.2;
background-color: $clair;
border: none;
border-radius: 0;
box-shadow: none;
text-align: center;
color: $sombre;
transition: background 0.3s;
cursor: pointer;
font-family:$typo-Merriweather;
padding:0;
&.plein {
border-radius:($spacer/4);
background:$sombre;
color:$clair;
font-weight:700;
padding: ($spacer/2) $spacer;
.fas {
&:before {
color:$clair;
}
}
}
&:before {
content:'...';
display:inline-block;
margin: 0 -1em 0 0;
font-size: 1.2rem;
float: left;
line-height: 1.6;
color: red;
}
&.plein:before {
display:none;
}
&:hover {
background-color: darken($clair,15%);
text-decoration: none;
color: $sombre;
}
&:focus {
background-color: $couleurSaturateLight !important;
text-decoration: none;
color: $sombre;
}
&[disabled=disabled] {
background: desaturate($clair, 45%);
color: darken($sombre, 10%) !important;
}
.fas {
padding-left:em(12px);
float:right;
&:before {
font-size:em(22px);
line-height:1;
font-weight:700;
color: $sombre;
}
}
&:hover .fas:before {
color: $sombre;
}
&:focus .fas:before {
color: $sombre;
}
}
//
// modele bouton
//
.btn {
@include bouton(transparent,$couleurPrincipale);
&.plein {
@include bouton(#fff,$couleurPrincipale);
}
&.right {
float:right;
margin-left:$spacer;
}
&.left {
float:left;
margin-right:$spacer;
}
}
2020-05-28 00:34:37 +02:00
/* blocs */
.page_connex {
2020-05-27 01:16:39 +02:00
background:$couleurConnex;
2020-05-28 00:34:37 +02:00
@include gradient-4();
color:#fff;
padding:($spacer*1.5) 0;
}
.page_footer {
.page_connexplus {
padding:($spacer*1.5) 0;
background:$couleurConnexplus;
color:#000;
margin-bottom:($spacer*1.5);
2020-06-30 18:55:43 +02:00
.liste.mots {
display:flex;
flex-wrap:wrap;
> ul {
width:25%;
margin:0;
list-style:none;
2020-06-30 22:21:08 +02:00
@include media($bp-small) {
width:50%;
}
2020-06-30 18:55:43 +02:00
}
2020-06-30 22:26:33 +02:00
li {
margin: 0 0 0.2em;
a {
line-height:1.1;
}
}
2020-06-30 18:55:43 +02:00
}
2020-05-28 00:34:37 +02:00
}
2020-05-27 01:16:39 +02:00
2020-05-28 00:34:37 +02:00
padding-top:0;
.formulaire_spip.formulaire_recherche {
2020-10-07 19:01:29 +02:00
display:none;// pour ne pas surcharger tout le footer
2020-05-28 00:34:37 +02:00
}
2020-05-27 01:16:39 +02:00
}
2020-09-16 10:40:27 +02:00
2020-10-07 19:01:29 +02:00
// layout
.page_content {
margin-bottom:$spacer*2;
}
2020-09-16 10:40:27 +02:00
// page sommaire
.texte_accueil {
2020-10-07 19:01:29 +02:00
line-height: 1.6;
2020-09-16 10:40:27 +02:00
margin-bottom:$spacer;
2020-09-16 15:33:09 +02:00
margin-left:$spacer;
2020-09-16 10:40:27 +02:00
font-family:$typo-Merriweather;
2020-09-16 15:33:09 +02:00
font-weight:200;
color:$couleurPrincipale;
2020-10-07 19:01:29 +02:00
@include clearfix();
.main {
max-width: 65%;
font-size: 1.6rem;
float:left;
padding:$spacer $spacer*1.5;
}
aside {
width:35%;
float:right;
}
}
.formulaire_spip.formulaire_recherche {
font-size:1rem;
2020-09-16 10:40:27 +02:00
}
2020-09-16 15:33:09 +02:00
// resume
.article-resume {
display:block;
border-left:solid $couleurConnexplus ($spacer/3);
background-color:$couleurBkgT;
2020-10-07 19:01:29 +02:00
padding:($spacer*2.5) $spacer $spacer ($spacer*3.2);
2020-09-16 15:33:09 +02:00
&, a {
color:#0a4756;
}
&:after {
content:'';
display:block;
clear:both;
}
2020-10-07 19:01:29 +02:00
.article-resume__titre {
font-size: 2rem;
line-height: 1.6;
}
.article-resume__soustitre {
font-weight:700;
margin:0;
}
2020-09-16 15:33:09 +02:00
.article-resume__logo {
float:right;
2020-10-07 19:01:29 +02:00
margin:-($spacer*1.5) 0 0 ($spacer * 1.5);
2020-09-16 15:33:09 +02:00
max-width:30%;
width:auto;
}
.article-resume__date {
position:absolute;
top:$spacer;
left:($spacer*2);
2020-10-07 19:01:29 +02:00
@include media($bp-medium-up) {
left:($spacer*4);
}
2020-09-16 15:33:09 +02:00
&:before {
display:none;
}
}
.article-auteurs {
font-size:110%;
font-weight:700;
}
}
// composition
.composition_transcriptions {
.page_content {
margin-right:0;
article {
2020-10-07 19:01:29 +02:00
padding:($spacer*2.5) ($spacer*2) $spacer;
background-color:$couleurBkgT;
2020-10-07 19:01:29 +02:00
border-radius:0 0 6px 6px;
@include media($bp-medium-up) {
padding:($spacer*2.5) ($spacer*4) $spacer;
}
.avertissement {
background:$couleurBkgAvertissement;
margin-bottom:-$spacer;
margin-top:0;
border-radius:0 0 6px 6px;
}
&.import {
.main {
.strong_to_dl {
@include clearfix;
&:first-of-type:before {
content:'Média dorigine';
display:block;
@extend .h2;
}
dt {
clear:both;
float:left;
margin-right:$spacer/2;
}
dd {
margin:0;
}
}
}
}
}
.liste_articles article {
padding:($spacer*2.5) $spacer $spacer ($spacer*2);
@include media($bp-medium-up) {
2020-10-07 19:01:29 +02:00
padding:($spacer*2.5) $spacer $spacer ($spacer*4);
}
}
}
}
2020-10-07 19:01:29 +02:00
.article__transcription_origine, .avertissement, .strong_to_dl {
/* width:100%; */
2020-10-07 19:01:29 +02:00
margin:($spacer*2) -($spacer*2) 0;
padding:$spacer ($spacer*2);
background:$couleurBkgTOrigine;
color:$couleurTDetails;
@include media($bp-medium-up) {
2020-10-07 19:01:29 +02:00
margin:($spacer*2) -($spacer*4) 0;
padding:$spacer ($spacer*4);
}
dt {
float:left;
margin-right:($spacer/2);
}
dd {
margin:0;
border-bottom:1px solid $couleurBkgT;
&:last-child {
border:0;
2020-09-16 15:33:09 +02:00
}
}
}
2020-10-02 17:54:14 +02:00
.cartouche {
.spip_logo {
float:right;
}
}
2020-09-16 15:33:09 +02:00
2020-10-07 19:01:29 +02:00
// article
.article__soustitre {
display:block;
font-size:1rem;
}
.nav-sommaire {
border:0;
margin:($spacer*2) 0;
.sommaire_titre {
font-size:0.8rem;
@include bouton(#9dccd1,$couleurPrincipale);
&.plein {
border-radius:0;
}
&:hover, &:hover .fas {
color:darken($couleurPrincipale,10%);
}
}
> ul {
}
}
// page_mot
.page_mot {
.page_content {
margin-right:0;
}
}
/* modeles */
/* citation */
.modele_citation {
@include clearfix();
.citation_texte {
background:$couleurBkgCitation;
border-radius:$spacer/2;
padding:$spacer;
font-size:1.4rem;
color:$couleurPrincipale;
}
.citation_image {
float:right;
position:relative;
margin-top:10px;
padding-left:46px;
&:after {
display:block; content:''; width:0; height:0;
position:absolute; left:0; top:-32px;
border-top: 60px solid $couleurBkgCitation;
border-left: 20px solid transparent;
border-right: 10px solid transparent;
border-bottom: 0;
@include rotate(-50deg);
z-index:0;
}
}
}
2020-09-16 15:33:09 +02:00