ant-table-ext
Version:
An extended table based on ant table
257 lines (256 loc) • 5.7 kB
CSS
.ant-radio-group {
display: inline-block;
font-size: 12px;
}
.ant-radio-wrapper {
font-size: 12px;
display: inline-block;
position: relative;
white-space: nowrap;
margin-right: 8px;
cursor: pointer;
}
.ant-radio {
white-space: nowrap;
outline: none;
display: inline-block;
position: relative;
line-height: 1;
vertical-align: text-bottom;
cursor: pointer;
}
.ant-radio-wrapper:hover .ant-radio .ant-radio-inner,
.ant-radio:hover .ant-radio-inner,
.ant-radio-focused .ant-radio-inner {
border-color: #108ee9;
}
.ant-radio-checked:after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
border: 1px solid #108ee9;
content: '';
-webkit-animation: antRadioEffect 0.36s ease-in-out;
animation: antRadioEffect 0.36s ease-in-out;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
visibility: hidden;
}
.ant-radio:hover:after,
.ant-radio-wrapper:hover .ant-radio:after {
visibility: visible;
}
.ant-radio-inner {
position: relative;
top: 0;
left: 0;
display: block;
width: 14px;
height: 14px;
border-width: 1px;
border-style: solid;
border-radius: 14px;
border-color: #d9d9d9;
background-color: #fff;
transition: all 0.3s;
}
.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: #108ee9;
opacity: 0;
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
transition: all 0.3s 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: #108ee9;
}
.ant-radio-checked .ant-radio-inner:after {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.ant-radio-disabled .ant-radio-inner {
border-color: #d9d9d9 ;
background-color: #f7f7f7;
}
.ant-radio-disabled .ant-radio-inner:after {
background-color: #ccc;
}
.ant-radio-disabled .ant-radio-input {
cursor: not-allowed;
}
.ant-radio-disabled + span {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}
span.ant-radio + * {
padding-left: 8px;
padding-right: 8px;
}
.ant-radio-button-wrapper {
margin: 0;
height: 28px;
line-height: 26px;
color: rgba(0, 0, 0, 0.65);
display: inline-block;
transition: all 0.3s ease;
cursor: pointer;
border: 1px solid #d9d9d9;
border-left: 0;
background: #fff;
padding: 0 16px;
position: relative;
}
.ant-radio-button-wrapper a {
color: rgba(0, 0, 0, 0.65);
}
.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: 2px 0 0 2px;
}
.ant-radio-group-small .ant-radio-button-wrapper:last-child {
border-radius: 0 2px 2px 0;
}
.ant-radio-button-wrapper:not(:first-child)::before {
content: "";
display: block;
top: 0;
left: -1px;
width: 1px;
height: 100%;
position: absolute;
background-color: #d9d9d9;
}
.ant-radio-button-wrapper:first-child {
border-radius: 4px 0 0 4px;
border-left: 1px solid #d9d9d9;
}
.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: #108ee9;
position: relative;
}
.ant-radio-button-wrapper .ant-radio-inner,
.ant-radio-button-wrapper input[type="checkbox"],
.ant-radio-button-wrapper input[type="radio"] {
opacity: 0;
filter: alpha(opacity=0);
width: 0;
height: 0;
}
.ant-radio-button-wrapper-checked {
background: #fff;
border-color: #108ee9;
color: #108ee9;
box-shadow: -1px 0 0 0 #108ee9;
z-index: 1;
}
.ant-radio-button-wrapper-checked::before {
background-color: #108ee9 ;
opacity: 0.1;
}
.ant-radio-button-wrapper-checked:first-child {
border-color: #108ee9;
box-shadow: none;
}
.ant-radio-button-wrapper-checked:hover {
border-color: #49a9ee;
box-shadow: -1px 0 0 0 #49a9ee;
color: #49a9ee;
}
.ant-radio-button-wrapper-checked:active {
border-color: #0e77ca;
box-shadow: -1px 0 0 0 #0e77ca;
color: #0e77ca;
}
.ant-radio-button-wrapper-disabled {
border-color: #d9d9d9;
background-color: #f7f7f7;
cursor: not-allowed;
color: rgba(0, 0, 0, 0.25);
}
.ant-radio-button-wrapper-disabled:first-child,
.ant-radio-button-wrapper-disabled:hover {
border-color: #d9d9d9;
background-color: #f7f7f7;
color: rgba(0, 0, 0, 0.25);
}
.ant-radio-button-wrapper-disabled:first-child {
border-left-color: #d9d9d9;
}
.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
color: #fff;
background-color: #e6e6e6;
border-color: #d9d9d9;
box-shadow: none;
}
@-webkit-keyframes antRadioEffect {
0% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0.5;
}
100% {
-webkit-transform: scale(1.6);
transform: scale(1.6);
opacity: 0;
}
}
@keyframes antRadioEffect {
0% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0.5;
}
100% {
-webkit-transform: scale(1.6);
transform: scale(1.6);
opacity: 0;
}
}