spaCy/website/assets/css/_components/_asides.sass

42 lines
883 B
Sass
Raw Normal View History

2016-10-31 21:04:15 +03:00
//- 💫 CSS > COMPONENTS > ASIDES
2016-10-03 21:19:13 +03:00
2016-10-31 21:04:15 +03:00
//- Aside container
2016-10-03 21:19:13 +03:00
.c-aside
2016-10-31 21:04:15 +03:00
position: relative
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
//- Aside content
.c-aside__content
background: $color-front
z-index: 10
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
@include breakpoint(min, md)
@include position(absolute, top, left, -3rem, calc(100% + 5.5rem))
width: calc(#{$aside-width} + 2rem)
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
// Banner effect
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
&:after
$triangle-size: 2rem
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
@include position(absolute, bottom, left, -$triangle-size / 2, 0)
@include size(0)
border-color: transparent
border-style: solid
border-top-color: $color-dark
border-width: $triangle-size / 2 0 0 $triangle-size
content: ""
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
@include breakpoint(max, sm)
display: block
margin: 2rem 0
2016-03-31 17:24:48 +03:00
2016-10-31 21:04:15 +03:00
//- Aside text
.c-aside__text
color: $color-back
padding: 1.5rem 2.5rem 3rem 2rem