// 文字超出几行隐藏,最多5行 // 使用超出1行隐藏,如果使用了flex,则需要给父元素设置min-width: 0; @for $i from 1 through 5 { .line-#{$i} { @if $i == 1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } @else { display: -webkit-box !important; overflow: hidden; text-overflow: ellipsis; word-break: break-all; -webkit-line-clamp: $i; -webkit-box-orient: vertical !important; } } } // 生成1-50的margin和padding(正负) @for $i from 1 through 50 { .m-#{$i} { margin: #{$i}px; } .mt-#{$i} { margin-top: #{$i}px; } .mr-#{$i} { margin-right: #{$i}px; } .mb-#{$i} { margin-bottom: #{$i}px; } .ml-#{$i} { margin-left: #{$i}px; } .mtb-#{$i} { margin-top: #{$i}px; margin-bottom: #{$i}px; } .mlr-#{$i} { margin-left: #{$i}px; margin-right: #{$i}px; } .p-#{$i} { padding: #{$i}px; } .pt-#{$i} { padding-top: #{$i}px; } .pr-#{$i} { padding-right: #{$i}px; } .pb-#{$i} { padding-bottom: #{$i}px; } .pl-#{$i} { padding-left: #{$i}px; } .ptb-#{$i} { padding-top: #{$i}px; padding-bottom: #{$i}px; } .plr-#{$i} { padding-left: #{$i}px; padding-right: #{$i}px; } .m--#{$i} { margin: -#{$i}px; } .mt--#{$i} { margin-top: -#{$i}px; } .mr--#{$i} { margin-right: -#{$i}px; } .mb--#{$i} { margin-bottom: -#{$i}px; } .ml--#{$i} { margin-left: -#{$i}px; } .mtb--#{$i} { margin-top: -#{$i}px; margin-bottom: -#{$i}px; } .mlr--#{$i} { margin-left: -#{$i}px; margin-right: -#{$i}px; } .p--#{$i} { padding: -#{$i}px; } .pt--#{$i} { padding-top: -#{$i}px; } .pr--#{$i} { padding-right: -#{$i}px; } .pb--#{$i} { padding-bottom: -#{$i}px; } .pl--#{$i} { padding-left: -#{$i}px; } .ptb--#{$i} { padding-top: -#{$i}px; padding-bottom: -#{$i}px; } .plr--#{$i} { padding-left: -#{$i}px; padding-right: -#{$i}px; } } * { box-sizing: border-box; &:not(dd,dl,dt) { margin: 0; padding: 0; } } h1, h2, h3, h4, h5, h6 { font-size: revert; } .layout-container { background-color: #030f2f; min-height: 100vh; background-image: url("/src/assets/images/public/bg.jpg"); background-repeat: no-repeat; } a { text-decoration: none; color: var(--el-color-primary); } .end { .el-form-item__content { justify-content: end; } } .tc { text-align: center; } .tr { text-align: right; } .tl { text-align: left; } .dn { display: none; } .text-blue { color: #3b3bff; } .text-yellow { color: #bebe05; } .text-orange { color: #de9004; } .text-red { color: #ff0000; } .text-green { color: #0bb20c; } .print_use { display: none; } img.ml-10:first-child { margin-left: 0; } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-transition-delay: 99999s; -webkit-transition: color 99999s ease-out, background-color 99999s ease-out; } div::-webkit-scrollbar { width: 4px; } div::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); opacity: 0.2; background-color: var(--el-border-color); } div::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 0; background-color: var(--el-border-color); } .viewer-zoom-in, .viewer-zoom-out, .viewer-one-to-one, .viewer-reset, .viewer-prev, .viewer-play, .viewer-next, .viewer-rotate-left, .viewer-rotate-right, .viewer-flip-horizontal, .viewer-flip-vertical, .viewer-fullscreen, .viewer-fullscreen-exit, .viewer-close { &::before { font-size: unset !important; } } .w-e-bar { --w-e-toolbar-bg-color: var(--el-fill-color-blank) !important; border: 1px solid var(--el-border-color); border-bottom: none; --w-e-toolbar-border-color: var(--el-border-color); --w-e-toolbar-color: var(--el-text-color-regular) !important; --w-e-toolbar-disabled-color: var(--el-text-color-regular) !important; --w-e-toolbar-active-bg-color: var(--el-fill-color-light); --w-e-toolbar-active-color: var(--el-color-check); .w-e-menu-tooltip-v5:before { color: var(--el-text-color-regular) !important; } .w-e-select-list ul { li:hover, .selected { background-color: var(--el-fill-color-light); color: var(--el-color-check); } } } .w-e-text-container { --w-e-textarea-bg-color: var(--el-fill-color-blank) !important; border: 1px solid var(--el-border-color); --w-e-textarea-color: var(--el-text-color-regular) !important; } .w-e-bar-divider { display: none !important; } .w-e-toolbar { border-bottom: 1px dashed var(--el-border-color-darker); } .vue-auth-box_ { background: #020f3a !important; border: 1px solid #223765 !important; } .vue-puzzle-vcode { background-color: #0000008d !important; } .vue-auth-box_ .auth-control_ .range-box { background-color: #04205f !important; box-shadow: none !important; } .vue-auth-box_ .auth-control_ .range-box .range-slider .range-btn { background: #3266cb !important; box-shadow: none !important; } // 打印时去掉页眉页脚 @page { size: auto; margin: 3mm; } .page_break { page-break-after: always; } @media print { .el-descriptions__label.el-descriptions__cell.is-bordered-label { color: #000 !important; } .el-descriptions { --el-text-color-primary: #000 !important; } .el-divider__text { --el-text-color-regular: #000 !important; } .print_use { border-collapse: collapse; width: 100%; display: table; font-size: 12px; td, th { border: 1px solid var(--el-border-color); padding: 8px; line-height: 1.6; text-align: center; } } .print_no_use { display: none; } }