aboutsummaryrefslogtreecommitdiffstats
path: root/apps/Player/styles/_player.scss
blob: 8cf37cd864b1bae9afc863b4d42d23bad090666b (plain) (blame)
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
70
.player {
  height: 100%;
  width: 100%;
  position: relative;
  background-color: #000;

  & > div:nth-of-type(1) {
    height: calc(100% - 2em);
    width: 100%;
    padding-bottom: .5em;

    video {
      height: 100%;
      width: 100%;
      object-fit: contain;
    }
  }

  & > div:nth-of-type(2) {
    width: auto;
    min-width: 25em;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 2em;
    background-color: var(--color-glass);
    transition: .3s transform;
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    border-right: 1px solid var(--color-window-border-bottom);

    li {
      padding: .5em 2em .5em .5em;
      white-space: nowrap;

      span {
        padding-right: 1em;
      }

      @media(hover: hover) {
        &:hover {
          background-color: var(--color-glass-alt);
        }
      }
    }

    & > div {
      position: absolute;
      top: 50%;
      right: -0.5em;
      padding: 2em .5em;
      border-radius: .5em;
      transform: translateY(-50%);
      background-color: var(--color-window-menu-alt);
      color: var(--color-text-alt);
      border: 1px solid var(--color-window-border-bottom);
      transition: .3s background;

      &:hover {
        background-color: var(--color-window-menu);
      }
    }
  }

}

.activeItem {
  color: var(--color-text-alt);
  font-weight: 600;
}