deps.rs/assets/styles/bulma/grid/tiles.sass

37 lines
815 B
Sass
Raw Normal View History

@import "../utilities/mixins"
$tile-spacing: 0.75rem !default
2018-01-29 09:42:34 +00:00
.tile
align-items: stretch
display: block
flex-basis: 0
flex-grow: 1
flex-shrink: 1
min-height: min-content
// Modifiers
&.is-ancestor
margin-left: $tile-spacing * -1
margin-right: $tile-spacing * -1
margin-top: $tile-spacing * -1
2018-01-29 09:42:34 +00:00
&:last-child
margin-bottom: $tile-spacing * -1
2018-01-29 09:42:34 +00:00
&:not(:last-child)
margin-bottom: $tile-spacing
2018-01-29 09:42:34 +00:00
&.is-child
margin: 0 !important
&.is-parent
padding: $tile-spacing
2018-01-29 09:42:34 +00:00
&.is-vertical
flex-direction: column
& > .tile.is-child:not(:last-child)
margin-bottom: 1.5rem !important
// Responsiveness
+tablet
&:not(.is-child)
display: flex
@for $i from 1 through 12
&.is-#{$i}
flex: none
2022-08-27 16:43:27 +00:00
width: (divide($i, 12)) * 100%