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

247 lines
3.7 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-new-label {
.dropdown-content {
max-height: 260px;
}
}
.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;
}
.label-row {
.label-name {
2016-06-20 15:11:15 -04:00
display: inline-block;
2016-05-24 05:29:26 -04:00
margin-bottom: 10px;
@media (min-width: $screen-sm-min) {
width: 200px;
margin-bottom: 0;
}
.label {
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
max-width: 100%;
}
}
.label-type {
display: block;
margin-bottom: 10px;
margin-left: 50px;
@media (min-width: $screen-sm-min) {
display: inline-block;
width: 100px;
margin-left: 10px;
margin-bottom: 0;
vertical-align: middle;
}
2016-05-24 05:29:26 -04:00
}
.label-description {
display: block;
margin-bottom: 10px;
2016-06-20 15:11:15 -04:00
margin-left: 50px;
2016-05-24 05:29:26 -04:00
@media (min-width: $screen-sm-min) {
display: inline-block;
width: 40%;
margin-left: 10px;
margin-bottom: 0;
vertical-align: middle;
}
}
.label {
padding: 9px;
font-size: 14px;
}
}
.color-label {
padding: 3px 4px;
}
.dropdown-labels-error {
padding: 5px 10px;
margin-bottom: 10px;
background-color: $gl-danger;
color: $white-light;
}
.manage-labels-list {
2016-05-24 05:29:26 -04:00
.btn-action {
color: $gl-dark-link-color;
2016-05-24 05:29:26 -04:00
.fa {
font-size: 18px;
vertical-align: middle;
}
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
}
2016-05-24 05:29:26 -04:00
.dropdown {
@media (min-width: $screen-sm-min) {
float: right;
}
}
}
2016-05-02 19:19:46 -04:00
2016-06-14 12:48:42 -04:00
.draggable-handler {
display: inline-block;
opacity: 0;
transition: opacity .3s;
color: $gray-darkest;
}
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
.toggle-priority {
display: inline-block;
vertical-align: middle;
button {
border-color: transparent;
padding: 5px 8px;
vertical-align: top;
font-size: 14px;
&:hover {
border-color: transparent;
}
}
}
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 {
border-left: 1px solid rgba(0, 0, 0, .1);
2016-05-26 13:54:07 -04:00
z-index: 3;
}
.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-subscribe-button {
.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;
}
}
}