You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
275 lines
6.0 KiB
SCSS
275 lines
6.0 KiB
SCSS
@import "colors";
|
|
|
|
// font
|
|
@font-face {
|
|
font-family: 'Contre-Aller';
|
|
src: url('Contre-Aller.woff2');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
// bold variant
|
|
@font-face {
|
|
font-family: 'Contre-Aller';
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
src: url('Contre-Aller-Bold.woff2');
|
|
}
|
|
|
|
.page .previous, .page .next {
|
|
top: 50px + $nav-height;
|
|
}
|
|
|
|
|
|
// special configuration for top navbar
|
|
.navbar.lcv {
|
|
font-family: 'Contre-Aller', Ubuntu, sans-serif;
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Contre-Aller', Ubuntu, sans-serif;
|
|
margin-top: $nav-height;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.navbar {
|
|
justify-content: space-around;
|
|
position: relative;
|
|
}
|
|
|
|
.navbar.footer {
|
|
width: 100%;
|
|
padding: 0;
|
|
z-index: 40;
|
|
a {
|
|
flex: 2;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
// common configuration
|
|
.navbar {
|
|
font-size: $nav-font-navitems;
|
|
z-index: 90;
|
|
width: 100%;
|
|
height: $nav-height;
|
|
background-image: linear-gradient(-90deg,$navbar-1,$navbar-2);
|
|
display: flex;
|
|
box-shadow: 0 0 4px rgba(0, 0, 0, 0.08),0 4px 4px rgba(0, 0, 0, 0.08);
|
|
padding: 0 10px;
|
|
|
|
.nav-logo {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-item {
|
|
color: whitesmoke;
|
|
text-decoration: none;
|
|
padding: 0.5rem 0.7rem;
|
|
align-items: center;
|
|
display: flex;
|
|
transition: background 0.2s linear;
|
|
}
|
|
.nav-separator {
|
|
border-right: #ffffff88 1px solid;
|
|
margin: 10px;
|
|
}
|
|
|
|
.flags,.navbar-flags {
|
|
display: flex;
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
.small-nav {
|
|
width: -moz-fit-content;
|
|
width: fit-content;
|
|
margin-right: 0;
|
|
margin-left: auto;
|
|
border-bottom-left-radius: 5px;
|
|
background-color: darken($navbar-1, 10%);
|
|
background-image: unset;
|
|
height: -moz-fit-content;
|
|
height: fit-content;
|
|
flex-direction: column;
|
|
|
|
.nav-subitem {
|
|
height: 0px;
|
|
padding: 0px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
transition: all 0.2s linear;
|
|
overflow: hidden;
|
|
|
|
span {
|
|
margin: 5px;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgba(0, 0, 0,0.3);
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background-color: rgba(0, 0, 0,0.3);
|
|
}
|
|
|
|
.nav-start {
|
|
justify-content: flex-start;
|
|
margin-right: auto;
|
|
display: flex;
|
|
|
|
.is-active {
|
|
//background-color: rgba(0, 0, 0,0.3);
|
|
span {
|
|
font-weight: bold;
|
|
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
border: 1px #ffffff88 solid;
|
|
//background-image: linear-gradient(-90deg, scale-color($navbar-1, $lightness: 30%), scale-color($navbar-2, $lightness: 34%));
|
|
//padding: 15px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-end {
|
|
justify-content: flex-end;
|
|
margin-left: auto;
|
|
display: flex;
|
|
.nav-item {
|
|
padding-left: 3rem;
|
|
padding-right: 3rem;
|
|
}
|
|
|
|
}
|
|
|
|
.nav-arrow {
|
|
width: .5em;
|
|
height: .5em;
|
|
border: 3px solid transparent;
|
|
border-top: 0;
|
|
border-right: 0;
|
|
border-bottom-color: white;
|
|
border-left-color: white;
|
|
border-radius: 2px;
|
|
transform: rotate(-45deg);
|
|
transform-origin: center;
|
|
margin-left: 10px;
|
|
margin-top: -0.3em;
|
|
}
|
|
}
|
|
|
|
// max size for navbar: reduce font size
|
|
@media (min-width: 801px) and (max-width: 1337px) {
|
|
nav, .navbar {
|
|
font-size: $nav-font-navitems - 1px;
|
|
.nav-item {
|
|
padding: 0.25rem 0.5rem;
|
|
&.soc > img {
|
|
height: 50%;
|
|
}
|
|
}
|
|
}
|
|
.navbar .small-nav.navbar-participate {
|
|
// this is CHEATING
|
|
min-width: 339px;
|
|
}
|
|
}
|
|
|
|
// max size 2 for navbar: add (…) right menu
|
|
@media (min-width: 801px) and (max-width: 1200px) {
|
|
.label-dotmenu {
|
|
display: flex;
|
|
}
|
|
|
|
nav, .navbar {
|
|
.nav-end {
|
|
transition: all 0.2s;
|
|
top: $nav-height;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
z-index: -10;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0px;
|
|
padding-right: 0.7rem;
|
|
background-image: linear-gradient(-90deg, darken($navbar-1, 10%) , darken($navbar-2, 10%));
|
|
.nav-item.flags img {
|
|
height: 72%;
|
|
}
|
|
}
|
|
#toggle-dotmenu:checked ~ .nav-end {
|
|
height: 64px;
|
|
overflow: unset;
|
|
}
|
|
#toggle-dotmenu:checked ~ .label-dotmenu {
|
|
img {
|
|
background-color: $dark-3;
|
|
}
|
|
}
|
|
}
|
|
|
|
.navbar-services .services-list a {
|
|
font-size: $nav-font-gadget-title - 4px;
|
|
}
|
|
|
|
.gadgets .gadget div {
|
|
span {
|
|
font-size: $nav-font-gadget-title - 4px;
|
|
}
|
|
p {
|
|
font-size: $nav-font-gadget-desc - 2px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
// special configuration for footer
|
|
.navbar.footer {
|
|
a {
|
|
display: block;
|
|
padding: 0.5rem 0;
|
|
width: 100%;
|
|
text-align: center;
|
|
flex: unset;
|
|
}
|
|
flex-wrap: wrap;
|
|
height: unset;
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
// max size 3 for navbar: add full vertical menu
|
|
@media (max-width: 800px) {
|
|
.navbar.lcv {
|
|
justify-content: space-between;
|
|
}
|
|
.label-verticalmenu {
|
|
display: flex;
|
|
}
|
|
nav, .navbar {
|
|
.nav-start, .nav-end {
|
|
display: none;
|
|
}
|
|
}
|
|
#toggle-verticalmenu:checked ~ .label-verticalmenu {
|
|
.ham-close { display: flex; }
|
|
.ham-open { display: none; }
|
|
}
|
|
#toggle-verticalmenu:checked ~ .vertical-nav {
|
|
margin-left: 0%;
|
|
}
|
|
#toggle-verticalmenu:checked ~ .vertical-nav-catch {
|
|
display: block;
|
|
}
|
|
}
|