debian-mirror-gitlab/app/assets/stylesheets/pages/labels.scss

214 lines
3.5 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.suggest-colors {
margin-top: 5px;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
a {
2016-11-03 12:29:30 +05:30
border-radius: 4px;
2014-09-02 18:07:02 +05:30
width: 30px;
height: 30px;
display: inline-block;
margin-right: 10px;
2016-08-24 12:49:21 +05:30
margin-bottom: 10px;
2016-09-29 09:46:39 +05:30
text-decoration: none;
2014-09-02 18:07:02 +05:30
}
2016-06-02 11:05:42 +05:30
&.suggest-colors-dropdown {
margin-top: 10px;
margin-bottom: 10px;
border-radius: $border-radius-base;
overflow: hidden;
a {
2016-11-03 12:29:30 +05:30
border-radius: 0;
2016-06-02 11:05:42 +05:30
width: (100% / 7);
margin-right: 0;
margin-bottom: -5px;
}
}
}
2018-05-09 12:01:36 +05:30
.dropdown-menu-labels {
.dropdown-content {
max-height: 135px;
}
2019-09-30 21:07:59 +05:30
.dropdown-label-box {
flex: 0 0 auto;
}
2018-05-09 12:01:36 +05:30
}
2016-06-02 11:05:42 +05:30
.dropdown-new-label {
.dropdown-content {
2019-07-07 11:18:12 +05:30
max-height: initial;
2016-06-02 11:05:42 +05:30
}
}
.dropdown-label-color-input {
position: relative;
margin-bottom: 10px;
&.is-active {
padding-left: 32px;
}
}
.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;
2014-09-02 18:07:02 +05:30
}
.color-label {
2018-03-27 19:54:05 +05:30
padding: 0 $grid-size;
line-height: 16px;
2017-08-17 22:00:37 +05:30
border-radius: $label-border-radius;
2020-04-22 19:07:51 +05:30
color: $white;
2014-09-02 18:07:02 +05:30
}
2016-06-02 11:05:42 +05:30
.dropdown-labels-error {
padding: 5px 10px;
margin-bottom: 10px;
2018-11-20 20:47:30 +05:30
background-color: $red-500;
2020-04-22 19:07:51 +05:30
color: $white;
2016-06-02 11:05:42 +05:30
}
.manage-labels-list {
2018-11-18 11:00:15 +05:30
padding: 0;
margin-bottom: 0;
2019-07-31 22:56:46 +05:30
> li:not(.empty-message):not(.no-border) {
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-11-08 19:23:39 +05:30
margin-bottom: 5px;
display: flex;
justify-content: space-between;
padding: $gl-padding;
border-radius: $border-radius-default;
2020-06-23 00:09:42 +05:30
border: 1px solid $gray-50;
2017-08-17 22:00:37 +05:30
2018-11-18 11:00:15 +05:30
&:last-child {
margin-bottom: 0;
}
2019-07-31 22:56:46 +05:30
.prioritized-labels:not(.is-not-draggable) & {
2018-11-08 19:23:39 +05:30
box-shadow: 0 1px 2px $issue-boards-card-shadow;
2019-07-07 11:18:12 +05:30
cursor: grab;
2018-11-08 19:23:39 +05:30
border: 0;
&:active {
2019-07-07 11:18:12 +05:30
cursor: grabbing;
2018-11-08 19:23:39 +05:30
}
}
2017-08-17 22:00:37 +05:30
}
2020-04-08 14:13:33 +05:30
.prepend-description-left {
vertical-align: top;
line-height: 24px;
}
}
2016-06-02 11:05:42 +05:30
2021-01-29 00:20:46 +05:30
.prioritized-labels .add-priority,
.other-labels .remove-priority {
display: none;
2017-08-17 22:00:37 +05:30
}
.label-subscribe-button {
2018-11-08 19:23:39 +05:30
width: 105px;
font-weight: 200;
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.labels-container {
border-radius: $border-radius-default;
padding: $gl-padding $gl-padding-8;
}
.label-actions-list {
list-style: none;
flex-shrink: 0;
2018-11-18 11:00:15 +05:30
text-align: right;
2018-11-08 19:23:39 +05:30
padding: 0;
2018-11-18 11:00:15 +05:30
position: relative;
2018-11-20 20:47:30 +05:30
margin: 0;
2018-11-08 19:23:39 +05:30
}
.label-badge {
2019-03-02 22:35:43 +05:30
color: $gray-900;
2021-01-03 14:25:43 +05:30
display: inline-block;
2018-11-08 19:23:39 +05:30
font-weight: $gl-font-weight-normal;
padding: $gl-padding-4 $gl-padding-8;
border-radius: $border-radius-default;
font-size: $label-font-size;
}
.label-list-item {
.label-name {
2020-05-24 23:13:21 +05:30
width: 200px;
2018-11-08 19:23:39 +05:30
2020-04-08 14:13:33 +05:30
.gl-label {
line-height: $gl-line-height;
2018-11-08 19:23:39 +05:30
}
}
.label-action {
2020-10-24 23:57:45 +05:30
color: $gray-700;
2018-11-08 19:23:39 +05:30
cursor: pointer;
&:hover {
color: $blue-600;
}
2018-11-18 11:00:15 +05:30
2021-04-29 21:17:54 +05:30
&.hover-red:hover {
2021-01-29 00:20:46 +05:30
color: $red-500;
2018-11-18 11:00:15 +05:30
}
}
}
@media (max-width: map-get($grid-breakpoints, md)-1) {
.manage-labels-list {
2019-07-31 22:56:46 +05:30
> li:not(.empty-message):not(.no-border) {
2018-11-18 11:00:15 +05:30
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-11-08 19:23:39 +05:30
}
}
.priority-labels-empty-state .svg-content img {
max-width: $priority-label-empty-state-width;
}
2019-07-07 11:18:12 +05:30
.scoped-label-tooltip-title {
color: $indigo-300;
}
2020-04-08 14:13:33 +05:30
.gl-label-scoped {
box-shadow: 0 0 0 2px currentColor inset;
&.gl-label-sm {
box-shadow: 0 0 0 1px inset;
}
}
2021-01-03 14:25:43 +05:30
/* Fix scoped label padding in cases where old markdown uses the old label structure */
.gl-label-text + .gl-label-text {
@include gl-pl-2;
@include gl-pr-3;
}