scinote-web/app/assets/stylesheets/reports/new.scss

668 lines
11 KiB
SCSS
Raw Normal View History

2021-03-25 20:12:52 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
.reports-new {
height: calc(100vh - var(--navbar-height));
@mixin step-dot-active {
border: 2px solid $brand-primary;
}
@mixin step-dot-completed {
background: $brand-primary;
}
.reports-new-header {
align-items: center;
display: flex;
height: 4em;
.report-name-container {
width: 50%;
.report-name {
@include font-h1;
&:placeholder-shown {
border: 1px solid $brand-danger;
&::placeholder {
color: $brand-danger;
}
}
2021-03-25 20:12:52 +08:00
}
}
.cancel-button {
margin-left: auto;
}
}
.reports-new-body {
background: $color-concrete;
height: calc(100% - 10em);
overflow-y: auto;
padding-left: calc(-1em - 15px);
width: 100%;
2021-03-25 20:12:52 +08:00
}
.reports-new-footer {
align-items: center;
display: flex;
height: 6em;
.back-container {
flex-basis: 25%;
}
.wizard-status {
display: flex;
flex-basis: 50%;
justify-content: center;
position: relative;
}
.wizard-steps {
--wizard-step-dot-size: 8px;
color: $color-silver-chalice;
flex: 1;
font-weight: bold;
position: relative;
text-align: center;
user-select: none;
z-index: 2;
.step-id {
@include font-h3;
display: inline-block;
line-height: 1.5em;
text-align: center;
width: calc(2 * var(--wizard-step-dot-size));
}
.step-dot {
background: $color-concrete;
border-radius: 50%;
display: inline-block;
height: var(--wizard-step-dot-size);
margin: 0 calc(var(--wizard-step-dot-size) / 2);
width: var(--wizard-step-dot-size);
}
.step-name {
display: inline-block;
white-space: nowrap;
}
2021-04-13 20:10:52 +08:00
.change-step {
cursor: pointer;
height: 100%;
position: absolute;
top: 0;
width: 6em;
2021-03-25 20:12:52 +08:00
2021-04-13 20:10:52 +08:00
}
2021-03-25 20:12:52 +08:00
&.wizard-step-1 {
text-align: left;
2021-04-13 20:10:52 +08:00
.change-step {
left: -3em;
}
2021-03-25 20:12:52 +08:00
.name-wrapper {
margin-left: calc(-50% + 2 * var(--wizard-step-dot-size));
}
}
2021-04-13 20:10:52 +08:00
&.wizard-step-2 {
.change-step {
margin: 0 calc(50% - 3em);
}
}
2021-03-25 20:12:52 +08:00
&.wizard-step-3 {
text-align: right;
2021-04-13 20:10:52 +08:00
.change-step {
right: -3em;
}
2021-03-25 20:12:52 +08:00
.name-wrapper {
margin-right: calc(-50% + 2 * var(--wizard-step-dot-size));
}
}
}
.progress-line {
background: $color-concrete;
height: 4px;
margin: 12px 0;
position: absolute;
top: 1.5em;
width: calc(50% - 8px);
z-index: 1;
&.progress-step-1 {
left: 8px;
}
&.progress-step-2 {
right: 8px;
}
}
2021-04-13 20:10:52 +08:00
.generate-button,
.report-generate-actions-dropdown {
2021-03-25 20:12:52 +08:00
display: none;
}
2021-04-13 20:10:52 +08:00
.report-generate-actions-dropdown {
position: relative;
}
2021-03-25 20:12:52 +08:00
.next-button-container {
flex-basis: 25%;
margin-left: auto;
text-align: right;
}
&[data-step="1"] {
.wizard-step-1 {
color: initial;
.step-dot {
@include step-dot-active;
}
}
.back-button {
display: none;
}
}
&[data-step="2"] {
.wizard-step-1 {
.step-dot {
@include step-dot-completed;
}
}
.wizard-step-2 {
color: initial;
.step-dot {
@include step-dot-active;
}
}
.progress-step-1 {
background: $brand-primary;
}
}
&[data-step="3"] {
.wizard-step-1 {
.step-dot {
@include step-dot-completed;
}
}
.wizard-step-2 {
.step-dot {
@include step-dot-completed;
}
}
.wizard-step-3 {
color: initial;
.step-dot {
@include step-dot-active;
}
}
.continue-button {
display: none;
}
.generate-button {
display: initial;
}
2021-04-13 20:10:52 +08:00
.report-generate-actions-dropdown {
display: inline-block;
.dropdown-menu {
width: 250px;
li {
padding: .5em 0;
}
}
}
2021-03-25 20:12:52 +08:00
.progress-step-1,
.progress-step-2 {
background: $brand-primary;
}
}
}
.project-selector-container {
background: $color-white;
box-shadow: $modal-shadow;
margin: 2em 20%;
padding: 1em 2em;
width: 60%;
.description {
@include font-main;
}
.project-selector,
.template-selector {
display: inline-block;
margin-bottom: 1em;
width: 100%;
label {
@include font-small;
}
}
#projectDescription {
height: 110px;
padding: .5em;
}
}
2021-04-07 22:14:52 +08:00
.report-template-values-container {
background: $color-white;
box-shadow: $modal-shadow;
margin: 2em 20%;
padding: 1em 2em;
width: 60%;
.template-editor-header {
align-items: center;
display: flex;
margin-bottom: 1em;
.title {
margin: 0 auto 0 0;
}
}
.template-editor-description {
@include font-main;
}
2023-06-08 23:33:50 +08:00
.sn-icon-down {
cursor: pointer;
margin-right: .25em;
&.collapsed {
@include rotate(-90deg);
}
}
.values-container {
.checkbox-value-container {
margin-bottom: 1em;
}
.sci-input-container {
margin-bottom: 1em;
input[type="text"] {
display: block;
max-width: 40%;
}
textarea {
height: 10em;
}
input[type="date"] {
display: block;
max-width: 40%;
}
}
.datetime-picker-container {
display: block;
max-width: 40%;
}
.sci-checkbox-container {
float: left;
margin-right: .5em;
}
ul {
list-style-type: none;
padding-left: 0;
li {
padding: .25em 0;
}
}
.sci-select-container {
display: inline-block;
margin-bottom: 1em;
width: 40%;
}
}
}
2021-04-07 22:14:52 +08:00
2021-04-06 21:27:12 +08:00
.task-contents-container {
background: $color-white;
box-shadow: $modal-shadow;
margin: 2em 20%;
padding: 1em 2em;
width: 60%;
.divider {
background: $color-alto;
height: 1px;
}
.experiment-element {
.experiment-block {
align-items: center;
display: flex;
flex-wrap: wrap;
margin: 1em 0;
}
.content-element-title {
@include font-h1;
margin-bottom: 1em;
}
}
.all-results-container {
align-items: flex-start;
display: flex;
.results-order-contaner {
margin-top: .5em;
.move-down {
float: right;
}
}
}
}
.project-contents-container {
background: $color-white;
box-shadow: $modal-shadow;
margin: 2em 20%;
padding: 1em 2em;
width: 60%;
ul {
list-style-type: none;
padding-left: 1.5em;
2021-04-06 21:27:12 +08:00
}
.sci-checkbox-container {
margin-right: .25em;
}
.header {
align-items: center;
display: flex;
flex-wrap: wrap;
margin: .5em 0 1em;
.title {
@include font-h1;
margin-right: auto;
}
}
.select-all-my-modules {
@include font-h2;
align-items: center;
display: flex;
padding: 1em 0;
}
.hide-unchecked {
align-items: center;
display: flex;
.sci-checkbox-container {
margin-right: .4em;
}
2021-04-06 21:27:12 +08:00
}
.divider {
background: $color-alto;
height: 1px;
}
.experiment-element {
.experiment-block {
align-items: center;
display: flex;
margin: 1em 0;
}
.experiment-name {
2022-07-05 18:49:12 +08:00
@include font-h1;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2021-04-06 21:27:12 +08:00
}
.experiment-contents {
flex-basis: 100%;
}
2023-06-08 23:33:50 +08:00
.sn-icon-down {
cursor: pointer;
margin: 0 0 0 -.1em;
&.collapsed {
@include rotate(-90deg);
}
2021-04-06 21:27:12 +08:00
}
.move-buttons {
margin-left: auto;
.btn {
@include font-h2;
}
.move-down {
float: right;
}
}
}
.experiment-my-module {
@include font-h2;
align-items: center;
background: $color-white;
border-bottom: $border-default;
cursor: pointer;
display: flex;
padding: 1em 0;
&.ui-sortable-helper {
box-shadow: $flyout-shadow;
}
.sci-checkbox-container {
margin-right: .4em;
}
.fa-grip-vertical {
color: $color-silver-chalice;
margin-left: auto;
}
.my-module-name {
display: inline-block;
overflow: hidden;
padding-right: 1em;
text-overflow: ellipsis;
white-space: nowrap;
}
2021-04-06 21:27:12 +08:00
}
.experiment-element:first-child {
.move-up {
display: none;
}
}
.experiment-element:last-child {
.move-down {
display: none;
}
}
}
2021-04-07 22:14:52 +08:00
.task-contents-container {
background: $color-white;
box-shadow: $modal-shadow;
margin: 2em 20%;
padding: 1em 2em;
width: 60%;
.divider {
background: $color-alto;
height: 1px;
margin-top: 1em;
width: 100%;
}
.select-all-container {
@include font-h2;
line-height: 1em;
}
2023-06-08 23:33:50 +08:00
.sn-icon-down {
cursor: pointer;
margin: 0 0 0 .5em;
&.collapsed {
@include rotate(-90deg);
}
}
2021-04-07 22:14:52 +08:00
ul {
list-style-type: none;
padding-left: 1em;
li {
@include font-h2;
line-height: 1em;
padding-top: 1em;
}
.content-element-title {
@include font-h1;
margin-bottom: 1em;
}
}
.repositories-items-description {
@include font-button;
display: flex;
margin-top: 1em;
padding-left: 1em;
.fas {
color: $brand-focus;
}
.sn-icon-info {
margin-right: .1em;
}
}
2021-04-07 22:14:52 +08:00
.all-results-container {
align-items: flex-start;
display: flex;
.results-order-contaner {
margin-top: .5em;
label {
@include font-small;
}
}
}
.file-result-title-container {
align-items: flex-start;
display: flex;
.include-pages-container {
@include font-button;
font-weight: normal;
line-height: 1.2em;
margin-top: 1em;
.fa-exclamation-triangle {
color: $brand-warning;
margin-top: .5em;
width: var(--sci-checkbox-size);
}
.sci-checkbox-container {
margin-right: .4em;
2021-04-07 22:14:52 +08:00
}
}
}
.sci-checkbox-container {
float: left;
margin-right: .25em;
}
.title {
@include font-h1;
margin-bottom: 1em;
}
.protocol-contents,
.result-contents,
.additional-contents {
margin-top: 1em;
}
}
2021-03-25 20:12:52 +08:00
}
@media (max-width: 960px) {
.reports-new {
.reports-new-footer {
.wizard-status {
display: none;
}
}
.project-selector-container {
margin: 2em 1em;
width: calc(100% - 2em);
}
2021-04-07 22:14:52 +08:00
.task-contents-container {
margin: 2em 1em;
width: calc(100% - 2em);
}
2021-03-25 20:12:52 +08:00
}
}