File: D:/HostingSpaces/SBogers10/structura.komma.pro/resources/assets/sass/site/_base.sass
/* ==========================================================================
Expend Basic style settings
========================================================================== */
/*
* Set up the html
*
* 1. Makes sue that some fonts are better rendered
*/
html
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
text-rendering: optimizeLegibility
/*
* Set up the body
*
* 1. Set font to lining figures
*/
body
margin: 0
font-family: $fontFamily
line-height: 1.6
font-feature-settings: 'lnum'
color: $color-secondary-600
/*
* Set default settings for all elements
*
* 1. Default selection styling
*
*/
*
::selection /* 2 */
background: $blue
color: white
/**
* 1.Default display for images is block to lose the extra margin below the image
*/
img
opacity: 1
transition: opacity 0.3s
&.preload
opacity: 0
/*
* Set default styling for input and textarea
*
* 1. Set font because else the agent will overrule them with an ugly font
*/
input, textarea
font-family: $fontFamily
/*
* Set default styling for a button
*
*/
.button
position: relative
z-index: 0
overflow: hidden
display: inline-block
padding: 15px 25px
text-decoration: none
cursor: pointer
font-size: 0.7rem
line-height: 1.2
text-transform: uppercase
color: $color-primary-500
background-color: transparent
border: 2px solid $color-secondary-300
border-radius: 5px
transition-property: background-color, border, color
transition-duration: 0.3s
&::before
position: absolute
z-index: -1
top: 0
left: -25%
content: ''
width: 150%
height: 100%
background-color: $color-secondary-300
transform: translateX(-125%) skew(-45deg)
transition: transform 0.3s ease-out
.arrow
position: relative
display: inline-block
width: 10px
transform: none
transition: transform 0.3s
svg
width: 100%
max-height: 16px
path
fill: currentColor
&:hover
color: $color-secondary-700
&::before
transform: skew(-45deg)
.arrow
transform: translateX(5px)
&.right
.arrow
top: 1px
transform: rotate(-90deg)
margin-left: 15px
&:hover
.arrow
transform: rotate(-90deg) translate3d(0, 5px, 0)
.button--on-dark
color: white
border-color: white
&:hover
border-color: $color-secondary-300