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="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</div>]
@ -32,6 +31,9 @@ $(function() {
$(this).siblings('#email').toggleClass('vu');
$(this).parent().siblings('button').toggleClass('vu');
});
$('.reponse_formulaire').on('click', function(){
$(this).addClass('masquer');
});
});
</script>

View File

@ -9,7 +9,9 @@
<INCLURE{fond=inclure/nav-secteurs, env} />
<div class="liens">
[<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} />
<a href="/rss" class="btn"><i class="fas fa-rss left"></i>S'abonner au podcast</a>
</div>
</div>
</div>

View File

@ -10,12 +10,6 @@
color: $couleurPrincipale !important;
}
}
.liens .btn {
padding: 0.7em 1em;
}
.btn.blanc {
/* border-radius: 0.7em; */
}
span.btn {
cursor: text;
}
@ -41,7 +35,8 @@ span.btn {
}
.header_title {
min-width: 150px;
background: white;
padding: 0.5rem 0 0.2rem;
/* background: white; */
}
.header_menu {
flex-grow: 2;
@ -69,10 +64,50 @@ span.btn {
}
}
}
.liens {
text-align: right;
margin-top: 1.2rem;
margin-top: 3rem;
@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 {
position: relative;
label {
@ -80,6 +115,7 @@ span.btn {
font-size: 1rem;
padding-right: 2rem;
font-weight: 400;
width: 100%;
&:after {
@include triangle(right, white, 8px);
position: absolute;
@ -93,9 +129,10 @@ span.btn {
}
#email {
position: absolute;
top: 4.19em;
top: 110%;
width: 260px;
right: 0;
z-index: 1;
.js & {
transform: scale(0);
}
@ -113,7 +150,7 @@ span.btn {
}
.formulaire_spip .abonnement button {
bottom: auto;
top: 4.8em;
top: 132%;
height: 2rem;
transition: transform 0.15s ease-in-out;
.js & {
@ -124,8 +161,7 @@ span.btn {
}
}
.btn {
float: right;
margin-top: 1.55rem;
font-size: 1rem;
.fas:before {
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 {
@ -193,7 +200,6 @@ span.btn {
@include visuallyhidden;
}
.encart {
float: right;
text-align: right;
@ -406,9 +412,6 @@ html .formulaire_spip input[type="text"] {
background: white;
}
h2 {
font-weight:900;
}
@ -776,6 +779,7 @@ div.rating-cancel a {
.sociaux {
.socicon {
display: inline-block;
padding: .35em;
}
a.spip_out {
border:0;
@ -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 {
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) {
.page_header > .page_container {
.nav {
@ -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;
}
}