]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * @class Ext.field.Field\r | |
3 | */\r | |
4 | \r | |
5 | // Private variables\r | |
6 | $form-clear-size: 2.2em;\r | |
7 | \r | |
8 | .x-field {\r | |
9 | padding: $form-spacing * 2;\r | |
10 | min-height: $form-field-height;\r | |
11 | \r | |
12 | &:last-child {\r | |
13 | border-bottom: 0;\r | |
14 | }\r | |
15 | }\r | |
16 | \r | |
17 | .x-field-text,\r | |
18 | .x-field-textarea,\r | |
19 | .x-field-search,\r | |
20 | .x-field-select,\r | |
21 | .x-field-number {\r | |
22 | .x-component-outer {\r | |
23 | border-bottom: 1px solid $foreground-color;\r | |
24 | \r | |
25 | &:before,\r | |
26 | &:after {\r | |
27 | content: '';\r | |
28 | position: absolute;\r | |
29 | left: 0;\r | |
30 | right: 0;\r | |
31 | bottom: 0;\r | |
32 | height: 4px;\r | |
33 | background: $foreground-color;\r | |
34 | }\r | |
35 | \r | |
36 | &:after {\r | |
37 | left: 1px;\r | |
38 | right: 1px;\r | |
39 | background: $background-color;\r | |
40 | }\r | |
41 | }\r | |
42 | \r | |
43 | &.x-field-focused {\r | |
44 | .x-component-outer {\r | |
45 | border-bottom-color: $base-color;\r | |
46 | \r | |
47 | &:before {\r | |
48 | background: $base-color;\r | |
49 | }\r | |
50 | \r | |
51 | &:after {\r | |
52 | left: 2px;\r | |
53 | right: 2px;\r | |
54 | bottom: 1px;\r | |
55 | }\r | |
56 | }\r | |
57 | }\r | |
58 | }\r | |
59 | \r | |
60 | .x-field-search .x-component-outer .x-field-input {\r | |
61 | padding-left: 14px;\r | |
62 | \r | |
63 | &::before {\r | |
64 | position: absolute;\r | |
65 | content: 's';\r | |
66 | top: 0;\r | |
67 | bottom: 0;\r | |
68 | left: 0;\r | |
69 | color: $secondary-text-color;\r | |
70 | text-align: left;\r | |
71 | // TODO: Use FontAwesome\r | |
72 | font-family: 'Pictos';\r | |
73 | font-size: 22px;\r | |
74 | line-height: 44px;\r | |
75 | padding-left: 7px;\r | |
76 | }\r | |
77 | }\r | |
78 | \r | |
79 | .x-field-input {\r | |
80 | .x-clear-icon {\r | |
81 | width: 20px;\r | |
82 | height: 20px;\r | |
83 | top: 50%;\r | |
84 | margin-right: 7px;\r | |
85 | margin-top: -10px;\r | |
86 | background: transparent;\r | |
87 | \r | |
88 | &::before {\r | |
89 | position: absolute;\r | |
90 | content: 'D';\r | |
91 | top: 0;\r | |
92 | right: 0;\r | |
93 | bottom: 0;\r | |
94 | left: 0;\r | |
95 | color: $secondary-text-color;\r | |
96 | // TODO: Use FontAwesome\r | |
97 | font-family: 'Pictos';\r | |
98 | font-size: 22px;\r | |
99 | }\r | |
100 | }\r | |
101 | }\r | |
102 | \r | |
103 | .x-input-el {\r | |
104 | font-size: 16px;\r | |
105 | background: transparent;\r | |
106 | padding: .4em;\r | |
107 | min-height: $form-field-height;\r | |
108 | border-width: 0;\r | |
109 | -webkit-appearance: none;\r | |
110 | color: $primary-text-color;\r | |
111 | -webkit-text-fill-color: $primary-text-color !important;\r | |
112 | }\r | |
113 | \r | |
114 | \r | |
115 | .x-field-search .x-input-el {\r | |
116 | padding: .4em .4em .4em 1em;\r | |
117 | }\r | |
118 | \r | |
119 | .x-ie .x-input-el {\r | |
120 | background: transparent;\r | |
121 | }\r | |
122 | \r | |
123 | .x-item-disabled {\r | |
124 | .x-form-label,\r | |
125 | input,\r | |
126 | .x-input-el,\r | |
127 | .x-spinner-body,\r | |
128 | select,\r | |
129 | textarea,\r | |
130 | .x-field-clear-container {\r | |
131 | color: #b3b3b3;\r | |
132 | -webkit-text-fill-color: #b3b3b3 !important;\r | |
133 | pointer-events: none;\r | |
134 | }\r | |
135 | }\r | |
136 | \r | |
137 | .x-item-disabled ::-webkit-input-placeholder {\r | |
138 | color: $foreground-color;\r | |
139 | }\r | |
140 | \r | |
141 | .x-item-disabled .x-form-label {\r | |
142 | color: #aaa;\r | |
143 | }\r | |
144 | \r | |
145 | .x-item-disabled .x-form-label:after {\r | |
146 | color: #666 !important;\r | |
147 | }\r | |
148 | \r | |
149 | .x-field-text,\r | |
150 | .x-field-textarea,\r | |
151 | .x-field-search,\r | |
152 | .x-field-select,\r | |
153 | .x-field-number {\r | |
154 | &.x-item-disabled {\r | |
155 | .x-component-outer {\r | |
156 | border-bottom-color: $secondary-color;\r | |
157 | \r | |
158 | &:before {\r | |
159 | background: $secondary-color;\r | |
160 | }\r | |
161 | }\r | |
162 | }\r | |
163 | }\r | |
164 | \r | |
165 | .x-toolbar {\r | |
166 | .x-field {\r | |
167 | padding: 5px;\r | |
168 | }\r | |
169 | }\r | |
170 | \r | |
171 | .x-field-select {\r | |
172 | .x-component-outer .x-field-input {\r | |
173 | overflow: hidden;\r | |
174 | \r | |
175 | &::before {\r | |
176 | z-index: 5;\r | |
177 | content: '';\r | |
178 | position: absolute;\r | |
179 | right: -10px;\r | |
180 | bottom: -1px;\r | |
181 | width: 0;\r | |
182 | height: 0;\r | |
183 | border-left: 10px solid transparent;\r | |
184 | border-right: 10px solid transparent;\r | |
185 | border-bottom: 10px solid $foreground-color;\r | |
186 | }\r | |
187 | }\r | |
188 | \r | |
189 | &.x-item-disabled {\r | |
190 | .x-component-outer .x-field-input {\r | |
191 | &::before {\r | |
192 | border-bottom-color: $secondary-color;\r | |
193 | }\r | |
194 | }\r | |
195 | }\r | |
196 | } |