Skip to content

Commit

Permalink
Fixing issue with mobile dropdowns in Pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
benplum committed Oct 23, 2016
1 parent 7e22474 commit 1e12d22
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,8 +7,11 @@
* Added Viewer component
* Added file chunking to Upload
* Added load error event to Background
* Added `jumpItem` method to Carousel
* Aliased `jump`, `previous`, and `next` methods to `jumpPage`, `previousPage`, and `nextPage` in Carousel
* Fixed protocol agnostic YouTube thumbnail in Background
* Fixed Navigation styles in fs-light base theme
* Fixed issue with mobile dropdown options in Pagination

### 1.2.2

Expand Down
2 changes: 1 addition & 1 deletion demo/_src/pages/components/carousel.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/components/carousel.html
Expand Up @@ -667,7 +667,7 @@ <h3>Single - Fade</h3>
&Tab;&lt;div&gt;5&lt;/div&gt;
&lt;/div&gt;</code></pre>
<pre><code class="language-javascript">$(".carousel").carousel({
matchWidth: false
single: true
});</code></pre>
<pre><code class="language-css">.carousel .fs-carousel-item {
opacity: 0;
Expand Down
2 changes: 1 addition & 1 deletion demo/css/demo.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/css/site-ie8.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/css/site.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/js/site.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/pagination.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/themes/light.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/pagination.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/json/carousel.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/docs/carousel.html
Expand Up @@ -572,7 +572,7 @@ <h3>Single - Fade</h3>
&Tab;&lt;div&gt;5&lt;/div&gt;
&lt;/div&gt;</code></pre>
<pre><code class="language-javascript">$(".carousel").carousel({
matchWidth: false
single: true
});</code></pre>
<pre><code class="language-css">.carousel .fs-carousel-item {
opacity: 0;
Expand Down
8 changes: 4 additions & 4 deletions src/js/pagination.js
Expand Up @@ -30,9 +30,9 @@
html += '<div class="' + RawClasses.position + '" aria-hidden="true">';
html += '<span class="' + RawClasses.current + '">0</span>';
html += ' ' + data.labels.count + ' ';
html += '<span class="' + RawClasses.total + '">0</span>';
html += '</div>';
html += '<select class="' + RawClasses.select + '" tabindex="-1" aria-hidden="true"></select>';
html += '<span class="' + RawClasses.total + '">0</span>';
html += '<select class="' + RawClasses.select + '" tabindex="-1" aria-hidden="true"></select>';
html += '</div>';

data.thisClasses = [RawClasses.base, data.theme, data.customClass];

Expand Down Expand Up @@ -68,7 +68,7 @@

this.on(Events.click, Classes.page, data, onPageClick)
.on(Events.click, Classes.control, data, onControlClick)
.on(Events.click, Classes.position, data, onPositionClick)
// .on(Events.click, Classes.position, data, onPositionClick)
.on(Events.change, Classes.select, data, onPageSelect);

$.fsMediaquery("bind", data.rawGuid, data.mq, {
Expand Down
6 changes: 4 additions & 2 deletions src/less/pagination.less
Expand Up @@ -188,19 +188,21 @@
}

&-mobile &-position {
position: relative;

display: block;
}

&-mobile &-select {
height: 100%;
width: 50%;
width: 100%;

position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
z-index: 1;

display: block;
margin: auto;
Expand Down
3 changes: 3 additions & 0 deletions src/less/themes/light/pagination.less
Expand Up @@ -188,6 +188,9 @@
}

&-mobile.@{theme_name} &-position {
position: relative;

margin: 0 (@fs-pagination-height * 1.5);
text-align: center;
}

Expand Down

0 comments on commit 1e12d22

Please sign in to comment.