|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +* { |
| 20 | + -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ |
| 21 | +} |
| 22 | + |
| 23 | +body { |
| 24 | + -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ |
| 25 | + -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ |
| 26 | + -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ |
| 27 | + background-color:#E4E4E4; |
| 28 | + background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); |
| 29 | + background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); |
| 30 | + background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); |
| 31 | + background-image:-webkit-gradient( |
| 32 | + linear, |
| 33 | + left top, |
| 34 | + left bottom, |
| 35 | + color-stop(0, #A7A7A7), |
| 36 | + color-stop(0.51, #E4E4E4) |
| 37 | + ); |
| 38 | + background-attachment:fixed; |
| 39 | + font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; |
| 40 | + font-size:12px; |
| 41 | + height:100%; |
| 42 | + margin:0px; |
| 43 | + padding:0px; |
| 44 | + text-transform:uppercase; |
| 45 | + width:100%; |
| 46 | +} |
| 47 | + |
| 48 | +/* Portrait layout (default) */ |
| 49 | +.app { |
| 50 | + background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ |
| 51 | + position:absolute; /* position in the center of the screen */ |
| 52 | + left:50%; |
| 53 | + top:50%; |
| 54 | + height:50px; /* text area height */ |
| 55 | + width:225px; /* text area width */ |
| 56 | + text-align:center; |
| 57 | + padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ |
| 58 | + margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ |
| 59 | + /* offset horizontal: half of text area width */ |
| 60 | +} |
| 61 | + |
| 62 | +/* Landscape layout (with min-width) */ |
| 63 | +@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { |
| 64 | + .app { |
| 65 | + background-position:left center; |
| 66 | + padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ |
| 67 | + margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ |
| 68 | + /* offset horizontal: half of image width and text area width */ |
| 69 | + } |
| 70 | +} |
| 71 | + |
| 72 | +h1 { |
| 73 | + font-size:24px; |
| 74 | + font-weight:normal; |
| 75 | + margin:0px; |
| 76 | + overflow:visible; |
| 77 | + padding:0px; |
| 78 | + text-align:center; |
| 79 | +} |
| 80 | + |
| 81 | +.event { |
| 82 | + border-radius:4px; |
| 83 | + -webkit-border-radius:4px; |
| 84 | + color:#FFFFFF; |
| 85 | + font-size:12px; |
| 86 | + margin:0px 30px; |
| 87 | + padding:2px 0px; |
| 88 | +} |
| 89 | + |
| 90 | +.event.listening { |
| 91 | + background-color:#333333; |
| 92 | + display:block; |
| 93 | +} |
| 94 | + |
| 95 | +.event.received { |
| 96 | + background-color:#4B946A; |
| 97 | + display:none; |
| 98 | +} |
| 99 | + |
| 100 | +@keyframes fade { |
| 101 | + from { opacity: 1.0; } |
| 102 | + 50% { opacity: 0.4; } |
| 103 | + to { opacity: 1.0; } |
| 104 | +} |
| 105 | + |
| 106 | +@-webkit-keyframes fade { |
| 107 | + from { opacity: 1.0; } |
| 108 | + 50% { opacity: 0.4; } |
| 109 | + to { opacity: 1.0; } |
| 110 | +} |
| 111 | + |
| 112 | +.blink { |
| 113 | + animation:fade 3000ms infinite; |
| 114 | + -webkit-animation:fade 3000ms infinite; |
| 115 | +} |
0 commit comments