scinote-web/app/assets/stylesheets/themes/scinote.scss

1515 lines
24 KiB
SCSS
Raw Normal View History

// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
@import "constants";
2016-02-12 23:52:43 +08:00
@import "mixins";
2018-03-16 23:38:59 +08:00
@import "main_navigation";
@import "repositories";
2018-05-18 22:24:24 +08:00
@import "bootstrap/mixins/buttons";
2016-02-12 23:52:43 +08:00
/** Layout **/
// Word wrapping everywhere, except for table header of "datatables.js"
body,
table.dataTable td {
text-overflow: ellipsis;
word-break: break-word;
overflow-wrap: break-word;
}
// All tables are fixed, except for table of "datatables.js"
table {
table-layout: fixed;
}
2018-05-18 22:24:24 +08:00
.btn-toggle {
2020-01-31 21:11:37 +08:00
background: $color-white;
border: $border-default;
color: $color-volcano;
&.active {
background: $brand-primary;
border: 1px solid $brand-primary;
box-shadow: none;
color: $color-white;
&.focus {
outline: 0;
}
}
2018-05-18 22:24:24 +08:00
}
2018-12-10 22:42:05 +08:00
#no-teams-jumbotron {
2023-05-29 05:42:26 +08:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 7rem;
img {
margin-bottom: 1.5rem;
max-width: 33%;
}
2018-12-10 22:42:05 +08:00
}
2016-02-12 23:52:43 +08:00
#alert-container {
margin-bottom: 15px;
2016-02-12 23:52:43 +08:00
}
#project-archive-btn {
margin-left: 15px;
}
.form-inline {
.form-group .dropdown {
display: inline-block;
}
}
#fluid-content:not(.no-second-nav-container) {
2016-02-12 23:52:43 +08:00
padding-left: 15px;
padding-right: 15px;
padding-top: 50px;
}
2016-02-12 23:52:43 +08:00
.spacer {
margin-left: 0.5em;
margin-right: 0.5em;
}
.center-block-narrow {
max-width: 400px;
}
@media(max-width:450px) {
.dropdown-notifications {
width: 100%;
}
}
.custom-dropdown-menu {
padding-top: 0;
}
.notifications-dropdown-header,
.system-notifications-dropdown-header,
.dropdown-header {
background-color: $brand-primary;
color: $color-concrete;
font-size: $font-size-base;
font-weight: bold;
padding: 8px 20px;
a {
color: $color-white;
}
}
2016-07-21 19:11:15 +08:00
.well-search-checklist {
background-color: $color-concrete !important;
margin-bottom: 5px;
}
.blockquote-search {
2018-03-30 15:54:57 +08:00
font-size: $font-size-base;
2016-07-21 19:11:15 +08:00
margin-bottom: 10px;
}
2016-02-12 23:52:43 +08:00
.vertical-spacer-one-half {
display: inline-block;
width: 1.5em;
}
// Global invisible setter (hide element, but keep its size)
.invisible {
visibility: hidden !important;
}
/** Skin **/
body {
2018-03-30 15:54:57 +08:00
font-size: $font-size-small;
2016-02-12 23:52:43 +08:00
}
2020-08-20 20:12:45 +08:00
.modal-body {
font-size: $font-size-base;
label {
@include font-small;
}
}
.modal-header h4 {
font-size: 18px;
}
2016-02-12 23:52:43 +08:00
.jumbotron {
background-color: inherit;
}
2023-05-31 06:09:21 +08:00
.no-teams-info {
font-size: small !important;
font-weight: normal !important;
}
2016-02-12 23:52:43 +08:00
.badge {
2023-06-22 17:55:23 +08:00
background-color: var(--sn-science-blue);
border-radius: 50% !important;
2016-02-12 23:52:43 +08:00
font-size: 11px;
border-radius: 5px;
}
.badge-indicator,
.btn .badge-indicator {
font-size: 9px;
2016-02-12 23:52:43 +08:00
margin-left: -8px;
padding: 3px 5px;
2016-02-12 23:52:43 +08:00
top: 3px;
}
.handle-move {
cursor: move;
cursor: -webkit-grabbing;
}
/* this rule is strict because the order of css files is not correct */
.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
width: 100% !important;
}
2018-08-29 17:41:07 +08:00
// Makes blue selected element line fill parent (as it should, fixes sci-2672)
2018-08-29 17:37:07 +08:00
.repository-dropdown {
2018-08-29 17:41:07 +08:00
.selected {
a {
display: block !important;
}
}
}
2018-08-29 17:37:07 +08:00
2016-02-12 23:52:43 +08:00
mark,.mark {
2018-03-28 19:54:01 +08:00
background-color: $brand-warning;
2016-02-12 23:52:43 +08:00
}
.label-default {
background-color: $color-alto;
}
.label-primary {
2018-05-23 17:13:28 +08:00
background-color: $color-concrete;
color: $color-emperor;
2016-02-12 23:52:43 +08:00
}
.circle-icon {
2016-02-12 23:52:43 +08:00
@extend .badge;
2018-03-28 19:54:01 +08:00
background-color: $brand-primary;
2016-02-12 23:52:43 +08:00
border-radius: 1em;
&.disabled {
background-color: $color-silver-chalice;
}
}
.align-right {
text-align: right;
}
2016-02-12 23:52:43 +08:00
.nav-tabs {
margin-bottom: 15px;
& > li.has-error {
& > a {
2018-03-28 19:54:01 +08:00
color: $brand-danger;
2016-02-12 23:52:43 +08:00
&:hover {
2018-03-28 19:54:01 +08:00
color: $brand-danger;
2016-02-12 23:52:43 +08:00
}
}
}
}
2016-11-11 00:20:17 +08:00
.has-error {
2016-11-11 19:03:01 +08:00
.ql-container.ql-snow,
2016-11-11 00:20:17 +08:00
.ql-toolbar.ql-snow {
2018-03-28 19:54:01 +08:00
border: 1px solid $brand-danger;
2016-11-11 00:20:17 +08:00
}
}
2016-02-12 23:52:43 +08:00
.nav-tabs-less {
margin-bottom: 0;
}
.nav-pills {
& > li {
a {
2018-03-28 19:54:01 +08:00
color: $brand-primary;
2016-02-12 23:52:43 +08:00
}
&:not(.active):hover a {
background-color: $color-alto;
}
&.active a {
color: $color-white;
2018-03-28 19:54:01 +08:00
background-color: $brand-primary;
2016-02-12 23:52:43 +08:00
}
}
}
.breadcrumb {
background-color: transparent;
padding: 15px;
margin-bottom: 0;
text-overflow: ellipsis;
overflow: hidden;
}
.nav-tabs-less > li.active > a {
&,&:hover,&:focus {
2018-05-03 22:21:29 +08:00
color: $brand-primary;
2016-02-12 23:52:43 +08:00
background-color: transparent;
border-color: transparent;
}
}
2016-07-21 19:11:15 +08:00
.tag.label.label-info {
font-size: 100%;
2018-03-28 19:54:01 +08:00
background-color: $brand-primary;
2016-07-21 19:11:15 +08:00
}
2016-02-12 23:52:43 +08:00
#secondary-navigation {
white-space: nowrap;
overflow: hidden;
2016-02-12 23:52:43 +08:00
}
.panel-body {
.ql-editor {
2016-11-18 19:54:32 +08:00
padding: 0;
white-space: normal;
blockquote {
padding: 10px 20px;
}
}
}
2016-02-12 23:52:43 +08:00
.navbar-secondary {
margin-left: -280px;
padding-left: 280px;
padding-right: 82px;
2016-02-12 23:52:43 +08:00
margin-bottom: 0;
border-color: transparent;
2018-05-12 00:02:17 +08:00
border-bottom: 0;
2016-02-12 23:52:43 +08:00
z-index: 500;
position: fixed;
width: 100%;
.container-fluid {
border-left: 0;
border-right: 0;
2018-05-12 00:02:17 +08:00
border-top: 0;
padding-left: 0;
2018-05-12 00:02:17 +08:00
padding-right: 0;
}
.navbar-toggle {
margin-right: 100px;
}
#secondary-menu {
2018-05-12 00:02:17 +08:00
background: $color-white;
border-bottom: 1px solid $color-gainsboro;
2023-04-26 16:24:50 +08:00
padding-left: 0;
padding-top: 15px;
2018-05-12 00:02:17 +08:00
2018-05-14 18:08:45 +08:00
.open > a,
.open > a:hover,
.open > a:focus {
2018-05-12 00:02:17 +08:00
background-color: $color-white;
}
&.with-breadcrumbs {
2021-03-09 05:01:26 +08:00
padding-top: .5em;
}
}
.nav-name {
align-items: center;
height: 54px;
line-height: 44px;
2019-08-26 17:20:03 +08:00
margin: 0;
overflow: hidden;
padding: 5px;
text-overflow: ellipsis;
white-space: nowrap;
2016-02-12 23:52:43 +08:00
}
2018-05-12 00:02:17 +08:00
.navbar-nav > li > .dropdown-menu {
margin-top: 4px;
}
2016-02-12 23:52:43 +08:00
ul.nav {
& > li {
text-transform: uppercase;
& > a {
2018-03-28 19:54:01 +08:00
color: $color-silver-chalice;
2016-02-12 23:52:43 +08:00
}
2018-05-12 00:02:17 +08:00
2016-02-12 23:52:43 +08:00
&.active {
2018-03-28 19:54:01 +08:00
@include box-shadow(0 4px 0 $brand-primary);
2020-01-20 22:48:51 +08:00
line-height: 24px;
2018-05-12 00:02:17 +08:00
margin-bottom: 4px;
2016-02-12 23:52:43 +08:00
& > a,
& > a:hover,
& > a:focus {
background: transparent;
2018-05-14 18:08:45 +08:00
color: $color-emperor;
2018-05-12 00:02:17 +08:00
font-weight: bold;
2016-02-12 23:52:43 +08:00
}
ul .active-item {
font-weight: bold;
}
2016-02-12 23:52:43 +08:00
}
}
}
}
.navbar-sign-in-halt {
.navbar-header {
float: left !important;
}
.sign-in-halt-logout-button {
padding-top: 7px;
}
}
.sign-in-halt-container {
margin: 0;
padding: 70px 10px 50px 10px;
width: 100%;
}
2019-12-11 00:24:53 +08:00
.azure-sign-in-actions {
margin-bottom: 10px;
margin-top: 10px;
.btn-azure-ad {
background-color: $office-ms-word;
color: $color-white;
}
}
.okta-sign-in-actions {
margin-bottom: 10px;
margin-top: 10px;
.btn-okta {
background-color: #00297a;
color: $color-white;
}
}
2016-02-12 23:52:43 +08:00
.navbar-secondary {
min-height: 77px;
2020-01-24 20:22:04 +08:00
transition: .4s $timing-function-sharp;
2016-02-12 23:52:43 +08:00
}
.navbar-without-sidebar{
margin-left: 0px;
min-height: 77px;
2019-12-12 20:17:09 +08:00
padding-left: 0;
2020-01-24 20:22:04 +08:00
transition: .4s $timing-function-sharp;
2016-02-12 23:52:43 +08:00
}
/** Chat bubble */
.chat-bubble {
background-color: $color-white;
border-radius: 1em;
padding: 10px;
}
.tab-pane-settings {
background-color: $color-white;
padding: 15px;
}
2017-01-25 19:12:27 +08:00
.breadcrumb-teams {
2016-02-12 23:52:43 +08:00
background-color: $color-concrete;
margin-bottom: 15px;
}
2016-10-04 21:52:48 +08:00
.notification-settings-labels {
line-height: 3em;
margin-top: 40px;
2016-10-04 21:52:48 +08:00
}
2016-09-23 18:52:38 +08:00
// Help link
#help-link {
padding: 13px;
2016-09-23 18:52:38 +08:00
.fas.fa-info-circle {
2018-03-30 15:54:57 +08:00
font-size: $font-size-large;
margin-top: 4px;
2016-09-23 18:52:38 +08:00
}
}
// Checkbox tree
.checkbox-tree ul {
list-style: none;
margin: 0;
padding-left: 15px;
}
2016-02-12 23:52:43 +08:00
.existing-users-smalltext {
width: 100%;
text-align: center;
}
// Teams datatable
.teams-datatable {
margin-bottom: 20px;
.dataTables_paginate {
float: right;
}
}
2016-02-12 23:52:43 +08:00
/** Users datatable */
2017-01-25 19:12:27 +08:00
.panel-team-users .panel-body {
2016-02-12 23:52:43 +08:00
padding-bottom: 0;
}
.user-statistics {
2020-07-07 21:59:02 +08:00
margin-top: 1em;
2016-11-14 22:10:37 +08:00
.list-inline {
2020-07-07 21:59:02 +08:00
margin-left: 0;
2016-11-14 22:04:18 +08:00
}
.label {
font-size: 100%;
}
li {
height: 100px;
2020-07-07 21:59:02 +08:00
margin-bottom: 1em;
margin-right: 2em;
width: 100px;
}
}
2016-07-21 19:11:15 +08:00
/** Protocols management */
.tab-pane-protocols {
& > div.protocols-description {
margin-bottom: 15px;
}
2019-12-12 20:17:09 +08:00
> .sci-btn-group {
2016-07-21 19:11:15 +08:00
margin-right: 30px;
form.button_to {
float: left;
}
2016-07-21 19:11:15 +08:00
}
}
@media(max-width:768px) {
.tab-pane-protocols > .btn-group {
margin-right: 5px;
}
}
2016-02-12 23:52:43 +08:00
@media(max-width:768px) {
.navbar-secondary ul.breadcrumb {
margin-left: 15px;
}
}
2016-07-21 19:11:15 +08:00
.well-protocols-results {
margin-top: 15px;
margin-bottom: 0;
background-color: $color-concrete !important;
& > ul {
list-style: none;
padding-left: 0;
margin-bottom: 0;
& > li {
margin: 2px 0;
}
}
}
.linked-children-datatable {
clear: right;
table thead {
display: none;
}
table tbody tr .breadcrumb {
padding: 0 5px;
position: relative;
right: 15px;
2016-07-21 19:11:15 +08:00
2023-05-25 18:12:16 +08:00
img {
display: inline-block;
}
2016-07-21 19:11:15 +08:00
& li + li::before {
color: $color-volcano;
content: "/ ";
2016-07-21 19:11:15 +08:00
}
}
.dataTables_paginate {
float: right;
.pagination {
2023-06-20 21:53:33 +08:00
align-items: center;
display: flex;
margin: 0;
}
}
2017-01-19 22:58:40 +08:00
.dataTables_info {
padding-top: 8px;
2016-07-21 19:11:15 +08:00
}
}
.no-linked-children {
padding: 16px 0;
}
2016-07-21 19:11:15 +08:00
a.edit-name-link small {
margin-left: 5px;
display: none;
}
a.edit-name-link:hover small {
display: initial;
}
#edit-protocol-metadata-modal {
& div.bootstrap-tagsinput {
width: 100%;
min-height: 64px;
}
}
.bootstrap-tagsinput {
overflow-x: auto;
overflow-y: hidden;
}
2016-02-12 23:52:43 +08:00
ul.no-style {
list-style: none;
margin: 0;
padding: 0;
}
ul.double-line > li {
margin-bottom: 1em;
}
.page-header {
border-color: $color-alto;
margin-top: 0;
2016-02-12 23:52:43 +08:00
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
2018-03-28 19:54:01 +08:00
background-color: $brand-primary;
2016-02-12 23:52:43 +08:00
}
.pagination > li > a,
.pagination > li > span {
2018-03-28 19:54:01 +08:00
color: $brand-primary;
2016-02-12 23:52:43 +08:00
}
2018-05-12 00:02:17 +08:00
#project-show,
#module-archive,
#result-archive {
.panel-default {
box-shadow: 0 3px 6px $color-alto;
}
}
.module-large,
.module-medium,
.module-small {
box-shadow: 0 3px 6px $color-silver-chalice;
}
2016-02-12 23:52:43 +08:00
.panel-default > .panel-heading {
2019-01-18 22:57:44 +08:00
background-color: $color-white;
2016-02-12 23:52:43 +08:00
&>.panel-title {
2019-02-19 21:24:23 +08:00
color: $brand-primary;
2016-02-12 23:52:43 +08:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.panel-archive {
.panel-heading {
background-color: darken($color-gainsboro, 5%);
2018-03-28 19:54:01 +08:00
color: lighten($color-emperor, 15%);
2016-02-12 23:52:43 +08:00
}
}
.panel-options {
position: relative;
2020-05-03 04:34:11 +08:00
bottom: 8px;
2016-02-12 23:52:43 +08:00
}
.panel-footer {
padding: 0 15px;
}
.panel-footer-scinote {
background: $color-white;
2016-02-12 23:52:43 +08:00
padding: 0;
hr {
margin-top: 10px;
margin-bottom: 10px;
}
.btn-link {
color: $color-silver-chalice;
}
.btn-link:hover {
color: darken($color-silver-chalice, 15%);
}
.tab-content {
ul {
margin-bottom: 15px;
}
2016-02-12 23:52:43 +08:00
li {
padding-left: 15px;
padding-right: 15px;
}
2016-02-12 23:52:43 +08:00
.manage-users-link {
display: block;
padding-left: 15px;
margin-bottom: 10px;
}
2016-07-21 19:11:15 +08:00
}
2016-02-12 23:52:43 +08:00
.content-module-info {
max-height: 250px;
overflow: auto;
}
.content-comments {
max-height: 250px;
overflow: auto;
}
.content-activities {
max-height: 250px;
overflow: auto;
}
.content-users {
max-height: 250px;
overflow: auto;
}
.content-notifications {
max-height: 250px;
overflow: auto;
li.notification.alert-red > .date-time {
font-weight: bold;
2018-03-28 19:54:01 +08:00
color: $brand-danger;
2016-02-12 23:52:43 +08:00
}
li.notification.alert-yellow > .date-time {
font-weight: bold;
2018-03-28 19:54:01 +08:00
color: $brand-warning;
2016-02-12 23:52:43 +08:00
}
}
}
/* Accordion panel */
.panel-accordion {
border: 0;
border-radius: 0;
margin-bottom: 0;
&> .panel-heading {
background-color: $color-gainsboro;
2016-02-12 23:52:43 +08:00
border-bottom: 1px solid $color-alto;
.panel-title > a {
&:hover, &:focus {
text-decoration: none;
}
& > span {
@include rotate(90deg);
}
}
}
& .panel-body {
background-color: $color-white;
padding: 0;
}
}
.form-control.bootstrap-select {
background-color: inherit;
@include box-shadow(inherit);
}
.panel-heading .dropdown {
bottom: 8px;
left: 8px;
}
#global-activity-page {
margin-top: 15px;
padding: 0;
2016-02-12 23:52:43 +08:00
}
.btn-more-activities {
margin-bottom: 15px;
}
2016-02-12 23:52:43 +08:00
/** Activity list resembling Bootstrap wells */
ul.content-activities {
li.activity-item {
background-color: $color-white;
2018-06-07 15:29:47 +08:00
border-bottom: 1px solid $color-concrete;
padding: 8px 0;
2016-02-12 23:52:43 +08:00
.activity-item-date {
2016-07-21 19:11:15 +08:00
min-width: 150px;
2016-02-12 23:52:43 +08:00
display: table-cell;
2018-06-07 15:29:47 +08:00
padding: 0 10px;
2016-02-12 23:52:43 +08:00
vertical-align: top;
2018-06-07 15:29:47 +08:00
text-align: center;
2016-02-12 23:52:43 +08:00
}
.activity-item-text {
display: table-cell;
2018-06-07 15:29:47 +08:00
padding: 0 10px;
2016-02-12 23:52:43 +08:00
text-align: justify;
}
}
}
.well {
background-color: $color-white;
}
.well-sm {
border-radius: 0;
}
2019-05-14 15:43:02 +08:00
.protocol-status-container {
align-items: center;
display: flex;
flex-wrap: wrap;
margin-bottom: 5px;
2019-05-14 15:43:02 +08:00
.protocol-status-bar {
display: flex;
height: 40px;
2019-05-14 15:43:02 +08:00
margin-right: 15px;
}
.panel-protocol-status {
border-color: $color-silver;
box-shadow: none;
display: inline-block;
height: 36px;
2020-01-07 23:13:34 +08:00
margin: 2px 0;
2019-05-14 15:43:02 +08:00
& > .panel-body {
padding: 0 0 0 15px;
}
.link-button {
border-radius: 0;
}
.link-button,
.link-toggle {
height: 36px;
2019-05-14 15:43:02 +08:00
position: relative;
right: -1px;
top: -1px;
}
2016-07-21 19:11:15 +08:00
}
}
2017-01-04 00:43:55 +08:00
// Preview protocol modal
2016-12-22 18:43:11 +08:00
@media (min-width: 768px) {
#protocol-preview-modal .modal-dialog {
width: 70%;
}
}
2017-01-03 18:04:09 +08:00
2016-07-21 19:11:15 +08:00
/* Import protocol/s modal */
#import-protocol-modal .modal-dialog {
width: 70%;
}
#import-protocol-modal #import_protocol_description {
border: 1px solid $color-silver;
border-radius: 4px;
padding: 10px;
}
2016-07-21 19:11:15 +08:00
.import-protocols-modal-preview-container {
height: 300px;
overflow-y: scroll;
width: 100%;
.eln-table {
height: 21px;
tr:first-child {
text-align: center;
}
td {
&.htCenter,
&:first-child {
text-align: center;
}
&.htRight {
text-align: right;
}
&.htJustify {
text-align: justify;
}
&.htMiddle {
vertical-align: middle;
}
&.htBottom {
vertical-align: bottom;
}
}
2016-07-21 19:11:15 +08:00
}
.badge-preview {
background-color: $color-silver;
2016-07-21 19:11:15 +08:00
border-radius: 2em;
float: left;
font-size: 20px;
padding: 5px 14px;
position: relative;
top: -10px;
}
}
2017-12-10 08:20:08 +08:00
// Protocolsio Import protocol modal
2016-07-21 19:11:15 +08:00
.import-protocols-modal-preview-container-json {
height: 300px;
2017-11-03 23:45:15 +08:00
overflow-y: scroll;
width: 100%;
.eln-table {
height: 21px;
2017-11-03 23:45:15 +08:00
text-align: center;
}
.badge-preview {
background-color: $color-silver;
border-radius: 2em;
float: left;
font-size: 20px;
padding: 5px 14px;
position: relative;
top: -10px;
}
}
2016-02-12 23:52:43 +08:00
.badge-icon {
background-color: $color-silver;
color: $color-white;
2016-02-12 23:52:43 +08:00
float: left;
font-size: 1.4em;
2016-02-12 23:52:43 +08:00
padding: 6px 10px;
& + .well-sm {
margin-left: 38px;
}
}
.new-asset-box {
border: 1px solid $color-silver;
border-radius: 2px;
2017-06-09 15:49:57 +08:00
font-size: 2rem;
margin-bottom: 20px;
margin-top: 20px;
padding-bottom: 30px;
padding-top: 30px;
2019-04-05 00:15:30 +08:00
background-color: $color-concrete;
.new-asset-upload-icon{
margin-right: 6px;
}
.new-asset-upload-button {
margin-left: 20px;
background-color: inherit;
}
}
.drag-n-drop-file-input {
display: none !important;
}
.dnd-error,
.dnd-total-error {
2018-03-28 19:54:01 +08:00
color: $brand-danger;
}
.is-dragover {
2018-03-28 19:54:01 +08:00
background: $color-black;
bottom: 0;
display: none;
height: 100%;
left: 0;
min-height: 100%;
2018-03-28 19:54:01 +08:00
opacity: .4;
pointer-events: none;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 999999;
span {
color: $color-white;
display: block;
font-size: 4em;
font-weight: bold;
padding-top: 25%;
pointer-events: none;
text-align: center;
}
}
2016-02-12 23:52:43 +08:00
.step,
.result {
.panel {
margin-left: 38px;
}
2020-07-28 21:39:29 +08:00
.result-panel-collapse-link {
text-decoration: none;
2023-06-20 19:41:42 +08:00
&:not(.collapsed) .sn-icon-right {
@include rotate(90deg);
2023-06-20 19:41:42 +08:00
display: inline-block;
}
2020-07-28 21:39:29 +08:00
}
2016-09-20 23:06:07 +08:00
.row {
padding: 0 20px;
}
2016-02-12 23:52:43 +08:00
.panel-heading a[data-toggle] {
color: inherit;
}
.content-comments {
max-height: 250px;
overflow: auto;
2016-09-20 20:13:40 +08:00
padding: 0 15px;
2016-02-12 23:52:43 +08:00
}
}
2016-07-21 19:11:15 +08:00
.hot-table {
2016-02-12 23:52:43 +08:00
margin-bottom: 25px;
}
.step-result-hot-table {
max-height: 400px;
overflow: hidden;
width: 100%;
}
/* Helpers */
.line-wrap {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
&.short {
position: relative;
top: 6px;
max-width: 78%;
}
}
.toolbarButtons {
display: inline-block;
}
/* Pills with arrow */
.nav-stacked-arrow > li > a {
border-radius: 2px;
}
.nav-stacked-arrow > li.active > a:after,
.nav-stacked-arrow > li.active > a:hover:after,
.nav-stacked-arrow > li.active > a:focus:after {
content: '';
position: absolute;
left: 100%;
top: 50%;
margin-top: -19px;
border-top: 19px solid transparent;
2018-03-28 19:54:01 +08:00
border-left: 13px solid $brand-primary;
2016-02-12 23:52:43 +08:00
border-bottom: 19px solid transparent;
}
.nav-stacked-arrow > li.active > a:hover:after {
2018-03-28 19:54:01 +08:00
border-left: 13px solid darken($brand-primary, 15%);
2016-02-12 23:52:43 +08:00
}
/* Overlay to disable interaction while loading ajax */
.loading-overlay {
2020-11-23 21:12:29 +08:00
bottom: 0;
cursor: wait;
2016-07-21 19:11:15 +08:00
left: 0;
2020-11-23 21:12:29 +08:00
position: absolute;
2016-07-21 19:11:15 +08:00
right: 0;
2020-11-23 21:12:29 +08:00
top: 0;
2016-07-21 19:11:15 +08:00
z-index: 1000000000;
2020-11-23 22:02:50 +08:00
&::before {
2020-11-23 21:12:29 +08:00
background: $color-white;
2020-11-23 22:02:50 +08:00
content: "";
2020-11-23 21:12:29 +08:00
display: block;
height: 100%;
opacity: .5;
width: 100%;
}
2020-11-23 22:02:50 +08:00
&::after {
2020-11-23 21:12:29 +08:00
background-image: url("/images/medium/loading.svg");
background-position: center;
background-repeat: no-repeat;
2020-11-23 22:02:50 +08:00
content: "";
2020-11-23 21:12:29 +08:00
display: block;
height: 100%;
position: absolute;
top: 0;
width: 100%;
}
2016-07-21 19:11:15 +08:00
}
2020-11-24 22:37:45 +08:00
body > .loading-overlay {
2016-07-21 19:11:15 +08:00
position: fixed;
2016-02-12 23:52:43 +08:00
}
.turbolinks-progress-bar::before {
2018-03-28 19:54:01 +08:00
background-color: $brand-primary;
2016-02-12 23:52:43 +08:00
}
/* Loading animation for ajax events, inspired by Codrops */
#loading-animation {
position: fixed;
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 3px;
2018-03-28 19:54:01 +08:00
background: $brand-primary;
2016-02-12 23:52:43 +08:00
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
pointer-events: none;
}
#loading-animation.animate {
z-index: 10000000;
opacity: 0;
-webkit-transition: -webkit-transform 5s ease-in, opacity 1s 5s;
transition: transform 5s ease-in, opacity 1s 5s;
-webkit-transform: translate3d(0%, 0, 0);
transform: translate3d(0%, 0, 0);
}
2016-07-21 19:11:15 +08:00
.modal-tooltip {
border-bottom: 1px dotted $color-alto;
2016-07-21 19:11:15 +08:00
cursor: help;
display: inline-block;
pointer-events: auto;
.modal-tooltiptext {
background-color: $color-alto;
border-radius: 6px;
2018-03-28 19:54:01 +08:00
color: $color-emperor;
display: block;
margin-left: 100px;
padding: 5px;
2016-10-20 21:35:09 +08:00
position: absolute;
text-align: center;
visibility: hidden;
width: 200px;
word-wrap: break-word;
z-index: $infinity;
}
2016-02-12 23:52:43 +08:00
}
2016-07-21 19:11:15 +08:00
.modal-tooltip:hover .modal-tooltiptext {
visibility: visible;
2016-02-12 23:52:43 +08:00
}
2016-07-21 19:11:15 +08:00
// don't display tooltip, it's handeled with js
.repository-table .modal-tooltip:hover .modal-tooltiptext {
visibility: hidden;
}
2016-08-25 19:59:50 +08:00
// Comments
2016-09-20 23:06:07 +08:00
.comment-more {
margin-left: 15px;
}
2016-09-21 14:16:23 +08:00
.dropdown.dropdown-comment {
display: inline-block;
2016-08-25 19:59:50 +08:00
[data-role="comment-options"] {
color: $color-emperor;
}
}
2016-08-25 19:59:50 +08:00
.dropdown-menu.dropdown-menu-fixed {
left: auto;
2016-08-25 19:59:50 +08:00
position: fixed;
top: auto;
2016-08-25 19:59:50 +08:00
li:not(.dropdown-header):hover {
2018-03-28 19:54:01 +08:00
background-color: $color-concrete;
}
}
2016-08-25 19:59:50 +08:00
.edit-comment-form {
.help-block {
display: inline;
}
2016-08-26 22:32:49 +08:00
}
2016-10-26 19:41:17 +08:00
//edit avatar
2016-10-26 19:51:05 +08:00
.avatar-container {
2016-10-27 17:18:11 +08:00
background-color: lighten($color-concrete, 2%);
border-radius: 50%;
2020-07-07 21:59:02 +08:00
height: 5em;
2016-10-26 19:41:17 +08:00
position: relative;
2020-07-07 21:59:02 +08:00
width: 5em;
2016-10-26 19:41:17 +08:00
2019-10-30 22:23:14 +08:00
.avatar-edit {
2019-10-30 22:42:11 +08:00
background-color: $color-silver-chalice;
border-radius: inherit;
cursor: pointer;
display: none;
height: inherit;
opacity: .8;
position: absolute;
width: inherit;
2019-10-30 22:23:14 +08:00
}
2019-10-30 22:23:14 +08:00
.avatar-edit-text {
2019-10-30 22:42:11 +08:00
color: $color-white;
cursor: pointer;
display: none;
padding-top: 40%;
position: absolute;
text-align: center;
width: inherit;
2019-10-30 22:23:14 +08:00
}
2016-10-26 19:41:17 +08:00
2019-10-30 22:42:11 +08:00
&:hover {
.avatar-edit,
.avatar-edit-text {
display: block;
}
}
2016-10-26 19:41:17 +08:00
2019-10-30 22:42:11 +08:00
.avatar-image {
position: absolute;
2018-03-29 19:58:14 +08:00
2019-11-05 17:43:02 +08:00
img {
border-radius: 50%;
2020-07-07 21:59:02 +08:00
height: 100%;
width: 100%;
2018-03-29 19:58:14 +08:00
}
2016-10-26 19:41:17 +08:00
}
}
2017-02-21 21:02:42 +08:00
.avatar-file-upload input[type=file] {
max-width: 100%;
}
.modal-invite-users {
2021-07-09 15:40:06 +08:00
overflow: hidden;
.bootstrap-tagsinput {
min-width: 450px;
width: 100%;
}
2016-11-06 18:29:00 +08:00
.results-container .alert {
margin-bottom: 10px;
padding: 5px;
}
.results-container .results-wrap {
max-height: 400px;
overflow-y: auto;
padding-right: 10px;
}
2017-01-25 19:12:27 +08:00
.team-selector .heading {
margin-top: 15px;
margin-bottom: 5px;
input[type=checkbox] {
vertical-align: middle;
margin: 0;
}
}
.g-recaptcha {
margin-top: 20px;
}
.select-container--with-blank {
2021-07-09 15:40:06 +08:00
.search-field::placeholder {
color: $color-black;
opacity: 1;
}
2021-07-09 15:40:06 +08:00
.search-field:focus::placeholder {
opacity: 0;
}
}
}
// Disable textarea resizing throughout application
// (will be done via autosize JS plugin)
textarea {
resize: none;
}
textarea.textarea-sm {
height: 34px;
min-height: 34px;
&.form-control {
height: 36px;
}
}
.comment-form .input-group {
height: 100%;
2016-11-08 18:29:55 +08:00
textarea {
-webkit-margin-before: 1px;
-webkit-margin-after: 1px;
2016-11-08 18:29:55 +08:00
}
.input-group-btn {
height: 100%;
.btn.btn-default {
height: 100%;
min-height: 34px;
-webkit-padding-before: 0;
-webkit-padding-after: 0;
}
2016-11-08 18:29:55 +08:00
}
}
.add-new-column-form .help-block {
margin-left: 0;
}
th.custom-field .modal-tooltiptext {
margin-left: 0;
z-index: 99999999;
}
.disable-click {
pointer-events: none;
}
.popover {
border-radius: 3px;
min-width: 450px;
padding: 15px 10px;
z-index: 10001;
h5 {
font-weight: bold;
line-height: 0;
}
.silver {
color: $color-silver-chalice;
}
p {
max-width: 260px;
word-wrap: break-word;
}
}
.popover-remove {
cursor: pointer;
}
2018-09-14 19:43:31 +08:00
.tooltip-open {
2018-09-24 21:57:31 +08:00
background-color: $color-concrete;
2018-09-14 19:07:09 +08:00
color: $color-black;
2018-09-14 19:43:31 +08:00
font-size: $font-size-base;
2018-09-14 19:07:09 +08:00
2018-09-14 19:43:31 +08:00
.popover-footer {
2018-09-24 21:57:31 +08:00
background-color: $color-gainsboro;
2018-09-14 19:07:09 +08:00
border-radius: 3px;
2018-09-14 19:43:31 +08:00
bottom: 5px;
position: absolute;
right: 5px;
2018-09-14 19:07:09 +08:00
2018-09-14 19:43:31 +08:00
a {
2018-09-24 21:57:31 +08:00
color: $color-dove-gray;
2018-09-14 19:07:09 +08:00
}
}
}
2018-09-14 19:43:31 +08:00
.tooltip-enter {
2018-09-24 21:57:31 +08:00
background-color: $color-alto;
2018-09-14 19:07:09 +08:00
}
.parse-records-table {
max-height: 200px;
}
2018-04-25 16:43:16 +08:00
a.disabled {
2018-05-16 16:43:25 +08:00
opacity: .5;
pointer-events: none;
cursor: default;
}
a.disabled-with-click-events {
2018-05-16 16:43:25 +08:00
opacity: .5;
2018-05-16 18:02:46 +08:00
cursor: not-allowed;
}
.linkedin-signin-button {
margin: 15px 0;
}
.sign-in-up-links {
padding-bottom: 60px;
}
.doorkeeper-authorization {
margin-bottom: 45px;
.doorkeeper-scinote-logo {
2020-10-19 22:23:20 +08:00
background-image: asset-url("/images/doorkeeper_auth.png");
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
height: 180px;
}
.doorkeeper-actions-left {
padding-right: 3px;
}
.doorkeeper-actions-right {
padding-left: 3px;
}
}
.form-select {
position: relative;
select {
2021-07-09 15:40:06 +08:00
appearance: none;
border: 1px solid $color-silver-chalice;
border-radius: 4px;
color: $color-emperor;
display: block;
font-size: 14px;
min-height: 36px;
outline: 0;
padding: 8px 42px 3px 3px;
width: 100%;
}
2021-07-09 15:40:06 +08:00
&::after {
color: $color-silver-chalice;
content: "\f0d7";
font-family: "Font Awesome 5 Free";
font-weight: 900;
2021-07-09 15:40:06 +08:00
height: 100%;
padding: 12px 8px;
2021-07-09 15:40:06 +08:00
pointer-events: none;
position: absolute;
right: -6px;
text-align: center;
2021-07-09 15:40:06 +08:00
top: -6px;
width: 10%;
2021-07-09 15:40:06 +08:00
z-index: 1;
}
}
.input-error-message {
visibility: hidden;
color: $brand-danger;
font-size: 0.8em;
}
form:not([novalidate]) {
input:invalid,
select:invalid,
textarea:invalid {
border-color: $brand-danger;
& + .input-error-message {
visibility: visible;
}
}
select:invalid + .dropdown-selector-container {
.input-field {
border-color: $brand-danger;
}
& + .input-error-message {
margin-top: -0.5em;
visibility: visible;
}
}
}