Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #virtual-cursor-box { |
michael@0 | 6 | position: fixed; |
michael@0 | 7 | border: 1px solid orange; |
michael@0 | 8 | pointer-events: none; |
michael@0 | 9 | display: none; |
michael@0 | 10 | border-radius: 2px; |
michael@0 | 11 | box-shadow: 1px 1px 1px #444; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | #virtual-cursor-inset { |
michael@0 | 15 | border-radius: 1px; |
michael@0 | 16 | box-shadow: inset 1px 1px 1px #444; |
michael@0 | 17 | display: block; |
michael@0 | 18 | box-sizing: border-box; |
michael@0 | 19 | width: 100%; |
michael@0 | 20 | height: 100%; |
michael@0 | 21 | pointer-events: none; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | #announce-box { |
michael@0 | 25 | position: fixed; |
michael@0 | 26 | width: 7.5em; |
michael@0 | 27 | height: 5em; |
michael@0 | 28 | top: calc(100% - 50% - 2.5em); |
michael@0 | 29 | left: calc(100% - 50% - 3.75em); |
michael@0 | 30 | pointer-events: none; |
michael@0 | 31 | display: table; |
michael@0 | 32 | font-size: 28pt; |
michael@0 | 33 | font-weight: 700; |
michael@0 | 34 | color: orange; |
michael@0 | 35 | background-color: black; |
michael@0 | 36 | border-radius: 0.25em; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | #announce-box:not(.showing) { |
michael@0 | 40 | opacity: 0.0; |
michael@0 | 41 | -moz-transition: opacity 0.4s linear; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | #announce-box.showing { |
michael@0 | 45 | opacity: 1.0; |
michael@0 | 46 | -moz-transition: opacity 0.2s linear; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | #announce-box * { |
michael@0 | 50 | text-align: center; |
michael@0 | 51 | display: table-cell; |
michael@0 | 52 | vertical-align: middle; |
michael@0 | 53 | } |