diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/css/styles.less b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/css/styles.less index a4ff820f3..2860d01cf 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/css/styles.less +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/css/styles.less @@ -155,20 +155,4 @@ } } } -} -.iiif-gallery-component { - .header { - input[type=range]::-moz-range-track { - width: 100px; - } - - @-moz-document url-prefix() { - .btn { - &.size-up, - &.size-down { - margin-top: 4px; - } - } - } - } -} +} \ No newline at end of file diff --git a/src/content-handlers/iiif/modules/uv-shared-module/css/buttons.less b/src/content-handlers/iiif/modules/uv-shared-module/css/buttons.less index 5f8d82322..ff1365910 100644 --- a/src/content-handlers/iiif/modules/uv-shared-module/css/buttons.less +++ b/src/content-handlers/iiif/modules/uv-shared-module/css/buttons.less @@ -172,3 +172,26 @@ } } + +.iiif-gallery-component { + + .header { + .btn { + &.size-up, + &.size-down { + &:focus { + border: 1px solid @link-color; + } + } + } + + @supports (-moz-appearance: none) { + .btn { + &.size-up, + &.size-down { + margin-top: 4px; + } + } + } +} +} \ No newline at end of file diff --git a/src/content-handlers/iiif/modules/uv-shared-module/css/range.less b/src/content-handlers/iiif/modules/uv-shared-module/css/range.less index eee385831..4ee2c3df1 100644 --- a/src/content-handlers/iiif/modules/uv-shared-module/css/range.less +++ b/src/content-handlers/iiif/modules/uv-shared-module/css/range.less @@ -1,68 +1,65 @@ .uv { - - /* WebKit */ - - input[type=range] { - -webkit-appearance: none; - } - - input[type=range]::-webkit-slider-runnable-track { - width: 300px; - height: 5px; - background: @gray-light; - border: none; - } - - input[type=range]::-webkit-slider-thumb { - -webkit-appearance: none; - border: none; - height: 16px; - width: 16px; - border-radius: 50%; - background: @gray; - margin-top: -5px; - } - - input[type=range]:focus { - outline: none; - } - - input[type=range]:focus::-webkit-slider-runnable-track { - background: @gray-light; - } - - /* Firefox */ - - input[type=range] { - /*required for proper track sizing in FF*/ - width: 300px; - } - - input[type=range]::-moz-range-track { - width: 300px; - height: 5px; - background: #ddd; - border: none; - } - - input[type=range]::-moz-range-thumb { - border: none; - height: 16px; - width: 16px; - border-radius: 50%; - background: @gray; - } - - /*hide the outline behind the border*/ - input[type=range]:-moz-focusring { - outline: 1px solid white; - outline-offset: -1px; - } - - input[type=range]:focus::-moz-range-track { - background: #ccc; - } - + @track-color: @gray-light; + @thumb-color: @gray; + @thumb-border: @text-color; + @focus-border: 2px solid @link-color; + @focus-track-color: lighten(@track-color, 10%); + + input[type="range"] { + -webkit-appearance: none; + appearance: none; + background-color: transparent; + cursor: pointer; + } + + /* WebKit */ + input[type="range"]::-webkit-slider-runnable-track { + height: 0.25rem; + background-color: @track-color; + border: none; + border-radius: 999px; + } + + input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + height: 1rem; + width: 1rem; + margin-top: -5px; + background-color: @thumb-color; + border: 2px solid @thumb-border; + border-radius: 999px; + } + + input[type="range"]:focus::-webkit-slider-thumb { + margin-top: -7px; + } + + input[type="range"]:focus::-webkit-slider-runnable-track { + background-color: @focus-track-color; + border: @focus-border; + } + + /* Firefox */ + input[type="range"]::-moz-range-track { + height: 0.25rem; + background-color: @track-color; + border: none; + border-radius: 999px; + } + + input[type="range"]::-moz-range-thumb { + height: 1rem; + width: 1rem; + margin-top: -0.5rem; + background-color: @thumb-color; + border: 2px solid @thumb-border; + border-radius: 999px; + } + + input[type="range"]:focus::-moz-range-track { + background-color: @focus-track-color; + border: @focus-border; + } /* IE */ diff --git a/src/content-handlers/iiif/modules/uv-shared-module/css/styles.less b/src/content-handlers/iiif/modules/uv-shared-module/css/styles.less index 6492f4bad..a65737286 100644 --- a/src/content-handlers/iiif/modules/uv-shared-module/css/styles.less +++ b/src/content-handlers/iiif/modules/uv-shared-module/css/styles.less @@ -150,22 +150,3 @@ } } -.iiif-gallery-component { - - .header { - .btn { - &.size-up, - &.size-down { - &:focus { - border: 1px solid @link-color; - } - } - } - - input[type="range"] { - &:focus { - border: 2px double @link-color; - } - } - } - }