publik-base-theme/static/nimes/_custom.scss

318 lines
4.9 KiB
SCSS

// Header
#toplinks a {
@extend %button;
border-color: white;
padding: 0.2rem 0.5rem;
margin-right: 0.5rem;
}
div#nav {
margin-bottom: 10px;
font-family: 'dosis_semibold', Arial, sans-serif;
@media($max-mobile-viewport) {
.gru-nav-button + ul {
border-top: none;
}
}
> ul {
margin: 0;
> li {
a {
font-weight: normal;
}
> a {
padding: 1.2em 20px;
}
> ul {
box-shadow: 0px 4px 12px 0px $gray-5;
border-radius: $nav-border-radius;
> li {
> a {
display: flex;
font-size: $fz-small;
padding: 0.2em 20px;
&:hover {
font-weight: 700;
}
&::before {
content: '>';
font-size: $fz-xsmall;
margin-right: 0.5rem;
}
}
&:first-child > a {
border-radius: $nav-border-radius $nav-border-radius 0 0;
}
}
}
}
}
}
@media ($max-mobile-viewport) {
div#nav {
> ul > li > ul {
box-shadow: none;
}
}
}
//
// CONTENT
//
div#main-content {
margin-top: 1rem;
}
.central-content div#sidebar {
.cell {
h2:first-child {
color: white;
background: $red;
}
}
div.searchcell form {
display: flex;
flex-wrap: nowrap;
input {
margin-bottom: 0px;
}
}
}
.central-content div#right-sidebar {
margin-left: $sidebar-columns-gutter;
@media ($min-desktop-viewport) {
flex: 0 0 $sidebar-width;
max-width: $sidebar-max-width;
}
@media ($max-mobile-viewport) {
margin: 0 0.7em;
}
.cell {
h2:first-child {
color: white;
background: $red;
}
margin-right: $sidebar-columns-gutter;
}
%cell-links-list {
li {
a {
display: flex;
flex-wrap: nowrap;
&::before {
content: "\f101"; // angle-double-right
font-family: FontAwesome;
color: $red;
margin-right: 0.5rem;
}
}
border-bottom: 1px solid $red;
}
}
}
.gru-content .cell.foldable {
border: 1px solid $red;
h2:first-child {
background: $red;
color: white;
}
&.folded {
border: 1px solid $gray-4;
h2:first-child {
background: $gray-4;
color: black;
}
}
}
div.searchcell form {
padding: 0;
}
.gru-content div.link-list-cell.has-asset-picture,
.gru-content div.wcsformsofcategorycell.has-asset-picture {
picture img {
width: 100%;
}
}
input[type=search].combo-search-input {
border: 1px solid $red;
}
.combo-search--button {
margin-left: -1em;
.combo-search--button-label {
display: none;
}
&::before {
content: '\f002'; // search
font-family: FontAwesome;
display: inline-block;
vertical-align: middle;
}
}
%button, %inverted-button {
box-shadow: none;
&:hover {
box-shadow: none;
}
}
%cancel-button {
border: 1px solid $gray-5;
background: $gray-5;
color: white;
&:hover {
background: $white;
color: $gray-5;
}
}
input, input[type="text"], input[type="email"], input[type="password"],
input[type="url"], input[type="tel"], input[type="number"],
input[type="search"], input[type="file"], input[type="date"],
input[type="datetime-local"], input[type="month"], input[type="time"],
input[type="week"], textarea, select {
&:focus:not([readonly]) {
border-bottom-color: $widget-border;
}
}
.form-content--title {
font-size: $fz-1;
}
// Only links-list with one ressource and a single link will have a link
// we use that to determine on which cells apply this, otherwise we'll have
// to rewrite the whole template for link-list-cell
div.link-list-cell a + div.links-list > ul > li > a {
justify-content: center;
text-align: center;
}
//
// FOOTER
//
div#footer {
border-top: 1px solid #b2b2b2;
div.links-list ul > li > a:hover {
text-decoration: underline;
background: transparent;
}
}
.nimes-footer-bottom {
max-width: $width;
margin: 0 auto;
padding: 0.5rem;
display: flex;
justify-content: center;
background: $gray-6;
color: white;
a {
color: white;
text-decoration: none;
}
}
@mixin nim-link-icon($name) {
& > li.nim-icon-#{$name} {
margin: 0.5rem 0;
> a {
display: flex;
align-items: center;
border: 1px solid $red;
padding: 0;
margin: 0;
&::before {
content: '';
width: 50px;
height: 50px;
background: center / cover no-repeat url(img/icon-#{$name}.svg);
margin-left: 0.5rem;
}
}
}
}
%cell-links-list {
@include nim-link-icon('report');
@include nim-link-icon('pay');
@include nim-link-icon('book');
}
div.link-list-cell.nim-bold-links div.links-list > ul > li > a {
font-weight: bold;
}
//
// FIXES
//
// Hard-coded color on links description
%cell-links-list {
@media ($min-desktop-viewport) {
li a {
padding: 10px
}
}
li div.description {
color: $font-color;
}
}
// h1 and h2 have no padding in text cells
div.text-cell {
h1, h2 {
margin: 0.7rem 1rem;
}
}
// picture of foldable cell still visible when folded
div.cell.folded > div > picture {
display: none;
}
// no padding in wcsformcell
div.wcs-form-cell {
padding: 1rem;
}
// double border on pk-button cells
div.linkcell{
&.pk-button,
&.pk-big-button {
border: none;
}
}