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 
table {
  width: 100%;
  color: var(--color);
  border-collapse: separate;
  border-spacing: 0;

  button,
  details > [role="button"],
  details[open] > [role="button"] {
    max-width: fit-content;
    padding: .25rem .5rem !important;
    margin: 0 0 0 auto;

    .icon {
      margin: .25rem;
    }
  }

  .cover {
    width: 24px;
    height: 24px;
    float: left;
    margin-right: .25rem;
  }

  .icon {
    border: none !important;
  }

  details[open] > ul {
    width: 12rem;
    transform: translateX(calc(-75%)) !important;
  }

  th {
    font-size: .8rem;
    text-align: start;
    text-transform: uppercase;
    color: var(--muted-color);
    padding: .5rem .15rem;
    user-select: none;
  }

  tbody {
    tr:not(.disabled) {
      cursor: pointer;
    }

    tr:hover,
    tr.active {
      td {
        background: var(--input-background);
      }

      td:first-child {
        border-radius: var(--border-radius) 0 0 var(--border-radius);
      }
          
      td:last-child {
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
      }
    }

    tr.active,
    tr.active a {
      color: var(--primary-color);
    }

    tr.disabled {
      color: var(--muted-color) !important;
    }
  }
}

table.numbered {
  th:first-child,
  td:first-child {
    width: 26px;
    max-width: 26px;
    text-align: center;
    color: var(--muted-color);
  }

  tbody {
    tr td:first-child {
      .number {
        display: unset;
        white-space: nowrap;
      }

      .icon {
        display: none;
      }
    }

    tr.disabled td:first-child {
      .number,
      .icon {
        display: none;
      }
    }

    tr.active,
    tr:hover {
      td:first-child {
        .number {
          display: none;
        }
        .icon {
          display: unset;
          color: var(--primary-color);
        }
      }
    }
  }
}