mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
289 lines
5.1 KiB
SCSS
289 lines
5.1 KiB
SCSS
// scss-lint:disable IdSelector SelectorDepth NestingDepth
|
|
|
|
.protocols-index {
|
|
|
|
.title-row {
|
|
.fas {
|
|
margin-right: 16px;
|
|
}
|
|
}
|
|
|
|
.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%;
|
|
|
|
tbody {
|
|
td:not(:first-child) {
|
|
max-width: 30rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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));
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.dataTables_scrollBody {
|
|
height: 100%;
|
|
|
|
td:first-child {
|
|
padding-top: 13px;
|
|
}
|
|
|
|
td:not(:first-child) {
|
|
padding: 14px 8px;
|
|
}
|
|
}
|
|
|
|
// Cells
|
|
|
|
// User access
|
|
.users-access-cell {
|
|
.protocol-users-link {
|
|
align-items: center;
|
|
color: $color-silver-chalice;
|
|
display: flex;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.global-avatar-container {
|
|
align-items: center;
|
|
border: 2px solid $color-white;
|
|
display: flex;
|
|
height: 32px;
|
|
justify-content: center;
|
|
line-height: 28px;
|
|
margin-right: -.5em;
|
|
width: 32px;
|
|
}
|
|
|
|
.more-users {
|
|
background: $color-volcano;
|
|
border: 2px solid $color-white;
|
|
border-radius: 50%;
|
|
color: $color-white;
|
|
height: 32px;
|
|
line-height: 28px;
|
|
margin-right: -.5em;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
width: 32px;
|
|
}
|
|
|
|
.new-user {
|
|
background: $color-concrete;
|
|
margin-left: .75em;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.selected {
|
|
.global-avatar-container,
|
|
.more-users {
|
|
border: 2px solid $color-alto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
.select-block.has-draft {
|
|
align-items: center;
|
|
column-gap: 8px;
|
|
display: flex;
|
|
}
|
|
|
|
.input-field:focus-within,
|
|
.datetime-picker-container:focus-within {
|
|
border: 1px solid $brand-focus;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
&.archived {
|
|
.only-active {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&:not(.archived) {
|
|
.only-archive {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
#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 {
|
|
display: flex;
|
|
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;
|
|
}
|
|
}
|
|
|
|
#protocolsioModal {
|
|
.modal-dialog {
|
|
width: 90vw;
|
|
}
|
|
}
|
|
|
|
#newProtocolModal {
|
|
.description {
|
|
@include font-button;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.default-role-container {
|
|
@include font-button;
|
|
display: flex;
|
|
line-height: 24px;
|
|
margin: 1em 0;
|
|
|
|
.sci-checkbox-container {
|
|
margin: 4px 8px 4px 0;
|
|
}
|
|
|
|
small {
|
|
@include font-small;
|
|
display: block;
|
|
line-height: 16px;
|
|
}
|
|
}
|
|
}
|