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

2140 lines
34 KiB
SCSS
Raw Normal View History

@import 'constants';
2016-02-12 23:52:43 +08:00
@import "mixins";
/** Layout **/
body,
#activity-modal,
#main-nav,
#notifications,
#notifications .alert {
min-width: 320px;
}
// 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;
}
2016-02-12 23:52:43 +08:00
#alert-container {
margin-bottom: 20px;
}
#main-nav {
margin-bottom: 0;
}
#project-archive-btn {
margin-left: 15px;
}
#projects-toolbar {
margin: 15px 0;
}
#projects-toolbar .form-group {
width: 100%;
}
.form-inline {
.form-group .dropdown {
display: inline-block;
}
}
#fluid-content {
padding-left: 15px;
padding-right: 15px;
padding-top: 80px;
}
.spacer {
margin-left: 0.5em;
margin-right: 0.5em;
}
#content-wrapper {
margin-top: 50px;
&.alert-shown {
margin-top: 102px;
}
}
.center-block-narrow {
max-width: 400px;
}
2016-09-29 20:49:58 +08:00
#notifications-dropdown {
.fa-bell {
font-size: 15px;
position: absolute;
2016-09-29 20:49:58 +08:00
}
#count-notifications {
background-color: $color-theme-primary;
2016-09-29 22:05:43 +08:00
border-radius: 5px;
2016-09-29 20:49:58 +08:00
color: $color-wild-sand;
display: none;
font-size: 11px;
2016-09-29 20:49:58 +08:00
font-weight: bold;
margin-left: 12px;
padding: 1px 6px;
position: relative;
z-index: 1;
2016-09-29 20:49:58 +08:00
}
}
2016-09-29 22:05:43 +08:00
@media(max-width:450px) {
.dropdown-notifications {
width: 100%;
}
}
2016-09-29 20:49:58 +08:00
.dropdown-notifications {
2016-10-03 17:37:29 +08:00
max-height: 500px;
overflow-x: hidden;
overflow-y: scroll;
2016-09-29 20:49:58 +08:00
padding-bottom: 0;
padding-top: 0;
width: 450px;
word-wrap: break-word;
2016-09-29 20:49:58 +08:00
.notifications-no-recent {
padding-bottom: 10px;
padding-left: 10px;
padding-top: 10px;
}
2016-09-29 22:05:43 +08:00
.notification {
border-bottom: 1px solid $color-alto;
padding-bottom: 10px;
padding-top: 10px;
2016-10-03 14:20:23 +08:00
2016-10-03 14:27:13 +08:00
&:hover {
2016-10-03 14:20:23 +08:00
background-color: $color-concrete;
}
}
.unseen {
border-left: 4px solid $color-theme-primary;
2016-09-29 22:05:43 +08:00
}
.text-center {
margin-left: 12px;
2016-09-29 22:05:43 +08:00
}
.avatar {
top: 0px;
margin-top: 5px;
height: 45px;
width: 45px;
2016-09-29 22:05:43 +08:00
}
.assignment {
2016-10-03 14:20:23 +08:00
background-color: $color-theme-primary;
border-radius: 50%;
color: $color-wild-sand;
display: block;
font-size: 23px;
height: 45px;
padding-top: 5px;
width: 45px;
2016-10-03 14:20:23 +08:00
}
2016-10-03 17:37:29 +08:00
2017-03-24 19:10:07 +08:00
.deliver {
background-color: $color-orange;
border-radius: 50%;
color: $color-wild-sand;
display: block;
font-size: 23px;
height: 45px;
padding-top: 5px;
width: 45px;
}
2016-10-12 21:32:40 +08:00
.system-message {
2016-10-03 14:20:23 +08:00
background-color: $color-theme-secondary;
border-radius: 50%;
color: $color-wild-sand;
display: block;
font-size: 23px;
height: 45px;
padding-top: 8px;
width: 45px;
2016-09-29 22:05:43 +08:00
}
2016-09-29 20:49:58 +08:00
.notifications-dropdown-header {
background-color: $color-theme-primary;
color: $color-wild-sand;
font-weight: bold;
padding: 8px;
a {
color: $color-white;
}
2016-09-29 20:49:58 +08:00
}
.notifications-dropdown-footer {
background-color: $color-mystic;
padding: 8px;
text-align: center;
}
}
.notification {
padding-right: 8px;
word-wrap: break-word;
}
2016-02-12 23:52:43 +08:00
#search-menu {
padding-right: 0;
.nav {
position: relative;
z-index: 1000;
}
}
#search-content {
padding-left: 0;
}
#search-container {
padding-left: 45px;
}
2016-07-21 19:11:15 +08:00
.well-search-checklist {
background-color: $color-concrete !important;
margin-bottom: 5px;
}
.blockquote-search {
font-size: 14px;
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 **/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,400italic&subset=latin,latin-ext);
body {
background-color: $color-concrete;
color: $color-emperor;
font-family: "Open Sans",Arial,Helvetica,sans-serif;
font-size: 13px;
}
a {
color: $color-theme-primary;
}
.jumbotron {
background-color: inherit;
}
.alert {
border-radius: 0;
margin-bottom: 0;
opacity: 1;
width: 100%;
&.alert-hidden {
display: none;
}
a#hide-alert {
margin-left: 15px;
}
&.alert-floating {
position: fixed;
top: 50px;
z-index: 1000;
}
}
.badge {
background-color: $color-theme-primary;
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;
}
.bg-primary {
background-color: $color-theme-primary;
}
/* 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;
}
.btn {
border-radius: 1.5em;
}
.btn-primary {
background-color: $color-theme-secondary;
border-color: darken($color-theme-secondary, 5%);
&.active,
&.focus,
&.active.focus {
background-color: darken($color-theme-secondary, 20%);
border-color: darken($color-theme-secondary, 25%);
&:hover {
background-color: darken($color-theme-secondary, 25%);
border-color: darken($color-theme-secondary, 30%);
}
}
&:active,
&:focus,
&:active:focus,
&:active:hover,
&:focus:hover,
&:active:focus:hover {
background-color: darken($color-theme-secondary, 20%);
border-color: darken($color-theme-secondary, 25%);
}
&:hover {
background-color: darken($color-theme-secondary, 5%);
border-color: darken($color-theme-secondary, 10%);
}
}
2016-07-21 19:11:15 +08:00
.btn-open-file {
position: relative;
overflow: hidden;
& > input[type=file] {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
font-size: 100px;
text-align: right;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: inherit;
display: block;
}
}
2016-02-12 23:52:43 +08:00
mark,.mark {
background-color: $color-candlelight;
}
.label-default {
background-color: $color-alto;
}
.label-primary {
background-color: $color-theme-primary;
}
.circle {
@extend .badge;
background-color: $color-theme-primary;
border-radius: 1em;
&.disabled {
background-color: $color-silver-chalice;
}
}
.navbar {
border-radius: 0;
}
.navbar-default {
background-color: $color-white;
border-color: $color-alto;
}
.navbar-default .navbar-brand {
background-color: $color-theme-primary;
font-size: 23px;
& > img {
margin-top: -4px;
2016-07-21 19:11:15 +08:00
max-width: 132px;
max-height: 26px;
2016-02-12 23:52:43 +08:00
&.with-version {
margin-top: -10px;
}
}
& > span.version {
font-size: 0.6em;
color: $color-white;
float: right;
}
&:hover,
&:focus,
&:focus:active,
&:focus:visited {
background-color: $color-theme-primary;
}
}
2016-07-21 19:11:15 +08:00
a[data-toggle="tooltip"] {
color: inherit;
border-bottom: 1px dashed $color-emperor;
&:hover {
text-decoration: none;
cursor: help;
}
}
2016-02-12 23:52:43 +08:00
.nav-tabs {
margin-bottom: 15px;
& > li.has-error {
& > a {
color: $color-apple-blossom;
&:hover {
color: $color-mojo;
}
}
}
}
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 {
2016-11-11 19:03:01 +08:00
border: 1px solid $color-apple-blossom;
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 {
color: $color-theme-primary;
}
&:not(.active):hover a {
background-color: $color-alto;
}
&.active a {
color: $color-white;
background-color: $color-theme-primary;
}
}
}
.breadcrumb {
background-color: transparent;
padding: 15px;
margin-bottom: 0;
text-overflow: ellipsis;
overflow: hidden;
}
.nav-tabs-less > li.active > a {
&,&:hover,&:focus {
color: $color-theme-secondary;
background-color: transparent;
border-color: transparent;
}
}
2016-07-21 19:11:15 +08:00
.tag.label.label-info {
font-size: 100%;
background-color: $color-theme-primary;
}
2016-02-12 23:52:43 +08:00
#secondary-navigation {
white-space: nowrap;
overflow: hidden
}
.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 {
background: $color-concrete !important;
margin-left: -280px;
padding-left: 295px;
padding-right: 15px;
margin-bottom: 0;
border-color: transparent;
z-index: 500;
position: fixed;
width: 100%;
.container-fluid {
border-left: 0;
border-top: 0;
border-right: 0;
border-bottom: 4px solid $color-silver;
padding-right: 0;
}
ul.nav {
margin-right: 0;
& > li {
text-transform: uppercase;
& > a {
color: $color-gray;
span {
//width: 14px;
}
}
&.active {
@include box-shadow(0 4px 0 $color-theme-primary);
&> a {
font-weight: bold;
color: $color-emperor;
}
}
}
}
}
.navbar-secondary {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.navbar-without-sidebar{
padding-left: 15px;
margin-left: 0px;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
/** Chat bubble */
.chat-bubble {
background-color: $color-white;
border-radius: 1em;
padding: 10px;
}
/** Search */
.nav-search {
li.disabled {
opacity: 0.8;
.badge {
background-color: $color-emperor;
opacity: 0.8;
}
}
2017-06-23 22:19:59 +08:00
.repositories-team {
padding: 10px 15px;
&.active {
color: $color-theme-primary;
}
}
2017-06-23 22:19:59 +08:00
.repository-search {
padding-left: 15px;
2016-02-12 23:52:43 +08:00
}
}
.search-dropdown {
padding-right: 25px;
width: 250px;
input {
width: 230px;
}
}
@media(max-width:1000px) {
.search-dropdown {
width: 270px;
.form-group {
padding-left: 15px;
}
}
}
// Global team switch
2016-10-12 16:17:06 +08:00
#team-switch {
border-left: 1px solid $color-alto;
border-right: 1px solid $color-alto;
2016-10-12 16:17:06 +08:00
word-wrap: break-word;
.dropdown-menu {
width: 100%;
}
2016-10-17 15:59:12 +08:00
i {
margin-right: 5px;
2016-10-12 16:17:06 +08:00
}
li {
display: block;
text-align: left;
2016-10-17 21:36:33 +08:00
word-wrap: break-word;
2016-10-12 16:17:06 +08:00
&:hover {
background-color: $color-concrete;
}
a {
color: $color-emperor;
2016-10-17 21:36:33 +08:00
display: block;
2016-10-12 16:17:06 +08:00
line-height: 1.6em;
padding: 3px 20px;
2016-10-17 21:36:33 +08:00
text-align: left;
2016-10-12 16:17:06 +08:00
text-decoration: none;
word-wrap: break-word;
}
}
}
2016-02-12 23:52:43 +08:00
/** Settings */
.nav-settings {
margin-top: 15px;
margin-bottom: 0;
}
.tab-pane-settings {
background-color: $color-white;
padding: 15px;
border-left: 1px solid $color-alto;
border-right: 1px solid $color-alto;
border-bottom: 1px solid $color-alto;
margin-bottom: 50px;
}
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
}
.notification-settings-container {
margin-bottom: 50px;
margin-top: 50px;
h4 {
font-weight: 600;
margin-bottom: 2rem;
}
2017-04-13 20:55:18 +08:00
.col-sm-4 {
padding-left: 5rem;
2017-04-13 20:55:18 +08:00
padding-top: .5rem;
word-break: break-word;
}
.col-sm-2 {
padding-left: 3rem;
2017-04-13 20:55:18 +08:00
padding-top: .7rem;
}
@media (max-width: 768px) {
.col-sm-4 {
margin-bottom: 1rem;
2017-04-13 20:55:18 +08:00
padding-left: 1.8rem;
}
.col-sm-2 {
padding-left: 1.8rem;
}
}
.btn-group {
margin-bottom: 15px;
}
.assignment {
background-color: $color-theme-primary;
border-radius: 50%;
color: $color-wild-sand;
2017-04-13 20:55:18 +08:00
display: block !important;
font-size: 15px;
height: 30px;
margin-right: 15px;
padding: 7px;
padding-bottom: 5px;
2016-10-12 21:32:40 +08:00
padding-top: 5px;
2017-04-13 20:55:18 +08:00
width: 30px;
}
2016-10-12 21:32:40 +08:00
.system-message {
background-color: $color-theme-secondary;
border-radius: 50%;
color: $color-wild-sand;
2017-04-13 20:55:18 +08:00
display: block !important;
font-size: 15px;
height: 30px;
margin-right: 15px;
padding: 8px;
padding-bottom: 5px;
2016-10-12 21:32:40 +08:00
padding-top: 5px;
2017-04-13 20:55:18 +08:00
width: 30px;
}
.img-circle {
margin-right: 15px;
}
}
#reset-tutorial-btn {
margin-top: 15px;
}
2016-09-23 18:52:38 +08:00
// Help link
#help-link {
padding: 13px;
2016-09-23 18:52:38 +08:00
.glyphicon.glyphicon-info-sign {
font-size: 16px;
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
/** Add users modal */
.btn-group-existing-users {
width: 100%;
label.btn {
text-align: center;
&.btn-title {
color: $color-white;
cursor: inherit;
background-color: $color-theme-primary;
&:focus, &:active, &:hover {
box-shadow: none;
background-color: $color-theme-primary;
border-color: $color-dark-gray;
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;
}
.users-datatable {
margin-bottom: 20px;
#users-table_filter {
float: right;
margin-top: 19px;
}
#users-table_paginate {
float: right;
}
2017-01-25 19:12:27 +08:00
.dropdown-teams-user {
.dropdown-menu li.user-team-role {
2016-02-12 23:52:43 +08:00
& > :first-child {
padding-left: 10px;
}
&:not(.disabled) span.glyphicon {
color: transparent !important;
}
}
}
}
.user-statistics {
2016-11-14 22:10:37 +08:00
.list-inline {
2016-11-14 22:04:18 +08:00
margin-left: 15px;
}
.label {
font-size: 100%;
}
li {
height: 100px;
margin: 15px;
padding-bottom: 15px;
padding-left: 10px;
padding-right: 10px;
width: 100px;
}
}
2016-07-21 19:11:15 +08:00
/** Protocols management */
.breadcrumb-protocols-manager {
overflow: visible;
margin-top: 15px;
margin-bottom: 15px;
background-color: $color-white;
}
.tab-pane-protocols {
& > div.protocols-description {
margin-bottom: 15px;
}
& > .btn-group {
margin-right: 30px;
}
}
@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
.protocols-datatable table {
tbody tr.selected {
& > td:nth-child(3), td:nth-child(4) {
color: $color-emperor;
& a {
color: $color-emperor;
}
}
}
}
.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;
& li + li::before {
content: "> ";
}
}
.dataTables_paginate {
float: right;
.pagination {
margin: 2px 0;
}
}
2017-01-19 22:58:40 +08:00
.dataTables_info {
padding-top: 8px;
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;
}
}
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;
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
background-color: $color-theme-primary;
}
.pagination > li > a,
.pagination > li > span {
color: $color-theme-primary;
}
.panel-default > .panel-heading {
background-color: $color-mystic;
&>.panel-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.panel-project {
.panel-heading {
background-color: $color-theme-primary;
color: $color-white;
}
}
.panel-archive {
.panel-heading {
background-color: darken($color-mystic, 5%);
color: lighten($color-mine-shaft, 15%);
}
}
.panel-options {
position: relative;
bottom: 6px;
}
.panel-footer {
padding: 0 15px;
}
.panel-footer-scinote {
background: linear-gradient(to bottom, $color-concrete, $color-white 10px);
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 {
padding-left: 15px;
}
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;
color: $color-milano-red;
}
li.notification.alert-yellow > .date-time {
font-weight: bold;
color: $color-candlelight;
}
}
}
/* Accordion panel */
.panel-accordion {
border: 0;
border-radius: 0;
margin-bottom: 0;
&> .panel-heading {
background-color: $color-mystic;
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;
}
#activity-modal {
.modal-body {
background-color: $color-concrete;
color: $color-mine-shaft;
}
}
/** Activity list resembling Bootstrap wells */
ul.content-activities {
li.activity-item {
border-radius: .25em;
background-color: $color-white;
border: 1px solid $color-concrete;
.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;
vertical-align: middle;
border-top-left-radius: .25em;
border-bottom-left-radius: .25em;
border: 3px solid $color-alto;
background-color: $color-alto;
padding-left: 10px;
padding-right: 10px;
vertical-align: top;
}
.activity-item-text {
display: table-cell;
padding: 3px 10px;
text-align: justify;
}
}
li.activity-date-item {
font-size: 1.4em;
& > span {
padding-left: 2em;
padding-right: 2em;
}
}
}
ul.content-module-activities {
li.activity-item {
margin-bottom: 15px;
.activity-item-date {
font-size: 1.2em;
background-color: $color-theme-primary;
border-color: $color-theme-primary;
color: $color-white;
padding-top: 5px;
padding-bottom: 5px;
}
.activity-item-text {
padding-top: 5px;
padding-bottom: 5px;
}
}
}
.step {
.panel-heading a[data-toggle] {
color: inherit;
}
&.not-completed {
.badge-num > span.badge {
background-color: $color-silver;
}
}
}
.well {
background-color: $color-white;
}
.well-sm {
border-radius: 0;
}
2016-07-21 19:11:15 +08:00
.panel-protocol-status {
display: inline-block;
margin-bottom: 5px;
& > .panel-body {
padding: 5px 5px 5px 15px;
}
}
.load-from-repository-protocols-datatable {
clear: right;
& .dataTables_wrapper .dataTables_filter {
float: right;
margin-top: 15px;
}
}
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-12-22 18:43:11 +08:00
#protocol-preview-modal .modal-dialog {
.modal-body {
max-height: 75vh;
overflow-y: auto;
width: 100%;
2017-01-04 00:46:30 +08:00
2016-12-22 18:43:11 +08:00
.ql-editor {
min-height: initial;
}
}
}
2016-07-21 19:11:15 +08:00
/* Import protocol/s modal */
#import-protocol-modal .modal-dialog {
width: 70%;
}
.import-protocols-modal-preview-container {
height: 300px;
overflow-y: scroll;
width: 100%;
.eln-table {
text-align: center;
height: 21px;
}
.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;
}
}
2016-02-12 23:52:43 +08:00
/* Steps and Results */
#steps {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAABCAYAAACsXeyTAAAAIUlEQVQImWNgoD5gZGBgMILSjKRo/P//vwiSGQwMDAwMAEnaA0jgHoquAAAAAElFTkSuQmCC");
background-repeat: repeat-y;
background-position: -3px 0;
}
.badge-icon {
font-size: 1.4em;
float: left;
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;
}
.dnd-error {
color: $color-milano-red;
}
.is-dragover {
2017-06-09 15:49:57 +08:00
background: $color-drag-overlay;
bottom: 0;
display: none;
height: 100%;
left: 0;
min-height: 100%;
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;
}
2016-09-20 23:06:07 +08:00
.row {
padding: 0 20px;
}
2016-02-12 23:52:43 +08:00
.badge-num {
position: absolute;
& > .badge {
border-radius: 2em;
float: left;
font-size: 23.4px;
padding: 6px 11px;
position: relative;
top: 2px;
}
.size-digit-2 {
font-size: 18px;
padding: 8px;
}
.size-digit-3 {
font-size: 14px;
padding: 10px 6px;
}
& > .badge.icon {
font-size: 16.5px;
padding: 9px;
}
}
.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%;
}
.btn-greyed {
background-color: $color-silver-chalice;
border-color: $color-silver-chalice;
color: $color-white;
&:hover,
&:focus {
background-color: darken($color-silver-chalice, 15%);
border-color: darken($color-silver-chalice, 15%);
color: $color-white;
}
}
/* Data table */
table.dataTable {
background-color: $color-alabaster;
table-layout: initial;
text-overflow: initial;
width: 100%;
word-break: initial;
2016-02-12 23:52:43 +08:00
thead {
background-color: $color-gray;
}
thead > tr > th {
border-bottom-width: 0;
border-left: 2px solid $color-alabaster;
color: $color-white;
font-weight: normal;
}
thead > tr > th:first-child {
border-left: none;
}
thead > tr > th,
thead > tr > td {
padding: 6px;
}
tbody > tr.selected,
tbody > tr > .selected {
background-color: $color-alto !important;
color: $color-emperor !important;
a {
color: $color-theme-primary !important;
}
2016-02-12 23:52:43 +08:00
}
.sorting_desc,
.sorting_asc {
background-color: $color-theme-primary;
}
}
/* Helpers */
.line-wrap {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
&.short {
position: relative;
top: 6px;
max-width: 78%;
}
}
/* Sample group color picker */
.btn-group-sample-group-color {
.btn-group > .btn {
border-radius: 0 !important;
}
}
#samples_length {
display: inline-block;
}
.toolbarButtons {
display: inline-block;
padding-left: 20px;
}
/* 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;
border-left: 13px solid $color-theme-primary;
2016-02-12 23:52:43 +08:00
border-bottom: 19px solid transparent;
}
.nav-stacked-arrow > li.active > a:hover:after {
border-left: 13px solid darken($color-theme-primary, 15%);
2016-02-12 23:52:43 +08:00
}
/* Overlay to disable interaction while loading ajax */
.loading-overlay {
2016-07-21 19:11:15 +08:00
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000000000;
cursor: wait;
}
.loading-overlay-center {
position: fixed;
left:50%;
top:50%;
z-index: 1000000000;
2016-02-12 23:52:43 +08:00
}
.turbolinks-progress-bar::before {
background-color: $color-theme-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;
background: $color-theme-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);
}
/* Custom settings for intro-js */
2016-07-21 19:11:15 +08:00
.introjs-tooltip {
opacity: 1 !important;
}
2016-02-12 23:52:43 +08:00
.custom .introjs-button {
font-weight: bold;
text-transform: uppercase;
}
2016-08-25 14:46:11 +08:00
.custom .introjs-disabled {
display: none;
2016-02-12 23:52:43 +08:00
}
.custom .introjs-skipbutton {
border-radius: 0;
color: $color-theme-primary;
background-color: $color-white;
background-image: none;
border: none;
}
.disabled-next .introjs-nextbutton {
display: none;
}
2016-07-21 19:11:15 +08:00
.introjs-tooltipReferenceLayer {
z-index: $infinity !important;
2016-02-12 23:52:43 +08:00
2016-07-21 19:11:15 +08:00
&.max {
z-index: calc($infinity + 1) !important;
2016-07-21 19:11:15 +08:00
}
2016-02-12 23:52:43 +08:00
}
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;
.modal-tooltiptext {
background-color: $color-alto;
border-radius: 6px;
color: $color-mine-shaft;
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 {
background-color: $color-wild-sand;
}
}
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%);
2016-10-26 19:41:17 +08:00
height: 100px;
position: relative;
2016-10-26 19:51:05 +08:00
width: 100px;
2016-10-26 19:41:17 +08:00
}
2016-10-27 17:18:11 +08:00
.avatar-container:hover .avatar-edit {
display: block;
}
.avatar-image {
2016-10-27 17:18:11 +08:00
left: 50%;
2016-10-26 19:41:17 +08:00
position: absolute;
top: 50%;
2016-10-27 17:18:11 +08:00
transform: translate(-50%, -50%);
2016-10-26 19:41:17 +08:00
}
2016-10-26 19:51:05 +08:00
.avatar-edit {
display: none;
margin-top: 70%;
2016-10-26 19:51:05 +08:00
opacity: .8;
2016-10-27 17:18:11 +08:00
position: absolute;
2016-10-26 19:51:05 +08:00
z-index: 10;
2016-10-26 19:41:17 +08:00
.btn-greyed {
2016-10-26 19:51:05 +08:00
border-radius: 0;
2016-10-26 19:41:17 +08:00
width: 100px;
}
}
2017-02-21 21:02:42 +08:00
.avatar-file-upload input[type=file] {
max-width: 100%;
}
.modal-invite-users {
.bootstrap-tagsinput {
min-width: 450px;
}
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;
}
}
}
// Image preview modal
.modal-image-preview {
background: transparent;
font-size: 16px;
padding-right: 0 !important;
z-index: 1060;
.preview-close {
background: transparent;
border: 0;
color: $color-white;
display: inline-block;
float: right;
}
.modal-dialog {
height: 100%;
margin: 0;
padding: 0;
width: auto;
}
.modal-content {
background: transparent;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
color: $color-white;
height: 100%;
width: auto;
}
img {
height: auto;
max-width: 100%;
@media (max-height: 520px) {
height: 80%;
max-width: 100%;
}
}
.modal-header {
background: $color-black;
border: 0;
height: 60px;
}
.modal-body {
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: flex;
height: calc(100% - 120px);
justify-content: center;
overflow: hidden;
}
.modal-footer {
background: $color-black;
border: 0;
bottom: 0;
height: 60px;
position: absolute;
text-align: center;
width: 100%;
}
.image-download-link {
color: $color-white;
display: inline-block;
float: right;
margin-right: 20px;
}
}
// 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: 34px;
}
}
.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
}
}
// new smart dropdown styles
.smart-dropdown {
overflow-y: auto;
padding: 0;
width: 300px;
.modal-tooltiptext {
margin-left: 0;
z-index: 99999999;
}
li {
background: $color-white;
border: 1px solid $color-alto;
padding: 10px 10px 10px 0;
2016-11-28 23:28:22 +08:00
vertical-align: middle;
}
[data-position] {
cursor: -webkit-grab;
cursor: grab;
}
2016-11-30 18:52:07 +08:00
.ui-sortable-helper {
cursor: -webkit-grabbing;
cursor: grabbing;
}
.form-group {
margin-bottom: 0;
margin-left: 10px;
}
.grippy {
background-repeat: none;
display: inline-block;
height: 19px;
margin-top: 5px;
width: 10px;
}
2016-11-29 21:01:15 +08:00
li:not(.editing) .grippy-img {
background: url(asset-path('custom/grippy.png'));
}
.text {
display: inline-block;
padding-left: 15px;
padding-top: 5px;
position: absolute;
}
2016-11-29 21:01:15 +08:00
.text-edit {
display: inline-block;
margin-left: 2px;
margin-top: -2.5px;
position: absolute;
width: 180px;
}
.col-invisible {
color: $color-alto;
}
.controls {
display: inline-block;
margin-top: 5px;
span {
cursor: pointer;
&.disabled {
visibility: hidden;
}
&:hover {
color: $color-emperor;
}
}
2016-11-29 21:01:15 +08:00
.ok {
color: $color-theme-secondary;
margin-right: 5px;
}
.cancel {
margin-left: 5px;
2016-12-15 16:54:38 +08:00
margin-right: 15px;
2016-11-29 21:01:15 +08:00
}
.vis {
margin-right: 5px;
}
.edit {
margin-right: 5px;
}
.del {
}
}
.help-block {
display: inline-block;
margin-bottom: 0;
margin-left: 25px;
}
}
.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;
}
// AtWho (smart annotations)
// <Custom atwho style>
.atwho-view {
position: absolute;
top: 0;
left: 0;
display: none;
margin-top: 18px;
background: $color-white;
color: $color-black;
2017-01-05 21:06:48 +08:00
border: 1px solid $color-emperor;
border-radius: 3px;
2017-01-05 21:06:48 +08:00
box-shadow: 0 0 5px $color-cloud;
min-width: 520px;
max-height: 200px;
overflow: auto;
z-index: 11110 !important;
small {
font-size: smaller;
color: $color-emperor;
font-weight: normal;
}
strong {
color: $color-theme-primary;
}
.cur {
background: $color-theme-primary;
color: $color-white;
small {
color: $color-white;
}
strong {
color: $color-white;
font: bold;
}
}
ul {
list-style: none;
padding: 0;
margin: auto;
li {
display: block;
padding: 5px 10px;
2017-01-05 21:06:48 +08:00
border-bottom: 1px solid $color-emperor;
cursor: pointer;
}
}
}
// <End of overrides>
2017-01-11 00:05:32 +08:00
.atwho-header-res {
padding-top: 3px;
2017-01-05 21:06:48 +08:00
padding-bottom: 7px;
height: 34px;
background-color: $color-gallery;
border-bottom: 1px solid $color-emperor;
clear: both;
> div {
display: inline;
}
.title {
float: left;
margin-left: 15px;
2017-01-11 00:05:32 +08:00
.btn {
border-radius: 4px;
margin-right: 5px;
padding: 3px;
}
.btn:last-child {
margin-right: 20px;
}
.btn-default {
background-color: transparent;
}
2017-01-05 21:06:48 +08:00
}
.title-user {
padding-top: 4px;
}
2017-01-05 21:06:48 +08:00
.help {
float: right;
2017-01-11 00:05:32 +08:00
padding-top: 4px;
2017-01-05 21:06:48 +08:00
div {
display: inline;
margin-right: 15px;
font-size: smaller;
}
2017-01-05 21:06:48 +08:00
div strong {
color: $color-black;
}
.dismiss {
color: $color-emperor;
}
.dismiss:hover {
color: $color-black;
cursor: pointer;
2017-01-05 21:06:48 +08:00
}
}
}
.atwho-li-user {
.avatar {
border-radius: 50%;
margin-left: 5px;
margin-right: 10px;
height: 20px;
width: 20px;
}
2017-01-11 00:05:32 +08:00
}
.atwho-li-res {
.glyphicon-tint {
margin-left: 5px;
margin-right: 5px;
}
.res-type {
border: 1px solid $color-black;
border-radius: 4px;
font-weight: 600;
margin-left: 5px;
margin-right: 5px;
padding: 0 2px;
text-transform: capitalize;
}
.res-name {
font-weight: 600;
margin-right: 5px;
}
.res-description {
color: $color-emperor;
font-size: 10px;
}
}
.sa-type {
border: 1px solid $color-black;
border-radius: 4px;
color: $color-black;
font-weight: 600;
padding: 0 2px;
text-decoration: none;
text-transform: capitalize;
&:hover {
text-decoration: none;
}
}
.atwho-user-popover {
cursor: pointer;
padding-left: 5px;
}
2017-01-18 15:34:29 +08:00
.atwho-user-img-popover {
cursor: not-allowed;
}
.atwho-no-results {
padding: 5px 10px;
}
.popover {
border-radius: 3px;
min-width: 450px;
padding: 15px 10px;
z-index: 9999;
h5 {
font-weight: bold;
line-height: 0;
}
.silver {
color: $color-silver-chalice;
}
p {
max-width: 260px;
word-wrap: break-word;
}
}
.popover-remove {
cursor: pointer;
}
.my_module-state-buttons {
padding-top: 6px;
2017-03-24 19:10:07 +08:00
}
.parse-records-table {
max-height: 200px;
}