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

301 lines
5.5 KiB
SCSS

@font-face {
font-family: 'Ionicons';
src: url('assets/fonts/ionicons.eot');
src: url('assets/fonts/ionicons.eot') format('embedded-opentype'),
url('assets/fonts/ionicons.woff2') format('woff2'),
url('assets/fonts/ionicons.ttf') format('truetype'),
url('assets/fonts/ionicons.svg') format('svg');
font-weight: normal;
font-style: normal;
}
/* styles for authentic page */
body.authentic-page, body.registration-page {
background: #efefef;
div#header-wrapper {
border-top: 0;
background: none;
}
div#header {
#toplinks {
top: -50px;
}
#logo, h1#logo-ville {
padding-left: 0;
margin: 20px 0 10px 0;
width: 30%;
@media screen and ($max-mobile-viewport) {
width: 100%;
}
a {
margin: 0;
background-image: url('img/logo-neutre.png');
background-position: center left;
background-repeat: no-repeat;
background-size: contain, contain;
text-indent: -9999px;
@media screen and ($max-mobile-viewport) {
background-image: url('img/logo-neutre.png');
background-repeat: no-repeat;;
background-position: center left;
}
}
}
div#top {
display: flex;
justify-content: space-between;
}
h1#logo-ville {
@media screen and ($min-desktop-viewport) {
display: block;
}
a {
background-image: url('img/logo-ville.png');
background-position: center right;
background-repeat: no-repeat;
background-size: contain;
}
}
}
div#nav-wrapper {
display: none;
}
div.gru-content div.cell, div.block, div.a2-block {
h2:first-child {
background: #6699cc;
}
}
div#footer-wrapper {
border: 0;
}
button {
color: #ffffff;
background: #7aa63e;
&:hover {
background: #6699cc;
}
}
div#toplinks {
display: none;
}
div#login-page > div.block {
margin: 2ex auto;
float: none;
}
}
div#header-wrapper {
border-top: 25px solid #ffffff;
background: url('img/back-header.png');
}
div#header {
#logo, h1#logo-ville {
a {
background: url('img/logo.png') no-repeat;
background-size: 180px 75px;
display: block;
height: 93px;
text-indent: 220px;
margin: 15px 0;
line-height: 2em;
font-family: 'Roboto Condensed', sans-serif;
@media screen and ($max-mobile-viewport) {
text-indent: -9999px;
background-size: contain;
}
}
}
h1#logo-ville {
display: none;
}
#toplinks {
top: -45px;
border: 0;
box-shadow: 0 0 0;
a {
font-size: 75%;
}
}
}
div#nav-wrapper {
@media screen and ($min-desktop-viewport) {
margin-top: -30px;
}
}
div#nav {
margin-bottom: 3ex;
font-family: 'Roboto Condensed', sans-serif;
font-size: 1.25rem;
}
div.gru-nav {
@media screen and ($min-desktop-viewport) {
@include vendor-prefix(transform, skewY(-1deg));
}
padding: 5px 0;
@media screen and ($max-mobile-viewport) {
padding: 0;
}
> ul {
@media screen and ($min-desktop-viewport) {
@include vendor-prefix(transform, skewY(1deg));
}
> li a {
font-weight: normal;
}
}
li.selected > a {
color: #000000;
text-decoration: underline;
&:hover {
color: #ffffff;
}
}
}
div#footer-wrapper {
border-top: 0.5rem solid $primary-color;
h2 {
color: #222222;
}
ul {
margin: 0;
padding: 0;
}
li {
list-style-type: none;
a {
padding: .33em;
font-size: 90%;
&::before {
content: '\f284'; /* arrow-dropright */
font-family: "Ionicons";
display: inline-block;
color: #878787;
margin-right: .67em;
}
}
}
}
.gru-content {
@media screen and ($max-mobile-viewport) {
flex-direction: column-reverse;
}
div.cell.wcsformsofcategorycell, div.cell.linklistcell {
> div {
position: relative;
}
div.description span.commune {
background-color: $primary-color;
padding: 1px 2px;
}
picture {
margin-right: 1px;
}
img {
height: $cell-image-height;
}
&.foldable {
border: 0;
h2 {
border-bottom: 3px solid transparent;
}
&.folded {
h2 {
border-bottom: 3px solid $primary-color;
}
h2:first-child {
border-bottom: 3px solid $primary-color;
&::after {
content: '\f110'; /* arrow-dropdown */
}
&:hover::after {
content: '\f10f'; /* arrow-dropdown-circle */
}
}
}
}
h2:first-child {
position: absolute;
width: 100%;
transform: translateY(calc(#{$cell-image-height} - 100%));
font-size: 1.25em;
font-weight: normal;
padding: 0.5rem 2rem 0.5rem 1rem;
line-height: 1;
color: #ffffff;
background: rgba(0,0,0,0.75);
&::after {
content: '\f116'; /* arrow-dropup */
font-family: Ionicons;
color: $primary-color;
width: 1em;
height: 1em;
position: absolute;
right: 10px;
}
&:hover {
&::after {
content: '\f115'; /* arrow-dropup-circle */
font-family: Ionicons;
}
}
& + div {
padding: 0;
}
}
ul {
border: $cell-entry-border;
border-top: 0;
&:last-child {
border-bottom: 3px solid $primary-color;
}
a {
font-weight: bold;
padding: .5rem 1.5rem .5rem 1rem;
position: relative;
align-items: center;
&:not(.add-more-items--button)::after {
content: '\f287'; /* arrow-round-forward */
font-family: Ionicons;
color: #094da8;
position: absolute;
right: 10px;
}
}
li {
&:last-child {
a, div.description {
border-bottom: 0;
}
}
}
}
}
}
span.required {
color: #ff0000;
}
form > div.buttons {
button {
background: #222222;
color: #ffffff;
}
div.submit-button {
float: right;
button {
background: $primary-color;
color: #000000;
}
}
}