Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/aphront/tokenizer.css
12241 views
1
/**
2
* @provides aphront-tokenizer-control-css
3
* @requires aphront-typeahead-control-css
4
* @requires phui-tag-view-css
5
*/
6
7
body div.jx-tokenizer {
8
background: transparent;
9
position: relative;
10
width: 100%;
11
overflow: hidden;
12
}
13
14
body div.jx-tokenizer-container {
15
position: relative;
16
display: block;
17
padding: 0 0 2px 0;
18
min-height: 30px;
19
height: auto;
20
}
21
22
var.jx-tokenizer-metrics {
23
position: absolute;
24
left: 20px;
25
top: 20px;
26
}
27
28
body input.jx-tokenizer-input {
29
border: 1px solid transparent;
30
border-width: 1px 0px;
31
padding: 3px;
32
outline: none;
33
float: left;
34
width: 100%;
35
border-shadow: none;
36
box-shadow: none;
37
-webkit-box-shadow: none;
38
font-size: {$normalfontsize};
39
color: #333;
40
height: 26px;
41
background: transparent;
42
}
43
44
body input.jx-tokenizer-input:focus {
45
box-shadow: none;
46
-webkit-box-shadow: none;
47
border-color: transparent;
48
}
49
50
body input.jx-typeahead-placeholder {
51
margin-left: 4px;
52
color: {$greytext};
53
}
54
55
a.jx-tokenizer-x {
56
margin-left: 4px;
57
color: {$bluetext};
58
float: right;
59
}
60
61
a.jx-tokenizer-x:hover {
62
color: {$darkbluetext};
63
text-decoration: none;
64
}
65
66
a.jx-tokenizer-token {
67
padding: 1px 6px;
68
border: 1px solid {$lightblueborder};
69
margin: 3px 2px 0 4px;
70
background-color: {$sh-bluebackground};
71
float: left;
72
cursor: pointer;
73
border-radius: 3px;
74
color: {$sh-bluetext};
75
76
/* See T13495. Certain Chinese glyphs can cause layout artifacts unless
77
we're fairly aggressive about specifying element sizing. */
78
79
line-height: 18px;
80
min-height: 20px;
81
max-height: 20px;
82
white-space: nowrap;
83
overflow: hidden;
84
text-overflow: ellipsis;
85
max-width: 95%;
86
}
87
88
a.jx-tokenizer-token:hover {
89
text-decoration: none;
90
border-color: {$sh-blueborder};
91
}
92
93
.jx-tokenizer-token .phui-icon-view {
94
display: inline-block;
95
margin: 2px 4px -3px 0;
96
color: {$sh-blueicon};
97
}
98
99
a.jx-tokenizer-token-function {
100
border-color: {$sh-lightgreyborder};
101
background: {$page.content};
102
}
103
104
a.jx-tokenizer-token-function:hover {
105
background: {$page.content};
106
}
107
108
a.jx-tokenizer-token-disabled {
109
background-color: {$sh-disabledbackground};
110
border-color: {$sh-lightdisabledborder};
111
color: {$sh-disabledtext};
112
}
113
114
a.jx-tokenizer-token-disabled:hover {
115
border-color: {$sh-disabledborder};
116
background-color: {$sh-disabledbackground};
117
}
118
119
.jx-tokenizer-token-disabled .phui-icon-view {
120
color: {$sh-disabledicon};
121
}
122
123
a.jx-tokenizer-token-invalid {
124
border-color: {$sh-lightredborder};
125
background: {$sh-redbackground};
126
color: {$sh-redtext};
127
}
128
129
a.jx-tokenizer-token-invalid:hover {
130
border-color: {$sh-redborder};
131
background: {$sh-redbackground};
132
}
133
134
.jx-tokenizer-token-invalid .phui-icon-view {
135
color: {$sh-redicon};
136
}
137
138
.tokenizer-result {
139
position: relative;
140
padding: 5px 8px 5px 28px;
141
}
142
143
.tokenizer-result .phui-icon-view {
144
display: inline-block;
145
width: 24px;
146
height: 24px;
147
position: absolute;
148
top: 5px;
149
left: 8px;
150
}
151
152
.tokenizer-result-closed {
153
color: {$greytext};
154
}
155
156
.tokenizer-closed {
157
margin-top: 2px;
158
}
159
160
.jx-tokenizer-frame .button.tokenizer-browse-button {
161
display: none;
162
}
163
164
.jx-tokenizer-frame.has-browse .button.tokenizer-browse-button {
165
display: block;
166
}
167
168
.jx-tokenizer-frame.has-browse {
169
position: relative;
170
}
171
172
.jx-tokenizer-frame.has-browse div.jx-tokenizer-container {
173
padding-right: 32px;
174
}
175
176
.button.tokenizer-browse-button {
177
position: absolute;
178
top: 1px;
179
right: 1px;
180
bottom: 1px;
181
border-radius: 0;
182
border-right: none;
183
border-top: none;
184
border-bottom: none;
185
padding: 0;
186
width: 30px;
187
border-top-right-radius: 3px;
188
border-bottom-right-radius: 3px;
189
}
190
191
.button.tokenizer-browse-button .phui-icon-view {
192
top: 7px;
193
left: 9px;
194
position: absolute;
195
}
196
197