Commit e8de25b2 authored by Simon Knox's avatar Simon Knox

Merge branch 'cngo-remove-unnecessary-labels-css' into 'master'

Remove unnecessary labels css

See merge request gitlab-org/gitlab!45327
parents 2329d705 93eea708
...@@ -92,13 +92,8 @@ ...@@ -92,13 +92,8 @@
margin-bottom: 0; margin-bottom: 0;
} }
&.sortable-ghost {
opacity: 0.3;
}
.prioritized-labels:not(.is-not-draggable) & { .prioritized-labels:not(.is-not-draggable) & {
box-shadow: 0 1px 2px $issue-boards-card-shadow; box-shadow: 0 1px 2px $issue-boards-card-shadow;
cursor: move;
cursor: grab; cursor: grab;
border: 0; border: 0;
...@@ -108,126 +103,20 @@ ...@@ -108,126 +103,20 @@
} }
} }
.btn-action {
.fa {
font-size: 18px;
vertical-align: middle;
pointer-events: none;
}
&:hover {
color: $blue-600;
&.remove-row {
color: $red-500;
}
}
}
.color-label {
padding: $gl-padding-4 $grid-size;
}
.prepend-description-left { .prepend-description-left {
vertical-align: top; vertical-align: top;
line-height: 24px; line-height: 24px;
} }
} }
.prioritized-labels { .prioritized-labels .add-priority,
margin-bottom: 30px; .other-labels .remove-priority {
display: none;
.add-priority {
display: none;
color: $gray-light;
}
li:hover {
.draggable-handler {
display: inline-block;
opacity: 1;
}
}
}
.other-labels {
.remove-priority {
display: none;
}
}
.filtered-labels {
font-size: 0;
padding: 12px 16px;
.label-row {
margin-top: 4px;
margin-bottom: 4px;
&:not(:last-child) {
margin-right: 8px;
}
}
.label-remove {
border-left: 1px solid $label-remove-border;
z-index: 3;
border-radius: $label-border-radius;
padding: 6px 10px 6px 9px;
&:hover {
box-shadow: inset 0 0 0 80px $label-remove-border;
}
}
.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;
}
}
}
.label-subscription {
vertical-align: middle;
.dropdown-group-label a {
cursor: pointer;
}
} }
.label-subscribe-button { .label-subscribe-button {
width: 105px; width: 105px;
font-weight: 200; font-weight: 200;
.label-subscribe-button-icon {
&[disabled] {
opacity: 0.5;
pointer-events: none;
}
}
.label-subscribe-button-loading {
display: none;
}
&.disabled {
.label-subscribe-button-icon {
display: none;
}
.label-subscribe-button-loading {
display: block;
}
}
} }
.labels-container { .labels-container {
...@@ -255,11 +144,6 @@ ...@@ -255,11 +144,6 @@
} }
.label-list-item { .label-list-item {
.content-list &::before,
.content-list &::after {
content: none;
}
.label-name { .label-name {
width: 200px; width: 200px;
...@@ -268,37 +152,16 @@ ...@@ -268,37 +152,16 @@
} }
} }
.label {
padding: 4px $grid-size;
font-size: $label-font-size;
position: relative;
top: $gl-padding-4;
}
.label-action { .label-action {
color: $gray-700; color: $gray-700;
cursor: pointer; cursor: pointer;
svg {
fill: $gray-700;
}
&:hover { &:hover {
color: $blue-600; color: $blue-600;
svg {
fill: $blue-600;
}
} }
&.remove-row { &.remove-row:hover {
&:hover { color: $red-500;
color: $red-500;
svg {
fill: $red-500;
}
}
} }
} }
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
-# Only show it in the first page -# Only show it in the first page
- hide = @available_labels.empty? || (params[:page].present? && params[:page] != '1') - hide = @available_labels.empty? || (params[:page].present? && params[:page] != '1')
.prioritized-labels{ class: [('hide' if hide), ('is-not-draggable' unless can_admin_label)] } .prioritized-labels.gl-mb-7{ class: [('hide' if hide), ('is-not-draggable' unless can_admin_label)] }
%h5.gl-mt-3= _('Prioritized Labels') %h5.gl-mt-3= _('Prioritized Labels')
.content-list.manage-labels-list.js-prioritized-labels{ data: { url: set_priorities_project_labels_path(@project), sortable: can_admin_label } } .content-list.manage-labels-list.js-prioritized-labels{ data: { url: set_priorities_project_labels_path(@project), sortable: can_admin_label } }
#js-priority-labels-empty-state.priority-labels-empty-state{ class: "#{'hidden' unless @prioritized_labels.empty? && search.blank?}" } #js-priority-labels-empty-state.priority-labels-empty-state{ class: "#{'hidden' unless @prioritized_labels.empty? && search.blank?}" }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment