2022-12-15 23:57:19 +08:00
|
|
|
// scss-lint:disable IdSelector SelectorDepth NestingDepth
|
2022-12-05 20:32:05 +08:00
|
|
|
|
|
|
|
.protocols-index {
|
2023-01-25 04:17:50 +08:00
|
|
|
|
|
|
|
.title-row {
|
|
|
|
.fas {
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-05 20:32:05 +08:00
|
|
|
.protocols-datatable {
|
|
|
|
--content-header-size: 5em;
|
2022-12-06 22:54:50 +08:00
|
|
|
--protocol-toolbar-size: 4em;
|
2022-12-05 20:32:05 +08:00
|
|
|
height: calc(100vh - var(--navbar-height) - var(--content-header-size));
|
|
|
|
|
|
|
|
#protocols-table_wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2023-03-03 22:59:29 +08:00
|
|
|
|
2023-03-22 20:47:59 +08:00
|
|
|
.dataTables_scrollHead {
|
2023-03-14 19:54:13 +08:00
|
|
|
|
2023-07-11 03:09:29 +08:00
|
|
|
thead {
|
|
|
|
.sci-checkbox-container {
|
|
|
|
margin-left: .125rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-22 20:47:59 +08:00
|
|
|
tbody {
|
|
|
|
td {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2023-03-14 19:54:13 +08:00
|
|
|
|
2023-03-22 20:47:59 +08:00
|
|
|
td:first-child {
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
2023-03-09 23:29:40 +08:00
|
|
|
|
2023-03-22 20:47:59 +08:00
|
|
|
td:not(:first-child) {
|
|
|
|
max-width: 30rem;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2023-03-06 15:32:55 +08:00
|
|
|
}
|
|
|
|
|
2023-03-22 20:47:59 +08:00
|
|
|
.table.dataTable .sorting {
|
2023-03-06 15:32:55 +08:00
|
|
|
&::after {
|
2023-03-22 20:47:59 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::after {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2023-03-06 15:32:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-12-05 20:32:05 +08:00
|
|
|
}
|
|
|
|
|
2022-12-19 20:18:24 +08:00
|
|
|
.toolbar {
|
2023-05-09 20:53:50 +08:00
|
|
|
align-items: center;
|
2022-12-19 20:18:24 +08:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.left-general-toolbar {
|
|
|
|
align-items: center;
|
|
|
|
column-gap: .5em;
|
|
|
|
display: flex;
|
2023-05-30 22:13:59 +08:00
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
min-width: 150px;
|
|
|
|
}
|
2022-12-19 20:18:24 +08:00
|
|
|
}
|
|
|
|
|
2023-05-09 20:53:50 +08:00
|
|
|
.view-switch {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2022-12-19 20:18:24 +08:00
|
|
|
.right-general-toolbar {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-05 20:32:05 +08:00
|
|
|
.dataTables_scroll {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2022-12-06 22:54:50 +08:00
|
|
|
height: calc(100% - var(--datatable-pagination-row) - var(--protocol-toolbar-size));
|
2023-02-27 23:07:46 +08:00
|
|
|
padding-bottom: 12px;
|
2023-03-31 17:42:42 +08:00
|
|
|
z-index: 1;
|
2022-12-05 20:32:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.dataTables_scrollBody {
|
|
|
|
height: 100%;
|
2023-02-28 21:53:53 +08:00
|
|
|
|
2023-03-22 20:47:59 +08:00
|
|
|
td {
|
2023-03-23 18:47:57 +08:00
|
|
|
padding: 8px;
|
2023-03-22 20:47:59 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2022-12-05 20:32:05 +08:00
|
|
|
}
|
2023-01-31 17:34:32 +08:00
|
|
|
|
|
|
|
// Cells
|
|
|
|
|
|
|
|
// User access
|
|
|
|
.users-access-cell {
|
|
|
|
.protocol-users-link {
|
|
|
|
align-items: center;
|
2023-06-20 21:53:33 +08:00
|
|
|
color: var(--sn-black);
|
2023-01-31 17:34:32 +08:00
|
|
|
display: flex;
|
2023-06-21 19:24:40 +08:00
|
|
|
gap: .25rem;
|
2023-01-31 17:34:32 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.global-avatar-container {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2023-06-20 21:53:33 +08:00
|
|
|
height: 28px;
|
2023-01-31 17:34:32 +08:00
|
|
|
justify-content: center;
|
|
|
|
line-height: 28px;
|
2023-06-20 21:53:33 +08:00
|
|
|
width: 28px;
|
2023-01-31 17:34:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.more-users {
|
|
|
|
background: $color-volcano;
|
|
|
|
border-radius: 50%;
|
|
|
|
color: $color-white;
|
2023-06-21 19:24:40 +08:00
|
|
|
height: 2em;
|
|
|
|
line-height: 2em;
|
|
|
|
margin-right: .25em;
|
2023-01-31 17:34:32 +08:00
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2023-06-21 19:24:40 +08:00
|
|
|
width: 2em;
|
2023-01-31 17:34:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-user {
|
|
|
|
background: $color-concrete;
|
2023-03-13 18:25:04 +08:00
|
|
|
height: 28px;
|
2023-06-21 19:24:40 +08:00
|
|
|
line-height: 24px;
|
|
|
|
text-align: center;
|
2023-03-13 18:25:04 +08:00
|
|
|
width: 28px;
|
2023-01-31 17:34:32 +08:00
|
|
|
}
|
2023-03-13 18:25:04 +08:00
|
|
|
}
|
2023-01-31 17:34:32 +08:00
|
|
|
|
|
|
|
.selected {
|
|
|
|
.global-avatar-container,
|
|
|
|
.more-users {
|
2023-03-24 19:01:47 +08:00
|
|
|
border: 2px solid $color-concrete;
|
2023-01-31 17:34:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-05-16 16:29:00 +08:00
|
|
|
|
|
|
|
.not-clickable-record {
|
|
|
|
color: $color-alto;
|
|
|
|
}
|
2022-12-05 20:32:05 +08:00
|
|
|
}
|
2022-12-15 23:57:19 +08:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
2023-02-28 23:11:11 +08:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
2022-12-15 23:57:19 +08:00
|
|
|
}
|
2023-01-25 04:17:50 +08:00
|
|
|
|
|
|
|
&.archived {
|
|
|
|
.only-active {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.archived) {
|
|
|
|
.only-archive {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2022-12-05 20:32:05 +08:00
|
|
|
}
|
2023-01-20 21:29:25 +08:00
|
|
|
|
|
|
|
#protocol-versions-modal {
|
|
|
|
.modal-body {
|
|
|
|
padding-bottom: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-footer {
|
|
|
|
border: 0;
|
|
|
|
}
|
2023-01-26 19:39:11 +08:00
|
|
|
|
2023-01-20 21:29:25 +08:00
|
|
|
.protocol-version-row {
|
2023-01-26 19:39:11 +08:00
|
|
|
align-items: center;
|
2023-01-20 21:29:25 +08:00
|
|
|
border-bottom: 1px solid $color-concrete;
|
2023-01-26 19:39:11 +08:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2023-01-20 21:29:25 +08:00
|
|
|
padding: 1em 0;
|
2023-01-26 19:39:11 +08:00
|
|
|
|
2023-03-27 19:28:00 +08:00
|
|
|
.protocol-version-metadata {
|
2023-02-13 16:50:39 +08:00
|
|
|
display: flex;
|
2023-03-27 19:28:00 +08:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
width: 100%;
|
2023-04-07 23:24:41 +08:00
|
|
|
align-items: center;
|
2023-03-27 19:28:00 +08:00
|
|
|
|
|
|
|
.protocol-link {
|
|
|
|
@include font-button;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.protocol-actions {
|
|
|
|
display: flex;
|
|
|
|
margin-left: auto;
|
|
|
|
min-height: 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-buttons {
|
|
|
|
margin-top: .25em;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-left: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.protocol-metadata {
|
|
|
|
@include font-small;
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
2023-01-26 19:39:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:hover) {
|
|
|
|
.save-as-draft {
|
2023-03-27 19:28:00 +08:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
2023-01-26 19:39:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.protocol-version-comment {
|
2023-03-20 18:46:01 +08:00
|
|
|
@include font-button;
|
2023-01-26 19:39:11 +08:00
|
|
|
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 {
|
2023-03-20 18:46:01 +08:00
|
|
|
min-height: 5em;
|
2023-01-26 19:39:11 +08:00
|
|
|
padding: .5em;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.protocol-comment-container {
|
2023-04-07 23:24:41 +08:00
|
|
|
.sci-input-field {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2023-01-26 19:39:11 +08:00
|
|
|
&[data-edit-mode="0"] {
|
|
|
|
.edit-buttons {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2023-04-13 20:49:30 +08:00
|
|
|
|
|
|
|
.edit-buttons {
|
|
|
|
column-gap: 8px;
|
|
|
|
display: flex;
|
2023-04-13 20:58:28 +08:00
|
|
|
justify-content: end;
|
2023-04-13 20:49:30 +08:00
|
|
|
}
|
2023-01-26 19:39:11 +08:00
|
|
|
}
|
|
|
|
}
|
2023-01-20 21:29:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.protocol-version-link {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.protocol-version-comment-row {
|
|
|
|
padding-bottom: .5em;
|
|
|
|
padding-top: .5em;
|
|
|
|
}
|
|
|
|
}
|
2023-02-21 18:03:06 +08:00
|
|
|
|
|
|
|
#protocolsioModal {
|
|
|
|
.modal-dialog {
|
|
|
|
width: 90vw;
|
|
|
|
}
|
|
|
|
}
|
2023-02-17 21:27:20 +08:00
|
|
|
|
|
|
|
#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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-08 22:15:41 +08:00
|
|
|
|
|
|
|
#linked-children-modal {
|
|
|
|
.dataTables_length .form-control {
|
|
|
|
width: 160px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.version-dropdown {
|
|
|
|
align-items: center;
|
|
|
|
column-gap: 8px;
|
2023-03-08 23:31:24 +08:00
|
|
|
display: flex;
|
|
|
|
margin-top: 16px;
|
2023-03-08 22:15:41 +08:00
|
|
|
|
|
|
|
label {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-selector-container {
|
|
|
|
width: 86px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.linked-children-datatable {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
}
|