-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathindex.less
94 lines (81 loc) · 1.61 KB
/
index.less
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
@mentionsPrefixCls: rc-mentions;
.@{mentionsPrefixCls} {
display: inline-block;
position: relative;
white-space: pre-wrap;
// ================= Input Area =================
> textarea, &-measure {
font-size: inherit;
font-size-adjust: inherit;
font-style: inherit;
font-variant: inherit;
font-stretch: inherit;
font-weight: inherit;
font-family: inherit;
padding: 0;
margin: 0;
line-height: inherit;
vertical-align: top;
overflow: inherit;
word-break: inherit;
white-space: inherit;
word-wrap: break-word;
overflow-x: initial;
overflow-y: auto;
text-align: inherit;
letter-spacing: inherit;
white-space: inherit;
tab-size: inherit;
direction: inherit;
}
> textarea {
border: none;
width: 100%;
}
&-measure {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
// color: rgba(255, 0, 0, 0.3);
color: transparent;
z-index: -1;
}
// ================== Dropdown ==================
&-dropdown {
position: absolute;
&-menu {
list-style: none;
margin: 0;
padding: 0;
&-item {
cursor: pointer;
}
}
}
}
// Customize style
.@{mentionsPrefixCls} {
font-size: 20px;
border: 1px solid #999;
border-radius: 3px;
overflow: hidden;
&-dropdown {
border: 1px solid #999;
border-radius: 3px;
background: #FFF;
&-menu {
&-item {
padding: 4px 8px;
&-active {
background: #e6f7ff;
}
&-disabled {
opacity: 0.5;
}
}
}
}
}