소스 검색

chore: Add global style for radio buttons

version-14
marination 4 년 전
부모
커밋
5a490f7325
1개의 변경된 파일38개의 추가작업 그리고 0개의 파일을 삭제
  1. +38
    -0
      frappe/public/scss/common/global.scss

+ 38
- 0
frappe/public/scss/common/global.scss 파일 보기

@@ -18,6 +18,44 @@


$check-icon: url("data:image/svg+xml, <svg viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 4.00001L2.66667 5.80001L7 1.20001' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"); $check-icon: url("data:image/svg+xml, <svg viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 4.00001L2.66667 5.80001L7 1.20001' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");


input[type="radio"] {
position: relative;
width: var(--checkbox-size) !important;
height: var(--checkbox-size);
margin-right: 8px !important;
font-size: calc(var(--checkbox-size) - 1px);
background-repeat: no-repeat;
background-position: center;
cursor: pointer;

// Reset browser behavior
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;

-webkit-print-color-adjust: exact;
color-adjust: exact;

&:focus {
outline: none;
}

&:before {
width: var(--checkbox-size);
height: var(--checkbox-size);
position: absolute;
content: ' ';
border: 1px solid var(--gray-400);
border-radius: 16px;
}

&:checked::before {
background-color: #2490EF;
border-radius: 16px;
box-shadow: inset 0 0 0 2px white;
}
}

input[type="checkbox"] { input[type="checkbox"] {
position: relative; position: relative;
width: var(--checkbox-size) !important; width: var(--checkbox-size) !important;


불러오는 중...
취소
저장