mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
157 lines
2.8 KiB
SCSS
157 lines
2.8 KiB
SCSS
// scss-lint:disable IdSelector SelectorDepth NestingDepth
|
|
|
|
.protocols-index {
|
|
.protocols-datatable {
|
|
--content-header-size: 5em;
|
|
--protocol-toolbar-size: 4em;
|
|
height: calc(100vh - var(--navbar-height) - var(--content-header-size));
|
|
|
|
#protocols-table_wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
|
|
.left-general-toolbar {
|
|
align-items: center;
|
|
column-gap: .5em;
|
|
display: flex;
|
|
}
|
|
|
|
.right-general-toolbar {
|
|
align-items: center;
|
|
display: flex;
|
|
margin-left: auto;
|
|
margin-right: .5em;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
min-width: 150px;
|
|
}
|
|
}
|
|
|
|
.dataTables_scroll {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
height: calc(100% - var(--datatable-pagination-row) - var(--protocol-toolbar-size));
|
|
}
|
|
|
|
.dataTables_scrollBody {
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.protocol-filters {
|
|
display: flex;
|
|
position: relative;
|
|
|
|
.filter-container {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.dropdown-option.users-dropdown-list {
|
|
padding: 8px 10px;
|
|
|
|
.item-avatar {
|
|
border-radius: 50%;
|
|
height: 32px;
|
|
margin: 0 16px 0 0;
|
|
width: 32px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#protocol-versions-modal {
|
|
.modal-body {
|
|
padding-bottom: 0;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.modal-footer {
|
|
border: 0;
|
|
}
|
|
|
|
.protocol-version-row {
|
|
align-items: center;
|
|
border-bottom: 1px solid $color-concrete;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 1em 0;
|
|
|
|
.protocol-actions {
|
|
margin-left: auto;
|
|
min-height: 36px;
|
|
}
|
|
|
|
&:not(:hover) {
|
|
.save-as-draft {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.protocol-version-comment {
|
|
flex-basis: 100%;
|
|
margin-top: .25em;
|
|
|
|
.view-mode {
|
|
border: $border-transparent;
|
|
cursor: pointer;
|
|
min-height: 3em;
|
|
padding: .5em;
|
|
|
|
&:empty::before {
|
|
@include font-button;
|
|
color: $color-silver-chalice;
|
|
content: attr(data-placeholder);
|
|
}
|
|
|
|
&:hover {
|
|
border: $border-tertiary;
|
|
border-radius: $border-radius-default;
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
padding: .5em;
|
|
width: 100%;
|
|
}
|
|
|
|
.edit-buttons {
|
|
display: flex;
|
|
justify-content: end;
|
|
|
|
.btn {
|
|
margin-left: .5em;
|
|
}
|
|
}
|
|
|
|
.protocol-comment-container {
|
|
&[data-edit-mode="0"] {
|
|
.edit-buttons {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.protocol-metadata {
|
|
@include font-small;
|
|
margin-left: 16px;
|
|
}
|
|
}
|
|
|
|
.protocol-version-link {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.protocol-version-comment-row {
|
|
padding-bottom: .5em;
|
|
padding-top: .5em;
|
|
}
|
|
}
|