|
| 1 | +/* |
| 2 | + The glorious buttons. |
| 3 | +*/ |
| 4 | +button { |
| 5 | + position: relative; |
| 6 | + |
| 7 | + width: 100px; |
| 8 | + height: 40px; |
| 9 | + |
| 10 | + color: #fbfbfb; |
| 11 | + background: linear-gradient(to bottom, #4eb5e5 0%,#389ed5 100%); /* W3C */ |
| 12 | + |
| 13 | + border: none; |
| 14 | + border-bottom: 4px solid #2b8bc6; |
| 15 | + border-radius: 5px; |
| 16 | + |
| 17 | + margin: 0 5px; |
| 18 | + |
| 19 | + box-shadow: 0px 3px 0px 0px rgba(0,0,0,.2); |
| 20 | + text-shadow: 0 0 1px rgba(0,0,0,.4); |
| 21 | + |
| 22 | + font-size: 15px; |
| 23 | + |
| 24 | + text-align: center; |
| 25 | + text-indent: 0; |
| 26 | + |
| 27 | + cursor: pointer; |
| 28 | +} |
| 29 | + |
| 30 | +button:active { |
| 31 | + top: 1px; |
| 32 | + box-shadow: 0px 2px 0px 0px rgba(0,0,0,.2); |
| 33 | +} |
| 34 | + |
| 35 | +/* Button pointing left */ |
| 36 | +button.prev { |
| 37 | + text-align: right; |
| 38 | + text-indent: 5px; |
| 39 | + |
| 40 | + padding-right: 12px; |
| 41 | + box-sizing: border-box; |
| 42 | +} |
| 43 | +button.prev:after { |
| 44 | + content: ""; |
| 45 | + width: 0; |
| 46 | + height: 0; |
| 47 | + display: block; |
| 48 | + position: absolute; |
| 49 | + left: 0; |
| 50 | + top: 0; |
| 51 | + |
| 52 | + opacity: 0.6; |
| 53 | + border-top: 20px solid #187dbc; |
| 54 | + border-bottom: 20px solid #187dbc; |
| 55 | + border-right: 16px solid transparent; |
| 56 | + border-left: 20px solid #187dbc; |
| 57 | + |
| 58 | + border-radius: 5px 0 0 5px; |
| 59 | +} |
| 60 | + |
| 61 | +/* Next button */ |
| 62 | +button.next { |
| 63 | + text-align: left; |
| 64 | + text-indent: 5px; |
| 65 | +} |
| 66 | + |
| 67 | +button.next:after { |
| 68 | + content: ""; |
| 69 | + width: 0; |
| 70 | + height: 0; |
| 71 | + display: block; |
| 72 | + border-top: 20px solid #187dbc; |
| 73 | + border-bottom: 20px solid #187dbc; |
| 74 | + border-left: 16px solid transparent; |
| 75 | + border-right: 20px solid #187dbc; |
| 76 | + position: absolute; |
| 77 | + opacity: 0.6; |
| 78 | + right: 0; |
| 79 | + top: 0; |
| 80 | + border-radius: 0 5px 5px 0; |
| 81 | +} |
| 82 | + |
| 83 | +/* Slider Styling, thanks range.css! */ |
| 84 | +.slider { |
| 85 | + -webkit-appearance: none; |
| 86 | + width: 100%; |
| 87 | + margin: 6.5px 0; |
| 88 | + background: inherit; |
| 89 | +} |
| 90 | +.slider:focus { |
| 91 | + outline: none; |
| 92 | +} |
| 93 | +.slider::-webkit-slider-runnable-track { |
| 94 | + width: 100%; |
| 95 | + height: 3px; |
| 96 | + cursor: pointer; |
| 97 | + box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d; |
| 98 | + background: #4eb5e5; |
| 99 | + border-radius: 1.6px; |
| 100 | + border: 0px solid #010101; |
| 101 | +} |
| 102 | +.slider::-webkit-slider-thumb { |
| 103 | + box-shadow: 0px 0px 3px rgba(43, 139, 198, 0.49), 0px 0px 0px rgba(55, 152, 212, 0.49); |
| 104 | + border: 1px solid #2b8bc6; |
| 105 | + height: 16px; |
| 106 | + width: 20px; |
| 107 | + border-radius: 16px; |
| 108 | + background: rgba(24, 125, 188, 0.93); |
| 109 | + cursor: pointer; |
| 110 | + -webkit-appearance: none; |
| 111 | + margin-top: -6.5px; |
| 112 | +} |
| 113 | +.slider:focus::-webkit-slider-runnable-track { |
| 114 | + background: #64bee8; |
| 115 | +} |
| 116 | +.slider::-moz-range-track { |
| 117 | + width: 100%; |
| 118 | + height: 3px; |
| 119 | + cursor: pointer; |
| 120 | + box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d; |
| 121 | + background: #4eb5e5; |
| 122 | + border-radius: 1.6px; |
| 123 | + border: 0px solid #010101; |
| 124 | +} |
| 125 | +.slider::-moz-range-thumb { |
| 126 | + box-shadow: 0px 0px 3px rgba(43, 139, 198, 0.49), 0px 0px 0px rgba(55, 152, 212, 0.49); |
| 127 | + border: 1px solid #2b8bc6; |
| 128 | + height: 16px; |
| 129 | + width: 20px; |
| 130 | + border-radius: 16px; |
| 131 | + background: rgba(24, 125, 188, 0.93); |
| 132 | + cursor: pointer; |
| 133 | +} |
| 134 | +.slider::-ms-track { |
| 135 | + width: 100%; |
| 136 | + height: 3px; |
| 137 | + cursor: pointer; |
| 138 | + background: transparent; |
| 139 | + border-color: transparent; |
| 140 | + color: transparent; |
| 141 | +} |
| 142 | +.slider::-ms-fill-lower { |
| 143 | + background: #38ace2; |
| 144 | + border: 0px solid #010101; |
| 145 | + border-radius: 3.2px; |
| 146 | + box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d; |
| 147 | +} |
| 148 | +.slider::-ms-fill-upper { |
| 149 | + background: #4eb5e5; |
| 150 | + border: 0px solid #010101; |
| 151 | + border-radius: 3.2px; |
| 152 | + box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d; |
| 153 | +} |
| 154 | +.slider::-ms-thumb { |
| 155 | + box-shadow: 0px 0px 3px rgba(43, 139, 198, 0.49), 0px 0px 0px rgba(55, 152, 212, 0.49); |
| 156 | + border: 1px solid #2b8bc6; |
| 157 | + height: 16px; |
| 158 | + width: 20px; |
| 159 | + border-radius: 16px; |
| 160 | + background: rgba(24, 125, 188, 0.93); |
| 161 | + cursor: pointer; |
| 162 | + height: 3px; |
| 163 | +} |
| 164 | +.slider:focus::-ms-fill-lower { |
| 165 | + background: #4eb5e5; |
| 166 | +} |
| 167 | +.slider:focus::-ms-fill-upper { |
| 168 | + background: #64bee8; |
| 169 | +} |
| 170 | + |
| 171 | +/* Containers */ |
| 172 | +.state-container h2 { |
| 173 | + text-align: center; |
| 174 | +} |
| 175 | + |
| 176 | +.controls-container { |
| 177 | + display: flex; |
| 178 | + flex-flow: row nowrap; |
| 179 | + justify-content: center; |
| 180 | +} |
| 181 | + |
| 182 | +.slider-container { |
| 183 | + text-align: center; |
| 184 | + width: 75%; |
| 185 | + margin: 1em auto; |
| 186 | +} |
0 commit comments