Some style and IE fixes.

This commit is contained in:
Lars Jung 2014-06-20 16:22:26 +02:00
parent 759faf9647
commit 1ffa6f793a
3 changed files with 25 additions and 23 deletions

View file

@ -21,6 +21,9 @@
@col-sb-thumb: rgba(0,0,0,0.15);
@col-sb-thumb-active: rgba(0,0,0,0.25);
@col-range-back: rgb(224,224,224);
@col-range-thumb: rgb(190,190,190);
@border-widget: 1px solid @col-border;
@border-widget-sep: 1px solid @col-widget-sep;

View file

@ -94,40 +94,39 @@
width: 224px;
}
input[type='range'] {
.range-track() {
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
border-width: 0;
border-radius: 2px;
background-color: #eee;
background-color: @col-range-back;
height: 12px;
vertical-align: middle;
width: 64px;
margin: 0 0 4px 12px;
padding: 0;
}
input[type='range']::-webkit-slider-thumb {
.range-thumb() {
-moz-appearance: none;
-ms-appearance: none;
-webkit-appearance: none;
border: 1px solid #aaa;
border: 1px solid @col-range-thumb;
border-radius: 2px;
background-color: #aaa;
height: 12px;
width: 12px;
vertical-align: middle;
}
input[type='range']::-moz-range-track {
-moz-appearance: none;
border-width: 0;
border-radius: 2px;
background-color: #eee;
height: 6px;
vertical-align: middle;
}
input[type='range']::-moz-range-thumb {
-moz-appearance: none;
border: 1px solid #aaa;
border-radius: 2px;
background-color: #aaa;
background-color: @col-range-thumb;
height: 12px;
width: 12px;
vertical-align: middle;
}
input[type='range'] { .range-track; }
input[type='range']::-moz-range-track { .range-track; }
input[type='range']::-ms-track { .range-track; }
input[type='range']::-ms-fill-lower { .range-track; }
input[type='range']::-ms-fill-upper { .range-track; }
input[type='range']::-webkit-slider-thumb { .range-thumb; }
input[type='range']::-moz-range-thumb { .range-thumb; }
input[type='range']::-ms-thumb { .range-thumb; }
}

View file

@ -110,7 +110,7 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
max = settings.sizes.length-1;
$(sizeTemplate)
.prop('max', max).attr('max', max)
.on('input', function (event) {
.on('input change', function (event) {
update(null, settings.sizes[parseInt(event.target.value, 10)]);
})