This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/styles/theme/navigation.scss

441 lines
8.1 KiB
SCSS
Raw Normal View History

2021-05-26 20:10:50 +00:00
@use "sass:math";
2019-12-19 22:09:23 +00:00
.navbar {
z-index: 2;
2018-12-25 15:03:51 +00:00
2019-12-19 22:09:23 +00:00
.navbar-dropdown {
box-shadow: $navbar-dropdown-boxed-shadow;
top: 101%;
2018-12-25 15:03:51 +00:00
}
2020-06-25 21:56:41 +00:00
.navbar-brand {
display: flex;
align-items: center;
}
2018-12-25 15:03:51 +00:00
}
2019-12-19 22:09:23 +00:00
.navbar.main-theme {
background: $light-background;
z-index: 5 !important;
justify-content: space-between;
align-items: center;
.title {
margin: 0;
font-size: 1.75rem;
2020-06-12 17:32:37 +00:00
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.navbar-end {
margin-left: 0;
align-items: center;
display: flex;
}
2019-12-19 22:09:23 +00:00
@media screen and (max-width: $desktop) {
display: flex;
justify-content: space-between;
@media screen and (max-width: $tablet) {
.navbar-brand {
2020-06-12 17:32:37 +00:00
display: none;
2019-12-19 22:09:23 +00:00
}
.user {
2020-06-12 17:32:37 +00:00
width: $user-dropdown-width-mobile;
2020-06-12 17:07:42 +00:00
display: flex;
align-items: center;
.dropdown-trigger {
line-height: 1;
.button {
padding: 0 0.25rem;
height: 1rem;
.icon {
width: .5rem;
}
}
}
2019-12-19 22:09:23 +00:00
.username {
display: none;
}
}
}
}
2018-12-25 15:03:51 +00:00
}
.navbar-menu .navbar-item .icon {
margin: 0 0.5rem;
2018-12-25 15:03:51 +00:00
}
.navbar {
2018-12-25 15:03:51 +00:00
z-index: 4 !important;
}
2019-12-19 22:09:23 +00:00
.app-container {
.namespace-container {
2019-04-23 19:50:37 +00:00
background: $vikunja-nav-background;
2019-05-19 16:19:22 +00:00
z-index: 6;
2019-04-23 19:50:37 +00:00
color: $vikunja-nav-color;
2018-12-25 15:03:51 +00:00
padding: 0;
transition: all $transition;
position: fixed;
bottom: 0;
2020-06-12 17:32:37 +00:00
top: $navbar-height;
2018-12-25 15:03:51 +00:00
overflow-x: auto;
width: $navbar-width;
2018-12-25 15:03:51 +00:00
padding: 0 0 1rem;
2020-06-25 21:56:41 +00:00
left: -147vw;
bottom: 0;
2018-12-25 15:03:51 +00:00
@media screen and (max-width: $tablet) {
top: 0;
width: 70vw;
2020-06-25 21:56:41 +00:00
}
&.is-active {
left: 0;
}
2018-12-25 15:03:51 +00:00
.menu {
2018-12-25 15:03:51 +00:00
.menu-label {
font-size: 1rem;
2019-04-23 19:50:37 +00:00
font-weight: 700;
font-weight: bold;
font-family: $vikunja-font;
color: $vikunja-nav-color;
font-weight: 500;
min-height: 2.5rem;
padding-top: 0;
padding-left: $navbar-padding;
2018-12-25 15:03:51 +00:00
overflow: hidden;
}
.menu-label, .menu-list span.list-menu-link, .menu-list a {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
.list-menu-title {
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.color-bubble {
height: 12px;
flex: 0 0 12px;
}
.favorite {
margin-left: .25rem;
transition: opacity $transition, color $transition;
opacity: 0;
&:hover {
color: $orange;
}
&.is-favorite {
opacity: 1;
color: $orange;
}
}
&:hover .favorite {
opacity: 1;
}
}
.menu-label {
.color-bubble {
width: 14px !important;
height: 14px !important;
}
.is-archived {
min-width: 85px;
}
}
.namespace-title {
display: flex;
align-items: center;
justify-content: space-between;
.menu-label {
margin-bottom: 0;
flex: 1 1 auto;
.name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
a:not(.dropdown-item) {
color: $vikunja-nav-color;
padding: 0 .25rem;
}
.dropdown-trigger {
padding: .5rem;
cursor: pointer;
}
.toggle-lists-icon {
svg {
transition: all $transition;
transform: rotate(90deg);
opacity: 1;
}
&.active svg {
transform: rotate(0deg);
opacity: 0;
}
}
&:hover .toggle-lists-icon svg {
opacity: 1;
}
&:not(.has-menu) .toggle-lists-icon {
padding-right: 1rem;
}
2018-12-25 15:03:51 +00:00
}
.menu-label, .nsettings, .menu-list span.list-menu-link, .menu-list a {
2019-04-23 19:50:37 +00:00
color: $vikunja-nav-color;
2018-12-25 15:03:51 +00:00
}
.menu-list {
li {
2019-04-23 19:50:37 +00:00
height: 44px;
display: flex;
align-items: center;
.dropdown-trigger {
opacity: 0;
padding: .5rem;
cursor: pointer;
transition: $transition;
}
&:hover {
background: $white;
.dropdown-trigger {
opacity: 1;
}
}
2018-12-25 15:03:51 +00:00
}
a:hover {
background: transparent;
}
span.list-menu-link, li > a {
padding: 0.75rem .5rem 0.75rem $navbar-padding * 1.5;
2018-12-25 15:03:51 +00:00
transition: all 0.2s ease;
2019-04-23 19:50:37 +00:00
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
2018-12-25 15:03:51 +00:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
2019-04-23 19:50:37 +00:00
border-left: $vikunja-nav-selected-width solid transparent;
2018-12-25 15:03:51 +00:00
.icon {
height: 1rem;
vertical-align: middle;
padding-bottom: 4px;
padding-right: 0.5rem;
2018-12-25 15:03:51 +00:00
}
&.router-link-exact-active {
2019-04-23 19:50:37 +00:00
color: $primary;
border-left: $vikunja-nav-selected-width solid $primary;
2019-04-23 19:50:37 +00:00
.icon {
color: $primary;
}
2018-12-25 15:03:51 +00:00
}
&:hover {
border-left: $vikunja-nav-selected-width solid $primary;
2018-12-25 15:03:51 +00:00
}
}
}
.logo {
display: none;
@media screen and (max-width: $tablet) {
display: block;
}
}
&.namespaces-lists {
2021-05-26 20:10:50 +00:00
padding-top: math.div($navbar-padding, 2);
}
&.loader-container.is-loading:after {
width: 1.5rem;
height: 1.5rem;
top: calc(50% - .75rem);
left: calc(50% - .75rem);
border-width: 2px;
}
2021-01-16 21:59:23 +00:00
.icon {
color: $grey-400 !important;
2021-01-16 21:59:23 +00:00
}
2018-12-25 15:03:51 +00:00
}
.top-menu {
2021-05-26 20:10:50 +00:00
margin-top: math.div($navbar-padding, 2);
2018-12-25 15:03:51 +00:00
2019-04-23 19:50:37 +00:00
.menu-list {
li {
font-weight: 500;
font-family: $vikunja-font;
}
span.list-menu-link, li > a {
padding-left: 2rem;
display: inline-block;
2019-04-23 19:50:37 +00:00
}
2018-12-25 15:03:51 +00:00
}
2021-05-30 15:55:52 +00:00
2018-12-25 15:03:51 +00:00
}
}
}
2021-05-30 15:55:52 +00:00
.navbar {
.trigger-button {
cursor: pointer;
color: $grey-400;
padding: 1rem;
font-size: 1.25rem;
position: relative;
2019-04-23 19:50:37 +00:00
}
2021-05-30 15:55:52 +00:00
.user {
span {
font-family: $vikunja-font;
}
2019-04-23 19:50:37 +00:00
2021-05-30 15:55:52 +00:00
.avatar {
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
border-radius: 100%;
2019-04-23 19:50:37 +00:00
vertical-align: middle;
2021-05-30 15:55:52 +00:00
height: 40px;
2019-04-23 19:50:37 +00:00
}
2021-05-30 15:55:52 +00:00
.logout-icon {
color: $grey-900;
2019-04-23 19:50:37 +00:00
2021-05-30 15:55:52 +00:00
.icon {
vertical-align: middle;
}
2019-04-23 19:50:37 +00:00
}
2021-05-30 15:55:52 +00:00
.dropdown-trigger .button {
background: none;
2021-05-30 15:55:52 +00:00
&:focus:not(:active), &:active {
outline: none !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
}
2018-12-25 15:03:51 +00:00
}
2021-05-30 15:55:52 +00:00
.menu-hide-button, .menu-show-button {
display: none;
z-index: 31;
font-weight: bold;
font-size: 2rem;
2021-01-26 19:46:17 +00:00
color: $text;
2021-05-30 15:55:52 +00:00
line-height: 1;
2018-12-25 15:03:51 +00:00
2021-05-30 15:55:52 +00:00
&:hover, &:focus {
color: $grey-900;
}
}
2018-12-25 15:03:51 +00:00
2020-06-25 21:56:41 +00:00
.menu-hide-button {
2021-05-30 15:55:52 +00:00
position: fixed;
&:hover, &:focus {
color: $text;
}
2018-12-25 15:03:51 +00:00
}
2021-05-30 15:55:52 +00:00
.navbar-brand .menu-show-button {
2018-12-25 15:03:51 +00:00
display: block;
}
.mobile-overlay {
2021-05-30 15:55:52 +00:00
display: none;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(250, 250, 250, 0.8);
z-index: 5;
opacity: 0;
transition: all $transition;
2018-12-25 15:03:51 +00:00
}
2021-05-30 15:55:52 +00:00
@media screen and (max-width: $tablet) {
.menu-hide-button {
display: block;
top: $hamburger-menu-icon-spacing;
right: $hamburger-menu-icon-spacing;
}
.menu-show-button {
display: block;
margin-left: $hamburger-menu-icon-spacing;
}
.mobile-overlay {
display: block;
opacity: 1;
}
.navbar.is-dark .navbar-brand > .navbar-item {
margin: 0 auto;
}
2018-12-25 15:03:51 +00:00
}
2021-05-30 15:55:52 +00:00
.logout-icon {
margin-right: 0.85rem !important;
}
2021-05-30 15:55:52 +00:00
.menu-bottom-link {
width: 100%;
color: $grey-300;
text-align: center;
display: block;
margin: 1rem 0;
font-size: .8rem;
}
}