scinote-web/app/assets/stylesheets/repository/repository_toolbar.scss
aignatov-bio a19def15f3
Merge pull request #5357 from G-Chubinidze/gc_SCI_8306
Revamp of (top) toolbar + search field - inventories and items [SCI-8306] [SCI-8307]
2023-05-09 11:18:05 +02:00

191 lines
3.4 KiB
SCSS

// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
.repository-show {
.repository-toolbar {
align-items: center;
background-color: $color-white;
display: flex;
flex-grow: 1;
flex-wrap: nowrap;
height: 6em;
left: var(--left-navigation-width);
padding: 1em 2em 0;
position: fixed;
top: calc(4em + var(--navbar-height));
transition: .4s $timing-function-sharp;
width: calc(100% - var(--left-navigation-width));
z-index: 99;
justify-content: space-between;
.view-switch,
.filter-container {
display: inline-block;
}
.view-switch {
margin-left: auto;
.caret {
margin: 8px 0 8px 8px;
}
&.open {
.caret {
transform: rotateX(180deg);
}
}
.dropdown-menu {
@include font-button;
min-width: 100%;
.divider-label {
@include font-small;
color: $color-silver-chalice;
padding: .25em 1em;
}
.divider {
margin: 0;
}
li {
cursor: pointer;
padding: .5em 1em;
white-space: nowrap;
.button-icon {
margin-right: .5em;
}
&:hover:not(.divider-label) {
background: $color-concrete;
}
.btn {
height: 36px;
}
a {
display: inline-block;
margin: -1em;
padding: .5em 1em;
width: calc(100% + 2em);
&.selected::after {
@include font-awesome;
content: $font-fas-check;
margin-left: auto;
position: absolute;
right: 1em;
}
}
}
}
}
.toolbar-left-block {
display: flex;
>* {
margin-left: .25em;
&:nth-child(1) {
margin-left: 0;
}
}
.view-only-label {
align-items: center;
margin: auto 0;
}
}
.toolbar-right-block {
display: flex;
flex-shrink: 0;
>* {
margin-right: .25em;
&:nth-last-child(1) {
margin-right: 0;
}
}
.active-reminders-filter {
align-items: center;
cursor: pointer;
display: flex;
margin-right: 1em;
.sci-checkbox-container {
margin-right: .5em;
}
.active-reminders-short-label {
display: none;
}
@media(max-width:770px) {
.active-reminders-short-label {
display: inline;
}
.active-reminders-label {
display: none;
}
}
}
}
.repository-provisioning-notice {
color: $brand-info;
}
.archived-label {
color: $color-silver-chalice;
display: inline-block;
margin: 0 auto;
max-width: 400px;
padding: 0 1em;
table {
tr {
td {
padding: 0 .5em;
&:nth-child(1) {
text-align: right;
}
&:nth-child(2) {
color: $color-black;
}
}
}
}
}
}
@media (max-width: 1624px) {
.repository-toolbar {
.btn:not(.prevent-shrink) {
padding: 7px;
width: 36px;
.button-text {
display: none;
}
}
.auto-shrink-button {
.fas {
margin: 0;
}
}
}
}
}