mirror of
https://github.com/jgthms/bulma
synced 2026-03-22 13:04:29 -07:00
Fix grid style, Fix gapless columns
This commit is contained in:
@@ -10,10 +10,16 @@
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
* **small tag**: `.tag.is-small`
|
* **small tag**: `.tag.is-small`
|
||||||
|
* 12th column classes
|
||||||
|
* `*-full` column classes
|
||||||
|
* `$family-code`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* disabled input with element
|
* disabled input with element
|
||||||
|
* `.table` last row with `th`
|
||||||
|
* `.card` color in `.hero`
|
||||||
|
* `.columns.is-gapless`
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
.column
|
.column
|
||||||
flex: 1
|
flex: 1
|
||||||
padding: 10px
|
padding: 10px
|
||||||
|
.columns.is-mobile > &.is-full
|
||||||
|
flex: none
|
||||||
|
width: 100%
|
||||||
.columns.is-mobile > &.is-half
|
.columns.is-mobile > &.is-half
|
||||||
flex: none
|
flex: none
|
||||||
width: 50%
|
width: 50%
|
||||||
@@ -16,13 +19,16 @@
|
|||||||
margin-left: 33.3333%
|
margin-left: 33.3333%
|
||||||
.columns.is-mobile > &.is-offset-quarter
|
.columns.is-mobile > &.is-offset-quarter
|
||||||
margin-left: 25%
|
margin-left: 25%
|
||||||
@for $i from 1 through 11
|
@for $i from 1 through 12
|
||||||
.columns.is-mobile > &.is-#{$i}
|
.columns.is-mobile > &.is-#{$i}
|
||||||
flex: none
|
flex: none
|
||||||
width: ($i / 12) * 100%
|
width: ($i / 12) * 100%
|
||||||
.columns.is-mobile > &.is-offset-#{$i}
|
.columns.is-mobile > &.is-offset-#{$i}
|
||||||
margin-left: ($i / 12) * 100%
|
margin-left: ($i / 12) * 100%
|
||||||
+mobile
|
+mobile
|
||||||
|
&.is-full-mobile
|
||||||
|
flex: none
|
||||||
|
width: 100%
|
||||||
&.is-half-mobile
|
&.is-half-mobile
|
||||||
flex: none
|
flex: none
|
||||||
width: 50%
|
width: 50%
|
||||||
@@ -38,13 +44,17 @@
|
|||||||
margin-left: 33.3333%
|
margin-left: 33.3333%
|
||||||
&.is-offset-quarter-mobile
|
&.is-offset-quarter-mobile
|
||||||
margin-left: 25%
|
margin-left: 25%
|
||||||
@for $i from 1 through 11
|
@for $i from 1 through 12
|
||||||
&.is-#{$i}-mobile
|
&.is-#{$i}-mobile
|
||||||
flex: none
|
flex: none
|
||||||
width: ($i / 12) * 100%
|
width: ($i / 12) * 100%
|
||||||
&.is-offset-#{$i}-mobile
|
&.is-offset-#{$i}-mobile
|
||||||
margin-left: ($i / 12) * 100%
|
margin-left: ($i / 12) * 100%
|
||||||
+tablet
|
+tablet
|
||||||
|
&.is-full,
|
||||||
|
&.is-full-tablet
|
||||||
|
flex: none
|
||||||
|
width: 100%
|
||||||
&.is-half,
|
&.is-half,
|
||||||
&.is-half-tablet
|
&.is-half-tablet
|
||||||
flex: none
|
flex: none
|
||||||
@@ -66,7 +76,7 @@
|
|||||||
&.is-offset-quarter,
|
&.is-offset-quarter,
|
||||||
&.is-offset-quarter-tablet
|
&.is-offset-quarter-tablet
|
||||||
margin-left: 25%
|
margin-left: 25%
|
||||||
@for $i from 1 through 11
|
@for $i from 1 through 12
|
||||||
&.is-#{$i},
|
&.is-#{$i},
|
||||||
&.is-#{$i}-tablet
|
&.is-#{$i}-tablet
|
||||||
flex: none
|
flex: none
|
||||||
@@ -75,6 +85,9 @@
|
|||||||
&.is-offset-#{$i}-tablet
|
&.is-offset-#{$i}-tablet
|
||||||
margin-left: ($i / 12) * 100%
|
margin-left: ($i / 12) * 100%
|
||||||
+desktop
|
+desktop
|
||||||
|
&.is-full-desktop
|
||||||
|
flex: none
|
||||||
|
width: 100%
|
||||||
&.is-half-desktop
|
&.is-half-desktop
|
||||||
flex: none
|
flex: none
|
||||||
width: 50%
|
width: 50%
|
||||||
@@ -90,7 +103,7 @@
|
|||||||
margin-left: 33.3333%
|
margin-left: 33.3333%
|
||||||
&.is-offset-quarter-desktop
|
&.is-offset-quarter-desktop
|
||||||
margin-left: 25%
|
margin-left: 25%
|
||||||
@for $i from 1 through 11
|
@for $i from 1 through 12
|
||||||
&.is-#{$i}-desktop
|
&.is-#{$i}-desktop
|
||||||
flex: none
|
flex: none
|
||||||
width: ($i / 12) * 100%
|
width: ($i / 12) * 100%
|
||||||
@@ -105,23 +118,22 @@
|
|||||||
margin-bottom: -10px
|
margin-bottom: -10px
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
|
// Modifiers
|
||||||
&.is-centered
|
&.is-centered
|
||||||
justify-content: center
|
justify-content: center
|
||||||
&.is-mobile
|
|
||||||
display: flex
|
|
||||||
&.is-gapless
|
&.is-gapless
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
margin-right: 0
|
margin-right: 0
|
||||||
|
margin-top: 0
|
||||||
|
&:last-child
|
||||||
|
margin-bottom: 0
|
||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 20px
|
margin-bottom: 20px
|
||||||
& > .column
|
& > .column
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
&.is-multiline
|
|
||||||
flex-wrap: wrap
|
|
||||||
&.is-vcentered
|
|
||||||
align-items: center
|
|
||||||
&.is-grid
|
&.is-grid
|
||||||
|
// Responsiveness
|
||||||
+tablet
|
+tablet
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
& > .column
|
& > .column
|
||||||
@@ -131,9 +143,17 @@
|
|||||||
width: 33.3333%
|
width: 33.3333%
|
||||||
& + .column
|
& + .column
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
&.is-mobile
|
||||||
|
display: flex
|
||||||
|
&.is-multiline
|
||||||
|
flex-wrap: wrap
|
||||||
|
&.is-vcentered
|
||||||
|
align-items: center
|
||||||
|
// Responsiveness
|
||||||
+tablet
|
+tablet
|
||||||
&:not(.is-desktop)
|
&:not(.is-desktop)
|
||||||
display: flex
|
display: flex
|
||||||
+desktop
|
+desktop
|
||||||
|
// Modifiers
|
||||||
&.is-desktop
|
&.is-desktop
|
||||||
display: flex
|
display: flex
|
||||||
|
|||||||
Reference in New Issue
Block a user