564 lines
11 KiB
SCSS
564 lines
11 KiB
SCSS
/*
|
|
Misc
|
|
*/
|
|
::selection {
|
|
color: white;
|
|
background-color: $darkened-primary-color;
|
|
}
|
|
|
|
h1#logo > a {
|
|
&:hover {
|
|
filter: brightness(108%);
|
|
}
|
|
&:active {
|
|
border: 1px $light-grey dotted;
|
|
filter: brightness(1);
|
|
}
|
|
}
|
|
|
|
/*
|
|
Header
|
|
*/
|
|
|
|
#toplinks {
|
|
display: none;
|
|
}
|
|
|
|
$logo-width: 110px !default;
|
|
|
|
#header {
|
|
position: relative;
|
|
h1 {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
a {
|
|
display: block;
|
|
text-indent: -10000px;
|
|
background: url(/assets/header:logo) top left no-repeat;
|
|
background-size: contain;
|
|
width: 110px;
|
|
height: 40px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: $nav-mobile-limit) {
|
|
body.has-picture .site-nav::after {
|
|
width: 1598px;
|
|
border-radius: $border-radius $border-radius 0 $border-radius;
|
|
margin: 0 auto;
|
|
left: -9px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: $width) {
|
|
#main-content {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: $width) {
|
|
#main-content {
|
|
padding-top: 16px;
|
|
}
|
|
}
|
|
#main-content {
|
|
padding-top: 16px;
|
|
}
|
|
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
#logo.has-logo {
|
|
padding-left: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
a {
|
|
width: 100%;
|
|
background-position: center;
|
|
}
|
|
}
|
|
#footer {
|
|
padding-left: 25px;
|
|
padding-right: 25px;
|
|
}
|
|
}
|
|
|
|
$nav-height: 10rem;
|
|
|
|
nav.site-nav {
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
margin-top: 75px;
|
|
div.gru-nav .gru-nav-button {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
& {
|
|
.icon-bar {
|
|
background: $darkened-primary-color;
|
|
transition: none;
|
|
}
|
|
.icon-bar-1, .icon-bar-2, .icon-bar-3 {
|
|
left: auto;
|
|
right: 17%;
|
|
}
|
|
.icon-bar-2 {
|
|
width: 50%;
|
|
left: auto;
|
|
|
|
}
|
|
}
|
|
&.toggled {
|
|
.icon-bar-2, .icon-bar-3 {
|
|
width: 66%;
|
|
}
|
|
}
|
|
+ ul {
|
|
margin-top: 50px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
div#nav {
|
|
margin-bottom: 1.618em;
|
|
padding-right: 1.2em;
|
|
> ul {
|
|
margin-left: #{$logo-width + 68px};
|
|
background-color: #E6E6E6;
|
|
border-radius: $border-radius $border-radius 0 $border-radius;
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
margin-left: 0;
|
|
}
|
|
ul {
|
|
box-shadow: $imio-box-shadow-style-upper;
|
|
}
|
|
a {
|
|
transition: none;
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
}
|
|
li.has-submenu {
|
|
> a > span {
|
|
&::after {
|
|
// font-family: FontAwesome;
|
|
padding-left: 3px;
|
|
content: "⌄"; // angle-down
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
div.gru-nav > ul > li a {
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/*
|
|
Cells
|
|
*/
|
|
@if $imio-box-shadow-turned-on {
|
|
.cell, .block, .a2-block, #nav, #header {
|
|
box-shadow: $imio-box-shadow-style;
|
|
}
|
|
}
|
|
|
|
.column div.a2-block,
|
|
.gru-content div.cell,
|
|
.block {
|
|
margin-bottom: 1.7rem;
|
|
}
|
|
|
|
div.textcell {
|
|
margin-right: 1.2rem;
|
|
h3, h4, h5, p, table {
|
|
margin: 1.386em 1.618rem;
|
|
}
|
|
p, table, ul, ol {
|
|
line-height: 1.4;
|
|
}
|
|
}
|
|
|
|
p.empty-dashboard,
|
|
div.deliberations-communales p {
|
|
margin: 1.386em 1.618rem;
|
|
}
|
|
|
|
.link-list-cell .links-list {
|
|
border-radius: $border-radius;
|
|
li {
|
|
border-bottom: 1px dashed #ccc;
|
|
a {
|
|
background-image: linear-gradient(#F4F4F4 0, #F4F4F4 100%);
|
|
&:hover {
|
|
background-image: linear-gradient(#F4F4F4 0, #F4F4F4 100%);
|
|
color: $link-color;
|
|
}
|
|
}
|
|
}
|
|
li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
#footer .cell,
|
|
#nav {
|
|
box-shadow: none;
|
|
}
|
|
|
|
div#rub_service div.category ul > li:first-child:not(.more-items--item) a, div#services > ul > li > ul > li:first-child:not(.more-items--item) a, div#account-management ul > li:first-child:not(.more-items--item) a, div.links-list ul > li:first-child:not(.more-items--item) a, div.menucell ul > li:first-child:not(.more-items--item) a, div.wcsformcell > li:first-child:not(.more-items--item) a, div.categoriescell ul > li:first-child:not(.more-items--item) a, div.wcsformsofcategorycell ul > li:first-child:not(.more-items--item) a, div.wcscurrentdraftscell ul > li:first-child:not(.more-items--item) a, div.wcscurrentformscell ul > li:first-child:not(.more-items--item) a {
|
|
border-radius: 0;
|
|
}
|
|
|
|
div#rub_service div.category ul > li:last-child a:only-child, div#services > ul > li > ul > li:last-child a:only-child, div#account-management ul > li:last-child a:only-child, div.links-list ul > li:last-child a:only-child, div.menucell ul > li:last-child a:only-child, div.wcsformcell > li:last-child a:only-child, div.categoriescell ul > li:last-child a:only-child, div.wcsformsofcategorycell ul > li:last-child a:only-child, div.wcscurrentdraftscell ul > li:last-child a:only-child, div.wcscurrentformscell ul > li:last-child a:only-child {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.wcs-forms-of-category-cell {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
div.link-cell.pk-button ul > li > a, .link-cell.lingo-basket-cell--item-pay ul > li > a, div.link-cell.pk-big-button ul > li > a, a.pk-button, a.lingo-basket-cell--item-pay, a.pk-big-button, div.table-container ul.pagination li.previous a, div.table-container ul.pagination li.next a, .fargo-pick-popup button, button.ui-button, a#a2-continue, .gru-content button, input[type="submit"], div.buttons input, .gru-content button.cancel-button, div.buttons .cancel-button button {
|
|
transition: background 0.1s cubic-bezier(0.79, 0.14, 0.15, 0.86), color 0.1s cubic-bezier(0.79, 0.14, 0.15, 0.86), border 0.1s cubic-bezier(0.79, 0.14, 0.15, 0.86);
|
|
}
|
|
|
|
div#content div.wcsformsofcategorycell.has-asset-picture {
|
|
position: relative;
|
|
padding-bottom: 0;
|
|
picture img {
|
|
width: 100%;
|
|
object-fit: cover;
|
|
height: 160px;
|
|
}
|
|
@media screen and (min-width: $nav-mobile-limit) {
|
|
h2 {
|
|
font-size: 1.3em;
|
|
}
|
|
}
|
|
h2 {
|
|
position: absolute;
|
|
width: 100%;
|
|
z-index: 10;
|
|
background-color: rgba(0, 0, 0, 0.33);
|
|
color: white;
|
|
height: 160px;
|
|
padding-top: 50px;
|
|
&::after {
|
|
font-size: 1.2em;
|
|
}
|
|
}
|
|
&.foldable {
|
|
@media screen and ($max-mobile-viewport) {
|
|
h2 {
|
|
padding-right: 50px; // for folding arrow
|
|
}
|
|
}
|
|
h2::after {
|
|
font-size: 30px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wcs-forms-of-category-cell > div > div > ul > li:last-child > div.description {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/*
|
|
Links
|
|
*/
|
|
div.cell p > a:not(.pk-button),picture
|
|
.link-cell:not(.has-asset-picture) a {
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 0.09em;
|
|
text-decoration-style: dotted;
|
|
transition: all linear .1s;
|
|
text-underline-offset: 0.35em;
|
|
&:hover {
|
|
text-decoration: none;
|
|
color: darken($link-color, 10%);
|
|
}
|
|
}
|
|
|
|
.link-cell:not(.has-asset-picture) {
|
|
div {
|
|
margin: 1.386em 1.618rem;
|
|
}
|
|
}
|
|
|
|
div.link-cell.has-asset-picture {
|
|
div {
|
|
position: relative;
|
|
}
|
|
border: none;
|
|
box-shadow: none;
|
|
picture img {
|
|
border-radius: $border-radius $border-radius 0 $border-radius;
|
|
max-width: 100%;
|
|
min-height: 100%;
|
|
max-height: none;
|
|
}
|
|
picture {
|
|
overflow: hidden;
|
|
height: 138px;
|
|
max-width: 100%;
|
|
position: relative;
|
|
display: block;
|
|
&::before {
|
|
border-radius: $border-radius $border-radius 0 $border-radius;
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #333;
|
|
opacity: 0.2;
|
|
transition: opacity cubic-bezier(.79,.14,.15,.86) .1s;
|
|
}
|
|
}
|
|
&:hover picture {
|
|
&::before {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
a.asset-link {
|
|
padding: 0;
|
|
}
|
|
a:not(.asset-link) {
|
|
position: absolute;
|
|
display: block;
|
|
bottom: 47px;
|
|
padding-left: 10px;
|
|
color: white;
|
|
font-weight: bold;
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
span {
|
|
background-color: $darkened-primary-color;
|
|
padding-left: 0.2em;
|
|
&::after {
|
|
content: "→";
|
|
}
|
|
}
|
|
|
|
}
|
|
a {
|
|
padding-top: 0;
|
|
padding-left: 0;
|
|
&::after {
|
|
content: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
/*
|
|
Forms
|
|
*/
|
|
.wcs-step:not(:last-child)::after {
|
|
z-index: -1
|
|
}
|
|
|
|
form.quixote div.hidden,
|
|
div.invisible {
|
|
display: none;
|
|
}
|
|
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
form button {
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
/*
|
|
Buttons
|
|
*/
|
|
|
|
div.link-cell.pk-button ul > li > a, .link-cell.lingo-basket-cell--item-pay ul > li > a, div.link-cell.pk-big-button ul > li > a, a.pk-button, a.lingo-basket-cell--item-pay, a.pk-big-button, div.table-container ul.pagination li.previous a, div.table-container ul.pagination li.next a, .fargo-pick-popup button, button.ui-button, a#a2-continue, .gru-content button, input[type="submit"], div.buttons input, .gru-content button.cancel-button, div.buttons .cancel-button button {
|
|
box-shadow: none;
|
|
&:hover {
|
|
box-shadow: none;
|
|
}
|
|
&:active {
|
|
border: 2px #ccc inset;
|
|
}
|
|
}
|
|
|
|
.cancel {
|
|
background: 0 !important;
|
|
border: 0 !important;
|
|
color: $link-color !important;
|
|
&:hover {
|
|
color: $darkened-primary-color !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
&:active {
|
|
color: lighten($darkened-primary-color, 5%) !important;
|
|
border: 1px dotted $primary-color !important;
|
|
}
|
|
}
|
|
|
|
/*
|
|
Footer
|
|
*/
|
|
#footer a {
|
|
color: $link-color-footer;
|
|
}
|
|
|
|
a.back-top--link:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* hotfix meal calendar for PP */
|
|
tbody > tr > td.jour {
|
|
height: 100px; // cell will grow since height function like min-height in table cells
|
|
}
|
|
|
|
/* iA.Citizen related (Dashboard & others)*/
|
|
@if $imio-is-iacitizen {
|
|
|
|
#content div.profile-cell {
|
|
div.profile {
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
p.edit-link {
|
|
margin-left: 1em;
|
|
}
|
|
}
|
|
|
|
.dashboardcell .cell {
|
|
border: 0;
|
|
}
|
|
|
|
// .column:last-child .cell {
|
|
// margin-right: 1ex;
|
|
// }
|
|
|
|
.dashboardcell .categories button {
|
|
padding: 0.1em 0.7em;
|
|
margin-right: 0.3em;
|
|
margin-bottom: 0.2em;
|
|
&::after {
|
|
content: " \002714";
|
|
}
|
|
&.off {
|
|
border: 1px solid $primary-color;
|
|
color: $darkened-primary-color;
|
|
background: white;
|
|
&::after {
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.loading {
|
|
display: none;
|
|
}
|
|
|
|
.eventitems,
|
|
.newsitems,
|
|
.deliberations-communales {
|
|
margin: 0 1ex;
|
|
border: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
div.deliberations-communales {
|
|
h2:first-child {
|
|
padding-left: 0;
|
|
}
|
|
p {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.delib,
|
|
.eventitem,
|
|
.newsitem {
|
|
display: flex;
|
|
margin: 1ex;
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
flex-direction: column;
|
|
}
|
|
img {
|
|
border-radius: $border-radius;
|
|
flex: 0;
|
|
width: 160px;
|
|
height: 160px;
|
|
@media screen and (max-width: $nav-mobile-limit) {
|
|
margin: auto;
|
|
}
|
|
}
|
|
div {
|
|
flex: 1;
|
|
margin-left: 1em;
|
|
h3 {
|
|
margin-top: 1ex;
|
|
margin-bottom: 0;
|
|
}
|
|
h4 {
|
|
margin: 0;
|
|
}
|
|
p {
|
|
margin-top: 0.2em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dashboard-settings {
|
|
display: flex;
|
|
.dashboard-meta {
|
|
flex: 1;
|
|
}
|
|
.dashboard-switch {
|
|
margin-top: 1em;
|
|
input {
|
|
box-shadow: none;
|
|
background: 0;
|
|
-webkit-appearance: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
padding: 0;
|
|
position: relative;
|
|
border: 0;
|
|
outline: 0;
|
|
cursor: pointer;
|
|
overflow: initial;
|
|
$switch-width: 3em;
|
|
$switch-height: 1.5em;
|
|
$switch-slider-diameter: 1.75em;
|
|
&::after {
|
|
content: '';
|
|
width: $switch-width;
|
|
height: $switch-height;
|
|
display: inline-block;
|
|
background: rgba(196, 195, 195, .55);
|
|
border-radius: 1em;
|
|
clear: both;
|
|
transition: ease .3s;
|
|
}
|
|
&:checked::after {
|
|
background: $darkened-primary-color;
|
|
}
|
|
&::before {
|
|
content: '';
|
|
width: $switch-slider-diameter;
|
|
height: $switch-slider-diameter;
|
|
display: block;
|
|
position: absolute;
|
|
left: 0;
|
|
top: #{($switch-height - $switch-slider-diameter) / 2};
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, .6);
|
|
transition: ease .3s;
|
|
}
|
|
&:checked::before {
|
|
left: #{$switch-width - $switch-slider-diameter};
|
|
box-shadow: -1px 1px 3px rgba(0,0,0,.6)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |