css-bootstrap/radio-set.css
authoredward <edward@roojs.com>
Fri, 17 Nov 2017 06:39:00 +0000 (14:39 +0800)
committeredward <edward@roojs.com>
Fri, 17 Nov 2017 06:39:00 +0000 (14:39 +0800)
css-bootstrap/radio-set.css

index 06a4caa..396f74d 100644 (file)
 
+.roo-radio-set-item label 
+{
+    display: inline-block;
+    position: relative;
+    padding-left: 5px; 
+}
+
+.roo-radio-set-item label::before 
+{
+    content: "";
+    display: inline-block;
+    position: absolute;
+    width: 17px;
+    height: 17px;
+    left: 0;
+    margin-left: -20px;
+    border: 1px solid #cccccc;
+    border-radius: 50%;
+    background-color: #fff;
+    -webkit-transition: border 0.15s ease-in-out;
+    -o-transition: border 0.15s ease-in-out;
+    transition: border 0.15s ease-in-out; 
+}
+
+.roo-radio-set-item label::after 
+{
+    display: inline-block;
+    position: absolute;
+    content: " ";
+    width: 11px;
+    height: 11px;
+    left: 3px;
+    top: 3px;
+    margin-left: -20px;
+    border-radius: 50%;
+    background-color: #fff; 
+    -webkit-transform: scale(0, 0);
+    -ms-transform: scale(0, 0);
+    -o-transform: scale(0, 0);
+    transform: scale(0, 0);
+    -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
+    -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
+    -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
+    transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
+}
+
+.roo-radio-set-item.checked + label::after 
+{
+    -webkit-transform: scale(1, 1);
+    -ms-transform: scale(1, 1);
+    -o-transform: scale(1, 1);
+    transform: scale(1, 1);
+    background-color: #555555;
+}
+
+.roo-radio-set.disabled .roo-radio-set-field-label
+.roo-radio-set.disabled .roo-radio-set-item .roo-radio-set-item-box-label
+{
+    opacity: 0.65; 
+}
+
+.radio input[type="radio"]:disabled + label::before 
+{
+    cursor: not-allowed; 
+}
+
+.radio-primary input[type="radio"] + label::after 
+{
+    background-color: #fff; 
+}
+
+.radio-primary input[type="radio"]:checked + label::before 
+{
+    border-color: #428bca; 
+}
+
+.radio-primary input[type="radio"]:checked + label::after 
+{
+    background-color: #428bca; 
+}
+
+.radio-danger input[type="radio"] + label::after 
+{
+    background-color: #d9534f; 
+}
+
+.radio-danger input[type="radio"]:checked + label::before 
+{
+    border-color: #d9534f; 
+}
+
+.radio-danger input[type="radio"]:checked + label::after 
+{
+    background-color: #d9534f; 
+}
+
+.radio-info input[type="radio"] + label::after 
+{
+    background-color: #fff;
+}
+
+.radio-info input[type="radio"]:checked + label::before 
+{
+    border-color: #5bc0de; 
+}
+
+.radio-info input[type="radio"]:checked + label::after 
+{
+    background-color: #5bc0de; 
+}
+
+.radio-warning input[type="radio"] + label::after 
+{
+    background-color: #fff; 
+}
+
+.radio-warning input[type="radio"]:checked + label::before 
+{
+    border-color: #f0ad4e; 
+}
+
+.radio-warning input[type="radio"]:checked + label::after 
+{
+    background-color: #f0ad4e; 
+}
+
+.radio-success input[type="radio"] + label::after 
+{
+    background-color: #fff; 
+}
+
+.radio-success input[type="radio"]:checked + label::before 
+{
+    border-color: #5cb85c; 
+}
+
+.radio-success input[type="radio"]:checked + label::after 
+{
+    background-color: #5cb85c; 
+}
+
+.radio.radio-inline {
+    margin-top: 0;
+}
+
 .has-warning .roo-radio-set-item label,
 .has-warning .roo-radio-set-field-label {
-  color: #8a6d3b;
+    color: #8a6d3b;
 }
 
 .has-error .roo-radio-set-item label,
 .has-error .roo-radio-set-field-label {
-  color: #a94442;
+    color: #a94442;
 }
 
 .has-success .roo-radio-set-item label,
 .has-success .roo-radio-set-field-label {
-  color: #3c763d;
+    color: #3c763d;
 }
\ No newline at end of file