浏览代码

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>");

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"] {
position: relative;
width: var(--checkbox-size) !important;


正在加载...
取消
保存