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
143 lines (120 loc) • 3.27 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 ;
}
[class*=default-icon] {
display: block;
height: 16px;
width: 16px;
border: none ;
background-size: cover;
background-color: transparent;
opacity: .5;
transition: @transition-base;
margin: auto;
&:hover {
opacity: 1;
}
}
.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 {
overflow: hidden;
max-height: 0;
transition: @transition-collapse;
}
.expand {
.expand();
}
.v-center {
top: 50%;
transform: translateY(-50%);
}
.h-center {
left: 50%;
transform: translateX(-50%);
}
.neb {
.neb();
}
.neb2 {
.neb2(24px);
}
.selected {
box-shadow: 0 0 0 4px rgba(red(@lightCyan), green(@lightCyan), blue(@lightCyan), 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 {
pointer-events: none ;
color: @lightGray ;
}
.generate-utils-media-options(@mediaBreakpointListMobileLength);
.generate-utils-media-options(@name, @i: 1) when (@i <= @mediaBreakpointListMobileLength) {
@m: extract(@mediaBreakpointListMobile, @i);
@media screen and (min-width: @@m) {
.overflow-@{m} {overflow: auto ;}
.no-overflow-@{m} {overflow: hidden ;}
.scroll-@{m} {overflow: scroll ;}
.scroll-x-@{m} {overflow-x: auto ;}
.scroll-y-@{m} {overflow-y: auto ;}
.no-scroll-@{m} {overflow: hidden ;}
.no-scroll-x-@{m} {overflow-x: hidden ;}
.no-scroll-y-@{m}{overflow-y: hidden ;}
.wrap-@{m} {white-space: normal ;}
.no-wrap-@{m} {white-space: nowrap ;}
.collapse-@{m} {.collapse();}
.expand-@{m} {.expand();}
}
.generate-utils-media-options(@name, @i + 1);
}