metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
59 lines (55 loc) • 1.2 kB
text/less
@import (once) "include/vars";
@import (once) "include/mixins";
.info-box {
position: fixed;
background-color: @white;
color: @dark;
border: 1px solid @borderColor;
display: block;
z-index: @zindex-modal;
max-width: ~"calc(100vw - 100px)";
max-height: ~"calc(100vh - 100px)";
}
.info-box {
.closer {
display: block;
position: absolute;
top: 4px;
right: 4px;
background-color: inherit;
color: inherit;
z-index: 1;
&::before {
display: block;
content: "\00d7";
font-size: 24px;
margin-top: -4px;
}
}
.info-box-content {
padding: 20px;
z-index: 0;
}
}
.info-box {
&.success {
background-color: @green;
color: @white;
border-color: @lightGreen;
}
&.info {
background-color: @cyan;
color: @white;
border-color: @lightCyan;
}
&.warning {
background-color: @orange;
color: @white;
border-color: @lightOrange;
}
&.alert {
background-color: @red;
color: @white;
border-color: @lightRed;
}
}