-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add styles and various fixes to the demo app
- Loading branch information
Showing
6 changed files
with
375 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
linters: | ||
PropertySortOrder: | ||
order: smacss | ||
PropertySpelling: | ||
extra_properties: | ||
- composes |
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,32 @@ | ||
$black: #000; | ||
$column-width: 480px; | ||
$gutter-width: 10px; | ||
// $break: $column-width * 2 + $gutter-width * 3; | ||
|
||
.app { | ||
margin: auto; | ||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||
font-weight: 300; | ||
text-align: center; | ||
|
||
@media screen and ($column-width * 2) { | ||
|
||
} | ||
} | ||
|
||
.section { | ||
display: inline-block; | ||
max-width: $column-width; | ||
margin: $gutter-width; | ||
text-align: left; | ||
vertical-align: top; | ||
} | ||
|
||
.react-player { | ||
margin-bottom: 10px; | ||
background: rgba($black, .1); | ||
} | ||
|
||
.faded { | ||
color: rgba($black, .5); | ||
} |
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,123 @@ | ||
// Styling Cross-Browser Compatible Range Inputs with Sass | ||
// Github: https://github.com/darlanrod/input-range-sass | ||
// Author: Darlan Rod https://github.com/darlanrod | ||
// Version 1.0.1 | ||
// MIT License | ||
|
||
$track-color: #ccc; | ||
$thumb-color: #666; | ||
|
||
$thumb-radius: 10px; | ||
$thumb-height: 10px; | ||
$thumb-width: 10px; | ||
$thumb-shadow-size: 0; | ||
$thumb-shadow-blur: 0; | ||
$thumb-shadow-color: #111; | ||
$thumb-border-width: 0; | ||
$thumb-border-color: #fff; | ||
|
||
$track-width: 100%; | ||
$track-height: 5px; | ||
$track-shadow-size: 0; | ||
$track-shadow-blur: 0; | ||
$track-shadow-color: #222; | ||
$track-border-width: 0; | ||
$track-border-color: #000; | ||
|
||
$track-radius: 5px; | ||
$contrast: 5%; | ||
|
||
@mixin shadow($shadow-size, $shadow-blur, $shadow-color) { | ||
box-shadow: $shadow-size $shadow-size $shadow-blur $shadow-color, 0 0 $shadow-size lighten($shadow-color, 5%); | ||
} | ||
|
||
@mixin track() { | ||
width: $track-width; | ||
height: $track-height; | ||
cursor: pointer; | ||
} | ||
|
||
@mixin thumb() { | ||
@include shadow($thumb-shadow-size, $thumb-shadow-blur, $thumb-shadow-color); | ||
border: $thumb-border-width solid $thumb-border-color; | ||
height: $thumb-height; | ||
width: $thumb-width; | ||
border-radius: $thumb-radius; | ||
background: $thumb-color; | ||
cursor: pointer; | ||
z-index: 100; | ||
} | ||
|
||
[type=range] { | ||
-webkit-appearance: none; | ||
margin: $thumb-height / 2 0; | ||
width: $track-width; | ||
|
||
&:focus { | ||
outline: none; | ||
} | ||
|
||
&::-webkit-slider-runnable-track { | ||
@include track(); | ||
@include shadow($track-shadow-size, $track-shadow-blur, $track-shadow-color); | ||
background: $track-color; | ||
border: $track-border-width solid $track-border-color; | ||
border-radius: $track-radius; | ||
} | ||
|
||
&::-webkit-slider-thumb { | ||
@include thumb(); | ||
-webkit-appearance: none; | ||
margin-top: ((-$track-border-width * 2 + $track-height) / 2) - ($thumb-height / 2); | ||
} | ||
|
||
&:focus::-webkit-slider-runnable-track { | ||
background: lighten($track-color, $contrast); | ||
} | ||
|
||
&::-moz-range-track { | ||
@include track(); | ||
@include shadow($track-shadow-size, $track-shadow-blur, $track-shadow-color); | ||
background: $track-color; | ||
border: $track-border-width solid $track-border-color; | ||
border-radius: $track-radius; | ||
} | ||
|
||
&::-moz-range-thumb { | ||
@include thumb(); | ||
} | ||
|
||
&::-ms-track { | ||
@include track(); | ||
background: transparent; | ||
border-color: transparent; | ||
border-width: $thumb-width 0; | ||
color: transparent; | ||
} | ||
|
||
&::-ms-fill-lower { | ||
@include shadow($track-shadow-size, $track-shadow-blur, $track-shadow-color); | ||
background: darken($track-color, $contrast); | ||
border: $track-border-width solid $track-border-color; | ||
border-radius: $track-radius * 2; | ||
} | ||
|
||
&::-ms-fill-upper { | ||
@include shadow($track-shadow-size, $track-shadow-blur, $track-shadow-color); | ||
background: $track-color; | ||
border: $track-border-width solid $track-border-color; | ||
border-radius: $track-radius * 2; | ||
} | ||
|
||
&::-ms-thumb { | ||
@include thumb(); | ||
} | ||
|
||
&:focus::-ms-fill-lower { | ||
background: $track-color; | ||
} | ||
|
||
&:focus::-ms-fill-upper { | ||
background: lighten($track-color, $contrast); | ||
} | ||
} |
Oops, something went wrong.