mirror of
https://github.com/arnaucube/miksi-app.git
synced 2026-02-07 11:46:54 +01:00
Initial UI layout structure
This commit is contained in:
35
css/utils.css
Normal file
35
css/utils.css
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
/* switch button */
|
||||
.onoffswitch {
|
||||
position: relative; width: 46px;
|
||||
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
|
||||
}
|
||||
.onoffswitch-checkbox {
|
||||
display: none;
|
||||
}
|
||||
.onoffswitch-label {
|
||||
display: block; overflow: hidden; cursor: pointer;
|
||||
height: 20px; padding: 0; line-height: 20px;
|
||||
border: 2px solid #FFFFFF; border-radius: 20px;
|
||||
background-color: #9E9E9E;
|
||||
transition: background-color 0.3s ease-in;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.onoffswitch-label:before {
|
||||
content: "";
|
||||
display: block; width: 20px; margin: 0px;
|
||||
background: #FFFFFF;
|
||||
position: absolute; top: 0; bottom: 0;
|
||||
right: 24px;
|
||||
border: 2px solid #FFFFFF; border-radius: 20px;
|
||||
transition: all 0.3s ease-in 0s;
|
||||
}
|
||||
.onoffswitch-checkbox:checked + .onoffswitch-label {
|
||||
background-color: #FF00B9;
|
||||
}
|
||||
.onoffswitch-checkbox:checked + .onoffswitch-label, .onoffswitch-checkbox:checked + .onoffswitch-label:before {
|
||||
border-color: #FF00B9;
|
||||
}
|
||||
.onoffswitch-checkbox:checked + .onoffswitch-label:before {
|
||||
right: 0px;
|
||||
}
|
||||
Reference in New Issue
Block a user