|
| 1 | +/* |
| 2 | + * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 | + * |
| 4 | + * Use of this source code is governed by a BSD-style license |
| 5 | + * that can be found in the LICENSE file in the root of the source |
| 6 | + * tree. |
| 7 | + */ |
| 8 | +.hidden { |
| 9 | + display: none; |
| 10 | +} |
| 11 | + |
| 12 | +.highlight { |
| 13 | + background-color: #eee; |
| 14 | + font-size: 1.2em; |
| 15 | + margin: 0 0 30px 0; |
| 16 | + padding: 0.2em 1.5em; |
| 17 | +} |
| 18 | + |
| 19 | +.warning { |
| 20 | + color: red; |
| 21 | + font-weight: 400; |
| 22 | +} |
| 23 | + |
| 24 | +@media screen and (min-width: 1000px) { |
| 25 | + /* hack! to detect non-touch devices */ |
| 26 | + div#links a { |
| 27 | + line-height: 0.8em; |
| 28 | + } |
| 29 | +} |
| 30 | + |
| 31 | +audio { |
| 32 | + max-width: 100%; |
| 33 | +} |
| 34 | + |
| 35 | +body { |
| 36 | + font-family: 'Roboto', sans-serif; |
| 37 | + font-weight: 300; |
| 38 | + margin: 0; |
| 39 | + padding: 1em; |
| 40 | + word-break: break-word; |
| 41 | +} |
| 42 | + |
| 43 | +button { |
| 44 | + background-color: #d84a38; |
| 45 | + border: none; |
| 46 | + border-radius: 2px; |
| 47 | + color: white; |
| 48 | + font-family: 'Roboto', sans-serif; |
| 49 | + font-size: 0.8em; |
| 50 | + margin: 0 0 1em 0; |
| 51 | + padding: 0.5em 0.7em 0.6em 0.7em; |
| 52 | +} |
| 53 | + |
| 54 | +button:active { |
| 55 | + background-color: #cf402f; |
| 56 | +} |
| 57 | + |
| 58 | +button:hover { |
| 59 | + background-color: #cf402f; |
| 60 | +} |
| 61 | + |
| 62 | +button[disabled] { |
| 63 | + color: #ccc; |
| 64 | +} |
| 65 | + |
| 66 | +button[disabled]:hover { |
| 67 | + background-color: #d84a38; |
| 68 | +} |
| 69 | + |
| 70 | +canvas { |
| 71 | + background-color: #ccc; |
| 72 | + max-width: 100%; |
| 73 | + width: 100%; |
| 74 | +} |
| 75 | + |
| 76 | +code { |
| 77 | + font-family: 'Roboto', sans-serif; |
| 78 | + font-weight: 400; |
| 79 | +} |
| 80 | + |
| 81 | +div#container { |
| 82 | + margin: 0 auto 0 auto; |
| 83 | + max-width: 60em; |
| 84 | + padding: 1em 1.5em 1.3em 1.5em; |
| 85 | +} |
| 86 | + |
| 87 | +div#links { |
| 88 | + padding: 0.5em 0 0 0; |
| 89 | +} |
| 90 | + |
| 91 | +h1 { |
| 92 | + border-bottom: 1px solid #ccc; |
| 93 | + font-family: 'Roboto', sans-serif; |
| 94 | + font-weight: 500; |
| 95 | + margin: 0 0 0.8em 0; |
| 96 | + padding: 0 0 0.2em 0; |
| 97 | +} |
| 98 | + |
| 99 | +h2 { |
| 100 | + color: #444; |
| 101 | + font-weight: 500; |
| 102 | +} |
| 103 | + |
| 104 | +h3 { |
| 105 | + border-top: 1px solid #eee; |
| 106 | + color: #666; |
| 107 | + font-weight: 500; |
| 108 | + margin: 10px 0 10px 0; |
| 109 | + white-space: nowrap; |
| 110 | +} |
| 111 | + |
| 112 | +li { |
| 113 | + margin: 0 0 0.4em 0; |
| 114 | +} |
| 115 | + |
| 116 | +html { |
| 117 | + /* avoid annoying page width change |
| 118 | + when moving from the home page */ |
| 119 | + overflow-y: scroll; |
| 120 | +} |
| 121 | + |
| 122 | +img { |
| 123 | + border: none; |
| 124 | + max-width: 100%; |
| 125 | +} |
| 126 | + |
| 127 | +input[type=radio] { |
| 128 | + position: relative; |
| 129 | + top: -1px; |
| 130 | +} |
| 131 | + |
| 132 | +p { |
| 133 | + color: #444; |
| 134 | + font-weight: 300; |
| 135 | +} |
| 136 | + |
| 137 | +p#data { |
| 138 | + border-top: 1px dotted #666; |
| 139 | + font-family: Courier New, monospace; |
| 140 | + line-height: 1.3em; |
| 141 | + max-height: 1000px; |
| 142 | + overflow-y: auto; |
| 143 | + padding: 1em 0 0 0; |
| 144 | +} |
| 145 | + |
| 146 | +p.borderBelow { |
| 147 | + border-bottom: 1px solid #aaa; |
| 148 | + padding: 0 0 20px 0; |
| 149 | +} |
| 150 | + |
| 151 | +section p:last-of-type { |
| 152 | + margin: 0; |
| 153 | +} |
| 154 | + |
| 155 | +section { |
| 156 | + border-bottom: 1px solid #eee; |
| 157 | + margin: 0 0 30px 0; |
| 158 | + padding: 0 0 20px 0; |
| 159 | +} |
| 160 | + |
| 161 | +section:last-of-type { |
| 162 | + border-bottom: none; |
| 163 | + padding: 0 0 1em 0; |
| 164 | +} |
| 165 | + |
| 166 | +select { |
| 167 | + margin: 0 1em 1em 0; |
| 168 | + position: relative; |
| 169 | + top: -1px; |
| 170 | +} |
| 171 | + |
| 172 | +h1 span { |
| 173 | + white-space: nowrap; |
| 174 | +} |
| 175 | + |
| 176 | +a { |
| 177 | + color: #1D6EEE; |
| 178 | + font-weight: 300; |
| 179 | + text-decoration: none; |
| 180 | +} |
| 181 | + |
| 182 | +h1 a { |
| 183 | + font-weight: 300; |
| 184 | + margin: 0 10px 0 0; |
| 185 | + white-space: nowrap; |
| 186 | +} |
| 187 | + |
| 188 | +a:hover { |
| 189 | + color: #3d85c6; |
| 190 | + text-decoration: underline; |
| 191 | +} |
| 192 | + |
| 193 | +a#viewSource { |
| 194 | + display: block; |
| 195 | + margin: 1.3em 0 0 0; |
| 196 | + border-top: 1px solid #999; |
| 197 | + padding: 1em 0 0 0; |
| 198 | +} |
| 199 | + |
| 200 | +div#errorMsg p { |
| 201 | + color: #F00; |
| 202 | +} |
| 203 | + |
| 204 | +div#links a { |
| 205 | + display: block; |
| 206 | + line-height: 1.3em; |
| 207 | + margin: 0 0 1.5em 0; |
| 208 | +} |
| 209 | + |
| 210 | +div.outputSelector { |
| 211 | + margin: -1.3em 0 2em 0; |
| 212 | +} |
| 213 | + |
| 214 | +p.description { |
| 215 | + margin: 0 0 0.5em 0; |
| 216 | +} |
| 217 | + |
| 218 | +strong { |
| 219 | + font-weight: 500; |
| 220 | +} |
| 221 | + |
| 222 | +textarea { |
| 223 | + resize: none; |
| 224 | + font-family: 'Roboto', sans-serif; |
| 225 | +} |
| 226 | + |
| 227 | +video { |
| 228 | + background: #222; |
| 229 | + margin: 0 0 20px 0; |
| 230 | + --width: 100%; |
| 231 | + width: var(--width); |
| 232 | + height: calc(var(--width) * 0.75); |
| 233 | +} |
| 234 | + |
| 235 | +ul { |
| 236 | + margin: 0 0 0.5em 0; |
| 237 | +} |
| 238 | + |
| 239 | +@media screen and (max-width: 650px) { |
| 240 | + .highlight { |
| 241 | + font-size: 1em; |
| 242 | + margin: 0 0 20px 0; |
| 243 | + padding: 0.2em 1em; |
| 244 | + } |
| 245 | + |
| 246 | + h1 { |
| 247 | + font-size: 24px; |
| 248 | + } |
| 249 | +} |
| 250 | + |
| 251 | +@media screen and (max-width: 550px) { |
| 252 | + button:active { |
| 253 | + background-color: darkRed; |
| 254 | + } |
| 255 | + |
| 256 | + h1 { |
| 257 | + font-size: 22px; |
| 258 | + } |
| 259 | +} |
| 260 | + |
| 261 | +@media screen and (max-width: 450px) { |
| 262 | + h1 { |
| 263 | + font-size: 20px; |
| 264 | + } |
| 265 | +} |
| 266 | + |
| 267 | + |
0 commit comments