scinote-web/app/assets/stylesheets/protocols/protocol.scss

258 lines
4.3 KiB
SCSS
Raw Normal View History

// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
.content-pane.protocols-show {
.dropdown-menu {
z-index: 102;
}
.dropdown-backdrop {
z-index: 101;
}
2023-01-05 18:42:59 +08:00
.protocol-section {
background-color: var(--sn-white);
border-radius: .25rem;
display: inline-block;
padding: .25rem 1rem;
width: 100%;
2023-01-05 18:42:59 +08:00
&.protocol-steps-section {
margin-left: 0;
}
.protocol-section-caret {
2023-06-21 18:02:18 +08:00
align-items: center;
2023-06-22 19:21:03 +08:00
color: var(--sn-black);
2023-06-21 18:02:18 +08:00
display: inline-flex;
2023-06-22 17:55:23 +08:00
gap: .5rem;
padding: .5rem .5rem .5rem 0;
2023-01-05 18:42:59 +08:00
text-decoration: none;
.fas {
margin-right: 5px;
}
2023-06-22 17:55:23 +08:00
&:not(.collapsed) .sn-icon {
2023-01-05 18:42:59 +08:00
@include rotate(90deg);
}
}
.protocol-section-title {
display: inline-block;
h2 {
display: inline-block;
margin: 10px 0;
}
.protocol-code {
color: $color-volcano;
margin-left: .5em;
}
}
.protocol-section-header {
align-items: center;
display: flex;
flex-wrap: wrap;
.actions-block {
display: flex;
flex-grow: 1;
justify-content: flex-end;
2023-03-13 18:36:49 +08:00
padding: 0 25px;
2023-01-05 18:42:59 +08:00
2023-02-22 21:59:48 +08:00
.btn {
margin-left: .25em;
}
2023-01-05 18:42:59 +08:00
.caret {
margin-left: 25px;
}
2023-03-13 18:36:49 +08:00
button,
a {
margin-right: 5px;
}
2023-01-05 18:42:59 +08:00
}
}
.protocol-details {
padding-left: 2rem;
2023-01-05 18:42:59 +08:00
}
}
2023-03-09 03:51:47 +08:00
.protocol-details {
.protocol-metadata {
margin-bottom: 2em;
2023-01-05 18:42:59 +08:00
.data-block {
display: flex;
gap: .5rem;
margin-bottom: 16px;
}
2023-01-05 18:42:59 +08:00
.authors-data {
align-items: baseline;
display: flex;
margin-top: -12px;
2023-03-24 19:01:47 +08:00
min-height: 36px;
2019-11-12 18:26:18 +08:00
.authors-list {
2023-09-05 19:39:21 +08:00
font-weight: bold;
line-height: 32px;
margin-left: 8px;
2023-09-05 19:39:21 +08:00
max-width: calc(100% - 90px);
position: relative;
}
2019-11-12 18:26:18 +08:00
* {
flex-shrink: 0;
}
.sci-inline-edit__view,
textarea {
padding-left: 10px;
&::placeholder {
font-weight: normal;
}
}
.sci-inline-edit__view.blank {
font-weight: normal;
2023-03-24 19:01:47 +08:00
&:hover {
border: $border-default;
}
}
2019-11-12 18:26:18 +08:00
}
.keywords-data {
align-items: center;
display: flex;
margin-top: -12px;
2023-03-24 19:01:47 +08:00
min-height: 36px;
.keywords-list {
flex-basis: calc(100% - 90px);
flex-grow: 1;
margin-left: .5em;
.dropdown-selector-container {
padding-right: 10px;
margin-left: 0;
.input-field {
margin-left: 0;
}
&:not(.disabled) {
&:not(.active) {
.input-field {
border-color: transparent;
&:hover {
border: 1px solid $color-alto;
}
}
}
&.active {
.input-field {
border: 1px solid $brand-focus;
}
}
}
&.disabled {
.input-field,
.input-field:hover,
.input-field:active {
border-color: transparent;
}
}
}
}
* {
flex-shrink: 0;
}
}
2019-11-12 18:26:18 +08:00
}
}
.protocol-description {
margin-bottom: 2em;
.data-block {
img {
border-radius: 50%;
height: 24px;
width: 24px;
}
}
.fas.block-icon {
margin-right: 6px;
&.fa-graduation-cap,
&.fa-font {
margin-right: 10px;
}
}
}
.protocol-step-actions {
2022-07-05 18:49:12 +08:00
margin-left: -6px;
margin-top: 2em;
}
.publish-modal {
.modal-body {
@include font-button;
}
.sci-input-container {
margin-bottom: 1em;
}
textarea {
min-height: 64px;
}
.modal-footer {
margin-top: -25px;
}
}
}
.protocol-content {
.protocol-name {
display: inline-block;
2023-09-11 18:03:17 +08:00
font-size: 1.125rem;
font-weight: bold;
position: relative;
2023-09-11 21:58:05 +08:00
width: 100%;
}
.repository-new-step {
margin-left: 1.5em;
}
}
2022-06-24 17:21:47 +08:00
2023-07-25 17:29:46 +08:00
#protocol-description-container {
overflow-x: auto;
2023-07-25 17:29:46 +08:00
}
2022-06-24 17:21:47 +08:00
.delete-steps-modal {
.btn {
float: initial;
}
}