automated_uniapp/uni_modules/cool-ui/static/css/grid.scss

50 lines
627 B
SCSS
Raw Normal View History

2025-01-09 16:16:11 +08:00
.cl-grid {
box-sizing: border-box;
&::after,
&::before {
content: "";
display: table;
}
&::after {
clear: both;
}
&-item {
float: left;
box-sizing: border-box;
position: relative;
}
.is-border {
border: 2rpx solid $cl-color-default;
border-bottom: 0;
border-right: 0;
.cl-grid-item {
&::before,
&::after {
content: "";
position: absolute;
display: block;
background-color: $cl-color-default;
}
&::before {
bottom: 0;
left: 0;
height: 2rpx;
width: 100%;
}
&::after {
right: 0;
top: 0;
height: 100%;
width: 2rpx;
}
}
}
}