Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/style/sound_manager/sound_manager.css
blob: cdfaab3ca430f724deb77e5893b165492f92f9f6 (plain)
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#volume {
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  -moz-transition: opacity 0.5s ease;
  pointer-events: none;
  display: none;
  background-image: url("images/header_bg.png");
}

#volume > * {
  line-height: 40px;
  height: 40px;
  display: inline-block;
  float: left;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

#volume span {
  display: inline-block;
  width: 25px;
  float: left;
}

#volume span.vibration {
  visibility: hidden;
  margin-left: 5px;
  background-image: url('images/vibration_disabled_icon.png');
}

#volume.vibration span.vibration {
  background-image: url('images/vibration_enabled_icon.png');
}

#volume.mute span.mute-state {
  background-image: url('images/speaker_mute_icon.png');
}

#volume span.mute-state {
  background-image: url('images/speaker_regular_icon.png');
}

#volume span.volume {
  margin-left: 5px;
  background-image: url('images/speaker_loud_icon.png');
}

#volume.visible {
  display: block;
}

#volume[data-channel="notification"] span.vibration {
  visibility: visible;
}

#volume[data-channel="bt_sco"] div:nth-child(n+4),
#volume[data-channel="content"] div:nth-child(n+4),
#volume[data-channel="alarm"] div:nth-child(n+4),
#volume[data-channel="notification"] div:nth-child(n+4) {
  width: 12px;
  margin-left: 2px;
  background-image: url('images/volume_center_disabled.png');
}

#volume[data-channel="telephony"] div:nth-child(n+4) {
  width: 42px;
  margin-left: 2px;
  background-image: url('images/volume_center_disabled.png');
}

#volume[data-channel="bt_sco"] div.active:nth-child(n+4),
#volume[data-channel="content"] div.active:nth-child(n+4),
#volume[data-channel="alarm"] div.active:nth-child(n+4),
#volume[data-channel="notification"] div.active:nth-child(n+4),
#volume[data-channel="telephony"] div.active:nth-child(n+4) {
  background-image: url('images/volume_center_active.png');
}

#volume div:nth-child(3) {
  background-image: url('images/volume_left_disabled.png');
}

#volume div.active:nth-child(3) {
  background-image: url('images/volume_left_active.png');
}

#volume[data-channel="bt_sco"] div:nth-child(17),
#volume[data-channel="alarm"] div:nth-child(17),
#volume[data-channel="notification"] div:nth-child(17),
#volume[data-channel="content"] div:nth-child(17),
#volume[data-channel="telephony"] div:nth-child(7) {
  background-image: url('images/volume_right_disabled.png');
}

#volume[data-channel="bt_sco"] div.active:nth-child(17),
#volume[data-channel="alarm"] div.active:nth-child(17),
#volume[data-channel="notification"] div.active:nth-child(17),
#volume[data-channel="content"] div.active:nth-child(17),
#volume[data-channel="telephony"] div.active:nth-child(7) {
  background-image: url('images/volume_right_active.png');
}

#volume[data-channel="telephony"] div:nth-child(n+8) {
  display: none;
}

#volume[data-channel="notification"] > div:nth-child(n+3),
#volume[data-channel="alarm"] > div:nth-child(n+3),
#volume[data-channel="bt_sco"] > div:nth-child(n+3),
#volume[data-channel="content"] > div:nth-child(n+3) {
  width: 12px;
  background-size: 12px 10px;
}

#volume[data-channel="telephony"] > div:nth-child(n+3) {
  width: 42px;
  background-size: 42px 10px;
}

@media (orientation: landscape) and (width: 480px) {
  #volume[data-channel="bt_sco"] div:nth-child(n+4),
  #volume[data-channel="content"] div:nth-child(n+4),
  #volume[data-channel="alarm"] div:nth-child(n+4),
  #volume[data-channel="notification"] div:nth-child(n+4),
  #volume[data-channel="telephony"] div:nth-child(n+4) {
    width: 36px;
    margin-left: 2px;
    background-size: 36px 10px;
    background-image: url('images/VolumeOverlay_Landscape_SegmentOff.png');
  }

  #volume[data-channel="telephony"] div:nth-child(n+8) {
    display: none;
  }

  #volume[data-channel="bt_sco"] div.active:nth-child(n+4),
  #volume[data-channel="content"] div.active:nth-child(n+4),
  #volume[data-channel="alarm"] div.active:nth-child(n+4),
  #volume[data-channel="notification"] div.active:nth-child(n+4),
  #volume[data-channel="telephony"] div.active:nth-child(n+4) {
    background-image: url('images/VolumeOverlay_Landscape_SegmentOn.png');
  }

  #volume div:nth-child(3) {
    background-image: url('images/VolumeOverlay_Landscape_SegmentOff_left.png');
  }

  #volume div.active:nth-child(3) {
    background-image: url('images/VolumeOverlay_Landscape_SegmentOn_left.png');
  }

  #volume[data-channel="bt_sco"] div:nth-child(17),
  #volume[data-channel="content"] div:nth-child(17),
  #volume[data-channel="alarm"] div:nth-child(17),
  #volume[data-channel="notification"] div:nth-child(17),
  #volume[data-channel="telephony"] div:nth-child(7) {
    background-image: url('images/VolumeOverlay_Landscape_SegmentOff_right.png');
  }

  #volume[data-channel="bt_sco"] div.active:nth-child(17),
  #volume[data-channel="content"] div.active:nth-child(17),
  #volume[data-channel="alarm"] div.active:nth-child(17),
  #volume[data-channel="notification"] div.active:nth-child(17),
  #volume[data-channel="telephony"] div.active:nth-child(7) {
    background-image: url('images/VolumeOverlay_Landscape_SegmentOn_right.png');
  }

  #volume[data-channel="notification"] > div:nth-child(n+3),
  #volume[data-channel="alarm"] > div:nth-child(n+3),
  #volume[data-channel="bt_sco"] > div:nth-child(n+3),
  #volume[data-channel="content"] > div:nth-child(n+3) {
    width: 22px;
    background-size: 22px 10px;
  }

  #volume[data-channel="telephony"] > div:nth-child(n+3) {
    width: 74px;
    background-size: 74px 10px;
  }
}