初始化
This commit is contained in:
114
src/assets/css/style.css
Normal file
114
src/assets/css/style.css
Normal file
@@ -0,0 +1,114 @@
|
||||
body,
|
||||
html,
|
||||
div,
|
||||
ul,
|
||||
li,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
font-family: 'Medium';
|
||||
}
|
||||
@keyframes loading {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@keyframes opacity-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes z-index-10to-1 {
|
||||
0% {
|
||||
z-index: 10;
|
||||
}
|
||||
100% {
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
.flex-center {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.flex-1 {
|
||||
flex: 1;
|
||||
}
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
.align-center {
|
||||
align-items: center;
|
||||
}
|
||||
.space-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
.el-overlay {
|
||||
--el-color-primary: #ff7a51;
|
||||
--el-color-primary-light-3: #ffa785;
|
||||
--el-color-primary-light-5: #ffc2aa;
|
||||
--el-color-primary-light-7: #ffddcf;
|
||||
--el-color-primary-light-8: #ffe8df;
|
||||
--el-color-primary-light-9: #fff2ec;
|
||||
--el-color-primary-dark-2: #cc6241;
|
||||
}
|
||||
.el-select,
|
||||
.el-popper {
|
||||
--el-color-primary: #6c6c6c;
|
||||
/* 主灰色 */
|
||||
--el-color-primary-light-3: #8a8a8a;
|
||||
/* 较浅的灰色(混合20%白) */
|
||||
--el-color-primary-light-5: #a8a8a8;
|
||||
/* 更浅的灰色(混合33%白) */
|
||||
--el-color-primary-light-7: #c6c6c6;
|
||||
/* 浅灰色(混合47%白) */
|
||||
--el-color-primary-light-8: #d4d4d4;
|
||||
/* 很浅的灰色(混合53%白) */
|
||||
--el-color-primary-light-9: #e3e3e3;
|
||||
/* 极浅的灰色(混合60%白) */
|
||||
--el-color-primary-dark-2: #565656;
|
||||
/* 深灰色(加深20%) */
|
||||
}
|
||||
.mini-scrollbar::-webkit-scrollbar {
|
||||
width: 0.4rem;
|
||||
}
|
||||
.mini-scrollbar::-webkit-scrollbar-thumb {
|
||||
border-radius: 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.mosaic-bg {
|
||||
--mosaic-bg-size: 1rem;
|
||||
--mosaic-bg-color1: #efefef;
|
||||
--mosaic-bg-color2: #fff;
|
||||
background-image: repeating-conic-gradient(var(--mosaic-bg-color1) 0% 25%, var(--mosaic-bg-color2) 0% 50%);
|
||||
background-repeat: repeat;
|
||||
background-position: 50% 50%;
|
||||
background-size: var(--mosaic-bg-size) var(--mosaic-bg-size);
|
||||
}
|
||||
129
src/assets/css/style.less
Normal file
129
src/assets/css/style.less
Normal file
@@ -0,0 +1,129 @@
|
||||
body,
|
||||
html,
|
||||
div,
|
||||
ul,
|
||||
li,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
font-family: 'Medium';
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes opacity-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes z-index-10to-1 {
|
||||
0% {
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
100% {
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-1 {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.space-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.el-overlay {
|
||||
--el-color-primary: #ff7a51; // 主橙红色
|
||||
--el-color-primary-light-3: #ffa785; // 较浅的橙红(混合20%白)
|
||||
--el-color-primary-light-5: #ffc2aa; // 更浅的橙红(混合33%白)
|
||||
--el-color-primary-light-7: #ffddcf; // 浅橙红(混合47%白)
|
||||
--el-color-primary-light-8: #ffe8df; // 很浅的橙红(混合53%白)
|
||||
--el-color-primary-light-9: #fff2ec; // 极浅的橙红(混合60%白)
|
||||
--el-color-primary-dark-2: #cc6241; // 深橙红(加深20%)
|
||||
}
|
||||
.el-select, .el-popper{
|
||||
--el-color-primary: #6c6c6c; /* 主灰色 */
|
||||
--el-color-primary-light-3: #8a8a8a; /* 较浅的灰色(混合20%白) */
|
||||
--el-color-primary-light-5: #a8a8a8; /* 更浅的灰色(混合33%白) */
|
||||
--el-color-primary-light-7: #c6c6c6; /* 浅灰色(混合47%白) */
|
||||
--el-color-primary-light-8: #d4d4d4; /* 很浅的灰色(混合53%白) */
|
||||
--el-color-primary-light-9: #e3e3e3; /* 极浅的灰色(混合60%白) */
|
||||
--el-color-primary-dark-2: #565656; /* 深灰色(加深20%) */
|
||||
}
|
||||
|
||||
|
||||
// 迷你滚动条
|
||||
.mini-scrollbar {
|
||||
&::-webkit-scrollbar {
|
||||
width: 0.4rem;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
border-radius: 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.mosaic-bg{
|
||||
--mosaic-bg-size: 1rem;
|
||||
--mosaic-bg-color1: #efefef;
|
||||
--mosaic-bg-color2: #fff;
|
||||
background-image: repeating-conic-gradient(var(--mosaic-bg-color1) 0% 25%, var(--mosaic-bg-color2) 0% 50%);
|
||||
background-repeat: repeat;
|
||||
background-position: 50% 50%;
|
||||
background-size: var(--mosaic-bg-size) var(--mosaic-bg-size);
|
||||
}
|
||||
5
src/assets/icons/cart_0.svg
Normal file
5
src/assets/icons/cart_0.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M22.0052 17.5L25.311 7.58337H7.42189L6.25522 4.08337H2.91797V5.25004H5.41405L9.29264 16.8864L6.68689 22.75H22.7513V21.5834H8.48239L10.2971 17.5H22.0052ZM23.6916 8.75004L21.1641 16.3334H10.3386L7.81097 8.75004H23.6916Z" fill="#232323"/>
|
||||
<path d="M11.6667 25.6666C12.311 25.6666 12.8333 25.1443 12.8333 24.5C12.8333 23.8556 12.311 23.3333 11.6667 23.3333C11.0223 23.3333 10.5 23.8556 10.5 24.5C10.5 25.1443 11.0223 25.6666 11.6667 25.6666Z" fill="#232323"/>
|
||||
<path d="M18.6667 25.6666C19.311 25.6666 19.8333 25.1443 19.8333 24.5C19.8333 23.8556 19.311 23.3333 18.6667 23.3333C18.0223 23.3333 17.5 23.8556 17.5 24.5C17.5 25.1443 18.0223 25.6666 18.6667 25.6666Z" fill="#232323"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 788 B |
5
src/assets/icons/cart_1.svg
Normal file
5
src/assets/icons/cart_1.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M22.0052 17.5002L25.311 7.5835H7.42189L6.25522 4.0835H2.91797V5.25016H5.41405L9.29264 16.8865L6.68689 22.7502H22.7513V21.5835H8.48239L10.2971 17.5002H22.0052Z" fill="#232323"/>
|
||||
<path d="M11.6667 25.6668C12.311 25.6668 12.8333 25.1445 12.8333 24.5002C12.8333 23.8558 12.311 23.3335 11.6667 23.3335C11.0223 23.3335 10.5 23.8558 10.5 24.5002C10.5 25.1445 11.0223 25.6668 11.6667 25.6668Z" fill="#232323"/>
|
||||
<path d="M18.6667 25.6668C19.311 25.6668 19.8333 25.1445 19.8333 24.5002C19.8333 23.8558 19.311 23.3335 18.6667 23.3335C18.0223 23.3335 17.5 23.8558 17.5 24.5002C17.5 25.1445 18.0223 25.6668 18.6667 25.6668Z" fill="#232323"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 741 B |
4
src/assets/icons/user_0.svg
Normal file
4
src/assets/icons/user_0.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M19.8333 23.3334H8.16667C7.52233 23.3334 7 22.811 7 22.1667V17.1444C7 16.7198 7.23155 16.3319 7.62754 16.1786C8.60644 15.7996 10.7306 15.1667 14 15.1667C17.2694 15.1667 19.3936 15.7996 20.3725 16.1786C20.7684 16.3319 21 16.7198 21 17.1444V22.1667C21 22.811 20.4777 23.3334 19.8333 23.3334Z" stroke="#232323" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="13.9987" cy="8.16667" r="4.08333" stroke="#232323" stroke-width="1.16667"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 580 B |
4
src/assets/icons/user_1.svg
Normal file
4
src/assets/icons/user_1.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M19.8333 23.3332H8.16667C7.52233 23.3332 7 22.8108 7 22.1665V17.1442C7 16.7196 7.23155 16.3317 7.62754 16.1784C8.60644 15.7994 10.7306 15.1665 14 15.1665C17.2694 15.1665 19.3936 15.7994 20.3725 16.1784C20.7684 16.3317 21 16.7196 21 17.1442V22.1665C21 22.8108 20.4777 23.3332 19.8333 23.3332Z" fill="#232323" stroke="#232323" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="13.9987" cy="8.16667" r="4.08333" fill="#232323" stroke="#232323" stroke-width="1.16667"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 612 B |
BIN
src/assets/images/logo.png
Normal file
BIN
src/assets/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user