spaCy/website/assets/css/_base/_objects.sass

90 lines
1.4 KiB
Sass
Raw Normal View History

2016-10-31 18:04:15 +00:00
//- 💫 CSS > BASE > OBJECTS
2016-10-03 18:19:13 +00:00
2016-10-31 18:04:15 +00:00
//- Main container
2016-10-03 18:19:13 +00:00
2016-10-31 18:04:15 +00:00
.o-main
padding: $nav-height 0 0 0
2016-10-03 18:19:13 +00:00
max-width: 100%
2016-10-31 18:04:15 +00:00
min-height: 100vh
2016-10-03 18:19:13 +00:00
@include breakpoint(min, md)
2016-10-31 18:04:15 +00:00
&.o-main--sidebar
margin-left: $sidebar-width
&.o-main--aside
margin-right: $aside-width
position: relative
&:after
@include position(absolute, top, left, 0, 100%)
@include size($aside-width, 100%)
content: ""
display: block
background: $pattern
z-index: -1
min-height: 100vh
2016-10-03 18:19:13 +00:00
2016-10-31 18:04:15 +00:00
//- Content container
2016-10-03 18:19:13 +00:00
2016-10-31 18:04:15 +00:00
.o-content
padding: 3rem 7.5rem
margin: 0 auto
width: $content-width
max-width: 100%
@include breakpoint(max, sm)
padding: 3rem
2016-10-03 18:19:13 +00:00
//- Footer
.o-footer
position: relative
2016-10-31 18:04:15 +00:00
padding: 2.5rem 0
2016-10-03 18:19:13 +00:00
overflow: auto
//- Blocks
.o-block
2016-10-31 18:04:15 +00:00
margin-bottom: 3rem
2016-10-03 18:19:13 +00:00
.o-block-small
margin-bottom: 2rem
2016-10-31 18:04:15 +00:00
.o-no-block
margin-bottom: 0
2016-10-20 22:59:27 +00:00
2016-10-31 18:04:15 +00:00
.o-card
background: $color-back
border-radius: 2px
//- Icons
2016-10-03 18:19:13 +00:00
.o-icon
vertical-align: middle
2016-10-31 18:04:15 +00:00
.o-help-icon
cursor: help
margin: 0 0.5rem 0 0.25rem
2016-10-03 18:19:13 +00:00
//- Inline List
.o-inline-list > *
display: inline
&:not(:last-child)
margin-right: 3rem
//- Logo
.o-logo
2016-10-31 18:04:15 +00:00
@include size($logo-width, auto)
2016-10-03 18:19:13 +00:00
fill: currentColor
2016-10-31 18:04:15 +00:00
vertical-align: middle
margin: 0 0.5rem