2019-05-17 12:50:39 +00:00
|
|
|
$level-item-spacing: ($block-spacing / 2) !default
|
|
|
|
|
2017-07-28 20:05:15 +00:00
|
|
|
.level
|
2018-09-04 13:24:50 +00:00
|
|
|
@extend %block
|
2017-07-28 20:05:15 +00:00
|
|
|
align-items: center
|
|
|
|
justify-content: space-between
|
|
|
|
code
|
|
|
|
border-radius: $radius
|
|
|
|
img
|
|
|
|
display: inline-block
|
|
|
|
vertical-align: top
|
|
|
|
// Modifiers
|
|
|
|
&.is-mobile
|
|
|
|
display: flex
|
|
|
|
.level-left,
|
|
|
|
.level-right
|
|
|
|
display: flex
|
|
|
|
.level-left + .level-right
|
|
|
|
margin-top: 0
|
|
|
|
.level-item
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-bottom: 0
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("margin", $level-item-spacing)
|
2017-07-28 20:05:15 +00:00
|
|
|
&:not(.is-narrow)
|
|
|
|
flex-grow: 1
|
|
|
|
// Responsiveness
|
|
|
|
+tablet
|
|
|
|
display: flex
|
|
|
|
& > .level-item
|
|
|
|
&:not(.is-narrow)
|
|
|
|
flex-grow: 1
|
|
|
|
|
2016-05-08 00:35:43 +00:00
|
|
|
.level-item
|
2016-10-30 17:35:39 +00:00
|
|
|
align-items: center
|
|
|
|
display: flex
|
2016-12-22 19:37:38 +00:00
|
|
|
flex-basis: auto
|
|
|
|
flex-grow: 0
|
|
|
|
flex-shrink: 0
|
2016-10-30 17:35:39 +00:00
|
|
|
justify-content: center
|
2016-05-08 00:35:43 +00:00
|
|
|
.title,
|
|
|
|
.subtitle
|
|
|
|
margin-bottom: 0
|
|
|
|
// Responsiveness
|
|
|
|
+mobile
|
|
|
|
&:not(:last-child)
|
2019-05-17 12:50:39 +00:00
|
|
|
margin-bottom: $level-item-spacing
|
2017-12-06 23:48:35 +00:00
|
|
|
|
2016-05-08 00:35:43 +00:00
|
|
|
.level-left,
|
|
|
|
.level-right
|
2016-12-22 19:37:38 +00:00
|
|
|
flex-basis: auto
|
|
|
|
flex-grow: 0
|
|
|
|
flex-shrink: 0
|
2016-05-08 00:35:43 +00:00
|
|
|
.level-item
|
|
|
|
// Modifiers
|
|
|
|
&.is-flexible
|
2016-07-31 10:45:56 +00:00
|
|
|
flex-grow: 1
|
2017-09-04 10:55:20 +00:00
|
|
|
// Responsiveness
|
|
|
|
+tablet
|
|
|
|
&:not(:last-child)
|
2020-01-22 09:14:04 +00:00
|
|
|
+ltr-property("margin", $level-item-spacing)
|
2016-05-08 00:35:43 +00:00
|
|
|
|
|
|
|
.level-left
|
2016-10-30 17:35:39 +00:00
|
|
|
align-items: center
|
|
|
|
justify-content: flex-start
|
2016-05-08 00:35:43 +00:00
|
|
|
// Responsiveness
|
|
|
|
+mobile
|
|
|
|
& + .level-right
|
2016-10-30 17:35:39 +00:00
|
|
|
margin-top: 1.5rem
|
2016-05-08 00:35:43 +00:00
|
|
|
+tablet
|
|
|
|
display: flex
|
|
|
|
|
|
|
|
.level-right
|
2016-10-30 17:35:39 +00:00
|
|
|
align-items: center
|
|
|
|
justify-content: flex-end
|
2016-05-08 00:35:43 +00:00
|
|
|
// Responsiveness
|
|
|
|
+tablet
|
|
|
|
display: flex
|