-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.scss
94 lines (93 loc) · 1.89 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
%TextWhiteSpace {
white-space: pre-wrap;
word-break: break-all;
}
.vxe-table-x-renderer {
.x-textarea--resize {
@extend %TextWhiteSpace;
position: absolute;
display: inline-block;
padding-left: 10px;
padding-right: 10px;
z-index: -1;
visibility: hidden;
}
.vxe-body--column {
&.col--actived {
& > .vxe-cell {
padding: 0;
}
}
&:not(.col--ellipsis) {
& > .vxe-cell {
& > .x-textarea--content {
@extend %TextWhiteSpace;
}
}
}
& > .vxe-cell {
& > .x-input--wrapper,
& > .x-textarea--wrapper {
width: 100%;
display: block;
position: relative;
.x-input,
.x-textarea {
position: absolute;
top: -1px;
left: -1px;
outline: 0;
padding-left: 10px;
padding-right: 10px;
border: 1px solid #409eff;
&:focus {
outline: 0;
}
}
}
& > .x-input--wrapper {
position: relative;
&.is--prefix {
.x-input {
padding-left: 30px;
}
}
&.is--suffix {
.x-input {
padding-right: 30px;
}
}
.x-input {
width: 100%;
height: 100%;
}
.x-input--prefix,
.x-input--suffix {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
&.is--trigger {
cursor: pointer;
&:hover {
color: #409eff;
}
}
}
.x-input--prefix {
left: 10px;
}
.x-input--suffix {
right: 10px;
}
}
& > .x-textarea--wrapper {
@extend %TextWhiteSpace;
.x-textarea {
overflow: hidden;
resize: none;
}
}
}
}
}