bulma/sass/base/helpers.sass

137 lines
2.3 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}
2017-07-20 17:52:24 +00:00
+mobile
.is-#{$display}-mobile
2016-05-07 12:31:31 +00:00
display: #{$display} !important
2017-07-20 17:52:24 +00:00
+tablet
.is-#{$display}-tablet
2016-05-07 12:31:31 +00:00
display: #{$display} !important
2017-07-20 17:52:24 +00:00
+tablet-only
.is-#{$display}-tablet-only
2016-05-07 12:31:31 +00:00
display: #{$display} !important
2017-07-20 17:52:24 +00:00
+touch
.is-#{$display}-touch
2016-05-07 12:31:31 +00:00
display: #{$display} !important
2017-07-20 17:52:24 +00:00
+desktop
.is-#{$display}-desktop
2016-05-07 12:31:31 +00:00
display: #{$display} !important
2017-07-20 17:52:24 +00:00
+desktop-only
.is-#{$display}-desktop-only
2016-05-07 12:31:31 +00:00
display: #{$display} !important
2017-07-20 17:52:24 +00:00
+widescreen
.is-#{$display}-widescreen
2016-05-07 12:31:31 +00:00
display: #{$display} !important
// Float
.is-clearfix
+clearfix
.is-pulled-left
float: left !important
.is-pulled-right
float: right !important
// Overflow
.is-clipped
overflow: hidden !important
// Overlay
.is-overlay
+overlay
// Text
2017-07-19 21:52:22 +00:00
@each $size in $sizes
$i: index($sizes, $size)
.is-size-#{$i}
font-size: $size
+mobile
.is-size-#{$i}-mobile
font-size: $size
+tablet
.is-size-#{$i}-tablet
font-size: $size
+touch
.is-size-#{$i}-touch
font-size: $size
+desktop
.is-size-#{$i}-desktop
font-size: $size
+widescreen
.is-size-#{$i}-widescreen
font-size: $size
+fullhd
.is-size-#{$i}-fullhd
font-size: $size
2016-04-10 15:00:32 +00:00
.has-text-centered
text-align: center !important
2016-04-10 15:00:32 +00:00
.has-text-left
text-align: left !important
2016-04-10 15:00:32 +00:00
.has-text-right
text-align: right !important
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
2017-07-20 18:02:58 +00:00
+mobile
.is-hidden-mobile
display: none !important
2017-07-20 18:02:58 +00:00
+tablet
.is-hidden-tablet
2016-05-07 12:31:31 +00:00
display: none !important
2017-07-20 18:02:58 +00:00
+tablet-only
.is-hidden-tablet-only
display: none !important
2017-07-20 18:02:58 +00:00
+touch
.is-hidden-touch
display: none !important
2017-07-20 18:02:58 +00:00
+desktop
.is-hidden-desktop
2016-05-07 12:31:31 +00:00
display: none !important
2017-07-20 18:02:58 +00:00
+desktop-only
.is-hidden-desktop-only
display: none !important
2017-07-20 18:02:58 +00:00
+widescreen
.is-hidden-widescreen
2016-05-07 12:31:31 +00:00
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