-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
92 lines (83 loc) · 1.86 KB
/
style.css
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
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body {
font-family: Arial, sans-serif;
background: #f9f9f9;
color: #333;
width: 300px; /* Fixed width */
min-width: 300px;
padding: 15px;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
}
/* Header Styling */
h1 {
font-size: 18px;
color: #444;
margin-bottom: 15px;
text-align: center;
word-wrap: break-word;
}
/* Volume Controls Container */
#volumeControls {
width: 100%;
overflow-y: auto;
max-height: 300px; /* Allow scroll if there are more than 4 tabs */
}
/* Tab Container */
#volumeControls > div {
display: flex;
flex-direction: column;
margin-bottom: 15px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Tab Title */
#volumeControls span {
font-size: 14px;
color: #666;
margin-bottom: 8px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
/* Volume Slider */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 5px;
background: #ddd;
outline: none;
border-radius: 5px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: #4caf50;
cursor: pointer;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}
input[type="range"]:hover::-webkit-slider-thumb {
background: #45a049;
}
/* Responsive Adjustments */
@media (max-width: 300px) {
body {
width: 100%; /* Allow for flexible width on small screens */
}
}