数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
932 B

2 years ago
@use 'mixins/mixins' as *;
@use 'mixins/var' as *;
@use 'common/var' as *;
@include b(card) {
@include set-component-css-var('card', $card);
}
@include b(card) {
border-radius: getCssVar('card', 'border-radius');
border: 1px solid getCssVar('card', 'border-color');
background-color: getCssVar('card', 'bg-color');
overflow: hidden;
color: getCssVar('text-color', 'primary');
transition: getCssVar('transition-duration');
@include when(always-shadow) {
box-shadow: getCssVar('box-shadow', 'light');
}
@include when(hover-shadow) {
&:hover,
&:focus {
box-shadow: getCssVar('box-shadow', 'light');
}
}
@include e(header) {
padding: calc(#{getCssVar('card', 'padding')} - 2px)
getCssVar('card', 'padding');
border-bottom: 1px solid getCssVar('card', 'border-color');
box-sizing: border-box;
}
@include e(body) {
padding: getCssVar('card', 'padding');
}
}