Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
.main-header {
position: fixed;
top: 0;
right: 0;
left: 0;
margin-left: $sidebar-apps-menus-width;
max-height: $navbar-height;
z-index: $sidebar-z-index;
transform: translate3d(0, 0, 0);
transition: margin-left $transition-speed $transition-fn;
.navbar {
display: flex;
width: 100%;
margin-bottom: 0;
margin-left: 0;
max-height: $navbar-height;
border: none;
@include border-radius(0);
padding: 0;
background-color: $app-header-bg;
}
.navbar-content {
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
> a {
padding: $nav-link-padding;
min-width: $sidebar-apps-icons-width;
justify-content: center;
}
.navbar-logo-button {
padding: 0 .5rem;
flex-shrink: 0;
&.navbar-logo-button--placeholder {
@include media-breakpoint-up(md) {
display: none;
}
@include media-breakpoint-down(md) {
visibility: hidden;
pointer-events: none;
}
}
&:hover,
&:focus,
&:active {
background: transparent;
}
&.navbar-logo-button--delayed {
opacity: 0;
visibility: hidden;
animation: navbar-logo-show .12s $transition-fn calc(#{$transition-speed} - .09s) forwards;
@include media-breakpoint-down(md) {
opacity: 1;
visibility: visible;
animation: none;
}
}
.logo-container {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 $layout-logo-container-size;
min-width: $layout-logo-container-size;
min-height: $layout-logo-container-size;
width: $layout-logo-container-size;
height: $layout-logo-container-size;
margin: auto;
border-radius: 50%;
background: $black;
transition: background-color $transition-speed $transition-fn;
> .sync-in-favicon {
width: $layout-logo-image-size;
height: $layout-logo-image-size;
&.logo-spin-in {
animation: logo-spin-in .45s $transition-fn calc(#{$transition-speed} - .09s) both;
transform-origin: 50% 50%;
@include media-breakpoint-down(md) {
animation: none;
}
}
}
}
}
.navbar-breadcrumb {
margin-left: -.5px;
border-left: .5px solid $app-header-border-color;
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
}
app-navbar-search {
position: relative;
display: block;
flex: 0 1 250px;
min-width: 190px;
padding: 0 .55rem;
}
&.navbar-content--search app-navbar-search {
flex-basis: 360px;
min-width: 280px;
margin-left: -.5px;
margin-right: auto;
border-left: .5px solid $app-header-border-color;
}
.navbar-search {
display: flex;
align-items: center;
justify-content: flex-end;
height: $navbar-height;
}
.navbar-search-mobile-toggle {
display: none;
align-items: center;
justify-content: center;
width: $sidebar-apps-icons-width;
height: $navbar-height;
padding: 0;
border: 0;
background: transparent;
color: $white;
> .lucide {
font-size: 1.1rem;
}
}
.navbar-search-panel {
--navbar-search-border-color: #{$app-header-border-color};
display: flex;
align-items: center;
width: 100%;
min-width: 0;
height: 32px;
border: 1px solid var(--navbar-search-border-color);
border-radius: $border-radius-base;
background: rgba($black, .12);
transition: border-color .15s ease;
}
.navbar-search-mode {
position: relative;
flex: 0 0 auto;
height: 100%;
&::after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
width: 1px;
background-color: var(--navbar-search-border-color);
pointer-events: none;
}
}
.navbar-search-mode-toggle {
display: flex;
align-items: center;
justify-content: center;
gap: .15rem;
width: 2.5rem;
height: 100%;
padding: 0 .25rem;
border: 0;
background: transparent;
color: $white;
&:hover,
&:focus {
background: rgba($black, .1);
}
> .lucide:first-child {
font-size: $font-size-md;
}
}
.navbar-search-mode-chevron {
flex: 0 0 auto;
font-size: .625rem;
}
.navbar-search-mode-menu {
min-width: 15rem !important;
padding: .25rem;
.dropdown-item {
display: flex;
align-items: center;
justify-content: flex-start;
gap: .35rem;
width: 100%;
height: 2rem;
padding: 0 .5rem;
border-radius: $border-radius-base;
> .lucide {
font-size: $font-size-md;
}
> span {
flex: 1 1 auto;
font-size: $font-size-sm;
font-weight: 450;
white-space: nowrap;
}
&:disabled {
opacity: .45;
}
}
}
.navbar-search-mode-shortcut {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
min-width: 2.75rem;
height: 1.35rem;
margin-left: .5rem;
padding: 0 .3rem;
border: 1px solid rgba($gray, .4);
border-radius: $border-radius-base;
background: rgba($gray, .12);
color: inherit;
font-family: inherit;
font-size: .65rem;
font-weight: 500;
line-height: 1;
white-space: nowrap;
}
.navbar-search-field {
position: relative;
display: flex;
flex: 1 1 auto;
min-width: 0;
height: 100%;
input {
width: 100%;
min-width: 0;
height: 100%;
padding: 0 .65rem;
border: 0;
outline: 0;
background: transparent;
color: $white;
font-size: $font-size-sm;
&::placeholder {
color: rgba($white, .72);
opacity: 1;
}
&::-webkit-search-cancel-button {
appearance: none;
}
}
&.navbar-search-field--has-query input {
padding-right: 2rem;
}
&.navbar-search-field--global.navbar-search-field--has-query input {
padding-right: 4rem;
}
}
.navbar-search-clear,
.navbar-search-submit {
position: absolute;
top: 0;
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 100%;
padding: 0;
border: 0;
background: transparent;
color: rgba($white, .82);
&:hover:not(:disabled),
&:focus:not(:disabled) {
color: $white;
background: rgba($black, .1);
}
}
.navbar-search-clear {
right: 0;
}
.navbar-search-field--global .navbar-search-clear {
right: 2rem;
}
.navbar-search-submit {
right: 0;
border-left: 1px solid var(--navbar-search-border-color);
&:disabled {
opacity: .4;
}
}
.navbar-right-side {
display: flex;
margin-left: 0;
flex: 0 0 auto;
min-width: $sidebar-apps-icons-width;
.menu {
display: flex;
justify-content: center;
align-items: center;
width: $sidebar-apps-icons-width;
height: $navbar-height;
cursor: pointer;
padding: 6px;
margin: auto;
user-select: none;
&:hover {
background-color: $sidebar-light-icons-menu-hover-bg;
}
.avatar-img {
align-self: center;
width: 30px;
height: 30px;
object-fit: cover;
border-radius: 50%;
}
}
}
@include media-breakpoint-down(md) {
app-navbar-search {
flex-basis: 210px;
min-width: 180px;
}
&.navbar-content--search app-navbar-search {
flex-basis: 300px;
min-width: 240px;
}
}
@include media-breakpoint-down(sm) {
app-navbar-search {
flex: 0 0 $sidebar-apps-icons-width;
min-width: $sidebar-apps-icons-width;
padding: 0;
}
&.navbar-content--search app-navbar-search {
flex: 1 1 auto;
min-width: 0;
padding: 0 .5rem;
}
&.navbar-content--search {
.navbar-search-mobile-toggle {
display: none;
}
.navbar-search-panel {
position: static;
right: auto;
left: auto;
display: flex;
width: 100%;
height: 32px;
margin: 0;
background: rgba($black, .12);
box-shadow: none;
}
}
.navbar-search-mobile-toggle {
display: flex;
&:hover,
&:focus {
background-color: $sidebar-light-icons-menu-hover-bg;
}
}
.navbar-search-panel {
position: fixed;
top: $navbar-height;
right: 0;
left: 0;
display: none;
width: auto;
height: 42px;
margin: .4rem;
background: $app-header-bg;
box-shadow: 0 .35rem 1rem rgba($black, .28);
}
.navbar-search--mobile-open .navbar-search-panel {
display: flex;
}
}
.navbar-search-panel:focus-within {
--navbar-search-border-color: #{$app-header-border-focus-color};
}
}
//Navbar toggle button
.navbar-button {
display: flex;
align-items: center;
background: transparent none;
height: $navbar-height;
color: $white;
&:hover {
background-color: darken($primary, 5%);
}
&:focus,
&:active {
background: transparent;
}
}
}
@keyframes navbar-logo-show {
from {
opacity: 0;
visibility: hidden;
}
to {
opacity: 1;
visibility: visible;
}
}
@keyframes logo-spin-in {
from {
transform: rotate(220deg);
}
to {
transform: rotate(0);
}
}
.breadcrumb {
display: flex;
align-items: center;
justify-content: flex-start;
min-width: 0;
height: $navbar-height;
background: transparent;
font-size: $font-size-base;
padding: 0 .5rem 0 .75rem;
margin: 0;
color: $sidebar-light-icons-menu-color;
@include media-breakpoint-down(sm) {
padding-left: .5rem;
}
.breadcrumb-content {
display: flex;
align-items: center;
justify-content: flex-start;
width: 100%;
min-width: 0;
@include text-truncate-utility;
@include no-select-pointer-utility;
@include media-breakpoint-down(sm) {
.breadcrumb-mobile-active > a {
color: $gray-lightest !important;
}
.breadcrumb-mobile-hidden {
display: none;
}
}
> li {
&:not(:first-child) {
@include text-truncate-utility;
}
display: inline;
list-style: none;
&.active {
> a {
color: $gray-lightest !important;
}
}
&:first-child {
overflow: visible;
> a {
gap: .4rem;
margin-right: .3rem;
}
}
> a {
display: flex;
align-items: center;
min-width: 0;
color: darken($gray-light, 10%);
text-decoration: none;
margin-left: .125rem;
margin-right: .125rem;
&:hover {
color: $gray-lightest;
}
> .lucide {
font-size: 1.1rem;
}
> span {
min-width: 0;
@include text-truncate-utility;
}
}
}
> .lucide {
flex-shrink: 0;
font-size: $font-size-md;
color: $sidebar-light-apps-menu-title-color;
}
}
}