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
|
2017-10-03 12:14:52 +00:00
|
|
|
background: $color-subtle-light
|
|
|
|
|
|
|
|
.o-main &
|
|
|
|
border-top-left-radius: $border-radius
|
2016-10-03 18:19:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
//- Blocks
|
|
|
|
|
2017-10-03 12:14:52 +00:00
|
|
|
.o-section
|
|
|
|
width: 100%
|
|
|
|
max-width: 100%
|
|
|
|
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-bottom: 7rem
|
|
|
|
padding-bottom: 4rem
|
|
|
|
border-bottom: 1px dotted $color-subtle
|
|
|
|
|
2018-04-29 00:06:46 +00:00
|
|
|
&.o-section--small
|
|
|
|
overflow: auto
|
|
|
|
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-bottom: 3.5rem
|
|
|
|
padding-bottom: 2rem
|
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
.o-block
|
2017-10-03 12:14:52 +00:00
|
|
|
margin-bottom: 4rem
|
2016-10-03 18:19:13 +00:00
|
|
|
|
|
|
|
.o-block-small
|
|
|
|
margin-bottom: 2rem
|
|
|
|
|
2017-10-29 02:56:09 +00:00
|
|
|
.o-no-block.o-no-block
|
2016-10-31 18:04:15 +00:00
|
|
|
margin-bottom: 0
|
2016-10-20 22:59:27 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
.o-card
|
|
|
|
background: $color-back
|
2017-10-03 12:14:52 +00:00
|
|
|
border-radius: $border-radius
|
|
|
|
box-shadow: $box-shadow
|
2017-03-16 20:52:52 +00:00
|
|
|
|
2017-11-05 15:08:13 +00:00
|
|
|
|
|
|
|
//- Accordion
|
|
|
|
|
|
|
|
.o-accordion
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-bottom: 2rem
|
|
|
|
|
|
|
|
.o-accordion__content
|
|
|
|
margin-top: 3rem
|
|
|
|
|
|
|
|
.o-accordion__button
|
|
|
|
font: inherit
|
|
|
|
border-radius: $border-radius
|
|
|
|
width: 100%
|
|
|
|
padding: 1.5rem 2rem
|
|
|
|
background: $color-subtle-light
|
|
|
|
|
|
|
|
&[aria-expanded="true"]
|
|
|
|
border-bottom: 3px solid $color-subtle
|
|
|
|
border-bottom-left-radius: 0
|
|
|
|
border-bottom-right-radius: 0
|
|
|
|
|
|
|
|
.o-accordion__hide
|
|
|
|
display: none
|
|
|
|
|
|
|
|
&:focus:not([aria-expanded="true"])
|
|
|
|
background: $color-subtle
|
|
|
|
|
|
|
|
.o-accordion__icon
|
|
|
|
@include size(2.5rem)
|
|
|
|
background: $color-theme
|
|
|
|
color: $color-back
|
|
|
|
border-radius: 50%
|
|
|
|
padding: 0.35rem
|
|
|
|
pointer-events: none
|
|
|
|
|
2017-03-16 20:52:52 +00:00
|
|
|
//- Box
|
|
|
|
|
|
|
|
.o-box
|
2017-10-03 12:14:52 +00:00
|
|
|
background: $color-subtle-light
|
2017-03-16 20:52:52 +00:00
|
|
|
padding: 2rem
|
2017-10-03 12:14:52 +00:00
|
|
|
border-radius: $border-radius
|
|
|
|
|
|
|
|
.o-box__logos
|
|
|
|
padding-bottom: 1rem
|
2017-03-16 20:52:52 +00:00
|
|
|
|
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
//- Icons
|
2016-10-03 18:19:13 +00:00
|
|
|
|
|
|
|
.o-icon
|
|
|
|
vertical-align: middle
|
|
|
|
|
2016-12-23 13:31:43 +00:00
|
|
|
&.o-icon--inline
|
2017-10-03 12:14:52 +00:00
|
|
|
margin: 0 0.5rem 0 0.1rem
|
|
|
|
|
2017-10-28 23:17:49 +00:00
|
|
|
&.o-icon--tag
|
|
|
|
vertical-align: bottom
|
|
|
|
height: 100%
|
2017-10-29 02:56:09 +00:00
|
|
|
position: relative
|
|
|
|
top: 1px
|
2017-10-28 23:17:49 +00:00
|
|
|
|
2017-10-03 12:14:52 +00:00
|
|
|
.o-emoji
|
|
|
|
margin-right: 0.75rem
|
|
|
|
vertical-align: text-bottom
|
|
|
|
|
|
|
|
.o-badge
|
|
|
|
border-radius: 1em
|
2016-10-31 18:04:15 +00:00
|
|
|
|
2018-04-29 00:06:46 +00:00
|
|
|
.o-thumb
|
|
|
|
@include size(100px)
|
|
|
|
overflow: hidden
|
|
|
|
border-radius: 50%
|
|
|
|
|
|
|
|
&.o-thumb--small
|
|
|
|
@include size(35px)
|
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
|
2017-05-13 01:10:41 +00:00
|
|
|
//- SVG
|
|
|
|
|
|
|
|
.o-svg
|
|
|
|
height: auto
|
|
|
|
|
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
//- Inline List
|
|
|
|
|
|
|
|
.o-inline-list > *
|
|
|
|
display: inline
|
|
|
|
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-right: 3rem
|
|
|
|
|
|
|
|
|
|
|
|
//- Logo
|
|
|
|
|
|
|
|
.o-logo
|
2017-01-17 16:56:34 +00:00
|
|
|
@include size($logo-width, $logo-height)
|
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
|
2017-10-03 12:14:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
//- Embeds
|
|
|
|
|
|
|
|
.o-chart
|
|
|
|
max-width: 100%
|
|
|
|
|
|
|
|
.cp_embed_iframe
|
|
|
|
border: 1px solid $color-subtle
|
|
|
|
border-radius: $border-radius
|
|
|
|
|
|
|
|
|
2017-11-13 07:29:57 +00:00
|
|
|
//- Responsive Video embeds
|
|
|
|
|
|
|
|
.o-video
|
|
|
|
position: relative
|
|
|
|
height: 0
|
|
|
|
|
|
|
|
@each $ratio1, $ratio2 in (16, 9), (4, 3)
|
|
|
|
&.o-video--#{$ratio1}x#{$ratio2}
|
|
|
|
padding-bottom: (100% * $ratio2 / $ratio1)
|
|
|
|
|
|
|
|
.o-video__iframe
|
|
|
|
@include position(absolute, top, left, 0, 0)
|
|
|
|
@include size(100%)
|
|
|
|
border-radius: var(--border-radius)
|
|
|
|
|
|
|
|
|
2017-10-03 12:14:52 +00:00
|
|
|
//- Form fields
|
|
|
|
|
|
|
|
.o-field
|
|
|
|
background: $color-back
|
|
|
|
padding: 0 0.25em
|
|
|
|
border-radius: 2em
|
|
|
|
border: 1px solid $color-subtle
|
|
|
|
margin-bottom: 0.25rem
|
|
|
|
|
|
|
|
.o-field__input,
|
|
|
|
.o-field__button
|
|
|
|
padding: 0 0.35em
|
|
|
|
|
|
|
|
.o-field__input
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
.o-field__select
|
|
|
|
background: transparent
|
|
|
|
color: $color-dark
|
|
|
|
height: 1.4em
|
|
|
|
border: none
|
|
|
|
text-align-last: center
|
2017-10-30 13:07:42 +00:00
|
|
|
width: 100%
|
2018-06-11 15:47:46 +00:00
|
|
|
|
|
|
|
//- Abbreviations
|
|
|
|
|
|
|
|
.o-abbr
|
|
|
|
+breakpoint(min, md)
|
|
|
|
cursor: help
|
|
|
|
border-bottom: 2px dotted $color-theme
|
|
|
|
padding-bottom: 3px
|
|
|
|
|
|
|
|
+breakpoint(max, sm)
|
|
|
|
&[data-tooltip]:before
|
|
|
|
content: none
|
|
|
|
|
|
|
|
&:after
|
|
|
|
content: " (" attr(aria-label) ")"
|
|
|
|
color: $color-subtle-dark
|