2019-04-23 20:37:57 +00:00
|
|
|
/*! UIkit 2.27.5 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2017-04-08 18:35:55 +00:00
|
|
|
/* ========================================================================
|
|
|
|
Component: Form advanced
|
|
|
|
Note: Only works in Webkit at the moment
|
|
|
|
========================================================================== */
|
|
|
|
/*
|
|
|
|
* 1. Style
|
|
|
|
* 2. Makes box more robust so it clips the child element
|
|
|
|
* 3. Vertical alignment
|
|
|
|
* 4. Remove default style
|
|
|
|
* 5. Fix black background on iOS
|
|
|
|
*/
|
|
|
|
.uk-form input[type="radio"],
|
|
|
|
.uk-form input[type="checkbox"] {
|
|
|
|
/* 1 */
|
|
|
|
display: inline-block;
|
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
2018-05-05 01:16:22 +00:00
|
|
|
border: 1px solid #aaa;
|
2017-04-08 18:35:55 +00:00
|
|
|
/* 2 */
|
|
|
|
overflow: hidden;
|
|
|
|
/* 3 */
|
|
|
|
margin-top: -4px;
|
|
|
|
vertical-align: middle;
|
|
|
|
/* 4 */
|
|
|
|
-webkit-appearance: none;
|
|
|
|
outline: 0;
|
|
|
|
/* 5 */
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
/* Radio */
|
|
|
|
.uk-form input[type="radio"] {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Checked
|
|
|
|
*/
|
|
|
|
.uk-form input[type=radio]:before,
|
|
|
|
.uk-form input[type=checkbox]:before {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
/* Radio */
|
|
|
|
.uk-form input[type=radio]:checked:before {
|
|
|
|
content: '';
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
margin: 2px auto 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
background: #00a8e6;
|
|
|
|
}
|
|
|
|
/* Checkbox */
|
|
|
|
.uk-form input[type=checkbox]:checked:before,
|
|
|
|
.uk-form input[type=checkbox]:indeterminate:before {
|
|
|
|
content: "\f00c";
|
|
|
|
font-family: FontAwesome;
|
|
|
|
font-size: 12px;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 12px;
|
|
|
|
color: #00a8e6;
|
|
|
|
}
|
|
|
|
.uk-form input[type=checkbox]:indeterminate:before {
|
|
|
|
content: "\f068";
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Disabled
|
|
|
|
*/
|
|
|
|
.uk-form input[type=radio]:disabled,
|
|
|
|
.uk-form input[type=checkbox]:disabled {
|
2018-05-05 01:16:22 +00:00
|
|
|
border-color: #ddd;
|
2017-04-08 18:35:55 +00:00
|
|
|
}
|
|
|
|
.uk-form input[type=radio]:disabled:checked:before {
|
2018-05-05 01:16:22 +00:00
|
|
|
background-color: #aaa;
|
2017-04-08 18:35:55 +00:00
|
|
|
}
|
|
|
|
.uk-form input[type=checkbox]:disabled:checked:before,
|
|
|
|
.uk-form input[type=checkbox]:disabled:indeterminate:before {
|
2018-05-05 01:16:22 +00:00
|
|
|
color: #aaa;
|
2017-04-08 18:35:55 +00:00
|
|
|
}
|