Skip to content

Commit f379c0a

Browse files
committed
fix(examples/airbnb): Use default theme from CDN
Do not override CSS classes when it's not mandatory. Fix #522
1 parent a880721 commit f379c0a

17 files changed

+34
-308
lines changed

docs/examples/airbnb/index.html

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
# this ensures Jekyll reads the file to be transformed into HTML later
3+
---
4+
15
<!doctype html>
26
<html>
37
<head>
@@ -6,6 +10,11 @@
610
<link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css" />
711
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" />
812
<link href="//fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" />
13+
{% if site.env == 'development' %}
14+
<link rel="stylesheet" href="//localhost:8080/instantsearch.css" />
15+
{% else %}
16+
<link rel="stylesheet" href="//cdn.jsdelivr.net/instantsearch.js/0/instantsearch.min.css" />
17+
{% endif %}
918
<link rel="stylesheet" type="text/css" href="style.css" />
1019
<!--[if lte IE 9]>
1120
<script src="//cdn.polyfill.io/v2/polyfill.min.js"></script>
@@ -55,8 +64,11 @@
5564
<div id="pagination"></div>
5665
</div>
5766
<script src="//maps.googleapis.com/maps/api/js"></script>
58-
<script src="//cdn.jsdelivr.net/instantsearch.js/0/instantsearch.min.js"></script>
59-
<!-- <script src="//localhost:8080/instantsearch.js"></script> -->
67+
{% if site.env == 'development' %}
68+
<script src="//localhost:8080/instantsearch.js"></script>
69+
{% else %}
70+
<script src="//cdn.jsdelivr.net/instantsearch.js/0/instantsearch.js"></script>
71+
{% endif %}
6072
<script src="//cdn.jsdelivr.net/instantsearch-googlemaps/1/instantsearch-googlemaps.min.js"></script>
6173
<script src="search.js"></script>
6274
</body>

docs/examples/airbnb/scss/_base.scss

-32
This file was deleted.

docs/examples/airbnb/scss/_default.scss

-12
This file was deleted.

docs/examples/airbnb/scss/_hierarchical-menu.scss

-19
This file was deleted.

docs/examples/airbnb/scss/_hits.scss

-7
This file was deleted.

docs/examples/airbnb/scss/_index-selector.scss

-6
This file was deleted.

docs/examples/airbnb/scss/_menu.scss

-14
This file was deleted.

docs/examples/airbnb/scss/_pagination.scss

-15
This file was deleted.

docs/examples/airbnb/scss/_price-ranges.scss

-14
This file was deleted.

docs/examples/airbnb/scss/_range-slider.scss

-101
This file was deleted.

docs/examples/airbnb/scss/_refinement-list.scss

-15
This file was deleted.

docs/examples/airbnb/scss/_search-box.scss

-26
This file was deleted.

docs/examples/airbnb/scss/_stats.scss

-9
This file was deleted.

docs/examples/airbnb/scss/_toggle.scss

-15
This file was deleted.

docs/examples/airbnb/scss/_variables.scss

-4
This file was deleted.

docs/examples/airbnb/search.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,15 @@ search.addWidget(
5656
container: '#room_types',
5757
facetName: 'room_type',
5858
operator: 'or',
59-
limit: 10,
60-
cssClasses: {
61-
item: 'item',
62-
count: 'hide',
63-
active: 'active'
64-
}
59+
limit: 10
6560
})
6661
);
6762

6863
search.addWidget(
6964
instantsearch.widgets.rangeSlider({
7065
container: '#price',
71-
facetName: 'price'
66+
attributeName: 'price',
67+
pips: false
7268
})
7369
);
7470

0 commit comments

Comments
 (0)