Skip to content

Commit

Permalink
Merge pull request #790 from tf/display-scroll-indicator-var
Browse files Browse the repository at this point in the history
Add theme option to hide scroll indicator
  • Loading branch information
tf committed Jul 24, 2017
2 parents e450200 + 236fb3e commit 03dc82c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/assets/stylesheets/pageflow/themes/default/indicators.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
/// - `"icon_font"`: Use font icons for icon.
$indicator-icons: "icon_font" !default;

/// Display the scroll indicator at the bottom of the page.
$display-scroll-indicator: true !default;

@import "./indicators/icons/default";
@import "./indicators/icons/icon_font";
@import "./indicators/icons/sprite";
Expand All @@ -26,3 +29,12 @@ $indicator-icons: "icon_font" !default;
} @else {
@include indicators-icons-default;
}

@if not $display-scroll-indicator {
.scroll_indicator {
// Override inline style used to display scroll indicator
// scss-lint:disable ImportantRule
display: none !important;
// scss-lint:enable ImportantRule
}
}

0 comments on commit 03dc82c

Please sign in to comment.