2013-12-24 04:45:28 -05:00
|
|
|
/**
|
2014-12-18 10:22:10 -05:00
|
|
|
* Issue box for showing Open/Closed state:
|
2013-12-24 04:45:28 -05:00
|
|
|
* Used for Issue#show page, MergeRequest#show page etc
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-12-16 10:13:22 -05:00
|
|
|
.status-box {
|
2016-04-01 06:55:26 -04:00
|
|
|
|
2016-03-04 08:53:02 -05:00
|
|
|
/* Extra small devices (phones, less than 768px) */
|
|
|
|
/* No media query since this is the default in Bootstrap */
|
|
|
|
padding: 5px 11px;
|
|
|
|
margin-top: 4px;
|
|
|
|
/* Small devices (tablets, 768px and up) */
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(sm) {
|
2016-02-29 17:14:38 -05:00
|
|
|
padding: 0 $gl-btn-padding;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2016-03-04 08:53:02 -05:00
|
|
|
|
2016-09-09 12:59:36 -04:00
|
|
|
border-radius: 3px;
|
2015-12-02 08:46:55 -05:00
|
|
|
display: block;
|
|
|
|
float: left;
|
2015-09-07 16:04:23 -04:00
|
|
|
margin-right: 10px;
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $white-light;
|
2015-09-07 16:04:23 -04:00
|
|
|
font-size: $gl-font-size;
|
2016-02-22 07:52:34 -05:00
|
|
|
line-height: 25px;
|
2013-12-24 04:45:28 -05:00
|
|
|
|
2018-01-17 09:09:59 -05:00
|
|
|
&.status-box-closed,
|
2017-12-12 22:44:59 -05:00
|
|
|
&.status-box-mr-closed {
|
2015-03-06 22:02:12 -05:00
|
|
|
background-color: $gl-danger;
|
2014-02-27 14:04:44 -05:00
|
|
|
}
|
|
|
|
|
2018-01-17 09:09:59 -05:00
|
|
|
&.status-box-issue-closed,
|
|
|
|
&.status-box-mr-merged {
|
2015-03-06 22:02:12 -05:00
|
|
|
background-color: $gl-primary;
|
2014-02-27 14:04:44 -05:00
|
|
|
}
|
|
|
|
|
2015-12-16 10:13:22 -05:00
|
|
|
&.status-box-open {
|
2017-03-23 12:04:25 -04:00
|
|
|
background-color: $green-500;
|
2014-02-27 14:04:44 -05:00
|
|
|
}
|
|
|
|
|
2015-12-16 10:13:22 -05:00
|
|
|
&.status-box-expired {
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $issue-status-expired;
|
2014-02-20 06:51:22 -05:00
|
|
|
}
|
2016-11-15 12:48:30 -05:00
|
|
|
|
|
|
|
&.status-box-upcoming {
|
2016-12-30 15:18:27 -05:00
|
|
|
background: $gl-text-color-secondary;
|
2016-11-15 12:48:30 -05:00
|
|
|
}
|
2013-12-24 04:45:28 -05:00
|
|
|
}
|