rabbit-simple-ui
Version:
A simple UI component library based on JavaScript
60 lines (49 loc) • 1.21 kB
text/less
@import '../custom.less';
@import '../mixins/content.less';
@card-tag-name: r-card;
@card-prefix-cls: ~'@{css-prefix}card';
@{card-tag-name} {
display: block;
background: @white;
border: @border-width-base @border-style-base @border-color-split;
border-radius: @border-radius-base;
font-size: @font-size-base;
position: relative;
transition: all @transition-time @ease-in-out;
&:not(.@{card-prefix-cls}-shadow) {
&:hover {
box-shadow: @shadow-base;
border-color: #eee;
}
}
}
.@{card-prefix-cls} {
&-no-border {
border: none ;
}
&-shadow {
box-shadow: @shadow-card;
}
&-dis-hover {
&:hover {
box-shadow: none ;
border-color: @border-color-split ;
}
}
&-dis-hover&-bordered {
&:hover {
border-color: @border-color-split ;
}
}
&-head {
.content-header();
}
&-extra {
position: absolute;
right: 16px;
top: 14px;
}
&-body {
padding: @padding-md;
}
}