| OLD | NEW |
| (Empty) |
| 1 /* Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file */ | |
| 2 /* for details. All rights reserved. Use of this source code is governed by a */ | |
| 3 /* BSD-style license that can be found in the LICENSE file. */ | |
| 4 | |
| 5 .hbox, | |
| 6 .vbox { | |
| 7 display: -moz-box; | |
| 8 display: -webkit-box; | |
| 9 -moz-box-align: stretch; | |
| 10 -webkit-box-align: stretch; | |
| 11 overflow: hidden; | |
| 12 } | |
| 13 | |
| 14 .vbox { | |
| 15 -moz-box-orient: vertical; | |
| 16 -webkit-box-orient: vertical; | |
| 17 } | |
| 18 | |
| 19 .hbox { | |
| 20 -moz-box-orient: horizontal; | |
| 21 -webkit-box-orient: horizontal; | |
| 22 } | |
| 23 | |
| 24 .flex { | |
| 25 -moz-box-flex: 1; | |
| 26 -webkit-box-flex: 1; | |
| 27 } | |
| 28 | |
| 29 .center { | |
| 30 -moz-box-pack: center; | |
| 31 -webkit-box-pack: center; | |
| 32 } | |
| 33 | |
| 34 .own { | |
| 35 position: relative; | |
| 36 background: #fff; | |
| 37 width: 500px; | |
| 38 height: 500px; | |
| 39 margin: 2px; | |
| 40 } | |
| 41 | |
| 42 .enemy { | |
| 43 position: relative; | |
| 44 background: #fff; | |
| 45 width: 500px; | |
| 46 height: 550px; | |
| 47 margin: 2px; | |
| 48 } | |
| 49 | |
| 50 .icons { | |
| 51 background-image: url(icons.gif); | |
| 52 background-repeat: no-repeat; | |
| 53 } | |
| 54 | |
| 55 .water { | |
| 56 position:relative; | |
| 57 background-position: 0 0; | |
| 58 width:50px; | |
| 59 height:50px; | |
| 60 z-index: 1; | |
| 61 } | |
| 62 | |
| 63 .miss { | |
| 64 position:absolute; | |
| 65 background-position: -50px 0; | |
| 66 width:50px; | |
| 67 height:50px; | |
| 68 z-index: 3; | |
| 69 } | |
| 70 | |
| 71 .hit { | |
| 72 position:absolute; | |
| 73 background-position: -100px 0; | |
| 74 width:50px; | |
| 75 height:50px; | |
| 76 z-index: 3; | |
| 77 } | |
| 78 | |
| 79 .hit-onboat { | |
| 80 position:absolute; | |
| 81 background-position: -850px 0; | |
| 82 width:50px; | |
| 83 height:50px; | |
| 84 z-index: 5; | |
| 85 } | |
| 86 | |
| 87 .maybe-hit { | |
| 88 position:absolute; | |
| 89 background-position: -900px 0; | |
| 90 width:50px; | |
| 91 height:50px; | |
| 92 z-index: 2; | |
| 93 } | |
| 94 | |
| 95 .boat2 { | |
| 96 position:absolute; | |
| 97 background-position: -150px 0; | |
| 98 width:100px; | |
| 99 height:50px; | |
| 100 z-index: 2; | |
| 101 } | |
| 102 | |
| 103 .boat3 { | |
| 104 position:absolute; | |
| 105 background-position: -250px 0; | |
| 106 width:150px; | |
| 107 height:50px; | |
| 108 z-index: 2; | |
| 109 } | |
| 110 | |
| 111 .boat4 { | |
| 112 position:absolute; | |
| 113 background-position: -400px 0; | |
| 114 width:200px; | |
| 115 height:50px; | |
| 116 z-index: 2; | |
| 117 } | |
| 118 | |
| 119 .boat5 { | |
| 120 position:absolute; | |
| 121 background-position: -600px 0; | |
| 122 width:250px; | |
| 123 height:50px; | |
| 124 z-index: 2; | |
| 125 } | |
| 126 | |
| 127 .boat-left { | |
| 128 } | |
| 129 | |
| 130 .boatdir-down { | |
| 131 -webkit-transform-origin: 0% 0%; | |
| 132 -moz-transform-origin: 0% 0%; | |
| 133 -webkit-transform: translate(50px, 0px) rotate(90deg); | |
| 134 -moz-transform: translate(50px, 0px) rotate(90deg); | |
| 135 } | |
| 136 | |
| 137 .boatdir-up { | |
| 138 -webkit-transform-origin: 0% 0%; | |
| 139 -moz-transform-origin: 0% 0%; | |
| 140 -webkit-transform: translate(0px, 50px) rotate(-90deg); | |
| 141 -moz-transform: translate(0px, 50px) rotate(-90deg); | |
| 142 } | |
| 143 | |
| 144 .boatdir-right { | |
| 145 -webkit-transform-origin: 0% 0%; | |
| 146 -moz-transform-origin: 0% 0%; | |
| 147 -webkit-transform: translate(50px, 50px) rotate(180deg); | |
| 148 -moz-transform: translate(50px, 50px) rotate(180deg); | |
| 149 } | |
| 150 | |
| 151 .notready { | |
| 152 position: absolute; | |
| 153 font-family:Arial; | |
| 154 text-align:center; | |
| 155 padding:100px 0px 100px 0px; | |
| 156 top:75px; | |
| 157 left:75px; | |
| 158 height:150px; | |
| 159 width:350px; | |
| 160 z-index:10; | |
| 161 background-color:white; | |
| 162 } | |
| 163 | |
| 164 .shooting-status { | |
| 165 position:absolute; | |
| 166 font-family:monospace; | |
| 167 background-color: white; | |
| 168 top:500px; | |
| 169 right:10px; | |
| 170 z-index:10; | |
| 171 } | |
| OLD | NEW |