scinote-web/app/assets/stylesheets/shared/content_pane.scss

195 lines
3.6 KiB
SCSS
Raw Normal View History

// scss-lint:disable SelectorDepth SelectorFormat
// scss-lint:disable NestingDepth QualifyingElement
2020-06-01 16:24:03 +08:00
.content-pane {
2021-02-12 21:45:09 +08:00
--content-header-size: 9.5em;
2020-06-01 16:24:03 +08:00
background-color: $color-white;
margin: 20px 0;
padding: 25px 20px;
&.flexible {
margin: 0;
padding: 0 1em;
2020-06-01 16:24:03 +08:00
}
.content-header {
&.sticky-header {
background: $color-white;
position: sticky;
position: -webkit-sticky;
top: var(--navbar-height);
z-index: 10;
2020-06-01 16:24:03 +08:00
}
.title-row {
align-items: center;
background: $color-white;
border-bottom: $border-tertiary;
display: flex;
height: 4em;
margin-left: -2em;
padding: 0 2em;
width: calc(100% + 4em);
h1 {
align-items: center;
display: flex;
flex-grow: 1;
margin: 0;
}
2021-03-09 05:01:26 +08:00
.name-readonly-placeholder {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2023-04-24 04:34:36 +08:00
}
2023-04-24 20:14:50 +08:00
2023-04-24 04:34:36 +08:00
.header-actions {
align-items: center;
display: flex;
flex-shrink: 0;
margin-left: auto;
}
2021-03-09 05:01:26 +08:00
2023-04-24 20:14:50 +08:00
.view-switch,
.filter-container {
2023-04-24 04:34:36 +08:00
display: inline-block;
}
2023-04-24 20:14:50 +08:00
2023-04-24 04:34:36 +08:00
.view-switch {
margin-left: auto;
2023-04-24 04:34:36 +08:00
.caret {
margin: 8px 0 8px 8px;
}
2023-04-24 04:34:36 +08:00
&.open {
.caret {
2023-04-24 04:34:36 +08:00
transform: rotateX(180deg);
}
2023-04-24 04:34:36 +08:00
}
2023-04-24 04:34:36 +08:00
.dropdown-menu {
@include font-button;
min-width: 100%;
.divider-label {
@include font-small;
color: $color-silver-chalice;
padding: .25em 1em;
}
2023-04-24 04:34:36 +08:00
.divider {
margin: 0;
}
2023-04-24 04:34:36 +08:00
li {
cursor: pointer;
padding: .5em 1em;
white-space: nowrap;
2023-04-24 04:34:36 +08:00
.button-icon {
margin-right: .5em;
}
2023-04-24 04:34:36 +08:00
&:hover:not(.divider-label) {
background: $color-concrete;
}
2023-04-24 04:34:36 +08:00
.btn {
height: 36px;
}
2022-11-08 23:39:52 +08:00
2023-04-24 04:34:36 +08:00
a {
display: inline-block;
margin: -1em;
padding: .5em 1em;
width: calc(100% + 2em);
2023-04-24 04:34:36 +08:00
&.selected::after {
@include font-awesome;
content: $font-fas-check;
margin-left: auto;
position: absolute;
right: 1em;
2022-11-08 23:39:52 +08:00
}
}
}
2023-04-24 04:34:36 +08:00
}
2023-04-24 04:34:36 +08:00
.cards-switch {
&.active::after {
@include font-awesome;
content: "\f00c";
position: absolute;
right: 1em;
}
}
2023-04-24 04:34:36 +08:00
}
2023-04-24 04:34:36 +08:00
.sort-menu {
display: inline-block;
2023-04-24 04:34:36 +08:00
#sortMenu {
background: $color-white;
2023-04-24 04:34:36 +08:00
&:focus,
&:active {
box-shadow: none;
}
2023-04-24 04:34:36 +08:00
&:hover {
background: $color-concrete;
}
}
2023-04-24 04:34:36 +08:00
.dropdown-menu {
@include font-button;
min-width: 200px;
padding: .5em 0;
2023-04-24 04:34:36 +08:00
a {
border-radius: unset;
cursor: pointer;
padding: .5em 1em;
text-align: left;
2023-04-24 04:34:36 +08:00
&:hover {
background: $color-concrete;
}
2023-04-24 04:34:36 +08:00
&.selected::after {
@include font-awesome;
content: $font-fas-check;
margin-left: auto;
position: absolute;
right: 1em;
}
}
2023-04-24 04:34:36 +08:00
.fa-stack {
width: 2em;
}
}
}
2020-06-01 16:24:03 +08:00
.toolbar-row {
background: $color-white;
border-bottom: $border-tertiary;
margin-left: -2em;
padding: 1em 0;
padding-left: 2em;
width: calc(100% + 4em);
}
2020-06-01 16:24:03 +08:00
}
2021-02-12 21:45:09 +08:00
&[data-toolbar-visible="false"] {
--content-header-size: 5em;
.toolbar-row {
display: none;
}
}
2020-06-01 16:24:03 +08:00
}