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

98 lines
1.5 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
.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;
2018-11-08 19:23:39 +05:30
background-color: $orange-500;
2018-03-27 19:54:05 +05:30
margin: 0;
}
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
.flash-text,
.flash-action {
display: inline-block;
}
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;
}
2017-08-17 22:00:37 +05:30
.flash-notice,
2018-03-17 18:26:18 +05:30
.flash-alert,
2018-11-08 19:23:39 +05:30
.flash-success,
.flash-warning {
2016-08-24 12:49:21 +05:30
border-radius: $border-radius-default;
2018-11-08 19:23:39 +05:30
color: $white-light;
2016-08-24 12:49:21 +05:30
2016-11-03 12:29:30 +05:30
.container-fluid,
.container-fluid.container-limited {
2016-08-24 12:49:21 +05:30
background: transparent;
}
}
&.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;
}
}
}