// 文字超出几行隐藏,最多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; } } } * { box-sizing: border-box; font-size: 14px; &:not(dd,dl,dt) { margin: 0; padding: 0; } } h1, h2, h3, h4, h5, h6 { font-size: revert; } 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; } #app { background-color: #f6f8f9; min-height: 100vh; } a { text-decoration: none; color: var(--el-color-primary); } .end { .el-form-item__content { justify-content: end; } } .p0.el-descriptions__content { padding: 0 !important; } .p0 .el-descriptions tr { .el-descriptions__label { border-left: none !important; } .el-descriptions__content { border-right: none !important; } &:first-child .el-descriptions__cell { border-top: none !important; } &:last-child .el-descriptions__cell { border-bottom: none !important; } } .p20 { padding: 20px; } .mt { margin-top: 16px; } .ml { margin-left: 10px; } .mr { margin-right: 10px; } .mb { margin-bottom: 10px; } .text-blue { color: #0000ff; } .text-yellow { color: #bebe05; } .text-orange { color: #de9004; } .text-red { color: #ff0000; } .text-green { color: #0bb20c; } .tc { text-align: center; } .tr { text-align: right; } .tl { text-align: left; } .dn { display: none; } //.print_use { // display: none; //} .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; } } .vue-pdf__wrapper-annotation-layer { height: 0 !important; } .w-e-bar-divider { display: none !important; } // 打印时去掉页眉页脚 @page { size: auto; margin: 3mm; } @media print { @page { size: auto; } body, html { //如果vue最外层id,默认是#app。如果设置了height:100%;,那么#app也加 height: auto !important; } .print_use { border-collapse: collapse; width: 100%; display: table; td, th { border: 1px solid #eaeaea; padding: 8px; line-height: 1.6; text-align: center; color: #000 !important; } tr { color: #000 !important; } } .print_no_use { display: none; } } .my_primary{ width: calc(100vw - 252px); background: #ffffff; padding: 10px; position: fixed; left: 231px; bottom: 0; box-shadow: 0 0 10px #cccccc; } .my_main{ padding-bottom: 50px; }