2019-12-19 23:09:23 +01:00
|
|
|
.navbar {
|
|
|
|
z-index: 2;
|
2018-12-25 16:03:51 +01:00
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
@each $name, $pair in $colors {
|
|
|
|
$color: nth($pair, 1);
|
|
|
|
$color-invert: nth($pair, 2);
|
2018-12-25 16:03:51 +01:00
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
&.is-#{$name} {
|
|
|
|
border-color: darken($color, 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.navbar-dropdown {
|
|
|
|
box-shadow: $navbar-dropdown-boxed-shadow;
|
|
|
|
top: 101%;
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
.navbar.main-theme {
|
|
|
|
background: $light-background;
|
|
|
|
z-index: 5 !important;
|
|
|
|
|
|
|
|
@media screen and (max-width: $desktop) {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
|
|
.navbar-brand {
|
2020-02-09 15:29:55 +01:00
|
|
|
// This prevents the user icon from snapping to the left into the menu button
|
|
|
|
width: 0;
|
|
|
|
overflow: hidden;
|
2019-12-19 23:09:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 640px) { // Magic number to hide the username if it would take too much space otherwise
|
|
|
|
.user {
|
|
|
|
width: 7em;
|
|
|
|
|
|
|
|
.username {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
.hero {
|
|
|
|
.navbar {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
@each $name, $pair in $colors {
|
|
|
|
$color: nth($pair, 1);
|
|
|
|
$color-invert: nth($pair, 2);
|
|
|
|
|
|
|
|
&.is-#{$name} {
|
|
|
|
.navbar {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include touch {
|
|
|
|
.navbar-menu {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-menu .navbar-item .icon{
|
|
|
|
margin: 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar{
|
|
|
|
z-index: 4 !important;
|
|
|
|
}
|
|
|
|
|
2019-12-19 23:09:23 +01:00
|
|
|
.app-container {
|
2018-12-25 16:03:51 +01:00
|
|
|
.namespace-container{
|
2019-04-23 21:50:37 +02:00
|
|
|
background: $vikunja-nav-background;
|
2019-05-19 18:19:22 +02:00
|
|
|
z-index: 6;
|
2019-04-23 21:50:37 +02:00
|
|
|
color: $vikunja-nav-color;
|
2018-12-25 16:03:51 +01:00
|
|
|
padding: 0;
|
|
|
|
transition: all $transition;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
top: $navbar-height + 0.75rem;
|
|
|
|
overflow-x: auto;
|
|
|
|
width: 17vw;
|
|
|
|
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
|
|
padding: 0 0 1em;
|
|
|
|
left: -147vw;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 70vw;
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-22 21:40:13 +01:00
|
|
|
.show-archived-check {
|
|
|
|
width: 100%;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
span {
|
|
|
|
vertical-align: super;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-25 16:03:51 +01:00
|
|
|
.menu{
|
|
|
|
.menu-label {
|
|
|
|
font-size: 1em;
|
2019-04-23 21:50:37 +02:00
|
|
|
font-weight: 700;
|
2019-10-19 17:56:47 +02:00
|
|
|
font-weight: bold;
|
|
|
|
font-family: $vikunja-font;
|
|
|
|
color: $grey;
|
|
|
|
font-weight: 500;
|
2018-12-25 16:03:51 +01:00
|
|
|
min-height: 2.5em;
|
|
|
|
padding-top: $navbar-padding * 0.3;
|
2019-10-19 17:56:47 +02:00
|
|
|
padding-left: $navbar-padding;
|
2018-12-25 16:03:51 +01:00
|
|
|
|
2019-10-19 17:56:47 +02:00
|
|
|
display: block;
|
2018-12-25 16:03:51 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2020-03-22 21:40:13 +01:00
|
|
|
.menu-label, .menu-list a {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
2020-03-22 22:44:33 +01:00
|
|
|
span:not(.icon) {
|
2020-03-22 21:40:13 +01:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-archived {
|
|
|
|
font-size: 0.75em;
|
|
|
|
border: 1px solid $grey;
|
|
|
|
color: $grey !important;
|
|
|
|
padding: 2px 4px;
|
|
|
|
border-radius: 3px;
|
|
|
|
font-family: $vikunja-font;
|
|
|
|
min-width: 60px;
|
|
|
|
display: block;
|
|
|
|
margin-left: 3px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-label .is-archived {
|
|
|
|
min-width: 85px;
|
|
|
|
}
|
|
|
|
|
2018-12-25 16:03:51 +01:00
|
|
|
.nsettings{
|
|
|
|
float: right;
|
2019-10-19 17:56:47 +02:00
|
|
|
padding: 10px 0.3em 0;
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-label,.nsettings,.menu-list a{
|
2019-04-23 21:50:37 +02:00
|
|
|
color: $vikunja-nav-color;
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
2019-10-19 17:56:47 +02:00
|
|
|
.checkinput {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkinput:checked + .more-container {
|
|
|
|
.menu-list.can-be-hidden {
|
|
|
|
opacity: 1;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkinput:not(:checked) + .more-container .hidden-hint {
|
|
|
|
opacity: 1;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden-hint {
|
|
|
|
display: block;
|
|
|
|
opacity: 0;
|
|
|
|
height: 0;
|
|
|
|
text-align: center;
|
2019-04-23 21:50:37 +02:00
|
|
|
color: $grey;
|
2019-10-19 17:56:47 +02:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0.8em;
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-list {
|
2019-10-19 17:56:47 +02:00
|
|
|
&.can-be-hidden {
|
|
|
|
transition: all $transition;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2018-12-25 16:03:51 +01:00
|
|
|
li {
|
2019-04-23 21:50:37 +02:00
|
|
|
height: 44px;
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2020-03-22 21:40:13 +01:00
|
|
|
padding: 0.75em .5em 0.75em $navbar-padding * 1.5;
|
2018-12-25 16:03:51 +01:00
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
2019-04-23 21:50:37 +02:00
|
|
|
-webkit-border-radius: 0;
|
|
|
|
-moz-border-radius: 0;
|
|
|
|
border-radius: 0;
|
2018-12-25 16:03:51 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
2019-04-23 21:50:37 +02:00
|
|
|
border-left: $vikunja-nav-selected-width solid transparent;
|
2018-12-25 16:03:51 +01:00
|
|
|
|
|
|
|
.icon {
|
2019-04-23 21:50:37 +02:00
|
|
|
color: lighten($vikunja-nav-color, 20);
|
2018-12-25 16:03:51 +01:00
|
|
|
height: 1rem;
|
|
|
|
vertical-align: middle;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
padding-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2020-03-04 21:43:11 +01:00
|
|
|
&.router-link-active {
|
2019-04-23 21:50:37 +02:00
|
|
|
color: $primary;
|
|
|
|
border-left: $vikunja-nav-selected-width solid darken($primary, 5%);
|
|
|
|
.icon {
|
|
|
|
color: $primary;
|
|
|
|
}
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2019-04-23 21:50:37 +02:00
|
|
|
background: $white;
|
|
|
|
border-left: $vikunja-nav-selected-width solid darken($primary, 3%);
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
2020-03-22 21:40:13 +01:00
|
|
|
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
}
|
2020-02-09 15:29:55 +01:00
|
|
|
|
|
|
|
.logo {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.top-menu {
|
2019-04-23 21:50:37 +02:00
|
|
|
margin: $navbar-padding / 2 0 $navbar-padding;
|
2018-12-25 16:03:51 +01:00
|
|
|
|
2019-04-23 21:50:37 +02:00
|
|
|
.menu-list {
|
|
|
|
li {
|
|
|
|
font-weight: 500;
|
|
|
|
font-family: $vikunja-font;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding-left: 2em;
|
2020-03-22 21:40:13 +01:00
|
|
|
display: inline-block;
|
2019-04-23 21:50:37 +02:00
|
|
|
}
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-23 21:50:37 +02:00
|
|
|
.navbar .user{
|
|
|
|
padding: 1em 0.5em 0;
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-family: $vikunja-font;
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
-webkit-border-radius: 100%;
|
|
|
|
-moz-border-radius: 100%;
|
|
|
|
border-radius: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logout-icon {
|
|
|
|
color: lighten($black, 10);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-trigger .button {
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
&:focus:not(:active), &:active{
|
|
|
|
outline: none !important;
|
|
|
|
-webkit-box-shadow: none !important;
|
|
|
|
-moz-box-shadow: none !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
.dropdown-content {
|
|
|
|
box-shadow: 0.3em 0.3em 0.8em darken($light, 6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-25 16:03:51 +01:00
|
|
|
.mobilemenu-hide-button,.mobilemenu-show-button{
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
2019-05-19 18:19:22 +02:00
|
|
|
z-index: 31;
|
2018-12-25 16:03:51 +01:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: 2em;
|
2019-05-19 18:19:22 +02:00
|
|
|
color: $dark;
|
2018-12-25 16:03:51 +01:00
|
|
|
&:hover, &:focus{
|
2019-05-19 18:19:22 +02:00
|
|
|
color: darken($dark, 20);
|
2018-12-25 16:03:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobilemenu-hide-button{
|
|
|
|
color: $dark;
|
|
|
|
&:hover, &:focus{
|
|
|
|
color: $dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-overlay{
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background: rgba(250,250,250,0.8);
|
2019-05-19 18:19:22 +02:00
|
|
|
z-index: 5;
|
2018-12-25 16:03:51 +01:00
|
|
|
opacity: 0;
|
|
|
|
transition: all $transition;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: $tablet) {
|
|
|
|
.mobilemenu-hide-button{
|
|
|
|
display: block;
|
|
|
|
top: 1vh;
|
|
|
|
right: 4vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobilemenu-show-button{
|
|
|
|
display: block;
|
|
|
|
top: 1vh;
|
|
|
|
left: 4vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-overlay{
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar.is-dark .navbar-brand > .navbar-item{
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.logout-icon {
|
|
|
|
margin-right: 0.85em !important;
|
|
|
|
}
|
2020-01-31 17:33:34 +01:00
|
|
|
|
|
|
|
.menu-bottom-link {
|
|
|
|
width: 100%;
|
|
|
|
color: $grey-light;
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
|
|
|
margin: 1em 0;
|
|
|
|
font-size: .8em;
|
|
|
|
}
|