Files
pqs-9100_client/frontend/src/styles/common.scss

138 lines
2.5 KiB
SCSS
Raw Normal View History

2024-12-06 09:18:13 +08:00
2024-08-22 11:27:06 +08:00
/* flex */
.flx-center {
display: flex;
align-items: center;
justify-content: center;
}
2024-10-22 14:47:25 +08:00
.flx-flex-start {
display: flex;
align-items: center;
justify-content: flex-start;
}
2024-08-22 11:27:06 +08:00
.flx-justify-between {
display: flex;
align-items: center;
justify-content: space-between;
}
.flx-align-center {
display: flex;
align-items: center;
}
/* clearfix */
.clearfix::after {
display: block;
height: 0;
overflow: hidden;
clear: both;
content: "";
}
/* 文字单行省略号 */
.sle {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 文字多行省略号 */
.mle {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
/* 文字多了自动換行 */
.break-word {
word-break: break-all;
word-wrap: break-word;
}
/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
transition: all 0.2s;
}
.fade-transform-enter-from {
opacity: 0;
transition: all 0.2s;
transform: translateX(-30px);
}
.fade-transform-leave-to {
opacity: 0;
transition: all 0.2s;
transform: translateX(30px);
}
/* breadcrumb-transform */
.breadcrumb-enter-active {
transition: all 0.2s;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
opacity: 0;
transform: translateX(10px);
}
/* scroll bar */
::-webkit-scrollbar {
2024-12-05 18:14:43 +08:00
width: 8px;
height: 8px;
2024-08-28 15:39:08 +08:00
// background-color: var(--el-color-primary);
2024-08-22 11:27:06 +08:00
}
/* 滚动条实际可拖动部分的颜色 */
2024-08-22 11:27:06 +08:00
::-webkit-scrollbar-thumb {
2024-08-28 15:39:08 +08:00
width: 8px;
height: 100px;
background-color: var(--el-border-color-darker) !important;
// background-color: var(--el-color-primary);
2024-08-22 11:27:06 +08:00
border-radius: 20px;
2024-08-28 15:39:08 +08:00
background-color: var(--el-color-primary) !important;
cursor: pointer;
2024-08-22 11:27:06 +08:00
}
/* nprogress */
#nprogress .bar {
background: var(--el-color-primary) !important;
}
#nprogress .spinner-icon {
border-top-color: var(--el-color-primary) !important;
border-left-color: var(--el-color-primary) !important;
}
#nprogress .peg {
box-shadow:
0 0 10px var(--el-color-primary),
0 0 5px var(--el-color-primary) !important;
}
/* 外边距、内边距全局样式 */
@for $i from 0 through 100 {
.mt#{$i} {
margin-top: #{$i}px !important;
}
.mr#{$i} {
margin-right: #{$i}px !important;
}
.mb#{$i} {
margin-bottom: #{$i}px !important;
}
.ml#{$i} {
margin-left: #{$i}px !important;
}
.pt#{$i} {
padding-top: #{$i}px !important;
}
.pr#{$i} {
padding-right: #{$i}px !important;
}
.pb#{$i} {
padding-bottom: #{$i}px !important;
}
.pl#{$i} {
padding-left: #{$i}px !important;
}
}