1 | @import "../../themes/ionic.globals.wp";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | $searchbar-wp-padding: null !default;
|
8 |
|
9 |
|
10 | $searchbar-wp-padding-top: 8px !default;
|
11 |
|
12 |
|
13 | $searchbar-wp-padding-end: $searchbar-wp-padding-top !default;
|
14 |
|
15 |
|
16 | $searchbar-wp-padding-bottom: $searchbar-wp-padding-top !default;
|
17 |
|
18 |
|
19 | $searchbar-wp-padding-start: $searchbar-wp-padding-end !default;
|
20 |
|
21 |
|
22 | $searchbar-wp-background-color: transparent !default;
|
23 |
|
24 |
|
25 | $searchbar-wp-border-width: 2px !default;
|
26 |
|
27 |
|
28 | $searchbar-wp-border-color: $input-wp-border-color !default;
|
29 |
|
30 |
|
31 | $searchbar-wp-border-color-focused: color($colors-wp, primary) !default;
|
32 |
|
33 |
|
34 | $searchbar-wp-input-search-icon-color: #858585 !default;
|
35 |
|
36 |
|
37 | $searchbar-wp-input-search-icon-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='" + $searchbar-wp-input-search-icon-color + "' d='M337.509,305.372h-17.501l-6.571-5.486c20.791-25.232,33.922-57.054,33.922-93.257C347.358,127.632,283.896,64,205.135,64C127.452,64,64,127.632,64,206.629s63.452,142.628,142.225,142.628c35.011,0,67.831-13.167,92.991-34.008l6.561,5.487v17.551L415.18,448L448,415.086L337.509,305.372z M206.225,305.372c-54.702,0-98.463-43.887-98.463-98.743c0-54.858,43.761-98.742,98.463-98.742c54.7,0,98.462,43.884,98.462,98.742C304.687,261.485,260.925,305.372,206.225,305.372z'/></svg>" !default;
|
38 |
|
39 |
|
40 | $searchbar-wp-input-search-icon-size: 20px !default;
|
41 |
|
42 |
|
43 | $searchbar-wp-input-padding-vertical: 0 !default;
|
44 |
|
45 |
|
46 | $searchbar-wp-input-padding-horizontal: 8px !default;
|
47 |
|
48 |
|
49 | $searchbar-wp-input-height: auto !default;
|
50 |
|
51 |
|
52 | $searchbar-wp-input-line-height: 3rem !default;
|
53 |
|
54 |
|
55 | $searchbar-wp-input-placeholder-color: #858585 !default;
|
56 |
|
57 |
|
58 | $searchbar-wp-input-text-color: #141414 !default;
|
59 |
|
60 |
|
61 | $searchbar-wp-input-background-color: #fff !default;
|
62 |
|
63 |
|
64 | $searchbar-wp-input-border-radius: 0 !default;
|
65 |
|
66 |
|
67 | $searchbar-wp-input-font-size: 1.4rem !default;
|
68 |
|
69 |
|
70 | $searchbar-wp-input-font-weight: 400 !default;
|
71 |
|
72 |
|
73 | $searchbar-wp-input-clear-icon-color: #858585 !default;
|
74 |
|
75 |
|
76 | $searchbar-wp-input-clear-icon-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><polygon fill='" + $searchbar-wp-input-clear-icon-color + "' points='405,136.798 375.202,107 256,226.202 136.798,107 107,136.798 226.202,256 107,375.202 136.798,405 256,285.798 375.202,405 405,375.202 285.798,256'/></svg>" !default;
|
77 |
|
78 |
|
79 | $searchbar-wp-input-clear-icon-size: 22px !default;
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 | .searchbar-wp {
|
86 | background: $searchbar-wp-background-color;
|
87 |
|
88 | @include deprecated-variable(padding, $searchbar-wp-padding) {
|
89 | @include padding($searchbar-wp-padding-top, $searchbar-wp-padding-end, $searchbar-wp-padding-bottom, $searchbar-wp-padding-start);
|
90 | }
|
91 | }
|
92 |
|
93 | .searchbar-wp .searchbar-input-container {
|
94 | border: $searchbar-wp-border-width solid $searchbar-wp-border-color;
|
95 | }
|
96 |
|
97 |
|
98 |
|
99 |
|
100 | .searchbar-wp .searchbar-search-icon {
|
101 | @include position(5px, $searchbar-wp-input-padding-horizontal, null, null);
|
102 | @include svg-background-image($searchbar-wp-input-search-icon-svg, true);
|
103 |
|
104 | position: absolute;
|
105 |
|
106 | width: $searchbar-wp-input-search-icon-size + 1;
|
107 | height: $searchbar-wp-input-search-icon-size + 1;
|
108 |
|
109 | background-repeat: no-repeat;
|
110 | background-size: $searchbar-wp-input-search-icon-size;
|
111 | }
|
112 |
|
113 | .searchbar-wp .searchbar-search-icon.activated {
|
114 | background-color: transparent;
|
115 | }
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 | .searchbar-wp .searchbar-input {
|
122 | @include placeholder($searchbar-wp-input-placeholder-color);
|
123 | @include padding($searchbar-wp-input-padding-vertical, $searchbar-wp-input-padding-horizontal);
|
124 | @include border-radius($searchbar-wp-input-border-radius);
|
125 | @include background-position(start, $searchbar-wp-input-padding-horizontal, center);
|
126 |
|
127 | height: $searchbar-wp-input-height;
|
128 |
|
129 | font-size: $searchbar-wp-input-font-size;
|
130 | font-weight: $searchbar-wp-input-font-weight;
|
131 |
|
132 | line-height: $searchbar-wp-input-line-height;
|
133 | color: $searchbar-wp-input-text-color;
|
134 |
|
135 | background-color: $searchbar-wp-input-background-color;
|
136 | }
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 | .searchbar-wp .searchbar-clear-icon {
|
143 | @include position(0, $searchbar-wp-input-padding-horizontal, null, null);
|
144 | @include svg-background-image($searchbar-wp-input-clear-icon-svg);
|
145 | @include padding(0);
|
146 | @include background-position(center);
|
147 |
|
148 | position: absolute;
|
149 |
|
150 | width: $searchbar-wp-input-clear-icon-size;
|
151 | height: 100%;
|
152 |
|
153 | background-repeat: no-repeat;
|
154 | background-size: $searchbar-wp-input-clear-icon-size;
|
155 | }
|
156 |
|
157 | .searchbar-wp .searchbar-clear-icon.activated {
|
158 | background-color: transparent;
|
159 | }
|
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 | .searchbar-wp.searchbar-has-focus .searchbar-input-container {
|
166 | border-color: $searchbar-wp-border-color-focused;
|
167 | }
|
168 |
|
169 |
|
170 |
|
171 |
|
172 |
|
173 | .searchbar-wp.searchbar-has-value .searchbar-search-icon {
|
174 | display: none;
|
175 | }
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 | .searchbar-wp .searchbar-ios-cancel {
|
182 | display: none;
|
183 | }
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 | .searchbar-wp .searchbar-md-cancel {
|
190 | display: none;
|
191 | }
|
192 |
|
193 |
|
194 |
|
195 |
|
196 | .toolbar .searchbar-wp {
|
197 | @include padding(2px);
|
198 | }
|
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 | @each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
|
205 |
|
206 | .searchbar-wp-#{$color-name}.searchbar-has-focus .searchbar-input-container {
|
207 | border-color: $color-base;
|
208 | }
|
209 |
|
210 | }
|