scinote-web/app/assets/stylesheets/my_modules.scss
2023-05-15 11:16:23 +04:00

421 lines
6.7 KiB
SCSS

// Place all the styles related to the MyModules controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
// scss-lint:disable SelectorDepth SelectorFormat
// scss-lint:disable NestingDepth QualifyingElement
@import "constants";
// Fix for elements being scrolled to being hidden behind sticky navigation
html {
scroll-padding-top: 128px;
}
.protocol-description-content {
margin: 20px 0 20px 10px;
}
// Protocols index page
.task-due-date,
.task-state-label {
font-size: 14px;
.alert-green {
color: $brand-success;
}
.alert-yellow {
color: $brand-warning;
}
.alert-red {
color: $brand-danger;
}
}
/* Results index page */
#results {
margin-top: 20px;
}
.navigation-results-counter {
background-color: $color-concrete;
border-radius: $border-radius-circle;
color: $color-volcano;
font-weight: bold;
padding: .1em .5em;
}
.btn-colorselector{
background-color: transparent;
}
.step-container .row {
margin-left: 0;
margin-right: 0;
}
.module-large {
.nav-tabs {
display: flex;
}
.task-code {
align-items: center;
color: $color-volcano;
display: flex;
height: 30px;
margin-left: auto;
padding-right: .5em;
text-align: end;
}
.description-label {
word-break: break-all;
word-wrap: break-word;
}
.comment {
word-break: break-all;
word-wrap: break-word;
}
}
.archived-task-card-code {
bottom: 30px;
position: absolute;
right: 25px;
}
// Create wopi file
.create-wopi-file-btn {
cursor: pointer;
img {
height: 1.5em;
width: 1.5em;
}
}
#new-office-file-modal {
.modal-header {
border-bottom: 0;
}
.modal-body {
margin-bottom: 80px;
}
.modal-footer {
border-top: 0;
}
label.btn {
background-color: $color-white;
color: $color-emperor;
padding-left: 15px;
text-align: left;
&#word-btn.active {
background-color: $office-ms-word;
color: $color-white;
}
&#excel-btn.active {
background-color: $office-ms-excel;
color: $color-white;
}
&#powerpoint-btn.active {
background-color: $office-ms-powerpoint;
color: $color-white;
}
.act {
display: none;
}
&.active {
.inactive {
display: none;
}
.act {
display: inline-block;
}
}
span {
display: inline-block;
margin-left: 15px;
text-align: left;
vertical-align: middle;
}
}
#submit-btn-cont {
padding: 0;
// Stretch button
.btn {
width: 100%;
}
}
}
.mce-toc ul,
.mce-toc li {
list-style-type: none;
}
// Mobile view
@media (max-width: 700px) {
.task-section {
border-left: 0;
padding-left: 0;
.task-section-header {
.actions-block {
flex-wrap: wrap;
justify-content: flex-start;
margin-bottom: 5px;
width: 100%;
.dropdown {
margin-bottom: 5px;
min-width: 100%;
}
}
}
}
.task-details {
.module-tags {
.dropdown-selector-container {
.input-field {
padding-right: 36px;
}
}
}
.datetime-container {
.date-text {
margin-right: 0;
}
.dropdown-menu {
left: -50px !important;
}
}
}
#steps {
.panel-heading {
flex-wrap: wrap;
}
.panel-options {
display: flex;
flex-wrap: wrap;
max-width: 100%;
}
}
.attachments {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
.attachment-placeholder {
margin: 4px 0 16px;
width: 200px;
}
}
#filePreviewModal {
.modal-body {
width: 100%;
.file-preview-container {
width: 90%;
}
}
}
}
.nav {
margin-right: 0px;
}
#module-archive {
[data-view-mode="active"] {
display: none;
}
.toolbar {
margin-top: 1em;
display: flex;
justify-content: space-between;
.left {
justify-self: flex-start;
}
.middle {
margin: 0 auto;
}
.view-switch,
.filter-container {
display: inline-block;
}
.view-switch-button {
outline: 1px solid $color-alto;
}
.view-switch {
margin-left: auto;
.caret {
margin: 8px 0 8px 8px;
}
&.open {
.caret {
transform: rotateX(180deg);
}
}
.dropdown-menu {
@include font-button;
min-width: 100%;
.divider-label {
@include font-small;
color: $color-silver-chalice;
padding: .25em 1em;
}
.divider {
margin: 0;
}
li {
cursor: pointer;
padding: .5em 1em;
white-space: nowrap;
.button-icon {
margin-right: .5em;
}
&:hover:not(.divider-label) {
background: $color-concrete;
}
.btn {
height: 36px;
}
a {
display: inline-block;
margin: -1em;
padding: .5em 1em;
width: calc(100% + 2em);
&.selected::after {
@include font-awesome;
content: $font-fas-check;
margin-left: auto;
position: absolute;
right: 1em;
}
}
}
}
.cards-switch {
&.active::after {
@include font-awesome;
content: "\f00c";
position: absolute;
right: 1em;
}
}
}
}
.module-container {
min-width: 220px;
&.active-card {
z-index: 1000;
}
}
.panel-default {
border: 0;
box-shadow: unset;
position: unset;
width: unset;
.task-selector-container {
padding: .75em .75em 0 1em;
}
.panel-heading {
background-color: $color-concrete;
border-color: $color-white;
.panel-title {
color: $color-volcano;
}
}
.panel-body {
background-color: $color-concrete;
font-weight: normal;
.archived-overdue-date {
.date-label {
color: $color-volcano;
display: inline-block;
font-weight: normal;
width: 90px;
}
.date-value {
color: $color-black;
}
}
}
.panel-footer-scinote {
background: $color-concrete;
border-color: $color-white;
height: 2.5em;
.nav {
border: 0;
}
.tab-content {
background-color: $color-concrete;
box-shadow: $flyout-shadow;
.tab-pane > .text-center {
margin-top: .3em;
}
}
}
}
}
.print-protocol-form {
.sci-checkbox-container {
margin-right: .25em;
}
}