scinote-web/app/assets/stylesheets/navigation/top_menu.scss

98 lines
1.6 KiB
SCSS
Raw Normal View History

// scss-lint:disable SelectorDepth unknownProperties IdSelector
// scss-lint:disable NestingDepth SelectorFormat
#sciNavigationTopMenuContainer {
display: contents;
}
.sci--navigation--top-menu-container {
align-items: center;
background-color: $color-white;
box-shadow: $flyout-shadow;
display: flex;
gap: .5em;
height: 100%;
padding: 0 2em;
.sci--navigation--top-menu-logo {
a {
display: inline-block;
}
.logo {
max-height: 22px;
&.small {
display: none;
}
}
}
.sci--navigation--top-menu-teams {
height: 36px;
margin-left: 2em;
width: 220px;
}
.sci--navigation--top-menu-search {
margin-left: auto;
margin-right: 1em;
width: 240px;
2023-05-08 20:44:50 +08:00
input {
border-color: $color-alto;
}
.fas {
color: $color-silver-chalice;
}
}
.sci--navigation--top-menu-user {
align-items: center;
cursor: pointer;
display: flex;
gap: 1em;
margin-left: .75em;
span {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2023-04-14 17:38:28 +08:00
.avatar {
border-radius: 50%;
}
}
.dropdown-menu {
top: calc(50px - 0.5em);
border-radius: 0px;
}
.top-menu-user-dropdown {
top: calc(47px - 0.5em);
}
2023-04-06 19:02:34 +08:00
.dropdown-menu li a {
line-height: 1rem;
padding: .625rem 1rem;
}
@media(max-width: 1200px) {
.sci--navigation--top-menu-logo {
.logo {
&.large {
display: none;
}
&.small {
display: initial;
}
}
}
}
}