Files
lilishop-ui/manager/src/views/home/home.scss
田香琪 a4659ed1a2 refactor: 统一组件导入方式与样式调整
- 将多个组件中的 require 替换为 import,提升代码一致性。
- 更新上传组件中的回调函数,简化图片选择逻辑。
- 调整样式以适配 Element Plus 组件,确保界面一致性。
- 删除不再使用的样式,优化项目结构。
2026-07-08 16:22:44 +08:00

260 lines
4.4 KiB
SCSS

.card {
margin: 10px 10px 20px;
padding: 0 20px 20px;
background: #fff;
border: 1px solid #e7e7e7;
border-radius: 0.4em;
}
h4 {
margin: 20px 0;
font-size: 18px;
}
.icon {
margin-left: 40px;
margin-right: 40px;
}
.count-item,
.todo-item,
.today-item {
height: 84px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 0.4em;
flex: 1;
font-weight: bold;
margin-right: 20px;
}
.todo-item {
flex-direction: column;
background: #ebebeb88;
.counts {
margin: 4px 0;
color: $theme_color;
}
> div {
margin: 4px 0;
}
}
.todo-item,
.count-item,
.today-item,
.charts,
.transform {
transition: 0.35s;
}
.todo-item:hover,
.count-item:hover,
.today-item:hover,
.charts:hover,
.transform:hover {
cursor: pointer;
transform: translateY(-10px);
z-index: 99;
}
.count-item {
transition: 0.35s;
cursor: pointer;
color: #fff;
justify-content: flex-start;
> div:first-child {
margin-left: 40px;
margin-right: 20px;
flex-shrink: 0;
}
}
.count-item:nth-of-type(1) {
background-image: linear-gradient(109.6deg, rgba($color: #ff7171, $alpha: 0.6) 11.2%, #ff7171 100.2%);
box-shadow: 1px 3px 12px rgba($color: #ff7171, $alpha: 0.3);
}
.count-item:nth-of-type(2) {
background-image: linear-gradient(109.6deg, rgba($color: #ffaa71, $alpha: 0.6) 11.2%, #ffaa71 100.2%);
box-shadow: 1px 3px 12px rgba($color: #ffaa71, $alpha: 0.3);
}
.count-item:nth-of-type(3) {
background-image: linear-gradient(109.6deg, rgba($color: #93b5e1, $alpha: 0.6) 11.2%, #93b5e1 100.2%);
box-shadow: 1px 3px 12px rgba($color: #93b5e1, $alpha: 0.3);
}
.count-item:nth-of-type(4) {
background-image: linear-gradient(109.6deg, rgba($color: #848ccf, $alpha: 0.6) 11.2%, #848ccf 100.2%);
box-shadow: 1px 3px 12px rgba($color: #848ccf, $alpha: 0.3);
}
.counts {
line-height: 1;
font-size: 21px;
}
.flow-box-item {
> .counts {
color: #ffaa71;
}
}
.flow-list {
min-height: 330px;
align-items: stretch;
flex-wrap: wrap;
gap: 20px;
}
.svg {
width: 20px;
height: 20px;
}
.flow-item {
display: flex;
flex: 1 1 620px;
min-width: 0;
}
.flow {
background: #ebebeb88 !important;
border: none;
padding: 0;
}
.flow-member {
width: 200px;
margin-right: 20px;
font-weight: bold;
background: #fff;
display: flex;
flex-direction: column;
align-items: center;
> div {
font-size: 18px;
margin-top: 20px;
}
> span {
color: #ffaa71;
font-size: 43px;
letter-spacing: 3px;
margin-top: 90px;
font-style: italic;
}
}
.flow-box {
padding: 37px;
width: 100%;
box-sizing: border-box;
justify-content: space-between;
margin: 10px 0 20px;
gap: 20px;
> .flow-box-item {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 15px;
> div {
margin: 4px 0;
}
}
}
.flow-splice {
width: 100%;
gap: 20px;
}
.flow-box-splice {
background: #fff;
flex: 1;
min-width: 0;
margin-right: 20px;
padding: 36px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
> div {
margin: 4px 0;
}
> .counts {
color: #ffaa71;
}
flex-direction: column;
}
.flow-box-splice:nth-last-of-type(1) {
margin-right: 0;
}
.flow-box-splice,
.flow-member,
.card,
.today-box,
.flow-wrapper {
box-shadow: 1px 3px 12px rgba($color: #e7e7e7, $alpha: 0.3);
border-radius: 0.4em;
box-shadow: 1px 3px 12px rgba($color: #e7e7e7, $alpha: 0.3);
}
.flow-wrapper {
background: #fff;
padding: 0 30px;
flex: 1;
min-width: 0;
}
.today-box {
flex: 1 1 380px;
min-width: 380px;
align-self: flex-start;
background: #fff;
padding: 0 30px 20px;
display: flex;
flex-direction: column;
box-sizing: border-box;
> h4 {
margin: 20px 0;
}
}
.today-item {
box-sizing: border-box;
flex: 1 1 calc(50% - 8px);
min-width: calc(50% - 8px);
margin-right: 0;
flex-direction: column;
justify-content: space-between;
background: #ebebeb88;
padding: 16px 20px;
> div {
word-break: break-word;
font-size: 14px;
line-height: 1.3;
}
> span {
color: $theme_color;
font-size: 21px;
margin-top: 8px;
word-break: break-all;
line-height: 1.2;
}
}
.charts {
margin: 10px 10px 20px;
padding: 20px 20px 20px;
background: #fff;
}
.chart-item {
width: 48%;
margin-right: 1%;
}
.today-list {
display: flex;
flex-wrap: wrap;
gap: 16px;
}