Make sure we hide the banner when the user ask to

This commit is contained in:
HackerNCoder 2021-10-19 20:14:55 +00:00
parent 5fdc79de1e
commit 203a48ad98
No known key found for this signature in database
GPG Key ID: 569FFF33FF802E16
4 changed files with 13 additions and 5 deletions

View File

@ -123,10 +123,13 @@
right: 0;
left: 0;
top: 0;
padding: 1.25rem 1.25rem 0;
width: 100%;
}
.banner-padding {
padding: 1.25rem 1.25rem 0;
}
.eoy-sr-only {
height: 1px;
left: -10000px;
@ -142,7 +145,7 @@
left: -9999px;
}
#trigger:checked ~ #banner-header, .banner__containter > #trigger:checked, #trigger:checked + label {
#trigger:checked ~ #banner-padding, .banner__containter > #trigger:checked, #trigger:checked + label {
display: none;
visibility: hidden;
}

View File

@ -10320,10 +10320,13 @@ a.side-nav.active {
right: 0;
left: 0;
top: 0;
padding: 1.25rem 1.25rem 0;
width: 100%;
}
.banner-padding {
padding: 1.25rem 1.25rem 0;
}
.eoy-sr-only {
height: 1px;
left: -10000px;
@ -10339,7 +10342,7 @@ a.side-nav.active {
left: -9999px;
}
#trigger:checked ~ #banner-header, .banner__containter > #trigger:checked, #trigger:checked + label {
#trigger:checked ~ #banner-padding, .banner__containter > #trigger:checked, #trigger:checked + label {
display: none;
visibility: hidden;
}

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
<input id="trigger" type="checkbox" title="{{ _('Close banner') }}" />
<label for="trigger" class="footer__close text-white">X</label>
<span class="eoy-sr-only text-white">{{ _('Close banner') }}</span>
<div id="banner-padding" class="banner-padding">
<div class="eoy-banner row col-md-12 pt-5" id="banner-header" role="contentinfo">
<div class="col-1 px-0"></div>
<div class="col-lg-5 col-md-5 col-11 px-0">
@ -45,4 +46,5 @@
</div>
<div class="col-1 px-0"></div>
</div>
</div>
</div>