bulma/sass/base/helpers.sass

114 lines
1.8 KiB
Sass
Raw Normal View History

// Display
2016-05-07 12:31:31 +00:00
$displays: 'block' 'flex' 'inline' 'inline-block' 'inline-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
.is-clearfix
+clearfix
.is-pulled-left
float: left
.is-pulled-right
float: right
// Overflow
.is-clipped
overflow: hidden !important
// Overlay
.is-overlay
+overlay
// Text
2016-04-10 15:00:32 +00:00
.has-text-centered
text-align: center
2016-04-10 15:00:32 +00:00
.has-text-left
text-align: left
2016-04-10 15:00:32 +00:00
.has-text-right
text-align: right
2017-03-27 07:49:27 +00:00
@each $name, $pair in $colors
$color: nth($pair, 1)
.has-text-#{$name}
color: $color
a.has-text-#{$name}
&:hover,
&:focus
color: darken($color, 10%)
// Visibility
2016-04-10 16:21:19 +00:00
.is-hidden
display: none !important
.is-hidden-mobile
+mobile
display: none !important
.is-hidden-tablet
2016-05-07 12:31:31 +00:00
+tablet
display: none !important
.is-hidden-tablet-only
+tablet-only
display: none !important
.is-hidden-touch
+touch
display: none !important
.is-hidden-desktop
2016-05-07 12:31:31 +00:00
+desktop
display: none !important
.is-hidden-desktop-only
+desktop-only
display: none !important
2016-05-07 12:31:31 +00:00
.is-hidden-widescreen
+widescreen
display: none !important
// Other
2016-04-10 15:27:27 +00:00
.is-marginless
margin: 0 !important
.is-paddingless
padding: 0 !important
2016-01-24 00:03:43 +00:00
.is-unselectable
2016-09-22 22:14:18 +00:00
+unselectable