Mercurial > hg > webaudioevaluationtool
annotate mushra.css @ 1437:7b4f1f54404c
MUSHRA: Slider styling across browsers so easy to see. Sliders start grey and turn white when moved. Added mushra example test
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Fri, 18 Dec 2015 12:04:04 +0000 |
parents | cfbe1252ff4c |
children | 1ba2d8685c47 |
rev | line source |
---|---|
nickjillings@1392 | 1 /* |
nickjillings@1392 | 2 * Hold any style information for MUSHRA interface. Customise if you like to make the interface your own! |
nickjillings@1392 | 3 * |
nickjillings@1392 | 4 */ |
nickjillings@1392 | 5 body { |
nickjillings@1392 | 6 /* Set the background colour (note US English spelling) to grey*/ |
nickjillings@1392 | 7 background-color: #ddd |
nickjillings@1392 | 8 } |
nickjillings@1392 | 9 |
nickjillings@1392 | 10 div.pageTitle { |
nickjillings@1392 | 11 width: auto; |
nickjillings@1392 | 12 height: 20px; |
nickjillings@1392 | 13 margin-top: 20px; |
nickjillings@1392 | 14 } |
nickjillings@1392 | 15 |
nickjillings@1392 | 16 div.pageTitle span{ |
nickjillings@1392 | 17 font-size: 1.5em; |
nickjillings@1392 | 18 } |
nickjillings@1392 | 19 |
nickjillings@1392 | 20 div.testHalt { |
nickjillings@1392 | 21 /* Specify any colouring during the test halt for pre/post questions */ |
nickjillings@1392 | 22 background-color: rgba(0,0,0,0.5); |
nickjillings@1392 | 23 /* Don't mess with this bit */ |
nickjillings@1392 | 24 z-index: 2; |
nickjillings@1392 | 25 width: 100%; |
nickjillings@1392 | 26 height: 100%; |
nickjillings@1392 | 27 position: absolute; |
nickjillings@1392 | 28 left: 0px; |
nickjillings@1392 | 29 top: 0px; |
nickjillings@1392 | 30 } |
nickjillings@1392 | 31 |
nickjillings@1392 | 32 button { |
nickjillings@1392 | 33 /* Specify any button structure or style */ |
nickjillings@1392 | 34 min-width: 20px; |
nickjillings@1392 | 35 background-color: #ddd |
nickjillings@1392 | 36 } |
nickjillings@1392 | 37 |
nickjillings@1392 | 38 |
nickjillings@1392 | 39 div.track-slider { |
nickjillings@1392 | 40 float: left; |
nickjillings@1392 | 41 width: 94px; |
nickjillings@1392 | 42 border: solid; |
nickjillings@1392 | 43 border-width: 1px; |
nickjillings@1392 | 44 border-color: black; |
nickjillings@1392 | 45 padding:2px; |
nickjillings@1392 | 46 } |
nickjillings@1392 | 47 |
nickjillings@1393 | 48 div.track-slider-playing { |
nickjillings@1393 | 49 background-color: #FFDDDD; |
nickjillings@1393 | 50 } |
nickjillings@1393 | 51 |
nickjillings@1393 | 52 input.track-slider-range { |
nickjillings@1437 | 53 margin: 2px 0px; |
nickjillings@1393 | 54 } |
nickjillings@1393 | 55 |
nickjillings@1392 | 56 input[type=range][orient=vertical] |
nickjillings@1392 | 57 { |
nickjillings@1392 | 58 writing-mode: bt-lr; /* IE */ |
nickjillings@1392 | 59 -webkit-appearance: slider-vertical; /* WebKit */ |
nickjillings@1392 | 60 width: 8px; |
nickjillings@1392 | 61 padding: 0 5px; |
nickjillings@1396 | 62 color: rgb(255, 144, 144); |
nickjillings@1437 | 63 } |
nickjillings@1437 | 64 |
nickjillings@1437 | 65 input[type=range]::-webkit-slider-runnable-track { |
nickjillings@1437 | 66 width: 8px; |
nickjillings@1437 | 67 cursor: pointer; |
nickjillings@1437 | 68 background: #fff; |
nickjillings@1437 | 69 border-radius: 4px; |
nickjillings@1437 | 70 border: 1px solid #000; |
nickjillings@1437 | 71 } |
nickjillings@1437 | 72 |
nickjillings@1437 | 73 input[type=range]::-moz-range-track { |
nickjillings@1437 | 74 width: 8px; |
nickjillings@1437 | 75 cursor: pointer; |
nickjillings@1437 | 76 background: #fff; |
nickjillings@1437 | 77 border-radius: 4px; |
nickjillings@1437 | 78 border: 1px solid #000; |
nickjillings@1437 | 79 } |
nickjillings@1437 | 80 |
nickjillings@1437 | 81 input.track-slider-not-moved[type=range]::-webkit-slider-runnable-track { |
nickjillings@1437 | 82 background: #aaa; |
nickjillings@1437 | 83 } |
nickjillings@1437 | 84 |
nickjillings@1437 | 85 input.track-slider-not-moved[type=range]::-moz-range-track { |
nickjillings@1437 | 86 background: #aaa; |
nickjillings@1437 | 87 } |
nickjillings@1437 | 88 |
nickjillings@1437 | 89 input[type=range]::-moz-range-thumb { |
nickjillings@1437 | 90 margin-left: -7px; |
nickjillings@1437 | 91 cursor: pointer; |
nickjillings@1437 | 92 margin-top: -1px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */ |
nickjillings@1437 | 93 box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; /* Add cool effects to your sliders! */ |
nickjillings@1437 | 94 } |
nickjillings@1437 | 95 |
nickjillings@1437 | 96 input[type=range]::-webkit-slider-thumb { |
nickjillings@1437 | 97 margin-left: -7px; |
nickjillings@1437 | 98 cursor: pointer; |
nickjillings@1437 | 99 margin-top: -1px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */ |
nickjillings@1437 | 100 box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; /* Add cool effects to your sliders! */ |
nickjillings@1392 | 101 } |