120 lines
2.3 KiB
CSS
120 lines
2.3 KiB
CSS
|
|
/*---------------------------------------------*/
|
|
/*NAVBAR*/
|
|
nav iframe {
|
|
width: 100%;
|
|
}
|
|
body#body_navbar {
|
|
background-color: transparent;
|
|
overflow: hidden;
|
|
}
|
|
.navbar {
|
|
flex-direction: row;
|
|
/*we have to set the height to use the height % for childs elements*/
|
|
height: var(--nav-height);
|
|
background-color: var(--color-back-base);
|
|
border-bottom: 1px solid var(--color-lines-4);
|
|
}
|
|
.navbar * {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: auto;
|
|
height: 100%;
|
|
}
|
|
/* nav_left is used for links to pages*/
|
|
.navbar .nav_left {
|
|
margin-left: 0px;
|
|
}
|
|
.navbar .nav_left a {
|
|
padding: 0px 20px;
|
|
}
|
|
.navbar .nav_left #nav_logo {
|
|
padding-left: 40px;
|
|
padding-right: 40px;
|
|
}
|
|
.navbar a > * {
|
|
/*to center vertically the text*/
|
|
height: auto;
|
|
}
|
|
.navbar .nav_left img {
|
|
height: calc(100% - 4px);
|
|
}
|
|
.navbar a:hover, .navbar a:focus {
|
|
background-color: var(--color-back-dark);
|
|
}
|
|
.navbar a#nav_logo:hover, .navbar a#nav_logo:focus {
|
|
background-color: var(--color-back-base);
|
|
}
|
|
/* nav_right is used for actions such as connection, search or language*/
|
|
.navbar .nav_right {
|
|
margin-right: 0px;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*---------------------------------------------*/
|
|
/*DROPDOWN*/
|
|
/*
|
|
.dropdown
|
|
.drop_title .drop
|
|
.drop_items
|
|
.drop
|
|
.drop
|
|
*/
|
|
.navbar .nav_right .dropdown {
|
|
position: relative;
|
|
height: 100%;
|
|
flex-direction: column;
|
|
}
|
|
.navbar .nav_right .dropdown .drop {
|
|
position: relative;
|
|
padding: 0px 10px;
|
|
}
|
|
.navbar .nav_right .dropdown .drop_title {
|
|
background-color: var(--color-back-dark);
|
|
pointer-events: none;
|
|
}
|
|
.navbar .nav_right .dropdown .drop_title:focus {
|
|
background-color: var(--color-back-base);
|
|
}
|
|
/* the items that drop horizontally to the left*/
|
|
.navbar .nav_right .dropdown .drop_items {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 100%;
|
|
height: 100%;
|
|
width: auto;
|
|
background-color: var(--color-back-base);
|
|
flex-direction: row;
|
|
}
|
|
/* horizontal space between flag and name*/
|
|
.navbar .nav_right .dropdown .drop > * {
|
|
margin: auto 3px;
|
|
}
|
|
/*flag size*/
|
|
.navbar .nav_right .dropdown img.flag {
|
|
height: 12px;
|
|
}
|
|
/*flag size*/
|
|
.navbar .nav_right .dropdown .drop p {
|
|
font-size: 1.6em;
|
|
}
|
|
/*a rectangle cover the div when focus, so you can click on it to unfocus*/
|
|
.navbar .nav_right .dropdown:focus-within:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
/*inactive language*/
|
|
.navbar a.drop.inactive {
|
|
pointer-events: none;
|
|
filter: grayscale(100%);
|
|
}
|
|
|