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 
142 
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153 
154 
155 
156 
157 
158 
159 
160 
.header {
  display: flex;
  flex-direction: row;
  align-items: center;

  .backdrop {
    z-index: -1;
    position: absolute;
    top: -30%;
    width: calc(100% - 3rem - var(--sidebar-width));
    height: 100%;

    transform: scale(1.025);
    filter: blur(8px);
    opacity: 0.25;

    background-size: max(100%, 1000px) auto;
    background-position: center;
    background-repeat: no-repeat;
    background-image:
      linear-gradient(to bottom, transparent, black),
      var(--backdrop-image);
  }

  .album-cover {
    display: block;
    width: 300px;
    max-width: 75%;
    height: auto;
    border-radius: .5rem;
    object-fit: cover;
    aspect-ratio: 1;
    cursor: pointer;
  }

  .details {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: left;
    padding-left: 1.5rem;
    padding-bottom: .25rem;

    h1 {
      line-height: 1.2;
      font-size: calc(1rem + 1.25vw);
      font-weight: 700 !important;
      vertical-align: middle;

      a {
        line-height: 1.2;
        font-size: calc(.5rem + 1vw);
        vertical-align: middle;
        padding: .2rem;
      }
    }

    .row {
      flex-wrap: wrap;
    }

    .scroll {
      overflow-y: scroll;
      scrollbar-width: none;
      min-height: 0;
      max-height: 7rem;
    }

    .seperator::before {
      content: "•";
      margin: 0 .5rem !important;
    }
  }

  details[open] > ul {
    width: 8rem;
    transform: translateX(calc(-50% + -1rem)) !important;
  }
}


@media (min-width: 850px) {
  .header {
    .backdrop {
      max-width: calc(100vw - var(--sidebar-width));
    }
  }
}

@media (max-width: 850px) {
  .header {
    flex-direction: column;

    .album-cover {
      align-self: center;
    }

    .details {
      padding-top: 1rem;
      align-items: center;
      text-align: center;
      padding-left: 0;
    }
  }
}

.main-title {
  margin: .6rem .3rem;
  vertical-align: middle;
  line-height: 1.5;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-text-muted);
  text-decoration: none !important;
  user-select: none;

  .icon {
    vertical-align: middle;
    font-size: 1.65rem;
  }
}

.section-title {
  margin: .6rem .3rem;
  margin-top: 1.5rem;
  vertical-align: middle;
  line-height: 1.2;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--theme-text-muted);
  text-decoration: none !important;
  user-select: none;

  .icon {
    vertical-align: middle;
    font-size: 1.65rem;
  }
}

@media (min-width: 1200px) {
  details > h1 {
    font-size: 3rem;
  }
}

/* Mobile: slightly smaller font */
@media (max-width: 767px) {
  .main-title {
    max-width: 220px;
    font-size: 1.2rem !important;
  }
  .header-title {
    max-width: 220px;
    font-size: 1.2rem !important;
  }
  .section-title {
    max-width: 220px;
    font-size: 1.1rem !important;
  }
}