scinote-web/app/assets/stylesheets/protocol_management.scss
2023-03-28 14:53:47 +02:00

449 lines
7.9 KiB
SCSS

// scss-lint:disable SelectorDepth, NestingDepth, SelectorFormat, ImportantRule, QualifyingElement, IdSelector
@import "constants";
#protocolsioModal {
.modal-body {
padding-bottom: 0;
padding-top: 0;
}
}
.btn-open-file {
overflow: hidden;
position: relative;
margin-top: 9px;
margin-bottom: 4px;
> input[type=file] {
background: $color-white;
cursor: inherit;
display: block;
filter: alpha(opacity = 0);
font-size: 100px;
min-height: 100%;
min-width: 100%;
opacity: 0;
outline: none;
position: absolute;
right: 0;
text-align: right;
top: 0;
}
}
.dropdown-menu {
border: 0;
}
.import-protocols-io {
margin-bottom: 4px;
margin-top: 9px;
}
#protocols-index,
#load-from-repository-modal {
.load-warning-message {
margin-top: 20px;
}
tbody {
tr {
&:hover {
background-color: $color-concrete;
}
}
}
.nav-tabs > li {
text-transform: uppercase;
a {
color: $color-silver-chalice;
padding: 15px 20px;
}
a:hover {
border-color: $color-white;
}
}
.nav > li > a:hover,
.nav > li > a:focus {
background-color: $color-white;
color: $color-emperor;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
background-color: $color-white;
border: 0;
box-shadow: 0 4px 0 $brand-primary;
color: $color-emperor;
font-weight: bold;
margin-bottom: 4px;
}
.tab-pane-settings {
border: 0;
height: calc(100vh - 167px);
}
}
.tab-pane.protocolsio {
padding-bottom: 0;
}
.protocolsio-container {
display: flex;
flex-direction: column;
height: calc(100vh - var(--navbar-height) - 180px);
position: relative;
.ps__rail-y {
opacity: .6;
}
.header {
display: flex;
padding: 1em .5em 1em 0;
.protocols-search-bar-panel {
align-items: center;
display: flex;
flex-direction: row;
flex-grow: 1;
justify-content: space-between;
padding-right: 0;
.service-provider {
align-items: center;
display: flex;
width: 120px;
}
.protocolsio-logo {
height: 30px;
width: 30px;
}
.protocolsio-title {
font-size: 14px;
margin-left: 3px;
vertical-align: middle;
}
.input-group {
margin-bottom: 0;
width: calc(100% - 130px);
.form-control {
border-radius: 4px;
padding-right: 34px;
}
.input-group-addon {
align-items: center;
background: transparent;
border: 0;
color: $color-silver-chalice;
display: flex;
height: 34px;
justify-content: center;
position: absolute;
right: 0;
top: 0;
width: 34px;
z-index: 5;
}
}
}
.protocol-sort {
padding-left: 1em;
input {
display: none;
}
label {
@include font-button;
cursor: pointer;
display: inline-block;
font-weight: normal;
margin: 0;
padding: .5em 1em;
width: 100%;
}
li:nth-child(2) label {
border-bottom: $border-default;
}
input:checked + label {
&::after {
@include font-awesome;
content: $font-fas-check;
margin-left: auto;
position: absolute;
right: 1em;
}
}
}
}
.main-protocol-panel {
display: flex;
flex-grow: 1;
left: -15px;
position: relative;
width: calc(100% + 30px);
}
.protocol-menu {
background-color: $color-white;
border-right: 1px solid $color-alto;
display: flex;
flex-direction: column;
flex-grow: 1;
max-width: 600px;
min-width: 400px;
padding-left: 15px;
padding-right: 0;
position: relative;
width: calc(100% / 3);
}
.protocol-list-side-panel {
height: 100%;
position: relative;
.row {
margin-left: 0;
margin-right: 0;
}
// When no search result is present
.empty-text {
color: $color-silver-chalice;
font-size: 13px;
margin-top: 20px;
text-align: center;
width: calc(100% - 15px);
}
.list-wrapper {
height: 100%;
overflow: hidden;
position: absolute;
width: calc(100% - 15px);
}
.protocol-card {
border: 2px solid transparent;
box-shadow: 0 0 0 0 $color-alto;
cursor: pointer;
margin-right: 15px;
padding: 12px;
position: relative;
transition: .3s;
&::after {
background: $color-gainsboro;
bottom: -2px;
content: "";
height: 1px;
left: 0;
position: absolute;
width: 100%;
}
.card-footer {
align-items: center;
display: flex;
height: 30px;
margin-top: 5px;
.info-line.button {
flex-grow: 1;
}
}
&.active {
border: 2px solid $brand-primary;
border-radius: 2px;
box-shadow: 0 1px 4px 0 $color-alto;
&::after {
display: none;
}
}
&:hover {
background-color: $brand-focus-light;
}
.external-import-btn {
display: none;
}
&:hover .external-import-btn,
&.active .external-import-btn {
display: block;
float: right;
}
}
.protocol-title {
color: $brand-primary;
font-size: 16px;
}
.info-line {
color: $color-dove-gray;
font-size: 13px;
padding-left: 0;
padding-right: 0;
}
.show-more-protocols-btn {
margin: 15px 0;
width: calc(100% - 15px);
}
}
.protocol-preview-panel {
background-color: $color-concrete;
flex-grow: 2;
padding-left: 0;
padding-right: 0;
position: relative;
width: calc((100% / 3) * 2);
.row {
margin-left: 0;
margin-right: 0;
}
// Empty texts on the right
.empty-preview-panel {
padding-top: 79px;
user-select: none;
.protocol-preview-text {
color: $color-silver-chalice;
font-size: 24px;
}
.protocol-preview-subtext {
color: $color-silver-chalice;
font-size: 14px;
}
.text-rows {
text-align: center;
}
.text-separator hr {
border: 1px solid $color-alto;
width: 120px;
}
.row-bottom {
bottom: 40px;
position: absolute;
width: 100%;
}
}
.full-preview-panel {
height: 100%;
}
.preview-banner {
align-items: center;
background-color: $color-white;
border-bottom: 1px solid $color-alto;
color: $color-dove-gray;
display: flex;
font-size: 16px;
height: 68px;
padding-left: 21px;
.txt-holder {
padding-left: 0;
}
.btn-holder {
padding-right: 21px;
}
}
.preview-holder {
height: calc(100% - 80px);
margin: 0 21px 40px;
overflow: hidden;
position: absolute;
width: calc(100% - 42px);
.preview-iframe {
border: 0;
width: 100%;
}
}
}
.footer {
background: $color-white;
bottom: -30px;
box-shadow: 0 -1px 4px 0 $color-gainsboro;
height: 30px;
left: -15px;
position: absolute;
width: calc(100% + 30px);
}
}
@media (max-width: 900px) {
.protocolsio-container {
.header {
.protocol-sort {
padding-left: 0;
}
.protocols-search-bar-panel {
flex-basis: 100%;
}
}
.main-protocol-panel {
display: block;
left: -15px;
position: relative;
width: calc(100% + 30px);
.protocol-list-side-panel {
border-right: 0;
height: 200px;
max-width: 100%;
width: 100%;
}
.protocol-preview-panel {
height: calc(100% - 200px);
position: relative;
width: 100%;
}
}
}
}