base.css 11 KB

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