vapier | 4049359 | 2017-03-09 11:46:10 -0800 | [diff] [blame] | 1 | /** |
| 2 | * Copyright 2015 Google Inc. All Rights Reserved. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /* Common styles and definitions. */ |
| 18 | |
| 19 | @import "//fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,cyrillic-ext,greek-ext,cyrillic,greek,vietnamese,latin-ext"; |
| 20 | @import "//fonts.googleapis.com/css?family=Source+Code+Pro"; |
| 21 | *, |
| 22 | *::after, |
| 23 | *::before { |
| 24 | box-sizing: border-box; |
| 25 | margin: 0; |
| 26 | padding: 0; |
| 27 | } |
| 28 | h1, h2, h3, h4, h5, h6 { |
| 29 | font-weight: normal; |
| 30 | margin: .25em 0 .5em; |
| 31 | } |
| 32 | h1 { |
| 33 | font-size: 2em; |
| 34 | } |
| 35 | h2 { |
| 36 | font-size: 1.5em; |
| 37 | } |
| 38 | h3 { |
| 39 | font-size: 1.3em; |
| 40 | } |
| 41 | h4, h5, h6 { |
| 42 | font-size: 14px; |
| 43 | font-style: italic; |
| 44 | } |
| 45 | ul, ol { |
| 46 | list-style: none; |
| 47 | } |
| 48 | |
| 49 | /* Utility classes */ |
| 50 | |
| 51 | .u-sha1 { |
| 52 | background-color: #f1f2f3; |
| 53 | color: #000; |
| 54 | font-size: 13px; |
| 55 | } |
| 56 | .u-pre { |
| 57 | font-size: 10pt; |
| 58 | font-weight: 500; |
| 59 | white-space: pre; |
| 60 | } |
| 61 | .u-lineNum { |
| 62 | border-right: 1px solid #f1f2f3; |
| 63 | color: #666; |
| 64 | display: inline-block; |
| 65 | min-width: 3em; |
| 66 | text-align: right; |
| 67 | } |
| 68 | .u-noSelect { |
| 69 | -webkit-user-select: none; |
| 70 | -moz-user-select: none; |
| 71 | -ms-user-select: none; |
| 72 | user-select: none; |
| 73 | } |
| 74 | .u-monospace { |
| 75 | font-family: 'Source Code Pro', monospace; |
| 76 | } |
| 77 | |
| 78 | /* Common.soy */ |
| 79 | |
| 80 | .Site { |
| 81 | background: #fff; |
| 82 | color: #000; |
| 83 | display: -ms-flexbox; |
| 84 | display: flex; |
| 85 | font: 14px/1.54 'Open Sans', sans-serif; |
| 86 | min-height: 100vh; |
| 87 | -ms-flex-direction: column; |
| 88 | flex-direction: column; |
| 89 | } |
| 90 | .Site-header, |
| 91 | .Site-footer { |
| 92 | background: #eee; |
| 93 | -ms-flex: none; |
| 94 | flex: none; |
| 95 | } |
| 96 | .Site-header--withNavbar { |
| 97 | background: #fff; |
| 98 | } |
| 99 | .Site-content { |
| 100 | -ms-flex: 1 0 auto; |
| 101 | flex: 1 0 auto; |
| 102 | padding: 20px; |
| 103 | } |
| 104 | .Container { |
| 105 | margin: 0 auto; |
| 106 | max-width: 980px; |
| 107 | } |
| 108 | .Container--fullWidth { |
| 109 | max-width: none; |
| 110 | } |
| 111 | .Header, |
| 112 | .Footer { |
| 113 | -ms-flex-align: center; |
| 114 | align-items: center; |
| 115 | display: -ms-flexbox; |
| 116 | display: flex; |
| 117 | padding: 20px; |
| 118 | } |
| 119 | .Site-header--withNavbar .Header { |
| 120 | max-width: 980px; |
| 121 | margin: 0 auto; |
| 122 | padding: 10px 0; |
| 123 | } |
| 124 | .Header-title, |
| 125 | .Header-image { |
| 126 | display: -ms-flexbox; |
| 127 | display: flex; |
| 128 | -ms-flex: 1; |
| 129 | flex: 1; |
| 130 | } |
| 131 | .Header-anchor { |
| 132 | color: #666; |
| 133 | font-size: 32px; |
| 134 | font-weight: 300; |
| 135 | text-decoration: none; |
| 136 | } |
| 137 | .Header-anchorLogo { |
| 138 | display: inline-block; |
| 139 | margin-right: 10px; |
| 140 | vertical-align: middle; |
| 141 | } |
| 142 | .Header-nav { |
| 143 | background: #eee; |
| 144 | padding: 15px 0; |
| 145 | } |
| 146 | .Header-menu { |
| 147 | display: -ms-flexbox; |
| 148 | display: flex; |
| 149 | -ms-flex-pack: end; |
| 150 | justify-content: flex-end; |
| 151 | } |
| 152 | .Header-menuItem { |
| 153 | color: #00e; |
| 154 | display: inline-block; |
| 155 | margin-left: 15px; |
| 156 | } |
| 157 | .Header-menuItem--noAction { |
| 158 | color: inherit; |
| 159 | } |
| 160 | .Breadcrumbs { |
| 161 | font-size: 18px; |
| 162 | margin-bottom: 20px; |
| 163 | } |
| 164 | .Breadcrumbs-crumb { |
| 165 | color: #00e; |
| 166 | } |
| 167 | .Breadcrumbs-crumb:last-child { |
| 168 | color: #000; |
| 169 | font-weight: bold; |
| 170 | } |
| 171 | .Footer { |
| 172 | color: #666; |
| 173 | } |
| 174 | .Footer-poweredBy { |
| 175 | -ms-flex: 1; |
| 176 | flex: 1; |
| 177 | } |
| 178 | .Footer-formats, |
| 179 | .Footer-links { |
| 180 | display: -ms-flexbox; |
| 181 | display: flex; |
| 182 | -ms-flex-pack: end; |
| 183 | justify-content: flex-end; |
| 184 | } |
| 185 | .Footer-formatsItem { |
| 186 | display: inline-block; |
| 187 | } |
| 188 | .Footer-formatsItem:first-child { |
| 189 | margin-right: 20px; |
| 190 | } |
| 191 | .Footer-link { |
| 192 | display: inline-block; |
| 193 | margin-left: 10px; |
| 194 | } |
| 195 | .RepoList-item { |
| 196 | display: -ms-flexbox; |
| 197 | display: flex; |
| 198 | left: -10px; |
| 199 | padding: 5px 0 5px 10px; |
| 200 | position: relative; |
| 201 | white-space: nowrap; |
| 202 | width: calc(100% + 20px); |
| 203 | } |
| 204 | .RepoList-item:link, |
| 205 | .RepoList-item:visited { |
| 206 | text-decoration: none; |
| 207 | } |
| 208 | .RepoList-item:hover { |
| 209 | background: #eee; |
| 210 | } |
| 211 | .RepoList-item--header { |
| 212 | font-weight: bold; |
| 213 | margin: 0; |
| 214 | } |
| 215 | .RepoList-item--header:hover { |
| 216 | background: #fff; |
| 217 | } |
| 218 | .RepoList-itemName, |
| 219 | .RepoList-itemDescription { |
| 220 | display: inline-block; |
| 221 | } |
| 222 | .RepoList-itemName { |
| 223 | margin-right: 10px; |
| 224 | min-width: 25%; |
| 225 | text-decoration: underline; |
| 226 | } |
| 227 | .RepoList-item--header > .RepoList-itemName { |
| 228 | text-decoration: none; |
| 229 | } |
| 230 | .RepoList-itemDescription { |
| 231 | color: #000; |
| 232 | -ms-flex: 1; |
| 233 | flex: 1; |
| 234 | overflow: hidden; |
| 235 | text-overflow: ellipsis; |
| 236 | } |
| 237 | |
| 238 | /* RepositoryIndex.soy */ |
| 239 | |
| 240 | .RepoDescription { |
| 241 | margin: 10px 0; |
| 242 | } |
| 243 | .RepoMirroredFrom { |
| 244 | margin: 10px 0; |
| 245 | color: #666; |
| 246 | } |
| 247 | .CloneRepo { |
| 248 | background: #eee; |
| 249 | margin-bottom: 20px; |
| 250 | padding: 10px; |
| 251 | } |
| 252 | .CloneRepo-title { |
| 253 | margin-bottom: 2px; |
| 254 | } |
| 255 | .CloneRepo-command { |
| 256 | border: 1px solid #ccc; |
| 257 | border-radius: 4px; |
| 258 | display: block; |
| 259 | font-size: inherit; |
| 260 | padding: 10px; |
| 261 | width: 100%; |
| 262 | } |
| 263 | .RepoShortlog { |
| 264 | display: -ms-flexbox; |
| 265 | display: flex; |
| 266 | } |
| 267 | .RepoShortlog-refs { |
| 268 | -ms-flex: none !important; |
| 269 | flex: none !important; |
| 270 | width: 20%; |
| 271 | } |
| 272 | .RepoShortlog-refs > .RefList:first-child { |
| 273 | margin: 0; |
| 274 | } |
| 275 | .RepoShortlog-log { |
| 276 | -ms-flex: 1; |
| 277 | flex: 1; |
| 278 | width: 80%; |
| 279 | } |
| 280 | .RepoIndexDoc { |
| 281 | border-top: 1px solid #ddd; |
| 282 | margin-top: 20px; |
| 283 | padding-top: 5px; |
| 284 | } |
| 285 | |
| 286 | /* RefList.soy */ |
| 287 | |
| 288 | .Refs {} |
| 289 | .RefList { |
| 290 | margin: 15px 0; |
| 291 | } |
| 292 | .RefList-title { |
| 293 | margin: 0; |
| 294 | } |
| 295 | .RefList-items {} |
| 296 | .RefList-item { |
| 297 | padding: 2px 0; |
| 298 | } |
| 299 | |
| 300 | /* LogDetail.soy */ |
| 301 | |
| 302 | .LogNav { |
| 303 | margin: 10px 0; |
| 304 | text-align: center; |
| 305 | } |
| 306 | .CommitLog {} |
| 307 | .CommitLog-item { |
| 308 | padding: 2px 0; |
| 309 | } |
| 310 | .CommitLog-item--oneline:hover { |
| 311 | background: #eee; |
| 312 | } |
| 313 | .CommitLog-item--full { |
| 314 | margin-bottom: 20px; |
| 315 | } |
| 316 | .CommitLog-item--empty { |
| 317 | padding: 10px 0; |
| 318 | text-align: center; |
| 319 | } |
| 320 | .CommitLog-sha1 { |
| 321 | border-radius: 3px; |
| 322 | display: inline-block; |
| 323 | margin-right: 3px; |
| 324 | padding: 2px 4px; |
| 325 | text-align: center; |
| 326 | } |
| 327 | .CommitLog-time { |
| 328 | color: #666; |
| 329 | } |
| 330 | .CommitLog-branchLabel { |
| 331 | color: #dd4b39; |
| 332 | } |
| 333 | .CommitLog-tagLabel { |
| 334 | color: #093; |
| 335 | } |
| 336 | .CommitLog-rename { |
| 337 | font-size: 0.9em; |
| 338 | display: block; |
| 339 | padding-left: 5px; |
| 340 | } |
| 341 | |
| 342 | /* ObjectDetail.soy */ |
| 343 | |
| 344 | .Metadata { |
| 345 | margin-bottom: 15px; |
| 346 | } |
| 347 | .Metadata-title { |
| 348 | font-weight: bold; |
| 349 | padding-right: 10px; |
| 350 | text-align: right; |
| 351 | } |
| 352 | .MetadataMessage { |
| 353 | background-color: #fafafa; |
| 354 | border: 1px solid #ccc; |
| 355 | color: #000; |
| 356 | margin: 0; |
| 357 | padding: 12px; |
| 358 | white-space: pre-wrap; |
| 359 | } |
| 360 | .DiffTree { |
| 361 | margin: 10px 0 5px; |
| 362 | } |
| 363 | .DiffTree-action { |
| 364 | margin-left: .5em; |
| 365 | } |
| 366 | .DiffTree-action--add { |
| 367 | color: #060; |
| 368 | } |
| 369 | .DiffTree-action--delete { |
| 370 | color: #600; |
| 371 | } |
| 372 | .DiffTree-action--rename, |
| 373 | .DiffTree-action--copy { |
| 374 | color: #006; |
| 375 | } |
| 376 | .DiffSummary {} |
| 377 | .TreeDetail-sha1, |
| 378 | .BlobSha1 { |
| 379 | margin: 10px 0; |
| 380 | padding: 5px 10px; |
| 381 | } |
| 382 | .FileList { |
| 383 | margin-left: 25px; |
| 384 | } |
| 385 | .FileList-item { |
| 386 | padding: 1px 0; |
| 387 | position: relative; |
| 388 | } |
| 389 | .FileList-item:hover { |
| 390 | background: #eee; |
| 391 | } |
| 392 | .FileList-item::before { |
| 393 | left: -22px; |
| 394 | position: absolute; |
| 395 | top: 4px; |
| 396 | } |
| 397 | .FileList-itemLink { |
| 398 | display: block; |
| 399 | } |
| 400 | /* Tree icons are taken from the public domain Tango icons: |
| 401 | * http://tango.freedesktop.org/Tango_Icon_Library |
| 402 | * Compressed with pngcrush -brute -rem tEXt -rem tIME -rem iTXt -rem zTXt */ |
| 403 | .FileList-item--gitTree::before { |
| 404 | /* places/folder.png */ |
| 405 | content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAAb5JREFUOMulkr1KA0EQgGdvTwwnYmER0gQsrFKmSy+pLESw9Qm0F/ICNnba+h6iEOuAEWslKJKTOyJJvIT72d1xZuOFC0giOLA77O7Mt/PnNptN+I+49Xr9GhH3f3mb0v1ht9vtLAUYYw5ItkgDL3KyD8PhcLvdbl/WarXT3DjLMnAcR/f7/YfxeKwtgC5RKQVhGILWeg4hQ6hUKjWyucmhLFEUuWR3QYBWAZABQ9i5CCmXy16pVALP80BKaaG+70MQBLvzFMjRKKXh8j6FSYKF7ITdEWLa4/ktokN74wiqjSMpnVcbQZqmEJHz+ckeCPFjWKwULpyspAqhdXVXdcnZcPjsIgn+2BsVA8jVYuWlgJ3yBj0icgq2uoK+lg4t+ZvLomSKamSQ4AI5BcMADtMhyNoSgNIISUaFNtwlazcDcBc4gjjVwCWid2usCWroYEhnaqbzFJLUzAHIXRDChXCcQP8zhkSZ5eNLgHAUzwDcRu4CoIRn/wsGUQIIy4Vr9TH6SYFCNzw4nALn5627K4vIttOUOwfa5YnrDYzt/9OLv9I5l8kk5hZ3XLO20b7tbR7zHLy/BX8G0IeBEM7ZN1NGIaFUaKLgAAAAAElFTkSuQmCC); |
| 406 | } |
| 407 | .FileList-item--symlink::before { |
| 408 | /* actions/edit-redo.png */ |
| 409 | content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAABZUlEQVQ4y2NgIAL4zWL7D8TGDOQCqAEg7Ey2Aes+58AMcSSkmB2I3YB4HhCfh9kOMoCgIUAJMyDe2D+b58jKe553133M+r/uU/b/zV+L/y97n/i/+JIYbkOAAl5AfGLNTde/69+n/1/4MuD/gtsqKBhkALIh5S0M1jDN2kC8a+UNt/8b36f+X3JP5f/0u1pwjeuvS8E1g3DpZQm4ITAD5s09ZPBq49uE/0vvq4E1gPCJC5z/yy+IoGgG4a5HJqjeCJ3Pc2vjy+T/ux4Y/j99Rfz/7GtK/xfeUkbBN+8pY9cMAkFzuT5uepPy/+w1lf+TF3L/Q4p3OD5zRQ67Zlg873vk9n/mMlaQ5EcgLgZiA2R5nJphCjbfNP8LVeCBJyUa40xpO+5afQXS/8jKC0DJg+uPKx+bOJf1HDYXEJPW46JW8LcduKYzbdZMph4gn4ccQxSAOAuIo4FYdvsKFpYdK1iYCekDACq5JXDHGJhDAAAAAElFTkSuQmCC); |
| 410 | } |
| 411 | .FileList-item--regularFile::before { |
| 412 | /* mimetypes/text-x-generic.png */ |
| 413 | content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAtElEQVQ4ja2TSw7CIBRFu0r3wyIYsAMHDl1CC92IDqC0wAbQi4Fo5VOMJGcAyT33vQEDY+xCCPGdnIZ48NB7kPkSLMvipZQBpVQC70Br7Y0xZQGC4zj6aZoCnPMPhBBtwb41NoN1XesCBHPNhyfI7fziFu6HJti3IgS0vrcFuZ3Btm2JpmC/M5jnOdEU5JoRstYmigKES80x7JyrC+IE7+1xAoSrgp//AqX02vsbn5nz8K/zAP9CzjbgFoHjAAAAAElFTkSuQmCC); |
| 414 | } |
| 415 | .FileList-item--executableFile::before { |
| 416 | /* mimetypes/text-x-script.png */ |
| 417 | content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA7ADsAOwdIxY2AAAACXBIWXMAAAsTAAALEwEAmpwYAAABOklEQVQ4T5WTTYqDQBBGPdKcZnIJdy7EVRByBQPi0iwHAlGT0YBHcG82kkV2VnffoKar7FYzIQYLPtqffq+rEJ04jn/CMMSV+XZs0YO1RcyLoO/7MdAD9gAI8wiK+CyYA0IDFABhrmFBAHNYbwYTIxFyWN8KwAiEmIEaknqVUposCoBBGE8cIGUipUKp5IJAzOe2JxI0pG1b3Gw2+Hg8FjoQzy0rLVAavt0GuGkaXrfb7avAzs0CNcHtDD4ejwzTve/7X/9GGFqn2QmkDmzbBJ9OJ8yyDNM0Rdd1J8mzgDqQPDNJLFwUBZ7PZ7xcLizwPI9gfj+NYAX2k+kx7vc7byrLEquqwuv1ivv9HpMk4ec6Uwfvqus63lzXNeZ5zoIRpoqiKP/09wVBwNDhcOB1t9v9OmuLTnw62dQfVIHPYx/I/0kAAAAASUVORK5CYII=); |
| 418 | } |
| 419 | .FileList-item--gitlink::before { |
| 420 | /* emblems/emblem-symbolic-link.png */ |
| 421 | content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAABO0lEQVQ4T7WT3U6EMBCF92m99yGMZuODGL01eueyXqjvwc+WUlooUPkfZxq3sQEvJLHJSQvlfDOnDbub/dUFCrZof3t9uaPF1kFeBwjD8E+apukfAVEUQRzHkCQJJKfEznES43tUGP0OIOMheIGn50e4f7izCo4H4GkKDEXPBIviCIZh8AFkfv94g5Qx4Jw7AOn4Grh1iqATdrUAEJmxFLIsgzzPQSnpQc4SIkMIh7ZtfQCjys6soNQlVFW1AEgpQWQCjDE+gHIKIaxZo7mu69UOiqJwRXxAxnFDQllS5XUzSeO+kmoJoOzUni41NE1tM9JBTdMII85d14FpjI2lihUA9wCNA8zzDOM4WkBjvgFqrQO8ulzmNgLl/8SPyTT0WL3vLLBGsNZ6HUBV1tT3vROd/Fk/AZt/Z/J+AUN8ayghXmezAAAAAElFTkSuQmCC); |
| 422 | } |
| 423 | .FileContents { |
| 424 | border-collapse: collapse; |
| 425 | border-spacing: 0; |
| 426 | margin: 10px 0; |
| 427 | } |
| 428 | .FileContents-line { |
| 429 | border: none; |
| 430 | } |
| 431 | .FileContents-lineNum { |
| 432 | padding-right: 10px; |
| 433 | width: 1%; |
| 434 | } |
| 435 | /* Used to prevent copying the line number. */ |
| 436 | .FileContents-lineNum::before { |
| 437 | color: #aaa; |
| 438 | content: attr(data-line-number); |
| 439 | cursor: pointer; |
| 440 | } |
| 441 | .FileContents-lineContents { |
| 442 | line-height: 1.3em; |
| 443 | min-height: 1em; |
| 444 | padding-left: 10px; |
| 445 | } |
| 446 | .FileContents-lineContents:target { |
| 447 | background: #cfd8dc; |
| 448 | } |
| 449 | .InlineReadme { |
| 450 | border-top: 1px solid #ddd; |
| 451 | margin: 10px 0; |
| 452 | padding: 7px 0; |
| 453 | } |
| 454 | .InlineReadme-path { |
| 455 | color: #666; |
| 456 | } |
| 457 | |
| 458 | /* BlameDetail.soy */ |
| 459 | |
| 460 | .Blame { |
| 461 | border-collapse: collapse; |
| 462 | font-size: 8pt; |
| 463 | margin: 0 auto; |
| 464 | } |
| 465 | .Blame-region--bg1 { |
| 466 | background: #fff; |
| 467 | } |
| 468 | .Blame-region--bg2 { |
| 469 | background: #f1f2f3; |
| 470 | } |
| 471 | .Blame-sha1, |
| 472 | .Blame-author, |
| 473 | .Blame-time, |
| 474 | .Blame-regionLink { |
| 475 | font-size: 8pt; |
| 476 | padding: 0 3px; |
| 477 | white-space: nowrap; |
| 478 | } |
| 479 | .Blame-regionLink { |
| 480 | text-align: right; |
| 481 | } |
| 482 | .Blame-lineNum .u-lineNum { |
| 483 | padding: 0 8px; |
| 484 | text-align: right; |
| 485 | } |
| 486 | .Blame-lineNum:hover { |
| 487 | text-decoration: underline; |
| 488 | } |
| 489 | .Blame-lineContent { |
| 490 | font-size: 9pt; |
| 491 | line-height: 1.3em; |
| 492 | padding: 0 8px; |
| 493 | } |
| 494 | |
| 495 | /* DiffDetail.soy */ |
| 496 | |
| 497 | .Diff { |
| 498 | margin: 10px 0; |
| 499 | } |
| 500 | .Diff-fileIndex { |
| 501 | color: #444; |
| 502 | font-weight: bold; |
| 503 | } |
| 504 | .Diff-unified { |
| 505 | border-bottom: 1px solid #ddd; |
| 506 | border-top: 1px solid #ddd; |
| 507 | padding: 10px 0; |
| 508 | } |
| 509 | .Diff-hunk { |
| 510 | color: #00c; |
| 511 | } |
| 512 | .Diff-delete { |
| 513 | color: #c00; |
| 514 | } |
| 515 | .Diff-insert { |
| 516 | color: #080; |
| 517 | } |