소스 검색

ROS colored +/- radio fills

Vijayakrishnan 3 년 전
부모
커밋
44f2f5edc3
1개의 변경된 파일37개의 추가작업 그리고 1개의 파일을 삭제
  1. 37 1
      public/css/style.css

+ 37 - 1
public/css/style.css

@@ -2516,4 +2516,40 @@ table.table-xs tr td {
 }
 .read [if-read-mode] {
     display: block;
-}
+}
+.rspace input[type="radio"]:checked {
+    position: relative;
+}
+.rspace input[type="radio"]:checked:before,
+.rspace input[type="radio"]:checked:after {
+    content: '';
+    position: absolute;
+    border-radius: 100%;
+    background:#fff;
+}
+
+/* colored radios */
+.rspace input[type="radio"]:checked:before {
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+}
+.rspace input[type="radio"]:checked:after {
+    top: 3px;
+    left: 3px;
+    width: calc(100% - 6px);
+    height: calc(100% - 6px);
+}
+.rspace input[type="radio"][value="-"]:checked:before {
+    border: 1px solid #e7848f;
+}
+.rspace input[type="radio"][value="+"]:checked:before {
+    border: 1px solid #2d9f2d91;
+}
+.rspace input[type="radio"][value="-"]:checked:after {
+    background-color: #e7848f;
+}
+.rspace input[type="radio"][value="+"]:checked:after {
+    background-color: #2d9f2d91;
+}