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

326 lines
5 KiB
SCSS
Raw Normal View History

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