debian-mirror-gitlab/app/assets/stylesheets/framework/flash.scss

100 lines
1.6 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.flash-container {
cursor: pointer;
margin: 0;
2016-08-24 12:49:21 +05:30
margin-bottom: $gl-padding;
2014-09-02 18:07:02 +05:30
font-size: 14px;
2016-11-03 12:29:30 +05:30
position: relative;
z-index: 1;
2014-09-02 18:07:02 +05:30
2019-09-04 21:01:54 +05:30
.flash-notice,
.flash-alert,
.flash-success,
.flash-warning {
border-radius: $border-radius-default;
color: $white-light;
.container-fluid,
.container-fluid.container-limited {
background: transparent;
}
}
2014-09-02 18:07:02 +05:30
.flash-notice {
2015-04-26 12:48:37 +05:30
@extend .alert;
2018-11-08 19:23:39 +05:30
background-color: $blue-500;
margin: 0;
2018-11-08 19:23:39 +05:30
&.flash-notice-persistent {
background-color: $blue-100;
color: $gl-text-color;
a {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2018-11-08 19:23:39 +05:30
&:hover {
2018-11-20 20:47:30 +05:30
color: $blue-800;
2018-11-08 19:23:39 +05:30
text-decoration: none;
}
}
}
2014-09-02 18:07:02 +05:30
}
2018-03-27 19:54:05 +05:30
.flash-warning {
@extend .alert;
2019-09-04 21:01:54 +05:30
background-color: $orange-100;
color: $orange-900;
2019-10-12 21:52:04 +05:30
cursor: default;
2018-03-27 19:54:05 +05:30
margin: 0;
}
2019-02-15 15:39:39 +05:30
.flash-text,
.flash-action {
display: inline-block;
}
2014-09-02 18:07:02 +05:30
.flash-alert {
2015-04-26 12:48:37 +05:30
@extend .alert;
2018-11-08 19:23:39 +05:30
background-color: $red-500;
margin: 0;
2017-09-10 17:25:29 +05:30
2018-11-08 19:23:39 +05:30
.flash-action {
2017-09-10 17:25:29 +05:30
margin-left: 5px;
text-decoration: none;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-09-10 17:25:29 +05:30
border-bottom: 1px solid;
&:hover {
border-color: transparent;
}
}
2014-09-02 18:07:02 +05:30
}
2016-08-24 12:49:21 +05:30
2018-03-17 18:26:18 +05:30
.flash-success {
@extend .alert;
2018-11-08 19:23:39 +05:30
background-color: $green-500;
2018-03-17 18:26:18 +05:30
margin: 0;
}
2016-08-24 12:49:21 +05:30
&.flash-container-page {
margin-bottom: 0;
2017-08-17 22:00:37 +05:30
.flash-notice,
2018-03-17 18:26:18 +05:30
.flash-alert,
.flash-success {
2016-08-24 12:49:21 +05:30
border-radius: 0;
}
}
2017-09-10 17:25:29 +05:30
&:empty {
margin: 0;
}
2014-09-02 18:07:02 +05:30
}
2016-08-24 12:49:21 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2016-08-24 12:49:21 +05:30
ul.notes {
.flash-container.timeline-content {
margin-left: 0;
}
}
}