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

473 lines
7.1 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-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 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: $red-500;
color: $white-light;
}
.manage-labels-list {
padding: 0;
margin-bottom: 0;
> li:not(.empty-message):not(.no-border) {
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;
border: 1px solid $gray-100;
2017-01-06 11:52:18 -05:00
&:last-child {
margin-bottom: 0;
}
2017-01-06 11:52:18 -05:00
&.sortable-ghost {
opacity: 0.3;
}
2018-04-18 13:48:19 -04:00
.prioritized-labels:not(.is-not-draggable) & {
2018-04-18 13:48:19 -04:00
box-shadow: 0 1px 2px $issue-boards-card-shadow;
2018-04-24 08:26:50 -04:00
cursor: move;
cursor: grab;
2018-06-28 12:15:23 -04:00
border: 0;
2018-04-24 08:26:50 -04:00
&:active {
cursor: grabbing;
2018-04-24 08:26:50 -04:00
}
}
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 {
2018-08-14 12:44:08 -04:00
color: $blue-600;
2016-04-04 13:38:16 -04:00
2016-05-24 05:29:26 -04:00
&.remove-row {
color: $red-500;
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;
text-align: right;
padding: 0;
position: relative;
2018-08-09 09:15:01 -04:00
margin: 0;
2018-04-18 19:09:44 -04:00
}
.label-badge {
color: $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: $gray-100;
2018-04-18 19:09:44 -04:00
}
.label-links {
list-style: none;
2018-08-09 09:15:01 -04:00
margin: 0;
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-description {
.description-text {
margin-bottom: 10px;
.admin-labels & {
margin-bottom: 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;
2018-06-14 14:23:00 -04:00
.badge {
2018-04-18 22:02:38 -04:00
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: $gray-800;
2018-04-24 09:32:51 -04:00
cursor: pointer;
svg {
fill: $gray-800;
2018-04-24 09:32:51 -04:00
}
&:hover {
color: $blue-600;
svg {
fill: $blue-600;
}
}
&.remove-row {
&:hover {
2018-08-14 12:44:08 -04:00
color: $red-500;
svg {
2018-08-14 12:44:08 -04: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-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-04-24 09:32:51 -04:00
}
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
}
.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;
}
&.board-label {
.scoped-label {
top: 1px;
}
}
}
// Label inside title of Delete Label Modal
.modal-header .page-title {
.scoped-label-wrapper {
.scoped-label {
line-height: 20px;
}
span.color-label {
padding-right: $gl-padding-24;
}
}
}
// Don't hide the overflow in system messages
.system-note-message,
.issuable-details,
2019-04-25 00:24:05 -04:00
.md-preview-holder,
.referenced-commands,
2019-04-25 00:24:05 -04:00
.note-body {
.scoped-label-wrapper {
.badge {
overflow: initial;
}
}
}