2 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 .accelerometer-stage {
32 -webkit-perspective: 700px;
33 -webkit-perspective-origin: 50% 50%;
47 -webkit-transform-style: preserve-3d
;
50 .accelerometer-box section {
58 -webkit-transform-style: flat
;
59 -webkit-box-shadow: inset
0 0 15px rgba
(0, 0, 0, 0.7);
62 .accelerometer-box .front {
63 border:15px solid black
;
66 background-color: gray
;
67 transform: translate3d
(0, 0, 10px);
70 .accelerometer-box .back {
73 background-color: black
;
74 transform: rotateY
(-180deg) translate3d
(0, 0, 10px);
77 .accelerometer-box .top {
81 background-color: #75CE89;
82 transform: rotateX
(-90deg) translate3d
(0, 0, -10px);
85 .accelerometer-box .bottom {
89 background-color: #865C6C;
90 transform: rotateX
(90deg) translate3d
(0, 0, -97px);
93 .accelerometer-box .left {
96 background-color: #7992CB;
97 transform: rotateY
(90deg) translate3d
(0, 0, 70px);
100 .accelerometer-box .right {
103 background-color: #7992CB;
104 transform: rotateY
(-90deg) translate3d
(0, 0, 10px);
107 .accelerometer-axis-input-container {
111 .accelerometer-inputs-cell {
115 .accelerometer-reset-button {