aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/utils/hidden.scss
blob: a42c3be8a078efb5a84c55a82a6b9cc495807378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// --------------------------------------------------------------
// Hiding content nicely
// --------------------------------------------------------------

// Screen reader only elements
.plyr__sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;

    // !important is not always needed
    @if $plyr-sr-only-important {
        border: 0 !important;
        height: 1px !important;
        padding: 0 !important;
        position: absolute !important;
        width: 1px !important;
    } @else {
        border: 0;
        height: 1px;
        padding: 0;
        position: absolute;
        width: 1px;
    }
}

.plyr [hidden] {
    display: none !important;
}