2018-07-10 07:23:19 +00:00
|
|
|
@import "initial-variables"
|
|
|
|
|
|
|
|
=clearfix
|
|
|
|
&::after
|
|
|
|
clear: both
|
|
|
|
content: " "
|
|
|
|
display: table
|
|
|
|
|
|
|
|
=center($width, $height: 0)
|
|
|
|
position: absolute
|
|
|
|
@if $height != 0
|
|
|
|
left: calc(50% - (#{$width} / 2))
|
|
|
|
top: calc(50% - (#{$height} / 2))
|
|
|
|
@else
|
|
|
|
left: calc(50% - (#{$width} / 2))
|
|
|
|
top: calc(50% - (#{$width} / 2))
|
|
|
|
|
|
|
|
=fa($size, $dimensions)
|
|
|
|
display: inline-block
|
|
|
|
font-size: $size
|
|
|
|
height: $dimensions
|
|
|
|
line-height: $dimensions
|
|
|
|
text-align: center
|
|
|
|
vertical-align: top
|
|
|
|
width: $dimensions
|
|
|
|
|
|
|
|
=hamburger($dimensions)
|
|
|
|
cursor: pointer
|
|
|
|
display: block
|
|
|
|
height: $dimensions
|
|
|
|
position: relative
|
|
|
|
width: $dimensions
|
|
|
|
span
|
|
|
|
background-color: currentColor
|
|
|
|
display: block
|
|
|
|
height: 1px
|
|
|
|
left: calc(50% - 8px)
|
|
|
|
position: absolute
|
|
|
|
transform-origin: center
|
|
|
|
transition-duration: $speed
|
|
|
|
transition-property: background-color, opacity, transform
|
|
|
|
transition-timing-function: $easing
|
|
|
|
width: 16px
|
|
|
|
&:nth-child(1)
|
|
|
|
top: calc(50% - 6px)
|
|
|
|
&:nth-child(2)
|
|
|
|
top: calc(50% - 1px)
|
|
|
|
&:nth-child(3)
|
|
|
|
top: calc(50% + 4px)
|
|
|
|
&:hover
|
2020-08-06 01:34:59 +00:00
|
|
|
background-color: bulmaRgba(black, 0.05)
|
2018-07-10 07:23:19 +00:00
|
|
|
// Modifers
|
|
|
|
&.is-active
|
|
|
|
span
|
|
|
|
&:nth-child(1)
|
|
|
|
transform: translateY(5px) rotate(45deg)
|
|
|
|
&:nth-child(2)
|
|
|
|
opacity: 0
|
|
|
|
&:nth-child(3)
|
|
|
|
transform: translateY(-5px) rotate(-45deg)
|
|
|
|
|
|
|
|
=overflow-touch
|
|
|
|
-webkit-overflow-scrolling: touch
|
|
|
|
|
|
|
|
=placeholder
|
|
|
|
$placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input'
|
|
|
|
@each $placeholder in $placeholders
|
|
|
|
&:#{$placeholder}-placeholder
|
|
|
|
@content
|
|
|
|
|
|
|
|
// Responsiveness
|
|
|
|
|
|
|
|
=from($device)
|
|
|
|
@media screen and (min-width: $device)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=until($device)
|
|
|
|
@media screen and (max-width: $device - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=mobile
|
|
|
|
@media screen and (max-width: $tablet - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=tablet
|
|
|
|
@media screen and (min-width: $tablet), print
|
|
|
|
@content
|
|
|
|
|
|
|
|
=tablet-only
|
|
|
|
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=touch
|
|
|
|
@media screen and (max-width: $desktop - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=desktop
|
|
|
|
@media screen and (min-width: $desktop)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=desktop-only
|
|
|
|
@if $widescreen-enabled
|
|
|
|
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=until-widescreen
|
|
|
|
@if $widescreen-enabled
|
|
|
|
@media screen and (max-width: $widescreen - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=widescreen
|
|
|
|
@if $widescreen-enabled
|
|
|
|
@media screen and (min-width: $widescreen)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=widescreen-only
|
|
|
|
@if $widescreen-enabled and $fullhd-enabled
|
|
|
|
@media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=until-fullhd
|
|
|
|
@if $fullhd-enabled
|
|
|
|
@media screen and (max-width: $fullhd - 1px)
|
|
|
|
@content
|
|
|
|
|
|
|
|
=fullhd
|
|
|
|
@if $fullhd-enabled
|
|
|
|
@media screen and (min-width: $fullhd)
|
|
|
|
@content
|
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=ltr
|
|
|
|
@if not $rtl
|
|
|
|
@content
|
|
|
|
|
|
|
|
=rtl
|
|
|
|
@if $rtl
|
|
|
|
@content
|
|
|
|
|
|
|
|
=ltr-property($property, $spacing, $right: true)
|
|
|
|
$normal: if($right, "right", "left")
|
|
|
|
$opposite: if($right, "left", "right")
|
|
|
|
@if $rtl
|
|
|
|
#{$property}-#{$opposite}: $spacing
|
|
|
|
@else
|
|
|
|
#{$property}-#{$normal}: $spacing
|
|
|
|
|
|
|
|
=ltr-position($spacing, $right: true)
|
|
|
|
$normal: if($right, "right", "left")
|
|
|
|
$opposite: if($right, "left", "right")
|
|
|
|
@if $rtl
|
|
|
|
#{$opposite}: $spacing
|
|
|
|
@else
|
|
|
|
#{$normal}: $spacing
|
|
|
|
|
2018-07-10 07:23:19 +00:00
|
|
|
// Placeholders
|
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=unselectable
|
2018-07-10 07:23:19 +00:00
|
|
|
-webkit-touch-callout: none
|
|
|
|
-webkit-user-select: none
|
|
|
|
-moz-user-select: none
|
|
|
|
-ms-user-select: none
|
|
|
|
user-select: none
|
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
%unselectable
|
|
|
|
+unselectable
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=arrow($color: transparent)
|
|
|
|
border: 3px solid $color
|
2018-07-10 07:23:19 +00:00
|
|
|
border-radius: 2px
|
|
|
|
border-right: 0
|
|
|
|
border-top: 0
|
|
|
|
content: " "
|
|
|
|
display: block
|
|
|
|
height: 0.625em
|
|
|
|
margin-top: -0.4375em
|
|
|
|
pointer-events: none
|
|
|
|
position: absolute
|
|
|
|
top: 50%
|
|
|
|
transform: rotate(-45deg)
|
|
|
|
transform-origin: center
|
|
|
|
width: 0.625em
|
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
%arrow
|
|
|
|
+arrow
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=block($spacing: $block-spacing)
|
2018-07-10 07:23:19 +00:00
|
|
|
&:not(:last-child)
|
2020-08-06 01:34:59 +00:00
|
|
|
margin-bottom: $spacing
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
%block
|
|
|
|
+block
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=delete
|
2021-01-02 11:37:57 +00:00
|
|
|
// Fix begins. Added to patch this error:
|
|
|
|
// "You may not @extend an outer selector from within @media.
|
|
|
|
// You may only @extend selectors within the same directive.
|
|
|
|
// From "@extend %unselectable" on line 194..."
|
|
|
|
//@extend %unselectable
|
|
|
|
-webkit-touch-callout: none
|
|
|
|
-webkit-user-select: none
|
|
|
|
-moz-user-select: none
|
|
|
|
-ms-user-select: none
|
|
|
|
user-select: none
|
|
|
|
// Fix ends
|
2018-07-10 07:23:19 +00:00
|
|
|
-moz-appearance: none
|
|
|
|
-webkit-appearance: none
|
2020-08-06 01:34:59 +00:00
|
|
|
background-color: bulmaRgba($scheme-invert, 0.2)
|
2018-07-10 07:23:19 +00:00
|
|
|
border: none
|
|
|
|
border-radius: $radius-rounded
|
|
|
|
cursor: pointer
|
2020-08-06 01:34:59 +00:00
|
|
|
pointer-events: auto
|
2018-07-10 07:23:19 +00:00
|
|
|
display: inline-block
|
|
|
|
flex-grow: 0
|
|
|
|
flex-shrink: 0
|
|
|
|
font-size: 0
|
|
|
|
height: 20px
|
|
|
|
max-height: 20px
|
|
|
|
max-width: 20px
|
|
|
|
min-height: 20px
|
|
|
|
min-width: 20px
|
|
|
|
outline: none
|
|
|
|
position: relative
|
|
|
|
vertical-align: top
|
|
|
|
width: 20px
|
|
|
|
&::before,
|
|
|
|
&::after
|
2020-08-06 01:34:59 +00:00
|
|
|
background-color: $scheme-main
|
2018-07-10 07:23:19 +00:00
|
|
|
content: ""
|
|
|
|
display: block
|
|
|
|
left: 50%
|
|
|
|
position: absolute
|
|
|
|
top: 50%
|
|
|
|
transform: translateX(-50%) translateY(-50%) rotate(45deg)
|
|
|
|
transform-origin: center center
|
|
|
|
&::before
|
|
|
|
height: 2px
|
|
|
|
width: 50%
|
|
|
|
&::after
|
|
|
|
height: 50%
|
|
|
|
width: 2px
|
|
|
|
&:hover,
|
|
|
|
&:focus
|
2020-08-06 01:34:59 +00:00
|
|
|
background-color: bulmaRgba($scheme-invert, 0.3)
|
2018-07-10 07:23:19 +00:00
|
|
|
&:active
|
2020-08-06 01:34:59 +00:00
|
|
|
background-color: bulmaRgba($scheme-invert, 0.4)
|
2018-07-10 07:23:19 +00:00
|
|
|
// Sizes
|
|
|
|
&.is-small
|
|
|
|
height: 16px
|
|
|
|
max-height: 16px
|
|
|
|
max-width: 16px
|
|
|
|
min-height: 16px
|
|
|
|
min-width: 16px
|
|
|
|
width: 16px
|
|
|
|
&.is-medium
|
|
|
|
height: 24px
|
|
|
|
max-height: 24px
|
|
|
|
max-width: 24px
|
|
|
|
min-height: 24px
|
|
|
|
min-width: 24px
|
|
|
|
width: 24px
|
|
|
|
&.is-large
|
|
|
|
height: 32px
|
|
|
|
max-height: 32px
|
|
|
|
max-width: 32px
|
|
|
|
min-height: 32px
|
|
|
|
min-width: 32px
|
|
|
|
width: 32px
|
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
%delete
|
|
|
|
+delete
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=loader
|
2018-07-10 07:23:19 +00:00
|
|
|
animation: spinAround 500ms infinite linear
|
2020-08-06 01:34:59 +00:00
|
|
|
border: 2px solid $grey-lighter
|
2018-07-10 07:23:19 +00:00
|
|
|
border-radius: $radius-rounded
|
|
|
|
border-right-color: transparent
|
|
|
|
border-top-color: transparent
|
|
|
|
content: ""
|
|
|
|
display: block
|
|
|
|
height: 1em
|
|
|
|
position: relative
|
|
|
|
width: 1em
|
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
%loader
|
|
|
|
+loader
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
=overlay($offset: 0)
|
|
|
|
bottom: $offset
|
|
|
|
left: $offset
|
2018-07-10 07:23:19 +00:00
|
|
|
position: absolute
|
2020-08-06 01:34:59 +00:00
|
|
|
right: $offset
|
|
|
|
top: $offset
|
2018-07-10 07:23:19 +00:00
|
|
|
|
2020-08-06 01:34:59 +00:00
|
|
|
%overlay
|
|
|
|
+overlay
|