UNPKG

zcy-antd

Version:

An enterprise-class UI design language and React-based implementation

198 lines (197 loc) 4.36 kB
.ant-radio-group { display: inline-block; font-size: 12px; } .ant-radio-wrapper { font-size: 12px; vertical-align: middle; display: inline-block; position: relative; white-space: nowrap; margin-right: 8px; } .ant-radio { white-space: nowrap; outline: none; display: inline-block; position: relative; line-height: 1; vertical-align: middle; cursor: pointer; } .ant-radio:hover .ant-radio-inner, .ant-radio-focused .ant-radio-inner { border-color: #bcbcbc; } .ant-radio-inner { position: relative; top: 0; left: 0; display: inline-block; width: 14px; height: 14px; border-width: 1px; border-style: solid; border-radius: 14px; border-color: #bbbbbb; background-color: #fff; transition: all 0.2s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-radio-inner:after { position: absolute; width: 6px; height: 6px; left: 3px; top: 3px; border-radius: 4px; display: table; border-top: 0; border-left: 0; content: ' '; background-color: #4990e2; opacity: 0; -webkit-transform: scale(0); -ms-transform: scale(0); transform: scale(0); transition: all 0.2s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-radio-input { position: absolute; left: 0; z-index: 1; cursor: pointer; opacity: 0; top: 0; bottom: 0; right: 0; } .ant-radio-checked .ant-radio-inner { border-color: #bbbbbb; } .ant-radio-checked .ant-radio-inner:after { -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; transition: all 0.2s cubic-bezier(0.78, 0.14, 0.15, 0.86); } .ant-radio-disabled:hover .ant-radio-inner { border-color: #bbbbbb; } .ant-radio-disabled .ant-radio-inner { border-color: #bbbbbb; background-color: #f3f3f3; } .ant-radio-disabled .ant-radio-inner:after { background-color: #cccccc; } .ant-radio-disabled .ant-radio-inner-input { cursor: default; } .ant-radio-disabled .ant-radio-disabled + span { color: #ccc; cursor: not-allowed; } span.ant-radio + * { margin-left: 8px; margin-right: 8px; } .ant-radio-button-wrapper { margin: 0; height: 28px; line-height: 26px; color: #666; display: inline-block; transition: all 0.3s ease; cursor: pointer; border: 1px solid #bbbbbb; border-left: 0; background: #fff; padding: 0 16px; } .ant-radio-button-wrapper a { color: #666; } .ant-radio-button-wrapper > .ant-radio-button { margin-left: 0; display: block; width: 0; height: 0; } .ant-radio-group-large .ant-radio-button-wrapper { height: 32px; line-height: 30px; } .ant-radio-group-small .ant-radio-button-wrapper { height: 22px; line-height: 20px; padding: 0 12px; } .ant-radio-group-small .ant-radio-button-wrapper:first-child { border-radius: 4px 0 0 4px; } .ant-radio-group-small .ant-radio-button-wrapper:last-child { border-radius: 0 4px 4px 0; } .ant-radio-button-wrapper:first-child { border-radius: 4px 0 0 4px; border-left: 1px solid #bbbbbb; } .ant-radio-button-wrapper:last-child { border-radius: 0 4px 4px 0; } .ant-radio-button-wrapper:first-child:last-child { border-radius: 4px; } .ant-radio-button-wrapper:hover, .ant-radio-button-wrapper-focused { color: #4990e2; position: relative; } .ant-radio-button-wrapper .ant-radio-inner, .ant-radio-button-wrapper input { opacity: 0; filter: alpha(opacity=0); width: 0; height: 0; } .ant-radio-button-wrapper-checked { background: #fff; border-color: #4990e2; color: #4990e2; box-shadow: -1px 0 0 0 #4990e2; } .ant-radio-button-wrapper-checked:first-child { border-color: #4990e2; box-shadow: none!important; } .ant-radio-button-wrapper-checked:hover { border-color: #6da6e8; box-shadow: -1px 0 0 0 #6da6e8; color: #6da6e8; } .ant-radio-button-wrapper-checked:active { border-color: #4589d7; box-shadow: -1px 0 0 0 #4589d7; color: #4589d7; } .ant-radio-button-wrapper-disabled { border-color: #bbbbbb; background-color: #f7f7f7; cursor: not-allowed; color: #ccc; } .ant-radio-button-wrapper-disabled:first-child, .ant-radio-button-wrapper-disabled:hover { border-color: #bbbbbb; background-color: #f7f7f7; color: #ccc; } .ant-radio-button-wrapper-disabled:first-child { border-left-color: #bbbbbb; } .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked { color: #fff; background-color: #e6e6e6; border-color: #bbbbbb; }