remise en forme de l'entête

This commit is contained in:
chankalan 2022-02-16 23:42:17 +01:00
parent 91e59b196a
commit cbfee69e4b
3 changed files with 127 additions and 106 deletions

View File

@ -1,4 +1,3 @@
#CACHE{0}
<div class="formulaire_spip formulaire_#FORM" id="formulaire_#FORM[_(#ENV{id_abomailman})]"> <div class="formulaire_spip formulaire_#FORM" id="formulaire_#FORM[_(#ENV{id_abomailman})]">
[<div class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</div>] [<div class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</div>]
@ -32,6 +31,9 @@ $(function() {
$(this).siblings('#email').toggleClass('vu'); $(this).siblings('#email').toggleClass('vu');
$(this).parent().siblings('button').toggleClass('vu'); $(this).parent().siblings('button').toggleClass('vu');
}); });
$('.reponse_formulaire').on('click', function(){
$(this).addClass('masquer');
});
}); });
</script> </script>

View File

@ -9,7 +9,9 @@
<INCLURE{fond=inclure/nav-secteurs, env} /> <INCLURE{fond=inclure/nav-secteurs, env} />
<div class="liens"> <div class="liens">
[<div class="ajax">(#FORMULAIRE_ABOMAILMAN_MINI_UNE_LISTE{2})</div>] [<div class="ajax">(#FORMULAIRE_ABOMAILMAN_MINI_UNE_LISTE{2})</div>]
<a href="/rss" class="btn"><i class="fas fa-rss left"></i>S'abonner au podcast</a> <div class="sociaux_podcast">
<INCLURE{fond=inclure/rezo} /> <INCLURE{fond=inclure/rezo} />
<a href="/rss" class="btn"><i class="fas fa-rss left"></i>S'abonner au podcast</a>
</div>
</div> </div>
</div> </div>

View File

@ -10,12 +10,6 @@
color: $couleurPrincipale !important; color: $couleurPrincipale !important;
} }
} }
.liens .btn {
padding: 0.7em 1em;
}
.btn.blanc {
/* border-radius: 0.7em; */
}
span.btn { span.btn {
cursor: text; cursor: text;
} }
@ -41,7 +35,8 @@ span.btn {
} }
.header_title { .header_title {
min-width: 150px; min-width: 150px;
background: white; padding: 0.5rem 0 0.2rem;
/* background: white; */
} }
.header_menu { .header_menu {
flex-grow: 2; flex-grow: 2;
@ -69,10 +64,50 @@ span.btn {
} }
} }
} }
.liens { .liens {
text-align: right; margin-top: 3rem;
margin-top: 1.2rem; @include flex();
flex-direction: row-reverse;
align-items: end;
.btn {
padding: 0.7em 1em;
}
.sociaux_podcast {
margin: 0 0 0;
@include flex();
align-items: center;
}
.sociaux {
display: inline-block;
font-size: 1.1rem;
margin: 0 1rem 0 0;
.socicon {
background: none !important;
color: $blancTransparent;
&:hover, &:focus {
color: $couleurPrincipaleOn;
}
}
}
.formulaire_spip.formulaire_abomailman_mini_une_liste {
width: 207px;
min-height: 2.5rem;
position: relative;
margin: 0 0 0 1rem;
text-align: left;
.reponse_formulaire {
position: absolute;
top: 0;
right: 0;
margin: 0;
width: 300px;
z-index: 999;
transition: transform 0.15s ease-in-out;
&.masquer {
transform: scale(0);
}
}
}
.abonnement { .abonnement {
position: relative; position: relative;
label { label {
@ -80,6 +115,7 @@ span.btn {
font-size: 1rem; font-size: 1rem;
padding-right: 2rem; padding-right: 2rem;
font-weight: 400; font-weight: 400;
width: 100%;
&:after { &:after {
@include triangle(right, white, 8px); @include triangle(right, white, 8px);
position: absolute; position: absolute;
@ -93,9 +129,10 @@ span.btn {
} }
#email { #email {
position: absolute; position: absolute;
top: 4.19em; top: 110%;
width: 260px; width: 260px;
right: 0; right: 0;
z-index: 1;
.js & { .js & {
transform: scale(0); transform: scale(0);
} }
@ -113,7 +150,7 @@ span.btn {
} }
.formulaire_spip .abonnement button { .formulaire_spip .abonnement button {
bottom: auto; bottom: auto;
top: 4.8em; top: 132%;
height: 2rem; height: 2rem;
transition: transform 0.15s ease-in-out; transition: transform 0.15s ease-in-out;
.js & { .js & {
@ -124,8 +161,7 @@ span.btn {
} }
} }
.btn { .btn {
float: right; font-size: 1rem;
margin-top: 1.55rem;
.fas:before { .fas:before {
font-size: 1rem; font-size: 1rem;
} }
@ -138,35 +174,6 @@ span.btn {
} }
} }
.sociaux {
float: right;
display: inline-block;
font-size: 0.8rem;
margin: 1.8rem 1.5rem 0 0;
.socicon {
background: none !important;
color: $blancTransparent;
&:hover, &:focus {
color: $couleurPrincipaleOn;
}
}
}
.formulaire_spip.formulaire_abomailman_mini_une_liste {
min-width: 185px;
min-height: 1rem;
float: right;
position: relative;
margin: 0 0 0 1rem;
text-align: left;
.reponse_formulaire {
position: absolute;
top: 100%;
right: 0;
margin: 0;
width: 300px;
z-index: 999;
}
}
} }
} }
> .page_container .nav > ul .loupe a { > .page_container .nav > ul .loupe a {
@ -193,7 +200,6 @@ span.btn {
@include visuallyhidden; @include visuallyhidden;
} }
.encart { .encart {
float: right; float: right;
text-align: right; text-align: right;
@ -248,17 +254,17 @@ html .formulaire_spip input[type="text"] {
margin-bottom:0; margin-bottom:0;
padding-right:2rem; padding-right:2rem;
} }
background-color:white; background-color: white;
.main { .main {
padding-bottom:1rem; padding-bottom: 1rem;
} }
@include media($bp-medium-up) { @include media($bp-medium-up) {
.flex2 > .main { .flex2 > .main {
max-width:60%; max-width: 60%;
} }
.flex2 > .aside { .flex2 > .aside {
max-width:40%; max-width: 40%;
padding-left:4rem; padding-left: 4rem;
@include media($bp-medium) { @include media($bp-medium) {
padding-left:2rem; padding-left:2rem;
} }
@ -275,10 +281,10 @@ html .formulaire_spip input[type="text"] {
.article-resume { .article-resume {
background-color: white; background-color: white;
padding:1rem; padding: 1rem;
} }
.article__texte { .article__texte {
margin-bottom:3rem; margin-bottom: 3rem;
} }
.article__interactivite { .article__interactivite {
> div { > div {
@ -293,7 +299,7 @@ html .formulaire_spip input[type="text"] {
} }
.page_main { .page_main {
overflow:hidden; overflow: hidden;
} }
.page_main_content { .page_main_content {
align-items: start; align-items: start;
@ -403,12 +409,9 @@ html .formulaire_spip input[type="text"] {
} }
} }
.page_extra { .page_extra {
background:white; background: white;
} }
h2 { h2 {
font-weight:900; font-weight:900;
} }
@ -776,6 +779,7 @@ div.rating-cancel a {
.sociaux { .sociaux {
.socicon { .socicon {
display: inline-block; display: inline-block;
padding: .35em;
} }
a.spip_out { a.spip_out {
border:0; border:0;
@ -1330,22 +1334,22 @@ a.spip_out {
@media (max-width:940px) { @media (max-width:940px) {
.page_header > .page_container { .page_header > .page_container {
.nav { .nav {
font-size:0.95rem; font-size: 0.95rem;
z-index:7; z-index: 7;
position:static; position: static;
> .nav-list { > .nav-list {
position:absolute; position: absolute;
width:100%; width: 100%;
top:36px; top: 36px;
left:-100%; left: -100%;
z-index:10; z-index: 10;
justify-content:space-around; justify-content: space-around;
&.ouvert{ &.ouvert{
left:0; left:0;
} }
.loupe { .loupe {
.formulaire_recherche.vu { .formulaire_recherche.vu {
right:50%; right: 50%;
margin-right: -160px; margin-right: -160px;
max-width: 320px; max-width: 320px;
form { form {
@ -1360,7 +1364,7 @@ a.spip_out {
} }
} }
.btn-nav { .btn-nav {
display:block; display: block;
} }
.header_initiatives { .header_initiatives {
.btn-initiatives { .btn-initiatives {
@ -1380,47 +1384,22 @@ a.spip_out {
} }
} }
} }
.page_header .header_menu .liens {
flex-direction: column;
margin-top: 2.5rem;
.formulaire_spip.formulaire_abomailman_mini_une_liste {
margin: 0 0 0.3rem;
}
}
} }
@include media(min-width:941px) { @media (min-width:941px) {
.page_header > .page_container .nav { .page_header > .page_container .nav {
position: relative; position: relative;
} }
} }
@media (max-width:804px) {
.page_header .header_menu .liens {
margin-top:0;
}
.page_header .header_menu .liens .sociaux {
margin-top: 0.8rem;
}
}
@media (max-width:650px) {
.page_header .header_menu .liens .btn {
margin-top: 0.5rem;
}
}
@media (max-width:580px) {
.page_header > .page_container .nav {
padding-top: 0;
}
.page_header .header_menu {
padding:0.3rem 1rem;
}
.page_header .header_menu .liens .sociaux {
margin-top: 0;
}
.article-resume > :last-child.telecharger {
margin-bottom:1rem;
}
.page_header .header_menu .liens .formulaire_spip.formulaire_abomailman_mini_une_liste {
width: 160px;
}
.page_header .header_title {
min-width: 100px;
}
}
@media($bp-medium) { @media($bp-medium) {
.page_header > .page_container { .page_header > .page_container {
.nav { .nav {
@ -1436,7 +1415,7 @@ a.spip_out {
justify-content: space-around; justify-content: space-around;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0; padding: 0;
&.ouvert{ &.ouvert {
left: 0; left: 0;
} }
a { a {
@ -1467,3 +1446,41 @@ a.spip_out {
} }
} }
} }
@include media($bp-small) {
.page_header > .page_container .nav {
padding-top: 0;
}
.article-resume > :last-child.telecharger {
margin-bottom:1rem;
}
.page_header .header_menu .liens {
margin-top: 1.5rem;
.formulaire_spip.formulaire_abomailman_mini_une_liste {
width: 188px;
}
.abonnement label.btn {
font-size: 0.9rem;
float: right;
}
.sociaux {
margin-top: 0;
}
.sociaux_podcast {
flex-direction: column-reverse;
.sociaux {
margin: 0;
display: block;
width: 100%;
text-align: right;
}
}
.btn {
font-size: 0.9rem;
}
}
.page_header .header_title {
min-width: 100px;
}
}