2016-10-31 21:04:15 +03:00
|
|
|
//- 💫 CSS > BASE > UTILITIES
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
//- Text
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-text
|
|
|
|
font: 1.5rem/#{1.55} $font-primary
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-text-small
|
|
|
|
font: 1.4rem/#{1.375} $font-primary
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-text-tiny
|
|
|
|
font: 1.1rem/#{1.375} $font-primary
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
//- Labels & Tags
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-text-label
|
2016-10-31 21:04:15 +03:00
|
|
|
font: normal 600 1.4rem/#{1.5} $font-code
|
2016-10-03 21:19:13 +03:00
|
|
|
text-transform: uppercase
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
&.u-text-label--dark
|
|
|
|
display: inline-block
|
|
|
|
background: $color-dark
|
|
|
|
box-shadow: inset 1px 1px 1px rgba($color-front, 0.25)
|
|
|
|
color: $color-back
|
|
|
|
padding: 0 0.75rem
|
|
|
|
margin: 1.5rem 0 0 2rem
|
|
|
|
border-radius: 2px
|
|
|
|
|
|
|
|
.u-text-tag
|
|
|
|
display: inline-block
|
|
|
|
font: 600 1.1rem/#{1} $font-code
|
|
|
|
background: $color-theme
|
|
|
|
color: $color-back
|
|
|
|
padding: 0.15em 0.25em
|
|
|
|
border-radius: 2px
|
|
|
|
text-transform: uppercase
|
|
|
|
vertical-align: middle
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
&.u-text-tag--spaced
|
|
|
|
margin-left: 0.75em
|
2016-11-07 04:14:26 +03:00
|
|
|
margin-right: 0.5em
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
//- Headings
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-heading
|
|
|
|
margin-bottom: 2rem
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
@include breakpoint(max, md)
|
|
|
|
word-wrap: break-word
|
|
|
|
|
|
|
|
&:not(:first-child)
|
|
|
|
padding-top: 3.5rem
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-heading-0
|
|
|
|
font: normal bold 7rem/#{1} $font-primary
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
@each $level, $size in $headings
|
2016-10-03 21:19:13 +03:00
|
|
|
.u-heading-#{$level}
|
|
|
|
font: normal bold #{$size}rem/#{1.25} $font-primary
|
|
|
|
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
//- Links
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-link
|
|
|
|
color: $color-theme
|
|
|
|
border-bottom: 1px solid
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-permalink
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
&:target
|
|
|
|
display: inline-block
|
2016-10-31 21:04:15 +03:00
|
|
|
padding-top: $nav-height * 1.25
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
& + *
|
2016-10-31 21:04:15 +03:00
|
|
|
margin-top: $nav-height * 1.25
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-permalink__icon
|
2016-10-31 21:04:15 +03:00
|
|
|
@include position(absolute, bottom, left, 0.35em, -2.75rem)
|
|
|
|
@include size(1.5rem)
|
2016-10-03 21:19:13 +03:00
|
|
|
color: $color-subtle
|
|
|
|
|
|
|
|
.u-permalink:hover &
|
|
|
|
color: $color-subtle-dark
|
|
|
|
|
|
|
|
.u-permalink:active &
|
|
|
|
color: $color-theme
|
|
|
|
|
|
|
|
|
|
|
|
//- Layout
|
|
|
|
|
|
|
|
.u-text-center
|
|
|
|
text-align: center
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-text-right
|
|
|
|
text-align: right
|
|
|
|
|
|
|
|
.u-padding
|
|
|
|
padding: 5rem
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-padding-small
|
|
|
|
padding: 0.5em 0.75em
|
|
|
|
|
|
|
|
.u-padding-medium
|
2016-10-31 21:04:15 +03:00
|
|
|
padding: 2.5rem
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-inline-block
|
|
|
|
display: inline-block
|
|
|
|
|
2016-12-18 19:40:30 +03:00
|
|
|
.u-nowrap
|
|
|
|
white-space: nowrap
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-no-border
|
|
|
|
border: none
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-border
|
|
|
|
border: 1px solid $color-subtle
|
2016-10-31 21:04:15 +03:00
|
|
|
border-radius: 2px
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-border-bottom
|
2016-10-31 21:04:15 +03:00
|
|
|
border: 1px solid $color-subtle
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-border-dotted
|
|
|
|
border-top: 1px dotted $color-subtle
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2017-10-24 17:13:52 +03:00
|
|
|
@each $name, $color in (theme: $color-theme, subtle: $color-subtle-dark, light: $color-back, 'red': $color-red, 'green': $color-green, 'yellow': $color-yellow)
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-color-#{$name}
|
|
|
|
color: $color
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
.u-grayscale
|
|
|
|
filter: grayscale(100%)
|
|
|
|
transition: filter 0.15s ease
|
|
|
|
user-select: none
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
filter: none
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-pattern
|
2016-10-31 21:04:15 +03:00
|
|
|
background: $pattern
|
|
|
|
|
2016-10-03 21:19:13 +03:00
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
//- Hidden elements
|
2016-10-03 21:19:13 +03:00
|
|
|
|
|
|
|
.u-hidden
|
|
|
|
display: none
|
|
|
|
|
2016-10-31 21:04:15 +03:00
|
|
|
@each $breakpoint in (xs, sm, md)
|
|
|
|
.u-hidden-#{$breakpoint}.u-hidden-#{$breakpoint}
|
2016-10-03 21:19:13 +03:00
|
|
|
@include breakpoint(max, $breakpoint)
|
|
|
|
display: none
|