1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00
Files
locomotive-boilerplate/_assets/styles/utilities/_states.scss

79 lines
1.3 KiB
SCSS
Raw Normal View History

// ==========================================================================
// Utilities / States
// ==========================================================================
2022-05-12 16:15:44 +02:00
// ARIA roles display visual cursor hints
[aria-busy="true"] {
cursor: progress;
}
[aria-controls] {
cursor: pointer;
}
[aria-disabled] {
cursor: default;
}
2022-05-12 16:15:44 +02:00
// Control visibility without affecting flow.
.is-visible {
visibility: visible !important;
2017-04-27 16:00:45 -04:00
opacity: 1 !important;
}
.is-invisible {
visibility: hidden !important;
2017-04-27 16:00:45 -04:00
opacity: 0 !important;
}
2022-05-12 16:15:44 +02:00
// Completely remove from the flow and screen readers.
.is-hidden {
@include u-hidden;
}
@media not print {
.is-hidden\@screen {
@include u-hidden;
}
}
@media print {
.is-hidden\@print {
@include u-hidden;
}
}
// .is-hidden\@to-lg {
// @media (max-width: $to-lg) {
// display: none;
// }
// }
//
// .is-hidden\@from-lg {
// @media (min-width: $from-lg) {
// display: none;
// }
// }
2022-05-12 16:15:44 +02:00
// // Display a hidden-by-default element.
//
// .is-shown {
// @include u-shown;
// }
//
// table.is-shown {
// display: table !important;
// }
//
// tr.is-shown {
// display: table-row !important;
// }
//
// td.is-shown,
// th.is-shown {
// display: table-cell !important;
// }