Files
bulma/sass/helpers/visibility.scss

222 lines
6.2 KiB
SCSS
Raw Normal View History

2024-03-21 16:11:54 +00:00
@use "../utilities/initial-variables" as iv;
@use "../utilities/mixins" as mx;
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden {
2024-03-21 16:11:54 +00:00
display: none !important;
}
$displays: block flex inline inline-block inline-flex grid;
@each $display in $displays {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display},
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display} {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
@include mx.mobile {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-mobile,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-mobile {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.tablet {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-tablet,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-tablet {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.tablet-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-tablet-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-tablet-only {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.touch {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-touch,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-touch {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.desktop {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-desktop,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-desktop {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.desktop-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-desktop-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-desktop-only {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.widescreen {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-widescreen,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-widescreen {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.widescreen-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-widescreen-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-widescreen-only {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
@include mx.fullhd {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-#{$display}-fullhd,
.#{iv.$class-prefix}#{iv.$helpers-prefix}#{$display}-fullhd {
2024-03-21 16:11:54 +00:00
display: $display !important;
}
}
}
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}sr-only {
2024-03-21 16:11:54 +00:00
border: none !important;
clip: rect(0, 0, 0, 0) !important;
height: 0.01em !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
white-space: nowrap !important;
width: 0.01em !important;
}
@include mx.mobile {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-mobile,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-mobile {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.tablet {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-tablet,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-tablet {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.tablet-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-tablet-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-tablet-only {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.touch {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-touch,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-touch {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.desktop {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-desktop,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-desktop {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.desktop-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-desktop-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-desktop-only {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.widescreen {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-widescreen,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-widescreen {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.widescreen-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-widescreen-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-widescreen-only {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
@include mx.fullhd {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}display-none-fullhd,
.#{iv.$class-prefix}#{iv.$helpers-prefix}hidden-fullhd {
2024-03-21 16:11:54 +00:00
display: none !important;
}
}
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
@include mx.mobile {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-mobile,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-mobile {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.tablet {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-tablet,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-tablet {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.tablet-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-tablet-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-tablet-only {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.touch {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-touch,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-touch {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.desktop {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-desktop,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-desktop {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.desktop-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-desktop-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-desktop-only {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.widescreen {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-widescreen,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-widescreen {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.widescreen-only {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-widescreen-only,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-widescreen-only {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}
@include mx.fullhd {
2024-12-27 21:25:24 +01:00
.#{iv.$class-prefix}#{iv.$helpers-prefix}visibility-hidden-fullhd,
.#{iv.$class-prefix}#{iv.$helpers-prefix}invisible-fullhd {
2024-03-21 16:11:54 +00:00
visibility: hidden !important;
}
}