scinote-web/app/assets/stylesheets/my_modules/protocols/index.scss
aignatov-bio f684ddd365
Change dropdown highlight color and fix task tag position [SCI-3410] (#1735)
* Change dropdown highlight color and fix task tag position
2019-05-10 16:37:59 +02:00

212 lines
3.5 KiB
SCSS

// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
// scss-lint:disable SelectorFormat
// scss-lint:disable ImportantRule
@import "constants";
@import "mixins";
#manage-module-tags-modal {
.well {
border: 0;
box-shadow: none;
}
}
.module-header {
display: inline-block;
position: relative;
width: 100%;
.header-container {
display: flex;
flex-wrap: wrap;
float: left;
width: calc(100% - 180px);
.flex-block {
display: flex;
flex-grow: 1;
}
}
.complete-button-container {
float: right;
width: 165px;
.my_module-state-buttons {
padding-top: 0;
}
}
.well {
border: 0;
box-shadow: none;
padding-left: 0;
padding-right: 0;
}
.badge-icon {
background: transparent;
color: $color-silver;
padding-right: 5px;
+ .well-sm {
margin-bottom: 10px;
margin-left: 0;
}
}
.module-description {
float: left;
padding-left: 10px;
width: 100%;
}
.module-tags {
float: left;
width: 100%;
#module-tags {
display: flex;
width: 100%;
}
.badge-icon {
display: inline-block;
line-height: 32px;
padding: 0 5px 0 10px;
width: 38px;
}
.tags-title {
display: inline-block;
line-height: 32px;
padding-right: 3px;
width: 35px;
}
.select-container {
display: flex;
flex-basis: 100px;
flex-grow: 1;
flex-shrink: 1;
max-width: calc(100% - 73px);
position: relative;
select {
display: none;
}
.edit-button-container {
height: 32px;
padding-right: 5px;
position: absolute;
right: 0;
text-align: right;
top: 0;
width: 120px;
z-index: 2;
&.hidden {
display: none;
}
a {
color: inherit;
display: inline-block;
line-height: 32px;
opacity: .7;
text-decoration: none;
i {
float: left;
font-size: 16px;
line-height: 32px;
margin-right: 5px;
padding-top: 1px;
}
span {
float: left;
line-height: 32px;
}
}
}
.select2-selection {
input[disabled] {
pointer-events: none;
}
.select2-selection__rendered {
cursor: pointer;
float: left;
padding-left: 2px;
padding-right: 130px;
input {
cursor: pointer;
line-height: 30px;
margin-top: 0;
}
}
.select2-selection__choice {
border: 1px solid transparent;
border-radius: 3px;
color: $color-white;
.select2-selection__choice__remove {
color: $color-white;
}
}
}
.select2-container--disabled {
.select2-selection__rendered {
padding-right: 10px;
}
}
}
}
}
.select2-dropdown.module-tags-selector-dropdown {
.loading-results {
display: none;
}
.select2-results__option {
padding-left: 5px !important;
.add-tags {
align-items: center;
display: flex;
}
.create-new {
opacity: .6;
}
.tag-color {
border-radius: 3px;
display: inline-block;
height: 14px;
margin-right: 5px;
margin-top: 1px;
width: 14px;
}
&::before {
display: none;
}
}
}