2019-05-17 12:50:39 +00:00
|
|
|
$tile-spacing: 0.75rem !default
|
|
|
|
|
2016-09-22 22:23:30 +00:00
|
|
|
.tile
|
|
|
|
align-items: stretch
|
2016-09-23 21:08:03 +00:00
|
|
|
display: block
|
2016-12-22 18:17:26 +00:00
|
|
|
flex-basis: 0
|
2016-09-22 22:23:30 +00:00
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
min-height: min-content
|
|
|
|
// Modifiers
|
|
|
|
&.is-ancestor
|
2019-05-17 12:50:39 +00:00
|
|
|
margin-left: $tile-spacing * -1
|
|
|
|
margin-right: $tile-spacing * -1
|
|
|
|
margin-top: $tile-spacing * -1
|
2016-09-22 22:23:30 +00:00
|
|
|
&:last-child
|
2019-05-17 12:50:39 +00:00
|
|
|
margin-bottom: $tile-spacing * -1
|
2016-09-22 22:23:30 +00:00
|
|
|
&:not(:last-child)
|
2019-05-17 12:50:39 +00:00
|
|
|
margin-bottom: $tile-spacing
|
2016-09-22 22:23:30 +00:00
|
|
|
&.is-child
|
|
|
|
margin: 0 !important
|
|
|
|
&.is-parent
|
2019-05-17 12:50:39 +00:00
|
|
|
padding: $tile-spacing
|
2016-09-22 22:23:30 +00:00
|
|
|
&.is-vertical
|
|
|
|
flex-direction: column
|
|
|
|
& > .tile.is-child:not(:last-child)
|
2016-10-30 23:44:50 +00:00
|
|
|
margin-bottom: 1.5rem !important
|
2016-09-22 22:23:30 +00:00
|
|
|
// Responsiveness
|
|
|
|
+tablet
|
|
|
|
&:not(.is-child)
|
|
|
|
display: flex
|
|
|
|
@for $i from 1 through 12
|
|
|
|
&.is-#{$i}
|
|
|
|
flex: none
|
|
|
|
width: ($i / 12) * 100%
|