@lxlib/theme
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.
47 lines (41 loc) • 725 B
text/less
// 中心元素
@abs-enabled: true;
.widget-abs-mixin(@enabled) when(@enabled=true) {
.abs-center-container {
position: relative;
}
.abs-center {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
overflow: auto;
&.abs-fixed {
position: fixed;
z-index: 999;
}
&.abs-right {
right: 20px;
left: auto;
text-align: right;
}
&.abs-left {
right: auto;
left: 20px;
text-align: left;
}
}
@media (max-width: 320px) {
.abs-center {
padding: 0 10px;
}
}
@media (max-height: @mobile-max) {
.abs-center {
position: relative;
}
}
}
.widget-abs-mixin(@abs-enabled);