270 lines
4.1 KiB
SCSS
270 lines
4.1 KiB
SCSS
// 文字超出几行隐藏,最多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;
|
||
font-size: 14px;
|
||
|
||
&:not(dd,dl,dt,h1, h2, h3, h4, h5, h6) {
|
||
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;
|
||
}
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
.table {
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
|
||
td,
|
||
th {
|
||
border: 1px solid #eaeaea;
|
||
padding: 8px;
|
||
line-height: 1.6;
|
||
text-align: center;
|
||
}
|
||
|
||
.title {
|
||
background-color: #f9f9f9;
|
||
}
|
||
}
|
||
|
||
img.ml-10 {
|
||
&:first-child {
|
||
margin-left: 0;
|
||
}
|
||
}
|
||
|
||
.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 {
|
||
border: 1px solid var(--el-border-color);
|
||
border-bottom: none;
|
||
}
|
||
|
||
.w-e-text-container {
|
||
border: 1px solid var(--el-border-color);
|
||
}
|
||
|
||
.w-e-bar-divider {
|
||
display: none !important;
|
||
}
|
||
|
||
// 打印时去掉页眉页脚
|
||
@page {
|
||
size: auto;
|
||
margin: 3mm;
|
||
}
|
||
|
||
@media print {
|
||
|
||
.print_use {
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
display: table;
|
||
|
||
td, th {
|
||
border: 1px solid #eaeaea;
|
||
padding: 8px;
|
||
line-height: 1.6;
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
.print_no_use {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.iframe {
|
||
position: relative;
|
||
border: none;
|
||
}
|