ORIENT/modules/system/assets/ui/less/flashmessage.less

85 lines
1.8 KiB
Plaintext
Raw Normal View History

2015-05-26 09:16:09 +00:00
//
// Dependencies
// --------------------------------------------------
@import "global.less";
@import "icon.close.less";
2014-05-14 13:24:20 +00:00
//
// Flash Messages
// --------------------------------------------------
2015-05-26 09:16:09 +00:00
@color-flash-success-bg: #8da85e;
@color-flash-error-bg: #cc3300;
@color-flash-warning-bg: #f0ad4e;
@color-flash-info-bg: #5fb6f5;
@color-flash-text: #ffffff;
2014-05-14 13:24:20 +00:00
#layout-canvas {
2015-05-26 09:16:09 +00:00
.flash-message{ display: none; }
2014-05-14 13:24:20 +00:00
}
.flash-message {
position: fixed;
width: 500px;
left: 50%;
top: 50px;
2014-05-14 13:24:20 +00:00
margin-left: -250px;
color: @color-flash-text;
2016-02-29 03:52:21 +00:00
font-size: 14px;
2014-05-14 13:24:20 +00:00
padding: 10px 30px 10px 15px;
z-index: @zindex-flashmessage;
word-wrap: break-word;
text-align: center;
.box-shadow(@overlay-box-shadow);
2014-05-14 13:24:20 +00:00
.border-radius(@border-radius-base);
&.fade {
.opacity(0);
.transition(~'all 0.5s, width 0s');
.transform(~'scale(0.9)');
}
&.fade.in {
.opacity(1);
.transform( ~'scale(1)');
}
&.success { background: @color-flash-success-bg; }
&.error { background: @color-flash-error-bg; }
&.warning { background: @color-flash-warning-bg; }
2014-07-25 07:24:43 +00:00
&.info { background: @color-flash-info-bg; }
2014-05-14 13:24:20 +00:00
button {
float: none;
position: absolute;
right: 10px;
top: 8px;
color: white;
2016-02-29 03:52:21 +00:00
outline: none;
2014-05-14 13:24:20 +00:00
&:hover {
color: white
}
}
&.static {
position: static !important;
width: auto !important;
display: block !important;
margin-left: 0 !important;
.box-shadow(none);
2014-05-14 13:24:20 +00:00
}
}
@media (max-width: @screen-sm) {
.flash-message {
left: 10px;
right: 10px;
top: 10px;
margin-left: 0;
width: auto;
}
2016-04-26 18:44:02 +00:00
}