2022-06-11 16:55:36 +08:00
|
|
|
|
html {
|
|
|
|
|
font-size: 4px; // * 1rem = 4px 方便unocss计算:在unocss中 1字体单位 = 0.25rem,相当于 1等份 = 1px
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html,
|
|
|
|
|
body {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
|
font-family: 'Encode Sans Condensed', sans-serif;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-14 18:05:47 +08:00
|
|
|
|
#app {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-11 16:55:36 +08:00
|
|
|
|
/* router view transition fade-slide */
|
|
|
|
|
.fade-slide-leave-active,
|
|
|
|
|
.fade-slide-enter-active {
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fade-slide-enter-from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateX(-30px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fade-slide-leave-to {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateX(30px);
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-28 19:37:23 +08:00
|
|
|
|
/* 自定义滚动条样式 */
|
2022-06-11 16:55:36 +08:00
|
|
|
|
/* 自定义滚动条样式 */
|
2022-07-21 17:47:11 +08:00
|
|
|
|
.cus-scroll {
|
2022-08-28 19:37:23 +08:00
|
|
|
|
overflow: auto;
|
2022-07-20 09:13:07 +08:00
|
|
|
|
&::-webkit-scrollbar {
|
2022-07-21 17:47:11 +08:00
|
|
|
|
width: 8px;
|
|
|
|
|
height: 8px;
|
2022-06-11 16:55:36 +08:00
|
|
|
|
}
|
2022-08-28 19:37:23 +08:00
|
|
|
|
}
|
|
|
|
|
.cus-scroll-x {
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cus-scroll-y {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 8px;
|
|
|
|
|
height: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cus-scroll,
|
|
|
|
|
.cus-scroll-x,
|
|
|
|
|
.cus-scroll-y {
|
2022-07-20 09:13:07 +08:00
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2022-06-11 16:55:36 +08:00
|
|
|
|
background-color: transparent;
|
2022-08-28 19:37:23 +08:00
|
|
|
|
border-radius: 4px;
|
2022-06-11 16:55:36 +08:00
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
background: #bfbfbf;
|
|
|
|
|
}
|
2022-07-20 09:13:07 +08:00
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
2022-08-28 19:37:23 +08:00
|
|
|
|
background: var(--primary-color);
|
2022-06-11 16:55:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|