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
502 lines (426 loc) • 10.5 kB
text/less
@import (once) "../../include/vars";
@import (once) "../../include/mixins";
.text {
&-ultralight {
font-weight: 100 ;
}
&-light {
font-weight: 200 ;
}
&-normal {
font-weight: 400 ;
}
&-medium {
font-weight: 500 ;
}
&-bold {
font-weight: 700 ;
}
}
.display4 {
.px2rem(font-size, 112px);
font-weight: 200;
}
.display3 {
.px2rem(font-size, 56px);
font-weight: 400;
}
.display2 {
.px2rem(font-size, 48px);
font-weight: 400;
}
.display1 {
.px2rem(font-size, 36px);
font-weight: 400;
}
.display1, .display2, .display3, .display4 {
.px2rem(margin-top, 20px);
.px2rem(margin-bottom, 20px);
line-height: 1;
}
.display4, .display3, .display2, .display1 {
color: lighten(@black, 46%);
}
.leader, .h1, h1 {
font-weight: 100;
.px2rem(font-size, 48px);
}
.sub-leader, .h2, h2 {
font-weight: 400;
.px2rem(font-size, 32px);
}
.header, .h3, h3 {
font-weight: 500;
.px2rem(font-size, 28px);
}
.sub-header, .h4, h4 {
font-weight: 500;
.px2rem(font-size, 24px);
}
.alt-header, .h5, h5 {
font-weight: 500;
.px2rem(font-size, 20px);
}
.sub-alt-header, .h6, h6 {
font-weight: 500;
.px2rem(font-size, 18px);
}
.text-small {
font-weight: 400;
.px2rem(font-size, 12px);
}
.text-secondary {
font-weight: 400;
.px2rem(font-size, 14px);
}
.text-leader {
.px2rem(font-size, 24px);
font-weight: 300;
line-height: 1.2;
}
.text-leader2 {
.px2rem(font-size, 20px);
font-weight: 300;
line-height: 1.2;
}
.text-muted {
color: @gray;
}
.leader, .h1, h1,
.sub-leader, .h2, h2,
.header, .h3, h3,
.sub-header, .h4, h4,
.alt-header, .h5, h5,
.sub-alt-header, .h6, h6 {
color: inherit;
margin: 1rem 0;
line-height: 1.1;
& > small, & > .small {
font-weight: 400;
font-size: .7em;
line-height: 1;
color: #777;
}
&:nth-child(1) {
margin-top: 0;
}
}
.text-upper {text-transform: uppercase ;}
.text-lower {text-transform: lowercase ;}
.text-cap {text-transform: capitalize ;}
.text-left {text-align: left ;}
.text-right {text-align: right ;}
.text-center {text-align: center ;}
.text-just {text-align: justify ;}
.text-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.text-italic { font-style: italic ; }
.text-oblique {font-style: oblique ; }
.text-overline { text-decoration: overline ; }
.text-linethrough { text-decoration: line-through ; }
.text-underline { text-decoration: underline ; }
.text-underover { text-decoration: underline overline ; }
.va-top {vertical-align: top ;}
.va-bottom {vertical-align: bottom ;}
.va-baseline {vertical-align: baseline ;}
.va-middle {vertical-align: middle ;}
.va-sub {vertical-align: sub ;}
.va-super {vertical-align: super ;}
.va-text-top {vertical-align: text-top ;}
.va-text-bottom {vertical-align: text-bottom ;}
abbr {
text-decoration: none;
border-bottom: 1px @gray dotted;
cursor: help;
display: inline;
}
address {
font-weight: normal;
margin-bottom: 1rem;
font-style: normal;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
pre,
code,
kbd,
samp {
font-family: monospace, monospace;
.px2rem(font-size, 16px);
}
pre {
margin-top: 0;
.px2rem(margin-bottom, 16px);
overflow: auto;
}
code {
white-space: nowrap;
}
pre code {
white-space: inherit;
}
a:not([class]) {
position: relative;
color: @linkColor;
text-decoration: none;
background-color: transparent;
-webkit-text-decoration-skip: objects;
box-shadow: none;
&:hover {
color: @linkColorHover;
text-decoration: underline;
}
}
a:not([class]):not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
a:not([class]):not([href]):not([tabindex]) {
&:focus, &:hover {
color: inherit;
text-decoration: none;
outline: 0;
}
}
.no-decor {
text-decoration: none ;
}
mark {
.px2rem(padding, 3px);
background-color: rgb(252, 248, 227);
color: #000000;
}
del {
color: @gray;
}
* + p {
margin-top: 1rem;
}
dl, ul, ol {
margin: 1rem;
list-style-position: inside;
dl, ul, ol {
margin-bottom: 0;
margin-top: 0;
.px2rem(padding-left, 24px);
}
}
ul, menu, dir {
display: block;
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ul {
ul {
list-style: circle;
ul {
list-style: square;
}
}
}
ol {
list-style-type: upper-roman;
ol {
list-style-type: decimal;
ol {
list-style-type: lower-alpha;
}
}
}
dl {
dt, dd {
line-height: 1.25rem;
}
dt {
font-weight: bold;
}
dd {
margin-left: .9375rem;
}
&.horizontal {
dt {
float: left;
width: 10rem;
overflow: hidden;
clear: left;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
dd {
margin-left: 11.25rem;
}
}
}
.indent {
&:first-letter {
margin-left: 2.5rem;
}
&-letter {
&:first-letter {
font-weight: bold;
float: left;
padding: 0;
.px2rem(line-height, 40px);
.px2rem(font-size, 48px);
.px2rem(margin-right, 8px);
.px2rem(margin-left, -2px);
.px2rem(margin-top, 2px);
}
}
}
blockquote {
margin-bottom: 1rem;
padding: 0 0 0 .625rem;
border-left: .25rem @light solid;
small {
color: @gray;
&:before {
content: "\2014 \00A0";
}
}
&.right-side {
border: 0;
border-right: 4px @light solid;
padding-right: .625rem;
text-align: right;
small {
&:before {
content: "";
}
&:after {
content: " \00A0 \2014";
}
}
}
}
hr {
border: 0;
height: 2px;
background-color: @light;
&.thin {
height: 1px;
}
&.fat {
height: 3px;
}
}
.tally, code, kbd {
display: inline-block;
padding: 0 6px;
font-size: 90%;
color: #bd4147;
background-color: #f8f9fa;
border-radius: @borderRadius;
line-height: 20px;
vertical-align: middle;
height: 20px;
a & {
text-decoration: underline;
cursor: pointer;
}
}
kbd {
background-color: @brandColor2;
color: @white;
}
.tally {
line-height: 16px;
background-color: darken(#f8f9fa, 5%);
}
pre code {
background-color: inherit;
height: auto;
}
.remark {
display: block;
position: relative;
border: 1px solid @borderColor;
border-left: 4px solid @borderColor;
padding: 1rem;
.px2rem(font-size, 14px);
margin: 1rem 0;
}
.reduce-1 {font-size: .9em ;}
.reduce-2 {font-size: .8em ;}
.reduce-3 {font-size: .7em ;}
.reduce-4 {font-size: .6em ;}
.reduce-5 {font-size: .5em ;}
.reduce-6 {font-size: .4em ;}
.reduce-7 {font-size: .3em ;}
.reduce-8 {font-size: .2em ;}
.reduce-9 {font-size: .1em ;}
.enlarge {font-size: 1em ;}
.enlarge-1 {font-size: 1.1em ;}
.enlarge-2 {font-size: 1.2em ;}
.enlarge-3 {font-size: 1.3em ;}
.enlarge-4 {font-size: 1.4em ;}
.enlarge-5 {font-size: 1.5em ;}
.enlarge-6 {font-size: 1.6em ;}
.enlarge-7 {font-size: 1.7em ;}
.enlarge-8 {font-size: 1.8em ;}
.enlarge-9 {font-size: 1.9em ;}
.enlarge-2x {font-size: 2em ;}
.enlarge-3x {font-size: 3em ;}
.enlarge-4x {font-size: 4em ;}
.align-size {font-size: 1em ;}
.text-underline {
text-decoration: underline;
}
each(@mediaBreakpointListMobile, .(@m) {
@media screen and (min-width: @@m) {
.text-upper-@{m} {text-transform: uppercase ;}
.text-lower-@{m} {text-transform: lowercase ;}
.text-cap-@{m} {text-transform: capitalize ;}
.text-left-@{m} {text-align: left ;}
.text-right-@{m} {text-align: right ;}
.text-center-@{m} {text-align: center ;}
.text-just-@{m} {text-align: justify ;}
.va-top-@{m} {vertical-align: top ;}
.va-bottom-@{m} {vertical-align: bottom ;}
.va-baseline-@{m} {vertical-align: baseline ;}
.va-middle-@{m} {vertical-align: middle ;}
.va-sub-@{m} {vertical-align: sub ;}
.va-super-@{m} {vertical-align: super ;}
.va-text-top-@{m} {vertical-align: text-top ;}
.va-text-bottom-@{m} {vertical-align: text-bottom ;}
.reduce-1-@{m} {font-size: .9em ;}
.reduce-2-@{m} {font-size: .8em ;}
.reduce-3-@{m} {font-size: .7em ;}
.reduce-4-@{m} {font-size: .6em ;}
.reduce-5-@{m} {font-size: .5em ;}
.reduce-6-@{m} {font-size: .4em ;}
.reduce-7-@{m} {font-size: .3em ;}
.reduce-8-@{m} {font-size: .2em ;}
.reduce-9-@{m} {font-size: .1em ;}
.enlarge-@{m} {font-size: 1em ;}
.enlarge-1-@{m} {font-size: 1.1em ;}
.enlarge-2-@{m} {font-size: 1.2em ;}
.enlarge-3-@{m} {font-size: 1.3em ;}
.enlarge-4-@{m} {font-size: 1.4em ;}
.enlarge-5-@{m} {font-size: 1.5em ;}
.enlarge-6-@{m} {font-size: 1.6em ;}
.enlarge-7-@{m} {font-size: 1.7em ;}
.enlarge-8-@{m} {font-size: 1.8em ;}
.enlarge-9-@{m} {font-size: 1.9em ;}
.enlarge-2x-@{m} {font-size: 2em ;}
.enlarge-3x-@{m} {font-size: 3em ;}
.enlarge-4x-@{m} {font-size: 4em ;}
}
})