scinote-web/app/assets/stylesheets/repository_columns/index.scss

251 lines
4.1 KiB
SCSS
Raw Normal View History

2019-11-11 15:44:08 +08:00
// scss-lint:disable IdSelector
2020-01-14 23:46:48 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
2019-11-11 15:44:08 +08:00
2023-07-06 19:19:28 +08:00
2019-11-11 15:44:08 +08:00
#manage-repository-column {
.modal-header {
.back-to-column-modal {
float: left;
margin-top: -6px;
}
}
.modal-body {
.form-horizontal {
padding: 15px 0;
}
.form-group {
margin-bottom: 10px;
}
.form-control {
font-size: 14px;
}
.control-label {
text-align: left;
}
#items-textarea {
height: 120px;
}
.dropdown-selector-container {
.delimiter-icon-dropdown {
.tag-label {
align-items: center;
display: flex;
}
.icon {
background: $color-concrete;
border-radius: $border-radius-default;
display: inline-block;
font-size: 20px;
font-weight: bold;
line-height: 24px;
margin-right: 5px;
text-align: center;
transition: .3s;
width: 24px;
}
}
}
}
2019-11-26 16:31:32 +08:00
.range-label {
left: 3px;
position: relative;
top: -2px;
}
#repository-column-data-type + .dropdown-selector-container {
.custom-option {
padding: 0 25px;
}
.disabled-option {
color: $color-silver-chalice;
padding: 0 25px;
pointer-events: none;
}
.column-type-option {
display: flex;
width: 100%;
.text-description {
font-style: italic;
margin-left: auto;
}
}
}
2019-11-11 15:44:08 +08:00
#new-repository-column {
.tag-label{
pointer-events: none;
}
}
.repo-columns-list {
@include font-button;
2023-06-19 21:45:22 +08:00
height: 385px;
margin-bottom: 0;
overflow-y: auto;
padding: 0;
position: relative;
.modal-tooltiptext {
margin-left: 0;
z-index: 99999999;
}
.modal-tooltip > span:first-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2020-01-14 23:46:48 +08:00
.col-list-el {
2023-09-25 20:15:08 +08:00
align-items: center;
background: $color-white;
border-bottom: 1px solid $color-alto;
2023-09-25 20:15:08 +08:00
display: flex;
gap: .5rem;
min-height: 3.5rem;
padding: 10px 10px 10px 0;
vertical-align: middle;
2020-01-14 23:46:48 +08:00
.manage-controls {
display: none;
white-space: nowrap;
2023-09-25 20:15:08 +08:00
}
.text {
margin-right: auto;
2020-01-14 23:46:48 +08:00
}
&:hover {
&.editable.has-permissions {
.manage-controls {
display: inline-block;
}
.column-type {
display: none;
}
2020-01-14 23:46:48 +08:00
}
.grippy {
2023-09-25 20:15:08 +08:00
opacity: 1;
2020-01-14 23:46:48 +08:00
}
}
&:last-of-type {
border-bottom: 0;
}
}
[data-position] {
cursor: grab;
}
.ui-sortable-helper {
cursor: grabbing;
}
.grippy {
2023-09-25 20:15:08 +08:00
color: $color-alto;
opacity: 0;
}
.column-type {
2020-01-14 23:46:48 +08:00
color: $color-silver-chalice;
}
.col-invisible {
color: $color-alto;
}
.vis-controls {
display: inline-block;
span {
cursor: pointer;
&.disabled {
visibility: hidden;
}
&:hover {
2020-01-14 23:46:48 +08:00
color: $color-volcano;
}
}
.vis {
display: inline-block;
&:not(.sn-icon-visibility-show):not(.sn-icon-visibility-hide) {
padding-right: 1.5rem;
}
}
}
}
.delete-content {
height: 390px;
padding: 15px 0;
}
2020-01-14 23:46:48 +08:00
#new-repo-column-modal {
float: left;
margin-left: 5px;
}
&[data-task-page=true] {
.repo-columns-list>.col-list-el:hover.editable.has-permissions>.manage-controls {
display: none;
}
.repo-columns-list>.col-list-el:hover.editable.has-permissions>.column-type {
display: inline-block;
}
2020-01-21 15:37:02 +08:00
.modal-footer {
min-height: 61px;
#new-repo-column-modal {
display: none;
}
}
}
&.active {
[data-view-mode="archived"] {
display: none !important;
}
}
&.archived {
[data-view-mode="active"] {
display: none !important;
}
.repo-columns-list {
.col-list-el:hover.editable.has-permissions {
.column-type {
display: inline-block;
}
}
}
}
}