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

326 lines
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;
}
}
2016-06-02 11:05:42 +05:30
.dropdown-new-label {
.dropdown-content {
2018-05-09 12:01:36 +05:30
max-height: 136px;
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
}
2016-04-02 18:10:28 +05:30
.label-row {
2016-06-02 11:05:42 +05:30
.label-name {
2016-06-22 15:30:34 +05:30
display: inline-block;
margin-bottom: 10px;
2016-06-02 11:05:42 +05:30
@media (min-width: $screen-sm-min) {
width: 200px;
2018-03-17 18:26:18 +05:30
margin-left: $gl-padding * 2;
margin-bottom: 0;
}
2016-11-03 12:29:30 +05:30
.label {
overflow: hidden;
text-overflow: ellipsis;
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;
2018-03-17 18:26:18 +05:30
vertical-align: top;
2016-11-03 12:29:30 +05:30
}
}
.label-description {
display: block;
margin-bottom: 10px;
2018-03-17 18:26:18 +05:30
.description-text {
margin-bottom: $gl-padding;
}
a {
color: $blue-600;
}
@media (min-width: $screen-sm-min) {
display: inline-block;
2018-03-17 18:26:18 +05:30
max-width: 50%;
margin-left: 10px;
margin-bottom: 0;
2018-03-17 18:26:18 +05:30
vertical-align: top;
2016-06-02 11:05:42 +05:30
}
}
2014-09-02 18:07:02 +05:30
.label {
2018-03-27 19:54:05 +05:30
padding: 4px $grid-size;
font-size: $label-font-size;
position: relative;
top: ($grid-size / 2);
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;
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;
background-color: $gl-danger;
color: $white-light;
}
.manage-labels-list {
2018-03-17 18:26:18 +05:30
@media(min-width: $screen-md-min) {
&.content-list li {
padding: $gl-padding 0;
}
}
2017-08-17 22:00:37 +05:30
> li:not(.empty-message):not(.is-not-draggable) {
background-color: $white-light;
cursor: move;
cursor: -webkit-grab;
cursor: -moz-grab;
&:active {
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
}
&.sortable-ghost {
opacity: 0.3;
}
}
.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 {
color: $gl-link-color;
2016-06-02 11:05:42 +05:30
&.remove-row {
color: $gl-danger;
}
}
}
2016-06-02 11:05:42 +05:30
.dropdown {
@media (min-width: $screen-sm-min) {
float: right;
}
2016-06-02 11:05:42 +05:30
}
2018-03-17 18:26:18 +05:30
@media (max-width: $screen-xs-max) {
.dropdown-menu {
min-width: 100%;
}
}
}
2016-06-02 11:05:42 +05:30
2016-06-22 15:30:34 +05:30
.draggable-handler {
display: inline-block;
2018-03-17 18:26:18 +05:30
vertical-align: top;
margin: 5px 0;
2016-06-22 15:30:34 +05:30
opacity: 0;
transition: opacity .3s;
color: $gray-darkest;
}
.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
.toggle-priority {
display: inline-block;
2018-03-17 18:26:18 +05:30
vertical-align: top;
2016-06-02 11:05:42 +05:30
button {
border-color: transparent;
padding: 5px 8px;
vertical-align: top;
font-size: 14px;
2016-06-02 11:05:42 +05:30
&:hover {
border-color: transparent;
2016-06-02 11:05:42 +05:30
}
}
}
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-03-17 18:26:18 +05:30
@media(min-width: $screen-md-min) {
min-width: 105px;
margin-left: $gl-padding;
}
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;
2017-09-10 17:25:29 +05:30
vertical-align: top;
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
}