gitlab-org--gitlab-foss/app/assets/stylesheets/pages/labels.scss

345 lines
5.3 KiB
SCSS
Raw Normal View History

.suggest-colors {
margin-top: 5px;
a {
2016-09-09 16:59:36 +00:00
border-radius: 4px;
width: 30px;
height: 30px;
display: inline-block;
margin-right: 10px;
margin-bottom: 10px;
text-decoration: none;
}
&.suggest-colors-dropdown {
margin-top: 10px;
margin-bottom: 10px;
border-radius: $border-radius-base;
overflow: hidden;
2016-03-08 11:23:54 +00:00
a {
2016-09-09 16:59:36 +00:00
border-radius: 0;
width: (100% / 7);
margin-right: 0;
margin-bottom: -5px;
}
}
}
.dropdown-menu-labels {
.dropdown-content {
max-height: 135px;
}
.dropdown-label-box {
flex: 0 0 auto;
}
}
.dropdown-new-label {
.dropdown-content {
max-height: initial;
}
}
.dropdown-label-color-input {
position: relative;
margin-bottom: 10px;
2016-03-08 11:23:54 +00:00
&.is-active {
padding-left: 32px;
2016-03-08 11:23:54 +00:00
}
}
.dropdown-label-color-preview {
position: absolute;
left: 0;
top: 0;
width: 32px;
height: 32px;
border-top-left-radius: $border-radius-base;
border-bottom-left-radius: $border-radius-base;
}
.color-label {
2018-06-12 18:26:47 +00:00
padding: 0 $grid-size;
line-height: 16px;
border-radius: $label-border-radius;
color: $white;
}
.dropdown-labels-error {
padding: 5px 10px;
margin-bottom: 10px;
background-color: $red-500;
color: $white;
}
.manage-labels-list {
padding: 0;
margin-bottom: 0;
> li:not(.empty-message):not(.no-border) {
background-color: $white;
2018-04-18 17:48:19 +00:00
margin-bottom: 5px;
2018-04-18 23:34:03 +00:00
display: flex;
justify-content: space-between;
2018-06-06 16:58:44 +00:00
padding: $gl-padding;
2018-04-18 17:48:19 +00:00
border-radius: $border-radius-default;
border: 1px solid $gray-50;
2017-01-06 16:52:18 +00:00
&:last-child {
margin-bottom: 0;
}
2017-01-06 16:52:18 +00:00
&.sortable-ghost {
opacity: 0.3;
}
2018-04-18 17:48:19 +00:00
.prioritized-labels:not(.is-not-draggable) & {
2018-04-18 17:48:19 +00:00
box-shadow: 0 1px 2px $issue-boards-card-shadow;
2018-04-24 12:26:50 +00:00
cursor: move;
cursor: grab;
2018-06-28 16:15:23 +00:00
border: 0;
2018-04-24 12:26:50 +00:00
&:active {
cursor: grabbing;
2018-04-24 12:26:50 +00:00
}
}
2017-01-06 16:52:18 +00:00
}
2016-05-24 09:29:26 +00:00
.btn-action {
.fa {
font-size: 18px;
vertical-align: middle;
pointer-events: none;
}
2016-05-24 09:29:26 +00:00
&:hover {
2018-08-14 16:44:08 +00:00
color: $blue-600;
2016-04-04 17:38:16 +00:00
2016-05-24 09:29:26 +00:00
&.remove-row {
color: $red-500;
2016-04-04 17:38:16 +00:00
}
}
2016-05-24 09:29:26 +00:00
}
2018-06-12 18:26:47 +00:00
.color-label {
padding: $gl-padding-4 $grid-size;
}
.prepend-description-left {
vertical-align: top;
line-height: 24px;
}
2016-06-14 16:48:42 +00:00
}
2016-05-02 23:19:46 +00:00
.prioritized-labels {
2016-05-19 05:46:09 +00:00
margin-bottom: 30px;
2016-05-02 23:19:46 +00:00
.add-priority {
display: none;
2016-05-19 05:46:09 +00:00
color: $gray-light;
2016-05-02 23:19:46 +00:00
}
2016-06-14 16:48:42 +00:00
li:hover {
.draggable-handler {
display: inline-block;
opacity: 1;
}
}
2016-05-02 23:19:46 +00:00
}
2016-09-29 04:03:28 +00:00
.other-labels {
2016-05-02 23:19:46 +00:00
.remove-priority {
display: none;
}
}
2016-05-19 05:46:09 +00:00
2016-05-26 17:54:07 +00:00
.filtered-labels {
2016-07-11 21:42:25 +00:00
font-size: 0;
padding: 12px 16px;
2016-05-26 17:54:07 +00:00
.label-row {
2016-07-11 21:42:25 +00:00
margin-top: 4px;
margin-bottom: 4px;
2016-05-26 17:54:07 +00:00
&:not(:last-child) {
2016-07-11 21:42:25 +00:00
margin-right: 8px;
2016-05-26 17:54:07 +00:00
}
}
.label-remove {
2016-11-30 13:25:25 +00:00
border-left: 1px solid $label-remove-border;
2016-05-26 17:54:07 +00:00
z-index: 3;
2016-12-16 10:59:10 +00:00
border-radius: $label-border-radius;
padding: 6px 10px 6px 9px;
&:hover {
2017-01-03 14:45:11 +00:00
box-shadow: inset 0 0 0 80px $label-remove-border;
}
2016-05-26 17:54:07 +00:00
}
.btn {
color: inherit;
}
a.btn {
padding: 0;
.has-tooltip {
top: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
line-height: 1.1;
}
}
2016-05-26 17:54:07 +00:00
}
2016-05-24 09:29:26 +00:00
.label-subscription {
vertical-align: middle;
.dropdown-group-label a {
cursor: pointer;
}
}
2016-05-25 08:43:03 +00:00
.label-subscribe-button {
2018-05-17 02:00:35 +00:00
width: 105px;
2018-05-17 14:57:46 +00:00
font-weight: 200;
2018-05-17 02:00:35 +00:00
.label-subscribe-button-icon {
&[disabled] {
opacity: 0.5;
pointer-events: none;
}
}
2016-05-25 08:43:03 +00:00
.label-subscribe-button-loading {
display: none;
}
&.disabled {
.label-subscribe-button-icon {
display: none;
}
.label-subscribe-button-loading {
display: block;
}
}
}
2017-01-30 14:35:25 +00:00
2018-04-18 17:48:19 +00:00
.labels-container {
background-color: $gray-light;
border-radius: $border-radius-default;
padding: $gl-padding $gl-padding-8;
2018-04-18 23:09:44 +00:00
}
.label-actions-list {
list-style: none;
2018-04-18 23:34:03 +00:00
flex-shrink: 0;
text-align: right;
padding: 0;
position: relative;
2018-08-09 13:15:01 +00:00
margin: 0;
2018-04-18 23:09:44 +00:00
}
.label-badge {
color: $gray-900;
2018-05-08 19:53:40 +00:00
font-weight: $gl-font-weight-normal;
padding: $gl-padding-4 $gl-padding-8;
2018-04-18 23:09:44 +00:00
border-radius: $border-radius-default;
2018-05-08 19:53:40 +00:00
font-size: $label-font-size;
2018-04-18 23:09:44 +00:00
}
2018-04-18 23:34:03 +00:00
.label-list-item {
2018-05-29 11:11:20 +00:00
.content-list &::before,
.content-list &::after {
2018-04-18 23:34:03 +00:00
content: none;
}
2018-04-19 02:02:38 +00:00
.label-name {
width: 200px;
2018-04-19 02:02:38 +00:00
.gl-label {
line-height: $gl-line-height;
}
2018-04-19 02:02:38 +00:00
}
.label {
padding: 4px $grid-size;
font-size: $label-font-size;
position: relative;
2018-06-05 09:47:43 +00:00
top: $gl-padding-4;
2018-04-19 02:02:38 +00:00
}
2018-04-24 13:32:51 +00:00
.label-action {
color: $gray-700;
2018-04-24 13:32:51 +00:00
cursor: pointer;
svg {
fill: $gray-700;
2018-04-24 13:32:51 +00:00
}
&:hover {
color: $blue-600;
svg {
fill: $blue-600;
}
}
&.remove-row {
&:hover {
2018-08-14 16:44:08 +00:00
color: $red-500;
svg {
2018-08-14 16:44:08 +00:00
fill: $red-500;
}
}
}
}
}
@media (max-width: map-get($grid-breakpoints, md)-1) {
.manage-labels-list {
> li:not(.empty-message):not(.no-border) {
flex-wrap: wrap;
}
.label-name {
order: 1;
flex-grow: 1;
width: auto;
max-width: 100%;
}
.label-actions-list {
order: 2;
flex-shrink: 1;
text-align: left;
}
.label-description {
order: 3;
}
2018-04-24 13:32:51 +00:00
}
2018-05-08 19:53:40 +00:00
}
.priority-labels-empty-state .svg-content img {
2018-06-05 14:34:51 +00:00
max-width: $priority-label-empty-state-width;
2018-05-25 11:38:56 +00:00
}
.scoped-label-tooltip-title {
color: $indigo-300;
}
.gl-label-scoped {
box-shadow: 0 0 0 2px currentColor inset;
&.gl-label-sm {
box-shadow: 0 0 0 1px inset;
}
}