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

215 lines
3.5 KiB
SCSS
Raw Normal View History

// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
@import "constants";
@import "mixins";
.content-pane.protocols-show {
background-color: $color-alto;
margin: 0 -16px;
min-height: calc(100vh - var(--navbar-height));
overflow: hidden;
2023-01-05 18:42:59 +08:00
padding: 0 0 10px;
width: calc(100% + 31px);
2023-02-28 19:05:47 +08:00
.title-row h1 {
max-width: 100%;
}
2023-01-05 18:42:59 +08:00
.content-header {
padding: 0 2em;
}
.protocol-position-container {
background-color: $color-white;
box-shadow: $flyout-shadow;
2023-01-05 18:42:59 +08:00
margin: 20px auto;
max-width: 900px;
padding: 10px 10px 10px 26px;
}
2023-01-05 18:42:59 +08:00
.protocol-section {
margin: 16px 0 16px -20px;
&.protocol-steps-section {
margin-left: 0;
}
.protocol-section-caret {
color: $color-volcano;
display: inline-block;
padding: .5em;
text-decoration: none;
.fas {
margin-right: 5px;
}
&:not(.collapsed) .fas {
@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-02-22 21:59:48 +08:00
.btn {
margin-left: .25em;
}
2023-01-05 18:42:59 +08:00
.caret {
margin-left: 25px;
}
}
}
.protocol-details {
padding-left: 20px;
}
}
.details-container {
.protocol-metadata {
margin-bottom: 2em;
2023-01-05 18:42:59 +08:00
.data-block {
margin-bottom: 16px;
}
2023-01-05 18:42:59 +08:00
.authors-data {
align-items: center;
display: flex;
margin-top: -12px;
2019-11-12 18:26:18 +08:00
.authors-list {
flex-basis: calc(100% - 90px);
flex-grow: 1;
line-height: 32px;
margin-left: .75em;
}
2019-11-12 18:26:18 +08:00
* {
flex-shrink: 0;
}
2019-11-12 18:26:18 +08:00
}
.keywords-data {
align-items: center;
display: flex;
margin-top: -12px;
.keywords-list {
flex-basis: calc(100% - 90px);
flex-grow: 1;
margin-left: .5em;
.dropdown-selector-container {
padding-right: 10px;
&:not(.active) {
.input-field {
border-color: transparent;
&:hover {
border: 1px solid $color-alto;
}
}
}
&.active {
.input-field {
border: 1px solid $color-alto;
}
}
}
}
* {
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;
}
}
}
.protocol-content {
.protocol-name {
font-size: 1.7em;
font-weight: bold;
margin-bottom: 32px;
margin-top: 28px;
}
.repository-new-step {
margin-left: 1.5em;
}
}
2022-06-24 17:21:47 +08:00
.delete-steps-modal {
.btn {
float: initial;
}
}