vue-ant-patterns
Version:
vue-ant-patterns
111 lines (104 loc) • 1.97 kB
text/less
@import '../../style/themes/index.less';
@import '../../style/mixins/flex.less';
.icon-button {
.flex;
.flex-center;
padding: 0 6px;
height: @btn-height-base;
// width: @btn-height-base;
border-radius: 3px;
font-size: 20px;
user-select: none;
background: none ;
border: none;
cursor: pointer;
line-height: 1;
&-lg,
&.ant-btn-lg {
height: @btn-height-lg;
font-size: 20px + 6px ;
padding: 0 7px ;
}
&-sm,
&.ant-btn-sm {
height: @btn-height-sm-md;
font-size: 20px - 6px ;
padding: 0 6px ;
}
&-xs,
&.ant-btn-xs {
height: @btn-height-sm;
font-size: 20px - 8px ;
padding: 0 6px ;
}
&-circle,
&.ant-btn-circle {
border-radius: 50%;
width: @btn-height-base;
}
&-lg&-circle {
width: @btn-height-lg;
}
&-sm&-circle {
width: @btn-height-sm;
}
.acme-icon,
.anticon {
line-height: 0;
}
.ant-badge {
font-size: 20px;
}
&:hover,
&:focus:hover {
background: rgba(0, 0, 0, 0.25);
.anticon,
.acme-icon {
// color: @text-color-blue-light !important;
color: @primary-5 ;
}
}
&:focus {
background: none;
}
&:active,
&:focus {
outline: 0;
}
&:active,
&.active {
// background: @primary-7;
color: @primary-7 ;
.anticon,
.acme-icon {
// color: @text-color-blue-light !important;
color: @primary-7 ;
}
}
&[disabled],
&.disabled {
&,
&:hover,
&:focus,
&:active,
&.active {
background: @btn-disable-bg;
color: @btn-disable-color;
text-shadow: none;
box-shadow: none;
.anticon,
.acme-icon {
// color: @text-color-blue-light !important;
color: @btn-disable-color ;
}
}
}
&.actived {
color: @link-color;
}
&.no-bg {
&:hover {
color: @primary-7;
}
}
}