-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 933c6b339604a7cf1ac9d45bd37c2cbdc5cee035 Author: simeydotme <simey.me@gmail.com> Date: Sat Jul 24 18:30:03 2021 +0800 Add second argument for formatter functions resolves #23 I modifed the arguments for the formatter functions, they both now accept the original `(v)` value which means it should be backwards compatible. But there is also an additional `(i)` argument which holds the index of the handle/pip respectively depending if formatting a handle or a pip. commit c9437a0a479521bc27fa9fd388ffe64830476eb6 Author: simeydotme <simey.me@gmail.com> Date: Sat Jul 24 17:33:57 2021 +0800 Add styling wrappers for `prefix` and `suffix` resolves #27 This commit adds a `<span>` wrapper around each prefix and suffix, allowing finer control over the aesthetics of the pips, and floats.
- Loading branch information
1 parent
23f5b9d
commit 556c4b8
Showing
6 changed files
with
73 additions
and
36 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
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,39 @@ | ||
|
||
|
||
body,html { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
main { | ||
font-family: sans-serif; | ||
text-align: center; | ||
padding: 15px; | ||
} | ||
@media screen and ( min-width: 600px ) { | ||
main { | ||
padding: 50px; | ||
} | ||
} | ||
input { | ||
width: 100px; | ||
} | ||
|
||
.rangeSlider.rangeSlider { | ||
margin: 60px; | ||
} | ||
|
||
h2,h3,h4 { | ||
margin: 20px 0 10px; | ||
} | ||
|
||
h2 + .rangeSlider.rangeSlider, h3 + .rangeSlider.rangeSlider, h4 + .rangeSlider.rangeSlider { | ||
margin-top: 10px; | ||
} | ||
|
||
.pipVal-prefix { | ||
color: coral; | ||
} | ||
|
||
.pipVal-suffix { | ||
color: blueviolet; | ||
} |
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