24ae3cfc7c
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@64 a672b425-5310-4d7a-af5c-997e18724b81
114 lines
1.6 KiB
SCSS
114 lines
1.6 KiB
SCSS
header{
|
|
z-index:1;
|
|
}
|
|
|
|
.menuDesktop {
|
|
background-color: #131313;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
*{
|
|
flex-grow: 0;
|
|
}
|
|
.fill-space{
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
.logo {
|
|
padding: .5em;
|
|
}
|
|
|
|
.nav-menu div ul, .search-box ul {
|
|
/* TODO: if possible, insert a padding-top to move the submenu down such that
|
|
the text of the first element starts at the bottom border of the .menuDesktop */
|
|
display: none;
|
|
position: absolute;
|
|
list-style: none;
|
|
margin-left: -10px;
|
|
background-color: #131313;
|
|
z-index: 1;
|
|
|
|
li {
|
|
color: #FFFFFF;
|
|
margin: 10px;
|
|
}
|
|
|
|
li:hover {
|
|
color: #66aa66;
|
|
}
|
|
}
|
|
|
|
.search-box ul.show {
|
|
display: block;
|
|
}
|
|
|
|
|
|
.nav-menu {
|
|
margin-right: 100px;
|
|
margin-left: 10px;
|
|
display: inline-table;
|
|
|
|
div, code {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
color: #FFFFFF;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
font-size: 20px;
|
|
padding: 0 5px;
|
|
|
|
a{
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
ul:hover {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
code{
|
|
cursor: default;
|
|
}
|
|
|
|
div{
|
|
cursor: pointer;
|
|
}
|
|
|
|
div:hover{
|
|
color: #66aa66;
|
|
|
|
ul {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-box{
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
|
|
input{
|
|
outline:none;
|
|
background-color: #131313;
|
|
border: none;
|
|
transition: 500ms;
|
|
border-bottom: 2px solid white;
|
|
opacity:0;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
img{
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
width: 22px;
|
|
}
|
|
}
|
|
|
|
.search-box:focus-within {
|
|
input {
|
|
margin-left: 0;
|
|
opacity: 1;
|
|
}
|
|
}
|