demarches-normaliennes/app/assets/stylesheets/new_design/new_footer.scss
simon lehericey 8efac29eba Better structure footer-site-links in list
it follows service-public.fr structure

- remove extraneous footer-link class
- remove extraneous space with `>` haml weird stuff
- homogenize json-style hash
- merge classes on ul
- use pseudo element for eye candy
2019-11-06 17:01:07 +01:00

131 lines
1.9 KiB
SCSS

@import "colors";
@import "constants";
@import "mixins";
@import "placeholders";
footer {
background-color: $light-grey;
border-top: 1px solid $border-grey;
bottom: 0;
width: 100%;
}
.landing-footer {
@include vertical-padding(72px);
}
.procedure-footer {
@include vertical-padding(30px);
line-height: 24px;
}
.footer-columns {
@extend %horizontal-list;
justify-content: flex-start;
margin: 0 -15px;
}
.footer-column {
@extend %horizontal-list-item;
font-size: 14px;
vertical-align: top;
flex-grow: 1;
min-width: 280px;
margin: 0 20px;
margin-bottom: 30px;
@media (max-width: 550px) {
width: 100%;
}
}
.footer-logos,
.footer-links {
list-style-type: none;
padding: 0;
margin: 0;
}
.footer-header {
font-size: 14px;
font-weight: bold;
margin-bottom: 10px;
}
.footer-link {
margin-bottom: 14px;
&:last-of-type {
margin-bottom: 0;
}
}
.footer-text {
font-style: italic;
margin-bottom: 14px;
}
.footer-logo:hover {
opacity: 0.8;
}
.footer-logo-dinsic {
@include ie-compatible-background-image("footer/logo-dinsic.svg");
height: 104px;
width: 90px;
margin-bottom: 14px;
}
.footer-logo-beta-gouv-fr {
@include ie-compatible-background-image("footer/logo-beta-gouv-fr.svg");
width: 150px;
height: 25px;
}
.footer-link a,
.footer-text a {
color: $black;
text-decoration: none;
&:hover,
&:focus {
color: $blue;
text-decoration: none;
}
}
.footer-bottom-line {
text-align: center;
font-size: small;
@media (max-width: 550px) {
text-align: left;
}
}
.footer-row {
margin-bottom: 30px;
// In this case, the bottom margin is defined directly on each individual column
&.footer-columns {
margin-bottom: 0;
}
}
.footer-site-links {
li {
display: inline;
&::before {
content: "-";
margin: $default-spacer;
}
&:first-child::before {
content: none;
}
}
}