2021-02-06 23:36:46 +08:00
|
|
|
/* -- 全局样式 -- */
|
|
|
|
|
|
|
|
// 滚动条
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
2021-02-10 01:33:23 +08:00
|
|
|
width: .5rem;
|
|
|
|
height: .5rem;
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
border-radius: 1rem;
|
2021-05-03 00:48:54 +08:00
|
|
|
background-color: #DDD;
|
2021-02-06 23:36:46 +08:00
|
|
|
|
|
|
|
&:hover {
|
2021-05-03 00:48:54 +08:00
|
|
|
background-color: #BBB;
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 标签
|
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
html {
|
|
|
|
transition: font-size @transitionTime;
|
|
|
|
}
|
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
body {
|
2021-05-04 00:30:12 +08:00
|
|
|
color: #555;
|
2021-02-08 00:46:15 +08:00
|
|
|
overflow: hidden;
|
2021-05-04 00:30:12 +08:00
|
|
|
user-select: none;
|
2021-02-08 00:46:15 +08:00
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 限制长度
|
|
|
|
|
|
|
|
.limitLine(@line) {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: @line;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.limit-line-1 {
|
|
|
|
.limitLine(1);
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
|
2021-04-06 20:50:24 +08:00
|
|
|
.limit-line-3 {
|
|
|
|
.limitLine(3);
|
|
|
|
}
|
|
|
|
|
2021-02-10 01:33:23 +08:00
|
|
|
// 背景居中
|
|
|
|
|
|
|
|
.bgCenter() {
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bg-center-contain {
|
|
|
|
.bgCenter();
|
|
|
|
background-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bg-center-cover {
|
|
|
|
.bgCenter();
|
|
|
|
background-size: cover;
|
|
|
|
}
|
|
|
|
|
2021-02-06 23:36:46 +08:00
|
|
|
// 阴影
|
|
|
|
|
|
|
|
.shadow-1 {
|
2021-02-10 01:33:23 +08:00
|
|
|
box-shadow: 0 0 .5rem rgba(0, 0, 0, .1);
|
2021-02-06 23:36:46 +08:00
|
|
|
}
|
|
|
|
|
2021-02-08 00:46:15 +08:00
|
|
|
.shadow-2 {
|
2021-02-10 01:33:23 +08:00
|
|
|
box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.shadow-3 {
|
2021-05-03 00:48:54 +08:00
|
|
|
box-shadow: 0 .5rem 1rem -.4rem rgba(0, 0, 0, .12);
|
2021-02-08 00:46:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 载入中(链接列表)
|
2021-02-06 23:36:46 +08:00
|
|
|
|
|
|
|
.loading-link {
|
2021-02-10 01:33:23 +08:00
|
|
|
background-color: rgba(255, 255, 255, .5) !important;
|
|
|
|
backdrop-filter: blur(.2rem);
|
2021-02-06 23:36:46 +08:00
|
|
|
|
|
|
|
.el-icon-loading {
|
|
|
|
font-size: 2rem !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-loading-text {
|
|
|
|
font-size: 1.5rem !important;
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 00:46:15 +08:00
|
|
|
|
2021-05-04 00:30:12 +08:00
|
|
|
// Element UI
|
|
|
|
|
|
|
|
.el-drawer.drawer-full {
|
|
|
|
.el-drawer__header {
|
|
|
|
z-index: 500;
|
|
|
|
margin: 0 !important;
|
|
|
|
padding: 1rem 1.5rem !important;
|
|
|
|
background-color: @colorPrimary;
|
|
|
|
color: #FFF;
|
|
|
|
.shadow-3();
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-drawer__body {
|
|
|
|
padding: 2rem;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-input {
|
|
|
|
input::-webkit-inner-spin-button,
|
|
|
|
input::-webkit-outer-spin-button {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="number"] {
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 00:46:15 +08:00
|
|
|
|
|
|
|
.el-select-dropdown {
|
|
|
|
border: none !important;
|
2021-02-25 20:06:59 +08:00
|
|
|
}
|