Elastic: Simplify some styles for .ui.alert

pull/6759/head
Aleksander Machniak 6 years ago
parent 918c8859b6
commit 516a88e49d

@ -101,7 +101,7 @@
// Messages
@color-message: @color-font;
@color-message-border: rgba(0, 0, 0, 0.15);
@color-message-border: transparent;
@color-message-background: fadeout(@color-main, 95%);
@color-message-link: @color-main;
@color-message-link-font-weight: normal;

@ -15,28 +15,22 @@
.ui.alert {
margin: 0;
margin-bottom: .2rem;
opacity: .95;
float: left;
width: 100%;
padding: .75em;
color: @color-message;
border: 1px solid @color-message-border;
background-color: @color-message-background;
border-radius: 0;
display: flex;
align-items: center;
@media screen and (max-width: @screen-width-xs) {
border: 0;
border-radius: 0;
min-height: 4.2rem;
}
@media screen and (min-width: (@screen-width-xs + 1px)) {
&:not(:last-child) {
margin-bottom: .2rem;
}
}
span {
margin: auto 0;
}
@ -127,19 +121,11 @@
&.boxconfirmation,
&.boxinformation,
&.boxwarning {
float: none;
border-radius: 0;
border: none;
padding: .5em;
margin-top: 0; // this can be a <p> element, reset default margin
i.icon {
font-size: 1.5em !important;
}
&:not(:last-child) {
margin-bottom: .2rem;
}
}
&.boxerror {
@ -184,10 +170,13 @@
}
div {
border-color: transparent;
background-color: @color-message;
color: #fff;
@media screen and (max-width: @screen-width-xs) {
margin: 0;
}
&.voice {
position: absolute;
top: -1000px;
@ -200,6 +189,14 @@
& > i.icon:before {
color: #fff;
}
&:last-child {
margin-bottom: 0;
}
@media screen and (max-width: @screen-width-xs) {
margin: 0;
}
}
.loading {

Loading…
Cancel
Save