Skip to content

Commit 097533a

Browse files
committed
removed dependency on fix-to library in favor of semantic UI library which we are already loading the resources of anyways
1 parent 81f3b82 commit 097533a

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

_includes/_sass/base.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ p {
515515
}
516516
}
517517

518-
&.fixto-fixed {
518+
&.fixed.top {
519519
z-index: 10000;
520520
background: $gray;
521521
color: $orange;
@@ -1539,7 +1539,7 @@ span.progress {
15391539
}
15401540
}
15411541

1542-
&.fixto-fixed {
1542+
&.fixed.top {
15431543
padding: 0 11px;
15441544
border-width: 0 0 2px;
15451545
border-radius: 0;

_includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1>the <span class="logoseg-1">Accept</span><br><span class="logoseg-2">Bitcoin
4040
<p><button id="skip-to-content" class="ui blue button"><i class="unordered list icon"></i> Browse the entire list by category</button></p>
4141
<p class="or-choice"><em>- or -</em></p>
4242
</div>
43-
<div class="bch-only">
43+
<div class="ui sticky bch-only">
4444
<div id="search-wrapper">
4545
<div class="search-input-wrapper" role="search">
4646
<i id="search-icon" class="search icon"></i>

js/app.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ $(document).ready(function () {
4444
});
4545

4646
// Stick the BCH-only filter to the top on scroll
47-
$('.bch-only').fixTo('html', {
48-
useNativeSticky: false
47+
$('.ui.sticky.bch-only').sticky({
48+
onStick: function(){
49+
$(this).css({
50+
height: 'auto'
51+
});
52+
}
4953
});
5054

5155
// Scroll to the top via floating action button and filter bar link, then pop some flair

js/fixto.min.js

-3
This file was deleted.

js/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{% capture page_js %}
44
{% include_relative jquery.unveil.min.js %}
55
{% include_relative ticker.js %}
6-
{% include_relative fixto.min.js %}
76
{% include_relative app.js %}
87
{% endcapture %}
98

0 commit comments

Comments
 (0)