alpes-maritimes-2018: use CSS instead img for login background (#53160)

This commit is contained in:
Thomas Jund 2021-04-26 17:32:27 +02:00
parent d8a3398cea
commit 48d031ba36
1 changed files with 23 additions and 3 deletions

View File

@ -739,9 +739,29 @@ h2 + h2 {
}
}
.page-connexion div#page {
background: url('img/login-background.png') center 25px;
background-repeat: no-repeat;
.page-connexion {
// prevent x scroll because #content::before element
main {
overflow-x: hidden;
}
div#content {
@media ($min-desktop-viewport) {
background-color: transparent;
position: relative;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: #fff;
background-image: linear-gradient(to right, $ternary-color 50%, #fff 50.1%);
z-index: -1;
transform: skew(-24deg) scale(1.4, 1) translateX(-25px);
}
}
}
div.cell, div.block {
background: transparent;
}