-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ansh/sort-rg-artist-page
- Loading branch information
Showing
36 changed files
with
703 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
.horizontal-scroll-container { | ||
position: relative; | ||
|
||
.horizontal-scroll { | ||
.small-scrollbar(); | ||
&.no-scrollbar { | ||
overflow-x: scroll; | ||
/* Hide the scrollbar: */ | ||
-ms-overflow-style: none; /* Internet Explorer and Edge */ | ||
scrollbar-width: none; /* Firefox */ | ||
&::-webkit-scrollbar { | ||
/* Chrome, Safari and Opera */ | ||
display: none; | ||
} | ||
} | ||
} | ||
// hide overflow behind button with gradient to indicate there's more | ||
.nav-button { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
width: 55px; | ||
border: none; | ||
font-size: 2em; | ||
color: @light-grey; | ||
z-index: 1; | ||
opacity: 1; | ||
transition: opacity 300ms linear; | ||
&.backward { | ||
background: linear-gradient(to right, @white 10%, transparent); | ||
text-align: left; | ||
left: 0; | ||
} | ||
&.forward { | ||
background: linear-gradient(to left, @white 10%, transparent); | ||
right: 0; | ||
text-align: right; | ||
} | ||
} | ||
&.scroll-start .nav-button.backward, | ||
&.scroll-end& .nav-button.forward { | ||
opacity: 0; | ||
pointer-events: none; | ||
} | ||
} | ||
|
||
.dragscroll { | ||
/* We user the dragscroll library to handle dragging to scroll */ | ||
overflow-x: scroll; | ||
/* But we want to hide the scrollbar: */ | ||
-ms-overflow-style: none; /* Internet Explorer and Edge */ | ||
scrollbar-width: none; /* Firefox */ | ||
&::-webkit-scrollbar { | ||
/* Chrome, Safari and Opera */ | ||
display: none; | ||
} | ||
} | ||
@scrollbar-background-color: #f5f5f5; | ||
@scrollbar-thumb-color: darken(@scrollbar-background-color, 10%); | ||
@scrollbar-thumb-color-dark: darken(@scrollbar-thumb-color, 15%); | ||
|
||
.small-scrollbar { | ||
scrollbar-width: unset; | ||
padding-bottom: 1em; | ||
&::-webkit-scrollbar { | ||
height: 5px; | ||
display: block; | ||
} | ||
&::-webkit-scrollbar-track { | ||
background-color: @scrollbar-background-color; | ||
border-radius: 5px; | ||
} | ||
&::-webkit-scrollbar-thumb { | ||
background-color: @scrollbar-thumb-color; | ||
border-radius: 5px; | ||
} | ||
&:hover::-webkit-scrollbar-thumb { | ||
background-color: @scrollbar-thumb-color-dark; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.