Skip to content

Commit

Permalink
Better input[range]
Browse files Browse the repository at this point in the history
  • Loading branch information
soyjavi committed Nov 7, 2012
1 parent 105deb5 commit 1429456
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/stylesheets/Lungo.theme.default.less
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ label { color: #999; }
input:not([type=range]), textarea, select {
border: 1px solid @form-border-color;
.border-radius(@form-border-radius);
// .box-shadow(@box-shadow-form);
.box-shadow(@box-shadow-form);
color: #858585;
font-family: Helvetica, Arial, sans-serif;
background: #fff;
Expand Down Expand Up @@ -277,7 +277,7 @@ input[type=range] {

&::-webkit-slider-thumb {
border-radius: @form-border-radius;
box-shadow:0px 1px 2px 1px rgba(0,0,0,0.3);
.box-shadow(~"1px 0 rgba(0,0,0,0.2), -1px 0 rgba(0,0,0,0.2), 0 1px rgba(0,0,0,0.2), 0 -1px rgba(0,0,0,0.2)");
background: #fff; }

&::-webkit-slider-thumb::after {
Expand Down
1 change: 0 additions & 1 deletion src/stylesheets/Lungo.widgets.form.less
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ form {
-webkit-appearance: none;
width: 30px;
height: 24px;
border-radius: 2px;
position:relative;
margin:2px 2px 2px 2px;
border: none; }
Expand Down
13 changes: 9 additions & 4 deletions src/stylesheets/css/Lungo.theme.default.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ section > footer {
-moz-box-shadow: inset 0 3px 0 #333333;
box-shadow: inset 0 3px 0 #333333;
}
section > footer > nav a {
section > footer > nav a {
-webkit-box-shadow: 1px 0 0 #151515;
-moz-box-shadow: 1px 0 0 #151515;
box-shadow: 1px 0 0 #151515;
}
section > footer > nav a.current {
section > footer > nav a.current {
color: #ffffff;
background: #111111;
-webkit-box-shadow: -1px 0 0 #252525, 1px 0 0 #252525, inset 0 3px 0 #2A95D3;
Expand Down Expand Up @@ -145,7 +145,7 @@ header nav.button a:active {
section > nav.groupbar {
background-color: #222222;
}
section > nav.groupbar > a.current {
section > nav.groupbar > a.current {
-webkit-box-shadow: inset 0 -3px 0 #2a95d3;
-moz-box-shadow: inset 0 -3px 0 #2a95d3;
box-shadow: inset 0 -3px 0 #2a95d3;
Expand Down Expand Up @@ -252,6 +252,9 @@ select {
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
color: #858585;
font-family: Helvetica, Arial, sans-serif;
background: #fff;
Expand Down Expand Up @@ -305,7 +308,9 @@ input[type=range].checkbox.active {
}
input[type=range]::-webkit-slider-thumb {
border-radius: 1px;
box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 1px 0 rgba(0,0,0,0.2), -1px 0 rgba(0,0,0,0.2), 0 1px rgba(0,0,0,0.2), 0 -1px rgba(0,0,0,0.2);
-moz-box-shadow: 1px 0 rgba(0,0,0,0.2), -1px 0 rgba(0,0,0,0.2), 0 1px rgba(0,0,0,0.2), 0 -1px rgba(0,0,0,0.2);
box-shadow: 1px 0 rgba(0,0,0,0.2), -1px 0 rgba(0,0,0,0.2), 0 1px rgba(0,0,0,0.2), 0 -1px rgba(0,0,0,0.2);
background: #fff;
}
input[type=range]::-webkit-slider-thumb::after {
Expand Down
1 change: 0 additions & 1 deletion src/stylesheets/css/Lungo.widgets.form.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ form input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 30px;
height: 24px;
border-radius: 2px;
position: relative;
margin: 2px 2px 2px 2px;
border: none;
Expand Down

0 comments on commit 1429456

Please sign in to comment.