Change speaker icon
This commit is contained in:
parent
3db8f07621
commit
2511d558f8
BIN
assets/speaker.png
Normal file
BIN
assets/speaker.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 421 B |
42
index.css
42
index.css
@ -132,8 +132,8 @@ td {
|
|||||||
.switch {
|
.switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 64px;
|
width: 128px;
|
||||||
height: 38px;
|
height: 128px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide default HTML checkbox */
|
/* Hide default HTML checkbox */
|
||||||
@ -151,42 +151,18 @@ td {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: #ccc;
|
width: 128px;
|
||||||
-webkit-transition: .4s;
|
height: 128px;
|
||||||
transition: .4s;
|
background-color: red;
|
||||||
}
|
background-image: url("assets/speaker.png");
|
||||||
|
|
||||||
.slider:before {
|
|
||||||
position: absolute;
|
|
||||||
content: "";
|
|
||||||
height: 30px;
|
|
||||||
width: 30px;
|
|
||||||
left: 4px;
|
|
||||||
bottom: 4px;
|
|
||||||
background-color: white;
|
|
||||||
-webkit-transition: .4s;
|
-webkit-transition: .4s;
|
||||||
transition: .4s;
|
transition: .4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:checked + .slider {
|
input:checked + .slider {
|
||||||
background-color: #2196F3;
|
background-color: #00FF00 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus + .slider {
|
input:focus + .slider {
|
||||||
box-shadow: 0 0 1px #2196F3;
|
box-shadow: 0 0 1px #00FF00 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:checked + .slider:before {
|
|
||||||
-webkit-transform: translateX(26px);
|
|
||||||
-ms-transform: translateX(26px);
|
|
||||||
transform: translateX(26px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Rounded sliders */
|
|
||||||
.slider.round {
|
|
||||||
border-radius: 38px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slider.round:before {
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
@ -73,7 +73,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<label class="switch" id="switchcontaineraudio">
|
<label class="switch" id="switchcontaineraudio">
|
||||||
<input type="checkbox" id="audiocheckbox" checked>
|
<input type="checkbox" id="audiocheckbox" checked>
|
||||||
<span class="slider round" id="visualcheckbox"></span>
|
<span class="slider fixbgimage" id="visualcheckbox"></span>
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user