aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/base.scss
blob: 9bb9d98aca6719bafd1c81c6a0b3e495946d97fa (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// --------------------------------------------------------------
// Base styling
// --------------------------------------------------------------

// Base
.plyr {
    @include plyr-font-smoothing($plyr-font-smoothing);

    direction: ltr;
    font-family: $plyr-font-family;
    font-variant-numeric: tabular-nums; // Force monosace-esque number widths
    font-weight: $plyr-font-weight-regular;
    line-height: $plyr-line-height;
    max-width: 100%;
    min-width: 200px;
    position: relative;
    text-shadow: none;
    transition: box-shadow 0.3s ease;

    // Media elements
    video,
    audio {
        border-radius: inherit;
        height: auto;
        vertical-align: middle;
        width: 100%;
    }

    button {
        font: inherit;
        line-height: inherit;
        width: auto;
    }

    // Ignore focus
    &:focus {
        outline: 0;
    }
}

// border-box everything
// http://paulirish.com/2012/box-sizing-border-box-ftw/
@if $plyr-border-box {
    .plyr--full-ui {
        box-sizing: border-box;

        *,
        *::after,
        *::before {
            box-sizing: inherit;
        }
    }
}

// Fix 300ms delay
@if $plyr-touch-action {
    .plyr--full-ui {
        a,
        button,
        input,
        label {
            touch-action: manipulation;
        }
    }
}