mirror of
https://github.com/jgthms/bulma.git
synced 2024-12-12 13:28:30 +00:00
Add responsive columns, Add import quotes, Update helpers
This commit is contained in:
parent
a85746c51f
commit
6aaf7fe5b4
14
bulma.sass
vendored
14
bulma.sass
vendored
@ -1,9 +1,9 @@
|
||||
@charset "utf-8"
|
||||
|
||||
@import bulma/utilities/utilities
|
||||
@import bulma/config/variables
|
||||
@import bulma/config/generated-variables
|
||||
@import bulma/base/base
|
||||
@import bulma/elements/elements
|
||||
@import bulma/components/components
|
||||
@import bulma/layout/layout
|
||||
@import "bulma/utilities/utilities"
|
||||
@import "bulma/config/variables"
|
||||
@import "bulma/config/generated-variables"
|
||||
@import "bulma/base/base"
|
||||
@import "bulma/elements/elements"
|
||||
@import "bulma/components/components"
|
||||
@import "bulma/layout/layout"
|
||||
|
@ -1,3 +1,5 @@
|
||||
// Alignment
|
||||
|
||||
.is-centered
|
||||
text-align: center
|
||||
|
||||
@ -7,17 +9,59 @@
|
||||
.is-right
|
||||
text-align: right
|
||||
|
||||
// Display
|
||||
|
||||
.is-block
|
||||
display: block
|
||||
|
||||
.is-disabled
|
||||
pointer-events: none
|
||||
|
||||
.is-inline
|
||||
display: inline
|
||||
|
||||
.is-flex
|
||||
display: flex
|
||||
|
||||
// Pull
|
||||
|
||||
.is-clearfix
|
||||
+clearfix
|
||||
|
||||
.is-pulled-left
|
||||
float: left
|
||||
|
||||
.is-pulled-right
|
||||
float: right
|
||||
|
||||
// Size
|
||||
|
||||
.is-fullwidth
|
||||
width: 100%
|
||||
|
||||
// Visibility
|
||||
|
||||
.is-hidden-mobile
|
||||
+mobile
|
||||
display: none !important
|
||||
|
||||
.is-hidden-tablet
|
||||
+tablet
|
||||
display: none !important
|
||||
|
||||
.is-hidden-touch
|
||||
+touch
|
||||
display: none !important
|
||||
|
||||
.is-hidden-desktop
|
||||
+desktop
|
||||
display: none !important
|
||||
|
||||
// Other
|
||||
|
||||
.is-disabled
|
||||
pointer-events: none
|
||||
|
||||
.is-marginless
|
||||
margin: 0 !important
|
||||
|
||||
.is-unselectable
|
||||
+unselectable
|
||||
|
||||
|
@ -1,39 +1,87 @@
|
||||
.column
|
||||
+mobile
|
||||
& + .column
|
||||
margin-top: $column-gap
|
||||
+tablet
|
||||
flex: 1
|
||||
& + .column
|
||||
margin-left: $column-gap
|
||||
&.is-double
|
||||
flex: 2
|
||||
&.is-triple
|
||||
flex: 3
|
||||
&.is-quadruple
|
||||
flex: 4
|
||||
&.is-half
|
||||
padding: 10px
|
||||
.columns.is-mobile > &.is-half
|
||||
flex: none
|
||||
width: 50%
|
||||
&.is-third
|
||||
.columns.is-mobile > &.is-third
|
||||
flex: none
|
||||
width: 33.3333%
|
||||
&.is-quarter
|
||||
.columns.is-mobile > &.is-quarter
|
||||
flex: none
|
||||
width: 25%
|
||||
@for $i from 1 through 11
|
||||
&.is-#{$i}
|
||||
.columns.is-mobile > &.is-#{$i}-mobile
|
||||
flex: none
|
||||
width: ($i / 12) * 100%
|
||||
+mobile
|
||||
&.is-half-mobile
|
||||
flex: none
|
||||
width: 50%
|
||||
&.is-third-mobile
|
||||
flex: none
|
||||
width: 33.3333%
|
||||
&.is-quarter-mobile
|
||||
flex: none
|
||||
width: 25%
|
||||
@for $i from 1 through 11
|
||||
&.is-#{$i}-mobile
|
||||
flex: none
|
||||
width: ($i / 12) * 100%
|
||||
+tablet
|
||||
&.is-half,
|
||||
&.is-half-tablet
|
||||
flex: none
|
||||
width: 50%
|
||||
&.is-third,
|
||||
&.is-third-tablet
|
||||
flex: none
|
||||
width: 33.3333%
|
||||
&.is-quarter,
|
||||
&.is-quarter-tablet
|
||||
flex: none
|
||||
width: 25%
|
||||
@for $i from 1 through 11
|
||||
&.is-#{$i},
|
||||
&.is-#{$i}-tablet
|
||||
flex: none
|
||||
width: ($i / 12) * 100%
|
||||
+desktop
|
||||
&.is-half-desktop
|
||||
flex: none
|
||||
width: 50%
|
||||
&.is-third-desktop
|
||||
flex: none
|
||||
width: 33.3333%
|
||||
&.is-quarter-desktop
|
||||
flex: none
|
||||
width: 25%
|
||||
@for $i from 1 through 11
|
||||
&.is-#{$i}-desktop
|
||||
flex: none
|
||||
width: ($i / 12) * 100%
|
||||
|
||||
.columns
|
||||
&:not(:last-child)
|
||||
margin-bottom: $column-gap
|
||||
margin-bottom: 10px
|
||||
margin-left: -10px
|
||||
margin-right: -10px
|
||||
margin-top: -10px
|
||||
&.is-mobile
|
||||
display: flex
|
||||
+tablet
|
||||
&:not(.is-desktop)
|
||||
display: flex
|
||||
+desktop
|
||||
&.is-desktop
|
||||
display: flex
|
||||
&.is-gapless
|
||||
& > .column + .column
|
||||
&:not(:last-child)
|
||||
margin: 0 0 20px
|
||||
& > .column
|
||||
margin: 0
|
||||
padding: 0
|
||||
&.is-multiline
|
||||
flex-wrap: wrap
|
||||
&.is-vcentered
|
||||
align-items: center
|
||||
&.is-grid
|
||||
|
Loading…
Reference in New Issue
Block a user