aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/base.scss
blob: 794e79607833b1545c950c189e4492dd39ba5962 (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
66
67
68
69
// --------------------------------------------------------------
// Base styling
// --------------------------------------------------------------

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

  align-items: center;
  direction: ltr;
  display: flex;
  flex-direction: column;
  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;
  z-index: 0; // Force any border radius

  // Media elements
  video,
  audio,
  iframe {
    display: block;
    height: 100%;
    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;
    }
  }
}