bulma/sass/grid/tiles.sass

33 lines
692 B
Sass
Raw Normal View History

2016-09-22 22:23:30 +00:00
.tile
align-items: stretch
2016-09-23 21:08:03 +00:00
display: block
flex-basis: 0
2016-09-22 22:23:30 +00:00
flex-grow: 1
flex-shrink: 1
min-height: min-content
// Modifiers
&.is-ancestor
2016-10-30 23:44:50 +00:00
margin-left: -0.75rem
margin-right: -0.75rem
margin-top: -0.75rem
2016-09-22 22:23:30 +00:00
&:last-child
2016-10-30 23:44:50 +00:00
margin-bottom: -0.75rem
2016-09-22 22:23:30 +00:00
&:not(:last-child)
2016-10-30 23:44:50 +00:00
margin-bottom: 0.75rem
2016-09-22 22:23:30 +00:00
&.is-child
margin: 0 !important
&.is-parent
2016-10-30 23:44:50 +00:00
padding: 0.75rem
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%