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

69 lines
1.1 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;
2023-06-13 18:38:55 +08:00
border-bottom: 1px solid var(--sn-sleepy-grey);
display: flex;
2023-06-13 18:38:55 +08:00
gap: 1rem;
height: 100%;
2023-06-13 18:38:55 +08:00
padding: 0 1rem;
.sci--navigation--top-menu-logo {
a {
display: inline-block;
}
.logo {
2023-06-20 16:22:39 +08:00
max-height: 22px;
&.small {
display: none;
}
}
}
.sci--navigation--top-menu-search {
2023-06-13 18:38:55 +08:00
width: 300px;
}
.sci--navigation--top-menu-user {
2023-04-14 17:38:28 +08:00
.avatar {
border-radius: 50%;
}
}
.dropdown-menu {
2023-05-25 19:46:33 +08:00
top: 43px;
2023-06-02 20:03:57 +08:00
border-radius: 0 0 4px 4px;
}
.top-menu-user-dropdown {
2023-05-25 19:46:33 +08:00
top: 40px;
}
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;
}
}
}
}
}