2013-12-24 09:45:28 +00:00
|
|
|
/**
|
2014-12-18 15:22:10 +00:00
|
|
|
* Issue box for showing Open/Closed state:
|
2013-12-24 09:45:28 +00:00
|
|
|
* Used for Issue#show page, MergeRequest#show page etc
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-12-16 15:13:22 +00:00
|
|
|
.status-box {
|
2016-04-01 10:55:26 +00:00
|
|
|
|
2016-03-04 13:53:02 +00: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 15:26:28 +00:00
|
|
|
@include media-breakpoint-up(sm) {
|
2016-02-29 22:14:38 +00:00
|
|
|
padding: 0 $gl-btn-padding;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2016-03-04 13:53:02 +00:00
|
|
|
|
2019-06-10 11:58:54 +00:00
|
|
|
border-radius: $border-radius-default;
|
2015-12-02 13:46:55 +00:00
|
|
|
display: block;
|
|
|
|
float: left;
|
2019-06-10 11:58:54 +00:00
|
|
|
margin-right: $gl-padding-8;
|
2020-03-31 00:08:09 +00:00
|
|
|
color: $white;
|
2015-09-07 20:04:23 +00:00
|
|
|
font-size: $gl-font-size;
|
2018-11-20 23:36:14 +00:00
|
|
|
line-height: $gl-line-height-24;
|
2013-12-24 09:45:28 +00:00
|
|
|
|
2018-01-17 14:09:59 +00:00
|
|
|
&.status-box-closed,
|
2017-12-13 03:44:59 +00:00
|
|
|
&.status-box-mr-closed {
|
2018-08-21 17:52:31 +00:00
|
|
|
background-color: $red-500;
|
2014-02-27 19:04:44 +00:00
|
|
|
}
|
|
|
|
|
2018-01-17 14:09:59 +00:00
|
|
|
&.status-box-issue-closed,
|
2020-07-07 12:09:16 +00:00
|
|
|
&.status-box-alert-resolved,
|
2018-01-17 14:09:59 +00:00
|
|
|
&.status-box-mr-merged {
|
2018-08-21 17:52:31 +00:00
|
|
|
background-color: $blue-500;
|
2014-02-27 19:04:44 +00:00
|
|
|
}
|
|
|
|
|
2015-12-16 15:13:22 +00:00
|
|
|
&.status-box-open {
|
2017-03-23 16:04:25 +00:00
|
|
|
background-color: $green-500;
|
2014-02-27 19:04:44 +00:00
|
|
|
}
|
|
|
|
|
2015-12-16 15:13:22 +00:00
|
|
|
&.status-box-expired {
|
2018-08-16 19:31:53 +00:00
|
|
|
background-color: $orange-500;
|
2014-02-20 11:51:22 +00:00
|
|
|
}
|
2016-11-15 17:48:30 +00:00
|
|
|
|
|
|
|
&.status-box-upcoming {
|
2016-12-30 20:18:27 +00:00
|
|
|
background: $gl-text-color-secondary;
|
2016-11-15 17:48:30 +00:00
|
|
|
}
|
2013-12-24 09:45:28 +00:00
|
|
|
}
|