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
112 lines (95 loc) • 2.76 kB
text/less
@import (once) "../../include/vars";
@import (once) "../../include/mixins";
.m4-cloak {
opacity: 0;
}
.transition {
transition: all .3s linear;
}
.inherit-colors {
background-color: inherit ;
color: inherit ;
}
.inherit-background {
background-color: inherit ;
}
.inherit-color {
color: inherit ;
}
.clear, .clear-fix, .clearfix {
.clear()
}
.overflow {overflow: auto ;}
.no-overflow {overflow: hidden ;}
.scroll {overflow: scroll ;}
.scroll-x {overflow-x: auto ;}
.scroll-y {overflow-y: auto ;}
.no-scroll {overflow: hidden ;}
.no-scroll-x {overflow-x: hidden ;}
.no-scroll-y {overflow-y: hidden ;}
.wrap {white-space: normal ;}
.no-wrap {white-space: nowrap ;}
.no-user-select {user-select: none ;}
.no-appearance {appearance: none ;}
.collapse {
.collapse();
}
.expand {
.expand();
}
.selected {
box-shadow: 0 0 0 4px rgba(
red(@selectedElementBorder),
green(@selectedElementBorder),
blue(@selectedElementBorder),
1) ;
&::after {
position: absolute;
display: block;
border-top: 28px solid @lightCyan;
border-left: 28px solid transparent;
right: -1px;
content:"";
top: -1px;
z-index: @zindex-selectedCheck;
}
&::before {
position: absolute;
display: block;
content: "";
background-color: transparent;
border-color: @white ;
border-left: 2px solid;
border-bottom: 2px solid;
height: .325rem;
width: .5rem;
right: .25rem;
top: .25rem;
z-index: 102;
transform: rotate(-45deg);
}
}
.disabled, .-disabled {
pointer-events: none ;
color: @lightGray ;
}
.stop-pointer {
pointer-events: none;
user-select: none;
}
each(@mediaBreakpointListMobile, {
@media screen and (min-width: @@value) {
.overflow-@{value} {overflow: auto ;}
.no-overflow-@{value} {overflow: hidden ;}
.scroll-@{value} {overflow: scroll ;}
.scroll-x-@{value} {overflow-x: auto ;}
.scroll-y-@{value} {overflow-y: auto ;}
.no-scroll-@{value} {overflow: hidden ;}
.no-scroll-x-@{value} {overflow-x: hidden ;}
.no-scroll-y-@{value}{overflow-y: hidden ;}
.wrap-@{value} {white-space: normal ;}
.no-wrap-@{value} {white-space: nowrap ;}
.collapse-@{value} {.collapse();}
.expand-@{value} {.expand();}
}
})