_triggerfield.scss.html
6.69 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="text/css">
.highlight { display: block; background-color: #ddd; }
</style>
<script type="text/javascript">
function highlight() {
document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
}
</script>
</head>
<body onload="prettyPrint(); highlight();">
<pre class="prettyprint lang-js"><span id='Ext-form-field-Trigger-css_mixin-extjs-form-triggerfield'>/**
</span> * Creates the base structure of trigger field.
* @member Ext.form.field.Trigger
*/
@mixin extjs-form-triggerfield {
.#{$prefix}form-trigger-wrap {
vertical-align: top;
}
.#{$prefix}form-trigger {
background-image: theme-background-image($theme-name, 'form/trigger.gif');
background-position: 0 0;
width: $form-trigger-width;
height: $form-trigger-height - $form-trigger-border-bottom-width;
border-bottom: $form-trigger-border-bottom;
cursor: pointer;
cursor: hand;
overflow: hidden;
}
.#{$prefix}border-box .#{$prefix}form-trigger {
height: $form-trigger-height;
}
.#{$prefix}field-default-toolbar .#{$prefix}form-trigger {
height: $form-toolbar-trigger-height - $form-trigger-border-bottom-width;
}
.#{$prefix}border-box .#{$prefix}field-default-toolbar .#{$prefix}form-trigger {
height: $form-toolbar-trigger-height;
}
.#{$prefix}form-trigger-over {
background-position: -$form-trigger-width 0;
border-bottom-color: $form-trigger-border-bottom-color-over;
}
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-trigger {
background-position: -($form-trigger-width * 3) 0;
border-bottom-color: $form-trigger-border-bottom-color-focus;
}
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-trigger-over {
background-position: -($form-trigger-width * 4) 0;
@if $form-trigger-border-bottom-color-focus-over {
border-bottom-color: $form-trigger-border-bottom-color-focus-over;
}
}
.#{$prefix}form-trigger-click,
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-trigger-click {
background-position: -($form-trigger-width * 2) 0;
@if $form-trigger-border-bottom-color-pressed {
border-bottom-color: $form-trigger-border-bottom-color-pressed;
}
}
.#{$prefix}form-trigger-icon {
height: $form-trigger-width - $form-trigger-border-bottom-width;
background-repeat: no-repeat;
background-position: $form-trigger-icon-background-position;
}
.#{$prefix}pickerfield-open {
.#{$prefix}form-field {
@include border-bottom-radius(0);
}
}
.#{$prefix}pickerfield-open-above {
.#{$prefix}form-field {
@include border-bottom-left-radius(3px);
@include border-top-radius(0);
}
}
.#{$prefix}form-arrow-trigger {
.#{$prefix}form-trigger-icon {
background-image: theme-background-image($theme-name, 'boundlist/trigger-arrow.png');
}
}
.#{$prefix}form-date-trigger {
background-image: theme-background-image($theme-name, 'form/date-trigger.gif');
}
$spinner-btn-height: $form-trigger-height / 2;
.#{$prefix}form-trigger-wrap {
.#{$prefix}form-spinner-up,
.#{$prefix}form-spinner-down {
background-image: theme-background-image($theme-name, 'form/spinner.gif');
width: $form-trigger-width !important;
height: $spinner-btn-height !important;
font-size: 0; /*for IE*/
border-bottom: 0;
}
.#{$prefix}form-spinner-down {
background-position: 0 (-$spinner-btn-height);
}
}
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-spinner-down {
background-position: -($form-trigger-width * 3) (-$spinner-btn-height);
}
.#{$prefix}form-trigger-wrap .#{$prefix}form-spinner-down-over {
background-position: (-$form-trigger-width) (-$spinner-btn-height);
}
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-spinner-down-over {
background-position: -($form-trigger-width * 4) (-$spinner-btn-height);
}
.#{$prefix}form-trigger-wrap .#{$prefix}form-spinner-down-click {
background-position: -($form-trigger-width * 2) (-$spinner-btn-height);
}
.#{$prefix}field-default-toolbar {
$spinner-btn-height: $form-toolbar-trigger-height / 2;
.#{$prefix}form-trigger-wrap {
.#{$prefix}form-spinner-up,
.#{$prefix}form-spinner-down {
background-image: theme-background-image($theme-name, 'form/spinner-small.gif');
height: $spinner-btn-height !important;
}
.#{$prefix}form-spinner-down {
background-position: 0 (-$spinner-btn-height);
}
}
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-spinner-down {
background-position: -($form-trigger-width * 3) (-$spinner-btn-height);
}
.#{$prefix}form-trigger-wrap .#{$prefix}form-spinner-down-over {
background-position: (-$form-trigger-width) (-$spinner-btn-height);
}
.#{$prefix}form-trigger-wrap-focus .#{$prefix}form-spinner-down-over {
background-position: -($form-trigger-width * 4) (-$spinner-btn-height);
}
.#{$prefix}form-trigger-wrap .#{$prefix}form-spinner-down-click {
background-position: -($form-trigger-width * 2) (-$spinner-btn-height);
}
}
.#{$prefix}trigger-noedit {
cursor: pointer;
cursor: hand;
}
.#{$prefix}item-disabled {
.#{$prefix}trigger-noedit, .#{$prefix}form-trigger {
cursor: auto;
}
}
.#{$prefix}form-clear-trigger {
background-image: theme-background-image($theme-name, 'form/clear-trigger.gif');
}
.#{$prefix}form-search-trigger {
background-image: theme-background-image($theme-name, 'form/search-trigger.gif');
}
@if $include-ie {
// in IE6 quirks, the table cell enclosing the trigger field's input element does not shrink to fit,
// so it is necessary to set the height of the table cell.
.#{$prefix}quirks .#{prefix}ie6 {
.#{$prefix}form-trigger-input-cell {
height: $form-field-height;
}
.#{$prefix}field-default-toolbar .#{$prefix}form-trigger-input-cell {
height: $form-toolbar-field-height;
}
}
}
}
</pre>
</body>
</html>