librealire/squelettes/scss/styles/_perso.scss

561 lines
9.6 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-10-10 07:49:17 +02:00
a {
&.tp {
background:none !important;
padding:0;
color:$couleurPrincipale;
&:before {
2020-12-03 10:18:50 +01:00
content:'...';
display:inline-block;
margin: 0 -2em 0 0;
font-size: 1.2rem;
float: left;
line-height: 1.8;
2020-12-03 10:18:50 +01:00
color: $couleurSecondaire;
min-width:24px;
/*padding-bottom: 4px;
background-image:radial-gradient(circle, $couleurSecondaire 1px, rgba(255,255,255,0) 1.5px);
background-position: bottom left;
background-size: 8px 4px;
background-repeat: repeat-x;*/
}
&.taille3 {
&:before {
line-height:2.2;
}
}
&:hover, &:focus {
2020-12-03 10:18:50 +01:00
/*color:$couleurSecondaire;
background-image:radial-gradient(circle, $couleurSecondaire 1px, rgba(255,255,255,0) 1.5px);
background-position: bottom left;
background-size: 8px 4px;
background-repeat: repeat-x;*/
&:before {
/* background:none; */
content:'......';
}
}
2020-10-10 07:49:17 +02:00
}
}
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-09 08:30:19 +02:00
@mixin bouton($clair:#fff, $sombre:$couleurPrincipale, $survol:$couleurSecondaire) {
2020-10-07 19:01:29 +02:00
display: inline-block;
line-height: 1.2;
border: none;
box-shadow: none;
text-align: center;
transition: background 0.3s;
cursor: pointer;
font-family:$typo-Merriweather;
2020-10-10 07:49:17 +02:00
border-radius:($spacer/4);
background:$sombre;
color:$clair;
font-weight:700;
padding: ($spacer/2) $spacer;
2020-10-07 19:01:29 +02:00
&:hover {
2020-10-09 08:30:19 +02:00
background-color: $survol;
2020-10-07 19:01:29 +02:00
text-decoration: none;
2020-10-09 08:30:19 +02:00
color: $clair;
2020-10-07 19:01:29 +02:00
}
&:focus {
2020-10-10 07:49:17 +02:00
background-color: $clair !important;
2020-10-07 19:01:29 +02:00
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;
2020-10-10 07:49:17 +02:00
color:$clair;
2020-10-07 19:01:29 +02:00
}
}
2020-10-09 08:30:19 +02:00
&:hover .fas:before, &:focus .fas:before {
color: $clair;
2020-10-07 19:01:29 +02:00
}
2020-10-09 08:30:19 +02:00
2020-10-07 19:01:29 +02:00
}
//
// modele bouton
//
.btn {
2020-10-10 07:49:17 +02:00
@include bouton();
2020-10-07 19:01:29 +02:00
&.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;
2020-12-03 10:18:50 +01:00
padding:($spacer*2) 0;
h2 {
margin-bottom:($spacer);
font-weight:700;
color:white;
}
.liste_articles {
position:relative;
font-size:120%;
margin-bottom:($spacer*3);
&:last-child {
margin-bottom:0;
}
.btn {
position:absolute;
right:0;
top:($spacer/3);
}
.article-resume.block-link-parent {
margin-bottom:0;
border: 0;
background: none;
color: white;
}
.article-resume__texte {
padding-top:$spacer;
color: white;
}
.article-resume__date {
margin-top:0;
}
.article-resume .article-resume__titre {
font-size:1.2rem;
line-height:1.4;
}
.article-resume__intro, .article-resume__soustitre {
color:white;
}
.spip_logo, .tp {
@include visuallyhidden;
}
@include media($bp-medium-up){
> div {
@include flex();
@include vendor-prefix(flex-direction,raw);
@include vendor-prefix(justify-content,space-between);
> * {
width:30%;
}
}
}
}
2020-05-28 00:34:37 +02:00
}
.page_footer {
.page_connexplus {
padding:($spacer*1.5) 0;
background:$couleurConnexplus;
color:#000;
margin-bottom:($spacer*1.5);
.liste.liste_mots .listes {
2020-06-30 18:55:43 +02:00
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-12-03 10:18:50 +01:00
margin: 0 2em 0 0;
2020-06-30 22:26:33 +02:00
}
}
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-12-03 10:18:50 +01:00
.composition_sanscolonne & {
margin-right:0;
}
2020-10-07 19:01:29 +02:00
}
2020-09-16 10:40:27 +02:00
// page sommaire
2020-10-08 13:18:04 +02:00
.page_sommaire {
.page_content {
margin-right:0;
}
}
2020-09-16 10:40:27 +02:00
.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;
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();
@include flex();
2020-10-07 19:01:29 +02:00
.main {
max-width: 65%;
font-size: 1.6rem;
2020-12-03 10:18:50 +01:00
padding:$spacer ($spacer*4) $spacer ;
2020-10-07 19:01:29 +02:00
}
aside {
max-width:35%;
2020-12-03 10:18:50 +01:00
padding-top: $spacer;
}
@media ($bp-medium) {
flex-direction:column;
.main, aside {
max-width:100%;
padding:$spacer;
font-size:1.2rem;
.modele_citation .citation_texte {
font-size:1.2rem;
}
}
2020-10-07 19:01:29 +02:00
}
}
.formulaire_spip.formulaire_recherche {
font-size:1rem;
2020-09-16 10:40:27 +02:00
}
2020-12-03 10:18:50 +01:00
/* page blog */
.rubrique-blog {
.cartouche .publication {
@include visuallyhidden;
}
}
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-12-03 10:18:50 +01:00
/* surcharger la feuille perso.css */
html & .spip_logo {
width:auto;
}
&.hero .spip_logo {
margin-bottom:$spacer;
}
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) {
2020-10-10 07:49:17 +02:00
left:($spacer*3.5);
2020-10-07 19:01:29 +02:00
}
2020-09-16 15:33:09 +02:00
&:before {
display:none;
}
}
.article-auteurs {
font-size:110%;
font-weight:700;
}
}
2020-12-03 10:18:50 +01:00
.article-appel {
border-left:solid $couleurBordureBleue ($spacer/4);
padding:0 0 0 ($spacer);
.soustitre {
margin:0;
}
}
2020-09-16 15:33:09 +02:00
// 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;
2020-10-07 19:56:42 +02:00
dt {
clear:both;
float:left;
margin-right:$spacer/2;
}
dd {
margin:0;
}
2020-10-07 19:01:29 +02:00
}
}
}
}
}
.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-08 13:18:04 +02:00
.article__infos {
position:relative;
height:auto;
width:auto;
overflow:auto;
clip: auto;
clip-path: border-box;
}
2020-12-03 10:18:50 +01:00
footer {
.btn {
margin:($spacer*2) 0;
}
}
}
2020-10-07 19:56:42 +02:00
.article__transcription_origine, .avertissement, .import .main .strong_to_dl:first-of-type {
/* width:100%; */
2020-10-07 19:01:29 +02:00
margin:($spacer*2) -($spacer*2) 0;
2020-10-08 13:18:04 +02:00
padding:($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;
2020-10-08 13:18:04 +02:00
padding:($spacer*2) ($spacer*4);
}
> *:last-child {
margin-bottom:0;
}
dt {
float:left;
margin-right:($spacer/2);
}
dd {
margin:0;
2020-10-08 09:21:29 +02:00
min-height:1.3rem;
border-bottom:1px solid $couleurBkgT;
&:last-child {
border:0;
2020-09-16 15:33:09 +02:00
}
}
}
2020-12-03 10:18:50 +01:00
.fiches_personnes {
@include flex();
@include vendor-prefix(justify-content,space-between);
margin:($spacer*4) 0 0;
font-family:$typo-Merriweather;
.fiche {
width:46%;
}
.spip_logo {
float: left;
margin-right: $spacer;
}
p {
margin:0;
}
.fiche__titre {
font-weight:700;
}
.fiche__texte {
font-size:0.8rem;
clear:both;
}
}
2020-09-16 15:33:09 +02:00
2020-10-02 17:54:14 +02:00
.cartouche {
2020-10-08 13:18:04 +02:00
border-left:($spacer/2) solid $couleurBkgTOrigine;
2020-10-10 07:49:17 +02:00
padding-left:($spacer*1.5);
2020-10-08 13:18:04 +02:00
margin-left:-($spacer*2);
@include clearfix;
2020-10-02 17:54:14 +02:00
.spip_logo {
float:right;
}
2020-10-10 07:49:17 +02:00
}
.mots {
font-size:0.9rem;
@include clearfix;
&:before {
2020-10-08 13:18:04 +02:00
border-top:1px solid $couleurBkgTOrigine;
2020-10-10 07:49:17 +02:00
}
&:last-child {
border-bottom:1px solid $couleurBkgTOrigine;
}
a {
display:inline-block;
background:#fff;
border-radius:($spacer/3);
padding:0 ($spacer/2);
2020-10-08 13:18:04 +02:00
2020-10-10 07:49:17 +02:00
font-size:0.9em;
&:hover {
background:$couleurSecondaire;
color:#fff;
text-decoration:none;
2020-10-08 13:18:04 +02:00
}
}
2020-10-02 17:54:14 +02:00
}
2020-09-16 15:33:09 +02:00
2020-10-07 19:01:29 +02:00
// article
.article__soustitre {
display:block;
font-size:1rem;
}
2020-10-08 13:18:04 +02:00
.nav-sommaire-1 {
display:block;
}
2020-10-07 19:01:29 +02:00
.nav-sommaire {
border:0;
margin:($spacer*2) 0;
.sommaire_titre {
font-size:0.8rem;
2020-10-09 08:30:19 +02:00
@include bouton();
2020-10-07 19:01:29 +02:00
&.plein {
border-radius:0;
}
2020-10-10 07:49:17 +02:00
&.on .fas {
&:before {
content:'\f0d7';
}
2020-10-07 19:01:29 +02:00
}
}
> ul {
}
}
2020-12-03 10:18:50 +01:00
.article__notes {
border-top:1px solid $couleurBkgTOrigine;
padding:$spacer;
clear:both;
}
2020-10-07 19:01:29 +02:00
2020-12-03 10:18:50 +01:00
.formulaire_signaler {
}
.ariaformprop {
clear:both;
}
2020-10-07 19:01:29 +02:00
// 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-12-03 10:18:50 +01:00
.spip_poesie {
background:$couleurBkgCitation;
}
2020-10-07 19:01:29 +02:00
2020-09-16 15:33:09 +02:00