Add display responsive classes

This commit is contained in:
Jeremy Thomas 2016-05-07 13:31:31 +01:00
commit fbf70dfc6d
8 changed files with 44 additions and 8 deletions

View File

@ -26,7 +26,7 @@ bower install bulma
### CDN ### CDN
[https://cdnjs.cloudflare.com/ajax/libs/bulma](https://cdnjs.cloudflare.com/ajax/libs/bulma) [https://cdnjs.com/libraries/bulma](https://cdnjs.com/libraries/bulma)
Feel free to raise an issue or submit a pull request. Feel free to raise an issue or submit a pull request.

2
css/bulma.css vendored
View File

@ -963,7 +963,7 @@ a.box:active {
} }
.button.is-loading, .pagination a.is-loading { .button.is-loading, .pagination a.is-loading {
color: transparent; color: transparent !important;
pointer-events: none; pointer-events: none;
} }

File diff suppressed because one or more lines are too long

2
css/bulma.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,31 @@
// Display // Display
.is-flex $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
display: flex
@each $display in $displays
.is-#{$display}
display: #{$display}
.is-#{$display}-mobile
+mobile
display: #{$display} !important
.is-#{$display}-tablet
+tablet
display: #{$display} !important
.is-#{$display}-tablet-only
+tablet-only
display: #{$display} !important
.is-#{$display}-touch
+touch
display: #{$display} !important
.is-#{$display}-desktop
+desktop
display: #{$display} !important
.is-#{$display}-desktop-only
+desktop-only
display: #{$display} !important
.is-#{$display}-widescreen
+widescreen
display: #{$display} !important
// Float // Float
.is-clearfix .is-clearfix
@ -40,6 +63,10 @@
display: none !important display: none !important
.is-hidden-tablet .is-hidden-tablet
+tablet
display: none !important
.is-hidden-tablet-only
+tablet-only +tablet-only
display: none !important display: none !important
@ -48,9 +75,17 @@
display: none !important display: none !important
.is-hidden-desktop .is-hidden-desktop
+desktop
display: none !important
.is-hidden-desktop-only
+desktop-only +desktop-only
display: none !important display: none !important
.is-hidden-widescreen
+widescreen
display: none !important
// Other // Other
.is-disabled .is-disabled

View File

@ -101,7 +101,7 @@
display: block display: block
width: 100% width: 100%
&.is-loading &.is-loading
color: transparent color: transparent !important
pointer-events: none pointer-events: none
&:after &:after
@extend .loader @extend .loader

View File

@ -9,6 +9,7 @@
display: inline-flex display: inline-flex
font-size: $size-normal font-size: $size-normal
height: 32px height: 32px
justify-content: flex-start
line-height: 24px line-height: 24px
padding-left: 8px padding-left: 8px
padding-right: 8px padding-right: 8px