vrifox/gitea-theme
Archived
1
0
Fork 0
This repository has been archived on 2022-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-theme/source/partials/_nav.scss

88 lines
1.7 KiB
SCSS
Raw Normal View History

2020-09-27 21:09:15 +02:00
.ui.main.menu {
background: rgb(60, 60, 90);
border-bottom: 0;
font-size: 1em;
2020-09-27 21:09:15 +02:00
min-height: 64px;
@include font-family();
2020-09-27 21:09:15 +02:00
#navbar {
width: 1127px ;
padding: 0;
2020-09-27 21:09:15 +02:00
.item {
color: rgb(245, 245, 255);
2020-09-27 21:09:15 +02:00
&.brand {
margin: 0 .5rem 0 0;
.mini.image {
transition: opacity .2s;
&:hover {
opacity: .9;
}
}
.button.mobile-only {
display: none;
}
}
@if $singleuser == true {
&[href*="explore"],
&[href*="docs.gitea"] {
display: none !important;
}
2020-09-27 21:09:15 +02:00
}
&:not(.brand) {
border-radius: 0;
display: block;
2020-09-27 21:09:15 +02:00
margin: 0px 0px;
padding: 24px;
2020-09-27 21:09:15 +02:00
transition: background .2s, color .2s;
&:hover {
background: rgb(50, 50, 75);
}
&.active {
background: rgb(50, 50, 75);
}
}
}
.seperator {
cursor: default;
display: block;
padding: 22px;
}
@if $singleuser == true {
.right.stackable.menu {
display: none;
}
}
2020-09-27 21:09:15 +02:00
}
.dropdown.item > .menu {
margin-top: 0;
}
.dropdown.item > .menu,
&.text.menu .dropdown.item > .menu {
border: 0;
}
.dropdown.item:hover,
.link.item:hover,
.active.item:hover,
a.item:hover {
color: #ffffff;
}
}
@media (max-width: 767.98px) {
.ui.main.menu {
flex-direction: row;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
#navbar {
.item {
width: auto !important;
}
.right.custom.menu {
display: inherit !important;
flex-direction: row !important;
margin-left: auto !important;
}
}
}
}