scinote-web/app/assets/stylesheets/my_modules/protocols/index.scss

212 lines
3.5 KiB
SCSS
Raw Normal View History

2019-04-26 21:38:33 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
// scss-lint:disable SelectorFormat
// scss-lint:disable ImportantRule
2019-02-25 20:04:58 +08:00
@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;
2019-02-25 20:04:58 +08:00
}
}
2019-02-25 20:04:58 +08:00
.complete-button-container {
float: right;
width: 165px;
2019-02-25 20:04:58 +08:00
.my_module-state-buttons {
padding-top: 0;
2019-02-25 20:04:58 +08:00
}
}
.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;
2019-02-25 20:04:58 +08:00
}
}
.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;
2019-04-26 21:38:33 +08:00
font-size: 16px;
line-height: 32px;
margin-right: 5px;
2019-04-26 21:38:33 +08:00
padding-top: 1px;
}
span {
float: left;
line-height: 32px;
}
}
}
.select2-selection {
2019-04-26 21:38:33 +08:00
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;
2019-04-26 21:38:33 +08:00
border-radius: 3px;
color: $color-white;
.select2-selection__choice__remove {
color: $color-white;
}
}
}
.select2-container--disabled {
.select2-selection__rendered {
padding-right: 10px;
}
}
}
}
2019-02-25 20:04:58 +08:00
}
2019-04-26 21:38:33 +08:00
.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;
2019-04-26 21:38:33 +08:00
width: 14px;
}
&::before {
display: none;
}
}
}