A HTML5 desktop/mobile switch CSS Only
- link switch css file
<link rel="stylesheet" href="switch.css">
- add switch controlers
<input type="checkbox" id="switch">
<label for="switch" class="switch">
<div class="toggle"></div>
<div class="names">
<i class="one material-icons">desktop_windows</i>
<i class="two material-icons">smartphone</i>
</div>
</label>
- custom response
[type="checkbox"]:checked~.content {
flex-direction: column;
}