|
5 | 5 | <title>Instant search demo built with instantsearch.js</title>
|
6 | 6 | <link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css">
|
7 | 7 | <link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap-theme.min.css">
|
| 8 | + <style> |
| 9 | + |
| 10 | + /* Functional styling; |
| 11 | + * These styles are required for noUiSlider to function. |
| 12 | + * You don't need to change these rules to apply your design. |
| 13 | + */ |
| 14 | + .noUi-target, |
| 15 | + .noUi-target * { |
| 16 | + -webkit-touch-callout: none; |
| 17 | + -webkit-user-select: none; |
| 18 | + -ms-touch-action: none; |
| 19 | + -ms-user-select: none; |
| 20 | + -moz-user-select: none; |
| 21 | + -moz-box-sizing: border-box; |
| 22 | + box-sizing: border-box; |
| 23 | + } |
| 24 | + .noUi-target { |
| 25 | + position: relative; |
| 26 | + direction: ltr; |
| 27 | + } |
| 28 | + .noUi-base { |
| 29 | + width: 100%; |
| 30 | + height: 100%; |
| 31 | + position: relative; |
| 32 | + z-index: 1; /* Fix 401 */ |
| 33 | + } |
| 34 | + .noUi-origin { |
| 35 | + position: absolute; |
| 36 | + right: 0; |
| 37 | + top: 0; |
| 38 | + left: 0; |
| 39 | + bottom: 0; |
| 40 | + } |
| 41 | + .noUi-handle { |
| 42 | + position: relative; |
| 43 | + z-index: 1; |
| 44 | + } |
| 45 | + .noUi-stacking .noUi-handle { |
| 46 | + /* This class is applied to the lower origin when |
| 47 | + its values is > 50%. */ |
| 48 | + z-index: 10; |
| 49 | + } |
| 50 | + .noUi-state-tap .noUi-origin { |
| 51 | + -webkit-transition: left 0.3s, top 0.3s; |
| 52 | + transition: left 0.3s, top 0.3s; |
| 53 | + } |
| 54 | + .noUi-state-drag * { |
| 55 | + cursor: inherit !important; |
| 56 | + } |
| 57 | + |
| 58 | + /* Painting and performance; |
| 59 | + * Browsers can paint handles in their own layer. |
| 60 | + */ |
| 61 | + .noUi-base { |
| 62 | + -webkit-transform: translate3d(0,0,0); |
| 63 | + transform: translate3d(0,0,0); |
| 64 | + } |
| 65 | + |
| 66 | + /* Slider size and handle placement; |
| 67 | + */ |
| 68 | + .noUi-horizontal { |
| 69 | + height: 18px; |
| 70 | + } |
| 71 | + .noUi-horizontal .noUi-handle { |
| 72 | + width: 34px; |
| 73 | + height: 28px; |
| 74 | + left: -17px; |
| 75 | + top: -6px; |
| 76 | + } |
| 77 | + .noUi-vertical { |
| 78 | + width: 18px; |
| 79 | + } |
| 80 | + .noUi-vertical .noUi-handle { |
| 81 | + width: 28px; |
| 82 | + height: 34px; |
| 83 | + left: -6px; |
| 84 | + top: -17px; |
| 85 | + } |
| 86 | + |
| 87 | + /* Styling; |
| 88 | + */ |
| 89 | + .noUi-background { |
| 90 | + background: #FAFAFA; |
| 91 | + box-shadow: inset 0 1px 1px #f0f0f0; |
| 92 | + } |
| 93 | + .noUi-connect { |
| 94 | + background: #3FB8AF; |
| 95 | + box-shadow: inset 0 0 3px rgba(51,51,51,0.45); |
| 96 | + -webkit-transition: background 450ms; |
| 97 | + transition: background 450ms; |
| 98 | + } |
| 99 | + .noUi-origin { |
| 100 | + border-radius: 2px; |
| 101 | + } |
| 102 | + .noUi-target { |
| 103 | + border-radius: 4px; |
| 104 | + border: 1px solid #D3D3D3; |
| 105 | + box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB; |
| 106 | + } |
| 107 | + .noUi-target.noUi-connect { |
| 108 | + box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB; |
| 109 | + } |
| 110 | + |
| 111 | + /* Handles and cursors; |
| 112 | + */ |
| 113 | + .noUi-dragable { |
| 114 | + cursor: w-resize; |
| 115 | + } |
| 116 | + .noUi-vertical .noUi-dragable { |
| 117 | + cursor: n-resize; |
| 118 | + } |
| 119 | + .noUi-handle { |
| 120 | + border: 1px solid #D9D9D9; |
| 121 | + border-radius: 3px; |
| 122 | + background: #FFF; |
| 123 | + cursor: default; |
| 124 | + box-shadow: inset 0 0 1px #FFF, |
| 125 | + inset 0 1px 7px #EBEBEB, |
| 126 | + 0 3px 6px -3px #BBB; |
| 127 | + } |
| 128 | + .noUi-active { |
| 129 | + box-shadow: inset 0 0 1px #FFF, |
| 130 | + inset 0 1px 7px #DDD, |
| 131 | + 0 3px 6px -3px #BBB; |
| 132 | + } |
| 133 | + |
| 134 | + /* Handle stripes; |
| 135 | + */ |
| 136 | + .noUi-handle:before, |
| 137 | + .noUi-handle:after { |
| 138 | + content: ""; |
| 139 | + display: block; |
| 140 | + position: absolute; |
| 141 | + height: 14px; |
| 142 | + width: 1px; |
| 143 | + background: #E8E7E6; |
| 144 | + left: 14px; |
| 145 | + top: 6px; |
| 146 | + } |
| 147 | + .noUi-handle:after { |
| 148 | + left: 17px; |
| 149 | + } |
| 150 | + .noUi-vertical .noUi-handle:before, |
| 151 | + .noUi-vertical .noUi-handle:after { |
| 152 | + width: 14px; |
| 153 | + height: 1px; |
| 154 | + left: 6px; |
| 155 | + top: 14px; |
| 156 | + } |
| 157 | + .noUi-vertical .noUi-handle:after { |
| 158 | + top: 17px; |
| 159 | + } |
| 160 | + |
| 161 | + /* Disabled state; |
| 162 | + */ |
| 163 | + [disabled].noUi-connect, |
| 164 | + [disabled] .noUi-connect { |
| 165 | + background: #B8B8B8; |
| 166 | + } |
| 167 | + [disabled].noUi-origin, |
| 168 | + [disabled] .noUi-handle { |
| 169 | + cursor: not-allowed; |
| 170 | + } |
| 171 | + |
| 172 | + </style> |
8 | 173 | </head>
|
9 | 174 | <body>
|
10 | 175 | <div class="container">
|
@@ -34,14 +199,21 @@ <h1>Instant search demo <small>using instantsearch.js</small></h1>
|
34 | 199 | </div>
|
35 | 200 |
|
36 | 201 | <div class="panel panel-default">
|
37 |
| - <div class="panel-heading">Toggle filters</div> |
| 202 | + <div class="panel-heading">Shipping</div> |
38 | 203 | <div class="panel-body">
|
39 | 204 | <ul class="nav nav-stacked">
|
40 | 205 | <li><div id="free_shipping"></div></li>
|
41 | 206 | </ul>
|
42 | 207 | </div>
|
43 | 208 | </div>
|
44 | 209 |
|
| 210 | + <div class="panel panel-default"> |
| 211 | + <div class="panel-heading">Price</div> |
| 212 | + <div class="panel-body"> |
| 213 | + <div id="price"></div> |
| 214 | + </div> |
| 215 | + </div> |
| 216 | + |
45 | 217 | </div>
|
46 | 218 | <div class="col-md-9">
|
47 | 219 | <div class="row">
|
|
0 commit comments