| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 **/ | 5 **/ |
| 6 | 6 |
| 7 body { | 7 body { |
| 8 font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; | 8 font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; |
| 9 font-size: 16px; | 9 font-size: 16px; |
| 10 font-weight: bold; | 10 font-weight: bold; |
| 11 overflow: hidden; | 11 overflow: hidden; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #calculator { | 14 #calculator { |
| 15 bottom: 0px; | 15 bottom: 0px; |
| 16 left: 0px; | 16 left: 0px; |
| 17 position: absolute; | 17 position: absolute; |
| 18 top: 0px; | 18 top: 0px; |
| 19 width: 243px; | 19 width: 243px; |
| 20 } | 20 } |
| 21 | 21 |
| 22 #calculator .buttons { | 22 #calculator .buttons { |
| 23 bottom: 0; | 23 bottom: 0; |
| 24 height: 225px; | 24 height: 225px; |
| 25 left: 0; | 25 left: 0; |
| 26 position: absolute; | 26 position: absolute; |
| 27 right: 0; | 27 right: 0; |
| 28 } | 28 } |
| 29 | 29 |
| 30 #calculator .buttons .button { | 30 #calculator .buttons button { |
| 31 background-size: 486px 225px; | 31 background-size: 486px 225px; |
| 32 float: left; | 32 float: left; |
| 33 height: 45px; | 33 height: 45px; |
| 34 position: static; | 34 position: static; |
| 35 width: 61px; | 35 width: 61px; |
| 36 border: none; |
| 36 } | 37 } |
| 37 | 38 |
| 38 @media all and (-webkit-max-device-pixel-ratio: 1.5) { | 39 @media all and (-webkit-max-device-pixel-ratio: 1.5) { |
| 39 #calculator .buttons .button { | 40 #calculator .buttons button { |
| 40 background-image: url('images/buttons_1x.png'); | 41 background-image: url('images/buttons_1x.png'); |
| 41 } | 42 } |
| 42 } | 43 } |
| 43 | 44 |
| 44 @media all and (-webkit-min-device-pixel-ratio: 1.5) { | 45 @media all and (-webkit-min-device-pixel-ratio: 1.5) { |
| 45 #calculator .buttons .button { | 46 #calculator .buttons button { |
| 46 background-image: url('images/buttons_2x.png'); | 47 background-image: url('images/buttons_2x.png'); |
| 47 } | 48 } |
| 48 } | 49 } |
| 49 | 50 |
| 50 #calculator .buttons .button .a-workaround-for-151985 { | 51 #calculator .buttons button .a-workaround-for-151985 { |
| 51 height: 45px; /* .a-workaround-for-151985 styles and elements hide */ | 52 height: 45px; /* .a-workaround-for-151985 styles and elements hide */ |
| 52 left: 60px; /* the column of dead pixels at the right edge of the */ | 53 left: 60px; /* the column of dead pixels at the right edge of the */ |
| 53 position: relative; /* screen on OS X where http://crbug.com/151985 makes */ | 54 position: relative; /* screen on OS X where http://crbug.com/151985 makes */ |
| 54 width: 1px; /* the calculator window one pixels too wide. They can */ | 55 width: 1px; /* the calculator window one pixels too wide. They can */ |
| 55 } /* all be removed when that issue is fixed. */ | 56 } /* all be removed when that issue is fixed. */ |
| 56 | 57 |
| 57 #calculator .buttons .button.add { | 58 #calculator .buttons button.add { |
| 58 background-position: -183px -90px; | 59 background-position: -183px -90px; |
| 59 background-size: 486px 225px; | 60 background-size: 486px 225px; |
| 60 width: 60px; | 61 width: 60px; |
| 61 } | 62 } |
| 62 | 63 |
| 63 #calculator .buttons .button.add:active { | 64 #calculator .buttons button.add:active { |
| 64 background-position: -426px -90px; | 65 background-position: -426px -90px; |
| 65 } | 66 } |
| 66 | 67 |
| 67 #calculator .buttons .button.add .a-workaround-for-151985 { | 68 #calculator .buttons button.add .a-workaround-for-151985 { |
| 68 background: -webkit-linear-gradient(rgb(71, 71, 71), rgb(51, 51, 51)); | 69 background: -webkit-linear-gradient(rgb(71, 71, 71), rgb(51, 51, 51)); |
| 69 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), | 70 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), |
| 70 inset 0px 2px 0px 0px rgb(87, 87, 87); | 71 inset 0px 2px 0px 0px rgb(87, 87, 87); |
| 71 } | 72 } |
| 72 | 73 |
| 73 #calculator .buttons .button.add:active .a-workaround-for-151985 { | 74 #calculator .buttons button.add:active .a-workaround-for-151985 { |
| 74 background: -webkit-linear-gradient(rgb(51, 51, 51), rgb(45, 45, 45)); | 75 background: -webkit-linear-gradient(rgb(51, 51, 51), rgb(45, 45, 45)); |
| 75 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), | 76 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), |
| 76 inset 0px 2px 0px 0px rgb(43, 43, 43); | 77 inset 0px 2px 0px 0px rgb(43, 43, 43); |
| 77 } | 78 } |
| 78 | 79 |
| 79 #calculator .buttons .button.clear { | 80 #calculator .buttons button.clear { |
| 80 /* The default background-position: 0 0; is fine */ | 81 /* The default background-position: 0 0; is fine */ |
| 81 } | 82 } |
| 82 | 83 |
| 83 #calculator .buttons .button.clear:active { | 84 #calculator .buttons button.clear:active { |
| 84 background-position: -243px 0; | 85 background-position: -243px 0; |
| 85 } | 86 } |
| 86 | 87 |
| 87 #calculator .buttons .button.divide { | 88 #calculator .buttons button.divide { |
| 88 background-position: -122px 0; | 89 background-position: -122px 0; |
| 89 } | 90 } |
| 90 | 91 |
| 91 #calculator .buttons .button.divide:active { | 92 #calculator .buttons button.divide:active { |
| 92 background-position: -365px 0; | 93 background-position: -365px 0; |
| 93 } | 94 } |
| 94 | 95 |
| 95 #calculator .buttons .button.eight { | 96 #calculator .buttons button.eight { |
| 96 background-position: -61px -45px; | 97 background-position: -61px -45px; |
| 97 } | 98 } |
| 98 | 99 |
| 99 #calculator .buttons .button.eight:active { | 100 #calculator .buttons button.eight:active { |
| 100 background-position: -304px -45px; | 101 background-position: -304px -45px; |
| 101 } | 102 } |
| 102 | 103 |
| 103 #calculator .buttons .button.equals { | 104 #calculator .buttons button.equals { |
| 104 background-position: -183px -135px; | 105 background-position: -183px -135px; |
| 105 background-size: 486px 225px; | 106 background-size: 486px 225px; |
| 106 height: 90px; | 107 height: 90px; |
| 107 margin-bottom: -45px; | 108 margin-bottom: -45px; |
| 108 width: 60px; | 109 width: 60px; |
| 109 } | 110 } |
| 110 | 111 |
| 111 #calculator .buttons .button.equals:active { | 112 #calculator .buttons button.equals:active { |
| 112 background-position: -426px -135px; | 113 background-position: -426px -135px; |
| 113 } | 114 } |
| 114 | 115 |
| 115 #calculator .buttons .button.equals .a-workaround-for-151985 { | 116 #calculator .buttons button.equals .a-workaround-for-151985 { |
| 116 background: -webkit-linear-gradient(rgb(94, 162, 252), rgb(70, 118, 252)); | 117 background: -webkit-linear-gradient(rgb(94, 162, 252), rgb(70, 118, 252)); |
| 117 box-shadow: inset 0px 1px 0px 0px rgb(29, 29, 29), | 118 box-shadow: inset 0px 1px 0px 0px rgb(29, 29, 29), |
| 118 inset 0px 2px 0px 0px rgb(115, 175, 253); | 119 inset 0px 2px 0px 0px rgb(115, 175, 253); |
| 119 height: 90px; | 120 height: 90px; |
| 120 } | 121 } |
| 121 | 122 |
| 122 #calculator .buttons .button.equals:active .a-workaround-for-151985 { | 123 #calculator .buttons button.equals:active .a-workaround-for-151985 { |
| 123 background: -webkit-linear-gradient(rgb(66, 114, 185), rgb(49, 86, 185)); | 124 background: -webkit-linear-gradient(rgb(66, 114, 185), rgb(49, 86, 185)); |
| 124 box-shadow: inset 0px 1px 0px 0px rgb(29, 29, 29), | 125 box-shadow: inset 0px 1px 0px 0px rgb(29, 29, 29), |
| 125 inset 0px 2px 0px 0px rgb(48, 82, 136); | 126 inset 0px 2px 0px 0px rgb(48, 82, 136); |
| 126 height: 90px; | 127 height: 90px; |
| 127 } | 128 } |
| 128 | 129 |
| 129 #calculator .buttons .button.five { | 130 #calculator .buttons button.five { |
| 130 background-position: -61px -90px; | 131 background-position: -61px -90px; |
| 131 } | 132 } |
| 132 | 133 |
| 133 #calculator .buttons .button.five:active { | 134 #calculator .buttons button.five:active { |
| 134 background-position: -304px -90px; | 135 background-position: -304px -90px; |
| 135 } | 136 } |
| 136 | 137 |
| 137 #calculator .buttons .button.four { | 138 #calculator .buttons button.four { |
| 138 background-position: 0 -90px; | 139 background-position: 0 -90px; |
| 139 } | 140 } |
| 140 | 141 |
| 141 #calculator .buttons .button.four:active { | 142 #calculator .buttons button.four:active { |
| 142 background-position: -243px -90px; | 143 background-position: -243px -90px; |
| 143 } | 144 } |
| 144 | 145 |
| 145 #calculator .buttons .button.multiply { | 146 #calculator .buttons button.multiply { |
| 146 background-position: -183px 0; | 147 background-position: -183px 0; |
| 147 background-size: 486px 225px; | 148 background-size: 486px 225px; |
| 148 width: 60px; | 149 width: 60px; |
| 149 } | 150 } |
| 150 | 151 |
| 151 #calculator .buttons .button.multiply:active { | 152 #calculator .buttons button.multiply:active { |
| 152 background-position: -426px 0; | 153 background-position: -426px 0; |
| 153 } | 154 } |
| 154 | 155 |
| 155 #calculator .buttons .button.multiply .a-workaround-for-151985 { | 156 #calculator .buttons button.multiply .a-workaround-for-151985 { |
| 156 background: -webkit-linear-gradient(rgb(76, 76, 76), rgb(67, 67, 67)); | 157 background: -webkit-linear-gradient(rgb(76, 76, 76), rgb(67, 67, 67)); |
| 157 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), | 158 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), |
| 158 inset 0px 2px 0px 0px rgb(105, 105, 105); | 159 inset 0px 2px 0px 0px rgb(105, 105, 105); |
| 159 } | 160 } |
| 160 | 161 |
| 161 #calculator .buttons .button.multiply:active .a-workaround-for-151985 { | 162 #calculator .buttons button.multiply:active .a-workaround-for-151985 { |
| 162 background: -webkit-linear-gradient(rgb(53, 53, 53), rgb(53, 53, 53)); | 163 background: -webkit-linear-gradient(rgb(53, 53, 53), rgb(53, 53, 53)); |
| 163 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), | 164 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), |
| 164 inset 0px 2px 0px 0px rgb(45, 45, 45); | 165 inset 0px 2px 0px 0px rgb(45, 45, 45); |
| 165 } | 166 } |
| 166 | 167 |
| 167 #calculator .buttons .button.negate { | 168 #calculator .buttons button.negate { |
| 168 background-position: -61px 0; | 169 background-position: -61px 0; |
| 169 } | 170 } |
| 170 | 171 |
| 171 #calculator .buttons .button.negate:active { | 172 #calculator .buttons button.negate:active { |
| 172 background-position: -304px 0; | 173 background-position: -304px 0; |
| 173 } | 174 } |
| 174 | 175 |
| 175 #calculator .buttons .button.nine { | 176 #calculator .buttons button.nine { |
| 176 background-position: -122px -45px; | 177 background-position: -122px -45px; |
| 177 } | 178 } |
| 178 | 179 |
| 179 #calculator .buttons .button.nine:active { | 180 #calculator .buttons button.nine:active { |
| 180 background-position: -365px -45px; | 181 background-position: -365px -45px; |
| 181 } | 182 } |
| 182 | 183 |
| 183 #calculator .buttons .button.one { | 184 #calculator .buttons button.one { |
| 184 background-position: 0 -135px; | 185 background-position: 0 -135px; |
| 185 } | 186 } |
| 186 | 187 |
| 187 #calculator .buttons .button.one:active { | 188 #calculator .buttons button.one:active { |
| 188 background-position: -243px -135px; | 189 background-position: -243px -135px; |
| 189 } | 190 } |
| 190 | 191 |
| 191 #calculator .buttons .button.point { | 192 #calculator .buttons button.point { |
| 192 background-position: -122px -180px; | 193 background-position: -122px -180px; |
| 193 } | 194 } |
| 194 | 195 |
| 195 #calculator .buttons .button.point:active { | 196 #calculator .buttons button.point:active { |
| 196 background-position: -365px -180px; | 197 background-position: -365px -180px; |
| 197 } | 198 } |
| 198 | 199 |
| 199 #calculator .buttons .button.seven { | 200 #calculator .buttons button.seven { |
| 200 background-position: 0 -45px; | 201 background-position: 0 -45px; |
| 201 } | 202 } |
| 202 | 203 |
| 203 #calculator .buttons .button.seven:active { | 204 #calculator .buttons button.seven:active { |
| 204 background-position: -243px -45px; | 205 background-position: -243px -45px; |
| 205 } | 206 } |
| 206 | 207 |
| 207 #calculator .buttons .button.six { | 208 #calculator .buttons button.six { |
| 208 background-position: -122px -90px; | 209 background-position: -122px -90px; |
| 209 } | 210 } |
| 210 | 211 |
| 211 #calculator .buttons .button.six:active { | 212 #calculator .buttons button.six:active { |
| 212 background-position: -365px -90px; | 213 background-position: -365px -90px; |
| 213 } | 214 } |
| 214 | 215 |
| 215 #calculator .buttons .button.subtract { | 216 #calculator .buttons button.subtract { |
| 216 background-position: -183px -45px; | 217 background-position: -183px -45px; |
| 217 background-size: 486px 225px; | 218 background-size: 486px 225px; |
| 218 width: 60px; | 219 width: 60px; |
| 219 } | 220 } |
| 220 | 221 |
| 221 #calculator .buttons .button.subtract:active { | 222 #calculator .buttons button.subtract:active { |
| 222 background-position: -426px -45px; | 223 background-position: -426px -45px; |
| 223 } | 224 } |
| 224 | 225 |
| 225 #calculator .buttons .button.subtract .a-workaround-for-151985 { | 226 #calculator .buttons button.subtract .a-workaround-for-151985 { |
| 226 background: -webkit-linear-gradient(rgb(75, 75, 75), rgb(60, 60, 60)); | 227 background: -webkit-linear-gradient(rgb(75, 75, 75), rgb(60, 60, 60)); |
| 227 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), | 228 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), |
| 228 inset 0px 2px 0px 0px rgb(96, 96, 96); | 229 inset 0px 2px 0px 0px rgb(96, 96, 96); |
| 229 } | 230 } |
| 230 | 231 |
| 231 #calculator .buttons .button.subtract:active .a-workaround-for-151985 { | 232 #calculator .buttons button.subtract:active .a-workaround-for-151985 { |
| 232 background: -webkit-linear-gradient(rgb(53, 53, 53), rgb(50, 50, 50)); | 233 background: -webkit-linear-gradient(rgb(53, 53, 53), rgb(50, 50, 50)); |
| 233 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), | 234 box-shadow: inset 0px 1px 0px 0px rgb(30, 30, 30), |
| 234 inset 0px 2px 0px 0px rgb(48, 48, 48); | 235 inset 0px 2px 0px 0px rgb(48, 48, 48); |
| 235 } | 236 } |
| 236 | 237 |
| 237 #calculator .buttons .button.three { | 238 #calculator .buttons button.three { |
| 238 background-position: -122px -135px; | 239 background-position: -122px -135px; |
| 239 } | 240 } |
| 240 | 241 |
| 241 #calculator .buttons .button.three:active { | 242 #calculator .buttons button.three:active { |
| 242 background-position: -365px -135px; | 243 background-position: -365px -135px; |
| 243 } | 244 } |
| 244 | 245 |
| 245 #calculator .buttons .button.two { | 246 #calculator .buttons button.two { |
| 246 background-position: -61px -135px; | 247 background-position: -61px -135px; |
| 247 } | 248 } |
| 248 | 249 |
| 249 #calculator .buttons .button.two:active { | 250 #calculator .buttons button.two:active { |
| 250 background-position: -304px -135px; | 251 background-position: -304px -135px; |
| 251 } | 252 } |
| 252 | 253 |
| 253 #calculator .buttons .button.zero { | 254 #calculator .buttons button.zero { |
| 254 background-position: 0 -180px; | 255 background-position: 0 -180px; |
| 255 width: 122px; | 256 width: 122px; |
| 256 } | 257 } |
| 257 | 258 |
| 258 #calculator .buttons .button.zero:active { | 259 #calculator .buttons button.zero:active { |
| 259 background-position: -243px -180px; | 260 background-position: -243px -180px; |
| 260 } | 261 } |
| 261 | 262 |
| 262 #calculator .display, | 263 #calculator .display, |
| 263 #calculator .display:focus { | 264 #calculator .display:focus { |
| 264 background: #fff; | 265 background: #fff; |
| 265 bottom: 225px; | 266 bottom: 225px; |
| 266 left: 0; | 267 left: 0; |
| 267 letter-spacing: 1px; | 268 letter-spacing: 1px; |
| 268 line-height: 20px; | 269 line-height: 20px; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 287 height: 13px; | 288 height: 13px; |
| 288 line-height: 13px; | 289 line-height: 13px; |
| 289 max-width: 72px; | 290 max-width: 72px; |
| 290 overflow: hidden; | 291 overflow: hidden; |
| 291 padding-bottom: 3px; | 292 padding-bottom: 3px; |
| 292 padding-top: 6px; | 293 padding-top: 6px; |
| 293 text-align: left; | 294 text-align: left; |
| 294 width: 85px; | 295 width: 85px; |
| 295 } | 296 } |
| 296 | 297 |
| 297 #calculator .display .equation .operand { | 298 #calculator .display .equation .operation { |
| 299 float: right; |
| 300 } |
| 301 |
| 302 #calculator .display .equation .operation .operand { |
| 298 color: #2c2c2c; | 303 color: #2c2c2c; |
| 299 float: right; | |
| 300 height: 16px; | 304 height: 16px; |
| 301 line-height: 16px; | 305 line-height: 16px; |
| 302 max-width: 88px; | 306 max-width: 88px; |
| 303 overflow: hidden; | 307 overflow: hidden; |
| 304 padding-bottom: 3px; | 308 padding-bottom: 3px; |
| 305 padding-top: 3px; | 309 padding-top: 3px; |
| 306 text-align: right; | 310 text-align: right; |
| 307 } | 311 } |
| 308 | 312 |
| 309 #calculator .display .equation .operator { | 313 #calculator .display .equation .operation .operator { |
| 310 color: #2c2c2c; | 314 color: #2c2c2c; |
| 311 float: right; | |
| 312 height: 22px; | 315 height: 22px; |
| 313 line-height: 16px; | 316 line-height: 16px; |
| 314 padding-bottom: 3px; | 317 padding-bottom: 3px; |
| 315 padding-right: 5px; | 318 padding-right: 5px; |
| 316 padding-top: 3px; | 319 padding-top: 3px; |
| 317 width: 15px; | 320 width: 15px; |
| 318 } | 321 } |
| 319 | 322 |
| 320 #calculator .display .hr { | 323 #calculator .display .hr { |
| 321 border-top: 1px solid #d9d9d9; | 324 border-top: 1px solid #d9d9d9; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 339 | 342 |
| 340 #calculator .fade .gradient { | 343 #calculator .fade .gradient { |
| 341 background: -webkit-linear-gradient(rgba(255, 255, 255, 1), | 344 background: -webkit-linear-gradient(rgba(255, 255, 255, 1), |
| 342 rgba(255, 255, 255, 0)); | 345 rgba(255, 255, 255, 0)); |
| 343 height: 20px; | 346 height: 20px; |
| 344 } | 347 } |
| 345 | 348 |
| 346 ::-webkit-scrollbar { | 349 ::-webkit-scrollbar { |
| 347 display: none; | 350 display: none; |
| 348 } | 351 } |
| OLD | NEW |