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

485 lines
7.3 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;
}
2017-08-17 22:00:37 +05:30
&.sortable-ghost {
opacity: 0.3;
}
2018-11-08 19:23:39 +05:30
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;
cursor: move;
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
}
.btn-action {
.fa {
font-size: 18px;
vertical-align: middle;
2017-09-10 17:25:29 +05:30
pointer-events: none;
}
2016-06-02 11:05:42 +05:30
&:hover {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2016-06-02 11:05:42 +05:30
&.remove-row {
2018-11-20 20:47:30 +05:30
color: $red-500;
}
}
}
2016-06-02 11:05:42 +05:30
2018-11-08 19:23:39 +05:30
.color-label {
padding: $gl-padding-4 $grid-size;
2018-03-17 18:26:18 +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
.prioritized-labels {
margin-bottom: 30px;
2016-06-02 11:05:42 +05:30
.add-priority {
display: none;
color: $gray-light;
2016-06-02 11:05:42 +05:30
}
2016-06-22 15:30:34 +05:30
li:hover {
.draggable-handler {
display: inline-block;
opacity: 1;
}
}
}
2016-06-02 11:05:42 +05:30
.other-labels {
.remove-priority {
display: none;
}
}
2016-06-02 11:05:42 +05:30
.filtered-labels {
2016-08-24 12:49:21 +05:30
font-size: 0;
padding: 12px 16px;
.label-row {
2016-08-24 12:49:21 +05:30
margin-top: 4px;
margin-bottom: 4px;
&:not(:last-child) {
2016-08-24 12:49:21 +05:30
margin-right: 8px;
2016-06-02 11:05:42 +05:30
}
}
2016-06-02 11:05:42 +05:30
.label-remove {
2017-08-17 22:00:37 +05:30
border-left: 1px solid $label-remove-border;
z-index: 3;
2017-08-17 22:00:37 +05:30
border-radius: $label-border-radius;
padding: 6px 10px 6px 9px;
&:hover {
box-shadow: inset 0 0 0 80px $label-remove-border;
}
}
2016-06-02 11:05:42 +05:30
.btn {
color: inherit;
}
2016-09-13 17:45:13 +05:30
a.btn {
padding: 0;
.has-tooltip {
top: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
line-height: 1.1;
}
}
}
.label-options-toggle {
width: 100%;
}
2017-08-17 22:00:37 +05:30
.label-subscription {
vertical-align: middle;
.dropdown-group-label a {
cursor: pointer;
}
}
.label-subscribe-button {
2018-11-08 19:23:39 +05:30
width: 105px;
font-weight: 200;
2018-03-17 18:26:18 +05:30
2016-11-03 12:29:30 +05:30
.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;
2016-06-02 11:05:42 +05:30
}
}
}
2017-08-17 22:00:37 +05:30
.label-link {
2018-03-27 19:54:05 +05:30
display: inline-flex;
2018-11-08 19:23:39 +05:30
vertical-align: text-bottom;
2017-09-10 17:25:29 +05:30
2018-10-15 14:42:47 +05:30
&:hover .color-label {
text-decoration: underline;
}
2017-09-10 17:25:29 +05:30
.label {
vertical-align: inherit;
2018-03-27 19:54:05 +05:30
font-size: $label-font-size;
2017-09-10 17:25:29 +05:30
}
2017-08-17 22:00:37 +05:30
}
2018-11-08 19:23:39 +05:30
.labels-container {
background-color: $gray-light;
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;
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-badge-blue {
background-color: $theme-blue-100;
}
.label-badge-gray {
2020-06-23 00:09:42 +05:30
background-color: $gray-50;
2018-11-08 19:23:39 +05:30
}
.label-links {
list-style: none;
2018-11-20 20:47:30 +05:30
margin: 0;
2018-11-08 19:23:39 +05:30
padding: 0;
white-space: nowrap;
}
.label-link-item {
padding: 0;
}
2018-11-18 11:00:15 +05:30
.label-description {
.description-text {
margin-bottom: 10px;
.admin-labels & {
margin-bottom: 0;
}
}
}
2018-11-08 19:23:39 +05:30
.label-list-item {
.content-list &::before,
.content-list &::after {
content: none;
}
.label-name {
2020-05-24 23:13:21 +05:30
width: 200px;
2018-11-08 19:23:39 +05:30
flex-shrink: 0;
2020-04-08 14:13:33 +05:30
.scoped-label-wrapper,
.gl-label {
line-height: $gl-line-height;
2018-11-08 19:23:39 +05:30
}
}
.label-description {
flex-grow: 1;
a {
color: $blue-600;
}
}
.label {
padding: 4px $grid-size;
font-size: $label-font-size;
position: relative;
top: $gl-padding-4;
}
.label-action {
2019-03-02 22:35:43 +05:30
color: $gray-800;
2018-11-08 19:23:39 +05:30
cursor: pointer;
svg {
2019-03-02 22:35:43 +05:30
fill: $gray-800;
2018-11-08 19:23:39 +05:30
}
&:hover {
color: $blue-600;
svg {
fill: $blue-600;
}
}
2018-11-18 11:00:15 +05:30
&.remove-row {
&:hover {
2018-11-20 20:47:30 +05:30
color: $red-500;
2018-11-18 11:00:15 +05:30
svg {
2018-11-20 20:47:30 +05:30
fill: $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-links {
white-space: normal;
}
.label-description {
order: 3;
width: 100%;
> .append-right-default.prepend-left-default {
margin-left: 0;
margin-right: 0;
}
}
}
}
@media (max-width: 910px) {
.priority-badge {
display: block;
width: 100%;
margin-left: 0;
margin-top: $gl-padding;
.label-badge {
display: inline-block;
}
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;
}
.scoped-label-wrapper {
max-width: 100%;
vertical-align: top;
.badge {
text-overflow: ellipsis;
overflow-x: hidden;
}
&.label-link .color-label a {
color: inherit;
}
.color-label {
padding-right: $gl-padding-24;
max-width: 100%;
}
.scoped-label {
position: absolute;
top: 4px;
right: 8px;
padding: 0;
margin: 0;
line-height: $gl-line-height;
}
2019-07-31 22:56:46 +05:30
&.board-label {
.scoped-label {
top: 1px;
}
}
2019-07-07 11:18:12 +05:30
}
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;
}
}
2019-07-07 11:18:12 +05:30
// Label inside title of Delete Label Modal
.modal-header .page-title {
.scoped-label-wrapper {
2020-05-24 23:13:21 +05:30
.scoped-label {
2019-07-07 11:18:12 +05:30
line-height: 20px;
}
span.color-label {
padding-right: $gl-padding-24;
}
}
}
// Don't hide the overflow in system messages
.system-note-message,
2019-09-04 21:01:54 +05:30
.issuable-details,
2019-07-31 22:56:46 +05:30
.md-preview-holder,
2019-09-04 21:01:54 +05:30
.referenced-commands,
2019-07-31 22:56:46 +05:30
.note-body {
2019-07-07 11:18:12 +05:30
.scoped-label-wrapper {
.badge {
overflow: initial;
}
}
}