537 lines
8.3 KiB
SCSS
537 lines
8.3 KiB
SCSS
@mixin dash($color) {
|
|
&::before {
|
|
content: "";
|
|
width: .5em;
|
|
height: 3px;
|
|
background-color: $color;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-right: .5em;
|
|
}
|
|
}
|
|
|
|
%title {
|
|
@include dash($orange);
|
|
}
|
|
|
|
%black-button {
|
|
@extend %button;
|
|
display: inline-block;
|
|
box-shadow: none;
|
|
background-color: #2b2b2b;
|
|
color: white;
|
|
padding: 1em;
|
|
font-weight: 600;
|
|
|
|
&:hover {
|
|
background-color: black;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
%cancel-button {
|
|
background-color: $gray-light;
|
|
&:hover {
|
|
background-color: $gray-light;
|
|
}
|
|
}
|
|
|
|
body {
|
|
line-height: 1.4;
|
|
}
|
|
// forms
|
|
label {
|
|
color: $red;
|
|
}
|
|
input, select, textarea {
|
|
&[readonly] {
|
|
border-bottom-color: $font-color;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
//
|
|
// HEADER
|
|
//
|
|
.site-header {
|
|
#header {
|
|
max-width: none;
|
|
padding: 0;
|
|
}
|
|
|
|
// reset
|
|
h1 {
|
|
padding-left: 0;
|
|
}
|
|
#top {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
@media (min-width: $nav-mobile-limit + 1) {
|
|
flex-direction: column;
|
|
height: $header-height-desktop;
|
|
}
|
|
}
|
|
#logo {
|
|
line-height: $header-height-mobile - 20px;
|
|
background-color: $red;
|
|
flex: 0 0 100px;
|
|
padding: 10px;
|
|
@media (min-width: $nav-mobile-limit + 1) {
|
|
flex: 1 0 100%;
|
|
width: 33.333%;
|
|
padding: 21px;
|
|
}
|
|
&.has-logo a {
|
|
min-width: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-position: center;
|
|
}
|
|
}
|
|
.header--baseline {
|
|
order: 3;
|
|
// background-color: grey;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
padding: 0.7rem;
|
|
text-transform: uppercase;
|
|
width: 66.666%;
|
|
flex: 0 0 100%;
|
|
@media (min-width: $nav-mobile-limit + 1) {
|
|
flex: 1 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
font-size: 1.5em;
|
|
padding-left: 2em;
|
|
}
|
|
}
|
|
#toplinks {
|
|
// reset
|
|
border: none;
|
|
box-shadow: none;
|
|
position: static;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
text-align: right;
|
|
word-spacing: 0;
|
|
|
|
border-bottom: 1px solid #dadada;
|
|
font-size: 1rem;
|
|
font-weight: normal;
|
|
line-height: 1.5;
|
|
|
|
|
|
@media (max-width: $nav-mobile-limit) {
|
|
flex: 1 1 0;
|
|
margin-right: $header-height-mobile;
|
|
}
|
|
@media (min-width: $nav-mobile-limit + 1) {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
> span {
|
|
display: block;
|
|
padding: 1em;
|
|
|
|
@media (max-width: $nav-mobile-limit) {
|
|
padding: .33em 1em;
|
|
}
|
|
|
|
}
|
|
|
|
a {
|
|
display: inline-block;
|
|
color: #6e6e6e;
|
|
white-space: nowrap;
|
|
@media (max-width: $nav-mobile-limit + 1 ) {
|
|
display: block;
|
|
}
|
|
// orange dash
|
|
@include dash($orange);
|
|
|
|
// sep
|
|
@media (min-width: $nav-mobile-limit + 1) {
|
|
&:not(:last-child) {
|
|
&::after {
|
|
content: "";
|
|
width: 1px;
|
|
height: 1.5em;
|
|
background-color: $orange;
|
|
display: inline-block;
|
|
margin: 0 .66em;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.logged-in {
|
|
@media (max-width: $nav-mobile-limit) {
|
|
max-width: calc(100vw - 100px - 60px);
|
|
a {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//
|
|
// NAV (hamburger in right)
|
|
//
|
|
div.gru-nav {
|
|
line-height: $nav-height;
|
|
&-wrapper {
|
|
margin-top: 0;
|
|
}
|
|
.gru-nav-button {
|
|
box-sizing: content-box;
|
|
margin-left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
left: auto;
|
|
border: $button-border-width solid $nav-button-background;
|
|
}
|
|
> ul {
|
|
margin: 0;
|
|
}
|
|
}
|
|
// Adapt to create a right-to-left nav
|
|
@if $responsive-menu == left-to-right {
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
body {
|
|
border: none;
|
|
}
|
|
|
|
div.gru-nav .gru-nav-button {
|
|
& + ul {
|
|
line-height: 1.5;
|
|
width: 20em;
|
|
max-width: 100%;
|
|
left: auto;
|
|
right: 0;
|
|
transform: translateX(calc(100% + 10px));
|
|
box-shadow: 0 0 10px $font-color;
|
|
}
|
|
// is on
|
|
&.toggled {
|
|
color: $blue;
|
|
border-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//
|
|
// PWA NAV
|
|
//
|
|
.pwa-navigation {
|
|
border-top: 2px solid $blue;
|
|
}
|
|
.pwa-navigation div > ul li a span {
|
|
text-transform: uppercase;
|
|
font-size: .75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
//
|
|
// MAIN
|
|
//
|
|
main {
|
|
background: url("img/ico_Mouse_Services.svg") 107% -10% no-repeat $blue;
|
|
padding: 2em 0;
|
|
}
|
|
|
|
//
|
|
// CELLS
|
|
//
|
|
.gru-content div.cell {
|
|
padding: 0.65em;
|
|
}
|
|
|
|
// Forms of category & link-list
|
|
.gru-content div.link-list-cell,
|
|
.gru-content div.wcsformsofcategorycell {
|
|
background-color: $orange;
|
|
|
|
// cell title
|
|
h2:first-child {
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
letter-spacing: 0.025em;
|
|
@include dash($red);
|
|
}
|
|
|
|
// Picture position
|
|
&.has-asset-picture {
|
|
$picture-width: 120px;
|
|
> div {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
> * {
|
|
flex: 0 0 100%;
|
|
}
|
|
|
|
> h2:first-child {
|
|
flex: 1 0 50%;
|
|
margin-left: -1 * $picture-width;
|
|
padding-left: $picture-width;
|
|
}
|
|
|
|
> picture {
|
|
display: block;
|
|
order: -1;
|
|
flex: 0 0 $picture-width;
|
|
z-index: 1;
|
|
img {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// foldable :hover
|
|
&.foldable {
|
|
h2:first-child:hover{
|
|
background-color: $orange-light;
|
|
}
|
|
}
|
|
}
|
|
|
|
// APA cells
|
|
div.apa-user {
|
|
a.apa-user-link {
|
|
background: url('img/profile.png') no-repeat 10px 15px;
|
|
padding-left: 70px;
|
|
|
|
&:hover {
|
|
background-color: $orange-light;
|
|
}
|
|
}
|
|
a.remove {
|
|
text-transform: uppercase;
|
|
line-height: 2em;
|
|
&:hover {
|
|
color: white;
|
|
background-color: $link-color;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// WCS
|
|
//
|
|
div#rub_service, .form-content--sidebox {
|
|
background-color: $cell-background;
|
|
padding: 1em;
|
|
}
|
|
|
|
div#tracking-code {
|
|
text-align: center;
|
|
|
|
h3 {
|
|
font-size: 1rem;
|
|
margin: 0.33em;
|
|
padding: 0;
|
|
> a {
|
|
padding: 0.5em 0;
|
|
font-size: 1.4em;
|
|
}
|
|
}
|
|
// delet draft button
|
|
button {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.wcs-steps--list {
|
|
justify-content: center;
|
|
@media ($mq-min--wcs-steps-horizontal-layout) {
|
|
text-align: center;
|
|
}
|
|
@include desktop-vertical-steps() {
|
|
text-align: left;
|
|
}
|
|
}
|
|
.wcs-step {
|
|
justify-content: center;
|
|
}
|
|
.wcs-step--label {
|
|
text-align: inherit;
|
|
}
|
|
|
|
div#rub_service {
|
|
h2 {
|
|
font-size: 2em;
|
|
padding-left: 0.5rem;
|
|
}
|
|
h3 {
|
|
@include dash($red);
|
|
font-size: 1.5em;
|
|
font-weight: normal;
|
|
}
|
|
|
|
@if ($field-on-error-style == custom) {
|
|
div.error {
|
|
@extend .errornotice;
|
|
font-weight: normal;
|
|
min-height: 1.5em;
|
|
margin-bottom: 0;
|
|
&::before {
|
|
font-size: 30px;
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
.previous-button button {
|
|
@extend %cancel-button;
|
|
}
|
|
}
|
|
ul#evolutions .evolution-metadata,
|
|
ul#evolutions li div.msg {
|
|
background-color: $gray-light;
|
|
}
|
|
|
|
//
|
|
// FOOTER
|
|
//
|
|
footer {
|
|
overflow: hidden;
|
|
}
|
|
#footer-wrapper {
|
|
margin-top: 80px;
|
|
padding: 0;
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
#footer {
|
|
.footer-logo {
|
|
img {
|
|
margin-top: -80px;
|
|
padding: 40px;
|
|
background-color: white;
|
|
}
|
|
}
|
|
.footer-logo, .footer-coordonnees {
|
|
background-color: #2b2b2b;
|
|
color: white;
|
|
}
|
|
.footer-coordonnees {
|
|
padding: 20px 40px;
|
|
}
|
|
.footer-network {
|
|
background-color: $red;
|
|
color: white;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 28px 10px 50px;
|
|
> div {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
}
|
|
|
|
ul {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 40px;
|
|
font-family: fontawesome;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
a {
|
|
color: white;
|
|
&:hover {
|
|
text-decoration: none;
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
.facebook::before {
|
|
content: "\f082";
|
|
}
|
|
.youtube::before {
|
|
content: "\f167";
|
|
}
|
|
.rss::before {
|
|
content: "\f09e";
|
|
}
|
|
}
|
|
// contact button
|
|
p {
|
|
margin: 0;
|
|
margin: 32px 0 ;
|
|
a {
|
|
@extend %black-button;
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
.menu-cell {
|
|
padding: 1em;
|
|
padding-bottom: 30px;
|
|
|
|
li {
|
|
margin-bottom: 0.5em;
|
|
a {
|
|
padding: 0 1.5em;
|
|
}
|
|
}
|
|
}
|
|
@media ($max-mobile-viewport) {
|
|
text-align: center;
|
|
.footer-logo img{
|
|
width: 300px;
|
|
}
|
|
.footer-network {
|
|
overflow: hidden;
|
|
}
|
|
.footer-coordonnees {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
@media ($min-desktop-viewport) {
|
|
text-align: left;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.footer-logo {
|
|
flex: 0 0 auto;
|
|
padding-right: $columns-gutter;
|
|
img {
|
|
width: calc(#{$sidebar-width} - #{$columns-gutter});
|
|
}
|
|
}
|
|
.footer-network {
|
|
flex: 1 0 0;
|
|
background-color: $red;
|
|
}
|
|
.footer-coordonnees {
|
|
flex: 1 0 0;
|
|
padding-left: 0;
|
|
}
|
|
.menu-cell {
|
|
flex: 0 0 100%;
|
|
}
|
|
}
|
|
@media (min-width: $width + 1) {
|
|
.footer-logo {
|
|
// full left width background
|
|
padding-left: calc((100vw - #{$width}) / 2);
|
|
margin-left: calc((100vw - #{$width}) / 2 * -1);
|
|
}
|
|
.footer-network {
|
|
// full right background
|
|
padding-right: calc((100vw - #{$width}) / 2);
|
|
margin-right: calc((100vw - #{$width}) / 2 * -1);
|
|
}
|
|
}
|
|
}
|
|
|