Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
fix(website): some svg icons position bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LukyVj committed Apr 7, 2016
1 parent 3f57dc2 commit 89ada96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/places.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,12 @@

.ap-suggestion-icon {
margin-right: 10px;
display: inline-block;
width: 14px;
height: 20px;
vertical-align: middle; // handles right alignment with text

svg {
transform: scale(0.90);
transform: scale(0.90) translateY(2px);
fill: #cfcfcf;
}
}
Expand All @@ -99,7 +98,7 @@
position: absolute;
top: 0;
bottom: 0;
right: 12px;
right: 16px;
outline: none;

svg {
Expand Down
1 change: 1 addition & 0 deletions test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"hits":[{"is_city":true,"locale_names":[],"admin_level":8,"importance":16,"county":["Créteil"],"administrative":["Île-de-France"],"postcode":["94140"],"_tags":["boundary","boundary/administrative","country/fr"],"_geoloc":{"lng":2.420051141891892,"lat":48.79868702432432},"country":"France","population":44201,"objectID":"174461334_104271","_highlightResult":{"county":[{"value":"Créteil","matchLevel":"none","matchedWords":[]}],"administrative":[{"value":"Île-de-France","matchLevel":"none","matchedWords":[]}],"postcode":[{"value":"94140","matchLevel":"none","matchedWords":[]}],"country":{"value":"France","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Airdrie"],"admin_level":15,"importance":16,"county":["Airdrie"],"administrative":["Alberta"],"postcode":[""],"_tags":["place","place/city","country/ca"],"_geoloc":{"lng":-114.0105994,"lat":51.2859257},"country":"Canada","population":548912014,"objectID":"144461_26878229","_highlightResult":{"locale_names":[{"value":"<em>A</em>irdrie","matchLevel":"full","matchedWords":["a"]}],"county":[{"value":"<em>A</em>irdrie","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"<em>A</em>lberta","matchLevel":"full","matchedWords":["a"]}],"postcode":[{"value":"","matchLevel":"none","matchedWords":[]}],"country":{"value":"Canada","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Afrique du Sud","RSA"],"admin_level":15,"importance":30,"postcode":[],"_tags":["boundary","boundary/administrative","country","country/za"],"_geoloc":{"lng":23.12054228400201,"lat":-31.126592645051264},"country":"Afrique du Sud","population":49991300,"objectID":"174981162_1252792","_highlightResult":{"locale_names":[{"value":"<em>A</em>frique du Sud","matchLevel":"full","matchedWords":["a"]},{"value":"RSA","matchLevel":"none","matchedWords":[]}],"country":{"value":"<em>A</em>frique du Sud","matchLevel":"full","matchedWords":["a"]}}},{"is_city":true,"locale_names":[],"admin_level":15,"importance":16,"postcode":[""],"_tags":["place","place/city","country/us"],"_geoloc":{"lng":-118.2427266,"lat":34.053717},"country":"États-Unis d'Amérique","population":12800000,"objectID":"18068377_1738808199","_highlightResult":{"postcode":[{"value":"","matchLevel":"none","matchedWords":[]}],"country":{"value":"États-Unis d'<em>A</em>mérique","matchLevel":"full","matchedWords":["a"]}}},{"is_city":true,"locale_names":["Bangkok"],"admin_level":2,"importance":15,"county":["เขตพระนคร"],"administrative":["กรุงเทพมหานคร"],"postcode":[],"_tags":["place","place/city","capital","country/th"],"_geoloc":{"lng":100.4941219,"lat":13.7529438},"country":"Thaïlande","population":8600000,"objectID":"16656318_1628207792","_highlightResult":{"locale_names":[{"value":"Bangkok","matchLevel":"none","matchedWords":[]}],"county":[{"value":"เขตพระนคร","matchLevel":"none","matchedWords":[]}],"administrative":[{"value":"กรุงเทพมหานคร","matchLevel":"none","matchedWords":[]}],"country":{"value":"Thaïlande","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Xi'an"],"admin_level":15,"importance":16,"county":["未央区 (Weiyang)"],"administrative":["陕西省","西安市 / Xi'an"],"postcode":[],"_tags":["place","place/city","country/cn"],"_geoloc":{"lng":108.9352744,"lat":34.342971},"country":"Chine","population":6501200,"objectID":"707084_244082124","_highlightResult":{"locale_names":[{"value":"Xi'<em>a</em>n","matchLevel":"full","matchedWords":["a"]}],"county":[{"value":"未央区 (Weiyang)","matchLevel":"none","matchedWords":[]}],"administrative":[{"value":"陕西省","matchLevel":"none","matchedWords":[]},{"value":"西安市 / Xi'<em>a</em>n","matchLevel":"full","matchedWords":["a"]}],"country":{"value":"Chine","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Ahmedabad"],"admin_level":5,"importance":16,"administrative":["Gujarat","Ahmadabad"],"postcode":[""],"_tags":["place","place/city","country/in"],"_geoloc":{"lng":72.5797068,"lat":23.0216238},"country":"Inde","population":6352254,"objectID":"724868_245711197","_highlightResult":{"locale_names":[{"value":"<em>A</em>hmedabad","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"Gujarat","matchLevel":"none","matchedWords":[]},{"value":"<em>A</em>hmadabad","matchLevel":"full","matchedWords":["a"]}],"postcode":[{"value":"","matchLevel":"none","matchedWords":[]}],"country":{"value":"Inde","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":[],"admin_level":15,"importance":16,"administrative":["Abidjan"],"postcode":[""],"_tags":["place","place/city","country/ci"],"_geoloc":{"lng":-4.0161066,"lat":5.3203571},"country":"Côte d'Ivoire","population":5000000,"objectID":"10872193_1046100133","_highlightResult":{"administrative":[{"value":"<em>A</em>bidjan","matchLevel":"full","matchedWords":["a"]}],"postcode":[{"value":"","matchLevel":"none","matchedWords":[]}],"country":{"value":"Côte d'Ivoire","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Ankara"],"admin_level":2,"importance":15,"county":["Çankaya"],"administrative":["Ankara"],"postcode":[],"_tags":["place","place/city","capital","country/tr"],"_geoloc":{"lng":32.853758,"lat":39.9220794},"country":"Turquie","population":4338620,"objectID":"127116_25869410","_highlightResult":{"locale_names":[{"value":"<em>A</em>nkara","matchLevel":"full","matchedWords":["a"]}],"county":[{"value":"Çankaya","matchLevel":"none","matchedWords":[]}],"administrative":[{"value":"<em>A</em>nkara","matchLevel":"full","matchedWords":["a"]}],"country":{"value":"Turquie","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Alexandrie"],"admin_level":15,"importance":16,"administrative":["الإسكندرية"],"postcode":[],"_tags":["place","place/city","country/eg"],"_geoloc":{"lng":29.8943785,"lat":31.1990035},"country":"Égypte","population":4110015,"objectID":"151140_27565020","_highlightResult":{"locale_names":[{"value":"<em>A</em>lexandrie","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"الإسكندرية","matchLevel":"none","matchedWords":[]}],"country":{"value":"Égypte","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Addis-Abeba"],"admin_level":2,"importance":15,"administrative":["Addis Abeba"],"postcode":[],"_tags":["place","place/city","capital","country/et"],"_geoloc":{"lng":38.7612525,"lat":9.0107934},"country":"Éthiopie","population":3500000,"objectID":"150406_27565076","_highlightResult":{"locale_names":[{"value":"<em>A</em>ddis-<em>A</em>beba","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"<em>A</em>ddis <em>A</em>beba","matchLevel":"full","matchedWords":["a"]}],"country":{"value":"Éthiopie","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":[],"admin_level":2,"importance":15,"administrative":["Ciudad Autónoma de Buenos Aires","Comuna 6"],"postcode":[],"_tags":["place","place/city","capital","country/ar"],"_geoloc":{"lng":-58.4459789,"lat":-34.612869},"country":"Argentine","population":3050728,"objectID":"307879_81590481","_highlightResult":{"administrative":[{"value":"Ciudad <em>A</em>utónoma de Buenos <em>A</em>ires","matchLevel":"full","matchedWords":["a"]},{"value":"Comuna 6","matchLevel":"none","matchedWords":[]}],"country":{"value":"<em>A</em>rgentine","matchLevel":"full","matchedWords":["a"]}}},{"is_city":true,"locale_names":["Bassorah"],"admin_level":15,"importance":16,"administrative":["البصرة"],"postcode":[""],"_tags":["place","place/city","country/iq"],"_geoloc":{"lng":47.8342226,"lat":30.502804},"country":"Irak","population":2600000,"objectID":"4087604_428339490","_highlightResult":{"locale_names":[{"value":"Bassorah","matchLevel":"none","matchedWords":[]}],"administrative":[{"value":"البصرة","matchLevel":"none","matchedWords":[]}],"postcode":[{"value":"","matchLevel":"none","matchedWords":[]}],"country":{"value":"Irak","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Sanaa"],"admin_level":2,"importance":15,"county":["Qada Sana"],"administrative":["Sanʿaʾ"],"postcode":[],"_tags":["place","place/city","capital","country/ye"],"_geoloc":{"lng":44.2005197,"lat":15.342101},"country":"Yémen","population":2431000,"objectID":"807324_258013552","_highlightResult":{"locale_names":[{"value":"Sanaa","matchLevel":"none","matchedWords":[]}],"county":[{"value":"Qada Sana","matchLevel":"none","matchedWords":[]}],"administrative":[{"value":"Sanʿaʾ","matchLevel":"none","matchedWords":[]}],"country":{"value":"Yémen","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Alger"],"admin_level":2,"importance":15,"county":["Alger Centre"],"administrative":["Alger - الجزائر"],"postcode":[],"_tags":["place","place/city","capital","country/dz"],"_geoloc":{"lng":3.0600655,"lat":36.775348},"country":"Algérie","population":2364230,"objectID":"1304381_299617915","_highlightResult":{"locale_names":[{"value":"<em>A</em>lger","matchLevel":"full","matchedWords":["a"]}],"county":[{"value":"<em>A</em>lger Centre","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"<em>A</em>lger - الجزائر","matchLevel":"full","matchedWords":["a"]}],"country":{"value":"<em>A</em>lgérie","matchLevel":"full","matchedWords":["a"]}}},{"is_city":true,"locale_names":["Alep"],"admin_level":15,"importance":16,"administrative":["Aleppo"],"postcode":[""],"_tags":["place","place/city","country/sy"],"_geoloc":{"lng":37.1656697,"lat":36.197971},"country":"Syrie","population":2301000,"objectID":"209066_32520143","_highlightResult":{"locale_names":[{"value":"<em>A</em>lep","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"<em>A</em>leppo","matchLevel":"full","matchedWords":["a"]}],"postcode":[{"value":"","matchLevel":"none","matchedWords":[]}],"country":{"value":"Syrie","matchLevel":"none","matchedWords":[]}}},{"is_city":true,"locale_names":["Accra"],"admin_level":2,"importance":15,"county":["Accra Metropolitan"],"administrative":["Greater Accra Region"],"postcode":[],"_tags":["place","place/city","capital","country/gh"],"_geoloc":{"lng":-0.2057437,"lat":5.5600141},"country":"Ghana","population":2291352,"objectID":"150919_27565080","_highlightResult":{"locale_names":[{"value":"<em>A</em>ccra","matchLevel":"full","matchedWords":["a"]}],"county":[{"value":"<em>A</em>ccra Metropolitan","matchLevel":"full","matchedWords":["a"]}],"administrative":[{"value":"Greater <em>A</em>ccra Region","matchLevel":"full","matchedWords":["a"]}],"country":{"value":"Ghana","matchLevel":"none","matchedWords":[]}}}],"nbHits":17,"processingTimeMS":39,"query":"a","params":"query=a&language=fr","degradedQuery":false}

0 comments on commit 89ada96

Please sign in to comment.