zaphyra's git: domsonic

subsonic web-client

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 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 .sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100%;
  height: 100vh;
  background: var(--secondary-background);
  padding: 0 .5rem;
  padding-bottom: calc(var(--player-height) + .25rem);
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  user-select: none;

  .divider {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: .875em;
    text-transform: uppercase;

    > * {
      color: var(--muted-color);
      padding: .5rem 1rem;
      margin-top: 1.25em;
    }
  }

  a,
  summary {
    cursor: pointer;
    overflow: hidden;
    min-height: calc(2.5rem);
    border-radius: var(--border-radius);
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
    text-align: start;
    padding: .5rem 1rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;

    svg {
      font-size: 125%;
      vertical-align: text-bottom;
      margin-right: .75rem;
      pointer-events: none;
      fill: currentcolor;
    }
  }

  a:hover,
  .active,
  details[open] > summary {
    color: var(--primary-color);
    background-color: var(--primary-hover-background);
  }

  details {
    margin-top: auto;

    ul {
      width: calc(var(--sidebar-width) - 1rem);

      .themes {
        display: flex;
        justify-content: space-between;

        button {
          width: 20px;
          height: 20px;
          border-radius: 50%;
          cursor: pointer;
          outline: none;
          padding: 10px;
          margin: 5px 5px;
          background: transparent;
        }
      }
    }
  }
}

.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  max-height: var(--navbar-height);
  background-color: var(--background);
  z-index: 3000;

  button {
    flex: 1;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
  }

  button.active {
    color: var(--primary-color);
  }
}

@media (min-width: 850px) {
  .navbar {
    display: none;
  }
}

@media(max-width: 850px) {
  .sidebar {
    display: none;
    transition: all 3.75s ease;
    z-index: 100;
  }

  .sidebar nav {
    padding-bottom: calc(var(--mobile-nav-height) + .25rem) !important;
  }

  .sidebar.open {
    display: flex;
  }

  .sidebar.open + main,
  .sidebar.open + main + div.player {
    pointer-events: none;
    overflow-x: hidden !important;
    height: 100vh;
    filter: blur(10px);
  }
  
}