This repository has been archived by the owner on Jun 23, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Extract some styling from js to css
- Loading branch information
1 parent
e8ca3da
commit e5f9d34
Showing
4 changed files
with
80 additions
and
57 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
.sass-cache/ |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
.slidable-wrapper button { | |||
position: absolute; | |||
top: 50%; | |||
margin-top: -12px; | |||
width: 24px; | |||
height: 24px; | |||
padding: 0; | |||
border: none; | |||
background-color: transparent; | |||
background-image: url("slidable.png"); | |||
background-repeat: no-repeat; | |||
background-size: auto auto; | |||
border: none; | |||
z-index: 1; | |||
} | |||
.slidable-wrapper button.next { | |||
background-position: -24px 0; | |||
right: -24px; | |||
} | |||
.slidable-wrapper button.prev { | |||
background-position: 0 0; | |||
left: -24px; | |||
} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
.slidable-wrapper | |||
|
|||
$button-size: 24px | |||
|
|||
button | |||
position: absolute | |||
top: 50% | |||
margin-top: -$button-size/2 | |||
width: $button-size | |||
height: $button-size | |||
padding: 0 | |||
border: none | |||
background-color: transparent | |||
background-image: url("slidable.png") | |||
background-repeat: no-repeat | |||
background-size: auto auto | |||
border: none | |||
z-index: 1 | |||
&.next | |||
background-position: -$button-size 0 | |||
right: -$button-size | |||
&.prev | |||
background-position: 0 0 | |||
left: -$button-size |