publik-base-theme/static/clermont-metropole/_custom.scss

294 lines
4.4 KiB
SCSS

#logo {
height: 80px;
a {
box-sizing: content-box;
padding-top: 30px;
background-image: url('img/logo.jpg');
background-repeat: no-repeat;
background-position: 5% bottom;
display: block;
text-indent: -9999px;
height: 50px;
@media screen and ($max-mobile-viewport) {
background-position: center center;
background-size: contain;
padding-top: 15px;
margin-top: 10px;
}
}
}
div#toplinks {
position: absolute;
top: -40px;
background: transparent;
border: 0;
@media screen and ($max-mobile-viewport) {
padding-top: 0;
}
a {
color: #ffffff;
}
span.connected-user {
@media screen and ($max-mobile-viewport) {
display: none;
}
}
}
div#nav {
> ul > li {
margin: 0 0.6%;
width: 193px;
text-align: center;
@media screen and ($max-mobile-viewport) {
width: auto;
text-align: left;
margin: 0;
}
> a {
border-radius: 0;
padding: 5px 0px;
font-size: 1.2em;
line-height: 1.2em;
display: table;
width: 100%;
height: 50px;
> span {
display: table-cell;
vertical-align: middle;
}
}
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
&:nth-child(6n+1) {
background: #e44b00;
ul {
background: #e44b00;
}
}
&:nth-child(6n+2) {
background: #8ea301;
ul {
background: #8ea301;
}
}
&:nth-child(6n+3) {
background: #0173a6;
ul {
background: #0173a6;
}
}
&:nth-child(6n+4) {
background: #bc017c;
ul {
background: #bc017c;
}
}
&:nth-child(6n+5) {
background: #7e0095;
ul {
background: #7e0095;
}
}
&:nth-child(6n+6) {
background: #a30101;
ul {
background: #a30101;
}
}
}
}
div.carrousel-item-content {
background: rgba(51, 51, 51, 0.65);
padding: 25px 10px;
text-transform: uppercase;
margin-bottom: 20px;
width: 50%;
@media screen and ($max-mobile-viewport) {
width: 100%;
}
}
div#header-wrapper {
border-top: 40px solid $footer-background;
}
#pwa-navigation a {
padding-top: 35px;
background-size: auto 25px;
}
div#footer-wrapper {
@media screen and ($max-mobile-viewport) {
display: none;
}
}
div#header-top {
position: absolute;
top: -40px;
font-size: 80%;
@media screen and (max-width: $very-small-limit) {
display: none;
}
ul {
@media screen and ($max-mobile-viewport) {
margin-top: 0;
}
}
}
div#header-top, div#footer {
ul {
padding: 0;
li {
list-style-type: none;
display: inline;
margin-right: 10px;
a {
color: #ffffff;
transition: color ease 0.25s;
&:hover {
color: #e44b00;
}
}
}
}
}
#pwa-navigation {
@media screen and (min-width: $nav-mobile-limit - 1px) {
display: block;
position: fixed;
right: 0;
top: 15%;
height: auto;
bottom: auto;
width: 5%;
border-radius: 5px;
> div {
a {
height: 100px;
background-position: 50% 30px;
background-size: 30px;
padding-top: 70px;
span {
font-size: 0.75rem;
}
span.badge {
top: 30px;
}
}
ul {
display: block;
}
}
}
}
// Steps
.wcs-steps {
font-size: 1.25em;
}
div#footer {
a {
color: #ffffff;
}
div.cell {
border-bottom: 1px solid #484745;
}
div.cell.adresse {
text-align: center;
font-size: 85%;
border-bottom: 0;
}
div.menucell {
border-bottom: none;
padding-top: 1rem;
li {
margin-right: 0;
a {
padding: .33em 1em;
}
}
}
}
// Authentics pages
.authentic-template {
#header-wrapper {
border-bottom: 5px solid $primary-color;
margin-bottom: 2rem;
.site-header--title {
padding: 1rem;
text-transform: uppercase;
text-align: center;
h1 {
padding-left: 0;
@media ($max-mobile-viewport) {
font-size: 1.5em;
}
}
}
#toplinks .login {
display: none;
}
}
.site-nav, #pwa-navigation {
display: none;
}
&.has-pwa-navigation footer {
margin-bottom: 0;
}
#footer-wrapper {
display: block;
text-align: center;
// Text-cell liste of logos
.text-cell.footer-logos {
ul {
list-style: none;
margin: 0;
padding: 1rem 0;
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
li {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
a {
display: block;
width: 6.5rem;
height: 5rem;
text-align: center;
&:hover {
background-color: #3e3a39;
}
}
img {
height: 100%;
width: 100%;
object-fit: contain;
}
}
}
}