mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
208 lines
3.8 KiB
SCSS
208 lines
3.8 KiB
SCSS
// scss-lint:disable SelectorDepth SelectorFormat
|
|
// scss-lint:disable NestingDepth QualifyingElement
|
|
|
|
.content-pane {
|
|
--content-header-size: 9.5em;
|
|
background-color: var(--sn-white);
|
|
margin: 20px 0;
|
|
|
|
&.with-grey-background {
|
|
background: var(--sn-super-light-grey);
|
|
}
|
|
|
|
&.flexible {
|
|
margin: 0;
|
|
}
|
|
|
|
.content-header {
|
|
&.sticky-header {
|
|
background-color: inherit;
|
|
position: sticky;
|
|
position: -webkit-sticky;
|
|
top: var(--navbar-height);
|
|
z-index: 250;
|
|
}
|
|
|
|
.title-row {
|
|
align-items: center;
|
|
background-color: inherit;
|
|
display: flex;
|
|
height: 4em;
|
|
margin-left: -1.5rem;
|
|
padding: 0 1.5rem;
|
|
width: calc(100% + 3rem);
|
|
|
|
|
|
h1 {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
margin: 0;
|
|
max-width: calc(100% - 2rem);
|
|
}
|
|
|
|
.name-readonly-placeholder {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.header-actions {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.view-switch,
|
|
.filter-container {
|
|
display: inline-block;
|
|
}
|
|
|
|
.view-switch {
|
|
margin-left: auto;
|
|
|
|
.view-switch-button {
|
|
outline: 1px solid $color-alto;
|
|
}
|
|
|
|
.caret {
|
|
margin: 8px 0 8px 8px;
|
|
}
|
|
|
|
&.open {
|
|
.caret {
|
|
transform: rotateX(180deg);
|
|
}
|
|
}
|
|
|
|
.dropdown-menu {
|
|
@include font-button;
|
|
margin-right: .25em;
|
|
min-width: calc(100% - .25em);
|
|
padding: 0;
|
|
|
|
.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-sn-icon;
|
|
content: $sn-icon-check;
|
|
margin-left: auto;
|
|
position: absolute;
|
|
right: .5rem;
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.cards-switch {
|
|
&.active::after {
|
|
@include font-awesome;
|
|
content: "\f00c";
|
|
position: absolute;
|
|
right: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sort-menu {
|
|
display: inline-block;
|
|
|
|
.dropdown-menu {
|
|
@include font-button;
|
|
min-width: 160px;
|
|
padding: .5em 0;
|
|
|
|
a {
|
|
border-radius: unset;
|
|
cursor: pointer;
|
|
padding: .5em 1em;
|
|
text-align: left;
|
|
|
|
&:hover {
|
|
background: $color-concrete;
|
|
}
|
|
|
|
&.selected::after {
|
|
@include font-sn-icon;
|
|
content: $sn-icon-check;
|
|
margin-left: auto;
|
|
position: absolute;
|
|
right: .5rem;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.fa-stack {
|
|
width: 2em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.toolbar-row {
|
|
background: $color-white;
|
|
margin-left: -1.5rem;
|
|
padding: 1em 1.5rem;
|
|
width: calc(100% + 3rem);
|
|
}
|
|
|
|
.narrow {
|
|
.btn:not(.prevent-shrink) {
|
|
padding: 7px;
|
|
width: 36px;
|
|
}
|
|
|
|
.hidden-xs {
|
|
display: none;
|
|
}
|
|
|
|
.left,
|
|
.middle,
|
|
.right {
|
|
display: flex;
|
|
flex-direction: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
&[data-toolbar-visible="false"] {
|
|
--content-header-size: 5em;
|
|
|
|
.toolbar-row {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|