gogs.css 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417
  1. html,
  2. body {
  3. height: 100%;
  4. }
  5. .octicon,
  6. .fa {
  7. width: 16px;
  8. text-align: center;
  9. }
  10. .fa {
  11. font-size: 14px;
  12. }
  13. .container {
  14. max-width: 1170px;
  15. padding: 0 1.5em;
  16. margin: auto;
  17. }
  18. img.avatar-16 {
  19. width: 16px;
  20. height: 16px;
  21. vertical-align: middle;
  22. }
  23. img.avatar-24 {
  24. width: 24px;
  25. height: 24px;
  26. vertical-align: middle;
  27. }
  28. img.avatar-30 {
  29. width: 30px;
  30. height: 30px;
  31. vertical-align: middle;
  32. }
  33. #wrapper {
  34. padding: 0;
  35. margin: 0 0 -55px 0;
  36. min-height: 100%;
  37. }
  38. #footer {
  39. background-color: white;
  40. border-top: 1px solid #d6d6d6;
  41. clear: both;
  42. width: 100%;
  43. color: #888888;
  44. }
  45. #footer .container {
  46. padding: 15px;
  47. }
  48. #footer .official,
  49. #footer .version {
  50. color: #888888;
  51. }
  52. #footer-links > * {
  53. border-left: 1px solid #d6d6d6;
  54. padding-left: 8px;
  55. margin-left: 5px;
  56. }
  57. #footer-links > *:first-child {
  58. border-left: none;
  59. }
  60. #footer-lang {
  61. position: relative;
  62. }
  63. #footer-lang .drop-down {
  64. top: -64px;
  65. left: -2px;
  66. position: absolute;
  67. height: 59px;
  68. z-index: 100;
  69. font-size: 12px;
  70. width: 120%;
  71. }
  72. #footer-lang .drop-down li > a {
  73. padding: 3px 9px;
  74. }
  75. #header {
  76. background-color: #428bca;
  77. height: 44px;
  78. }
  79. #header > .menu-line > li > a {
  80. display: inline-block;
  81. color: #ffffff;
  82. }
  83. #header > .menu-line > li > a:hover {
  84. background-color: transparent;
  85. color: #fff65f;
  86. }
  87. #header > .menu-line > li.head {
  88. color: #ffffff;
  89. }
  90. #header > .menu-line > li.hover a:after {
  91. bottom: -9px;
  92. color: #ffffff;
  93. }
  94. #header > .menu-line > li.current > a {
  95. color: #fff65f;
  96. font-weight: bold;
  97. }
  98. #header-nav-user {
  99. height: 44px;
  100. }
  101. #header-nav-user img {
  102. margin: -4px 10px 0 0;
  103. border-radius: 3px;
  104. }
  105. #header-nav-sign-out > a:hover {
  106. color: #ff908b !important;
  107. }
  108. #header-nav-logo {
  109. padding: 6px 1.2em;
  110. }
  111. #header-nav-explore,
  112. #header-nav-help {
  113. font-size: 14px;
  114. }
  115. #header-new-repo-menu {
  116. width: 180px;
  117. background-color: #FFF;
  118. top: 44px;
  119. border-top: none;
  120. left: -66px;
  121. }
  122. #header-new-repo-menu .octicon {
  123. margin-right: 6px;
  124. font-size: 1.1em;
  125. }
  126. .switching-list {
  127. width: 100%;
  128. list-style: none;
  129. }
  130. .switching-list > li {
  131. border-bottom: 1px solid #eaeaea;
  132. }
  133. .switching-list > li:last-child {
  134. border-bottom: none;
  135. }
  136. .switching-list > li > a {
  137. padding: .4em 1.2em;
  138. display: block;
  139. color: #444;
  140. }
  141. .switching-list > li > a:hover {
  142. background-color: #428bca !important;
  143. color: #fff !important;
  144. }
  145. .social-buttons .btn {
  146. border: none;
  147. font-size: 16px;
  148. border-radius: 4px;
  149. margin-right: 12px;
  150. font-family: 'PT Sans Narrow', sans-serif;
  151. padding: 5px 12px;
  152. color: #FFF;
  153. }
  154. .social-buttons .btn .fa {
  155. margin-right: 6px;
  156. font-size: 16px;
  157. }
  158. .social-buttons .twitter {
  159. background-color: #1c6399;
  160. }
  161. .social-buttons .twitter:hover {
  162. background-color: #1c5487;
  163. }
  164. .social-buttons .github {
  165. background-color: #444;
  166. }
  167. .social-buttons .github:hover {
  168. background-color: #333;
  169. }
  170. .social-buttons .google {
  171. background-color: #C03D20;
  172. }
  173. .social-buttons .google:hover {
  174. background-color: #D56060;
  175. }
  176. .social-buttons .weibo {
  177. background-color: #bf1324;
  178. }
  179. .social-buttons .weibo:hover {
  180. background-color: #b94c4a;
  181. }
  182. .social-buttons .qq {
  183. background-color: #03a2ef;
  184. }
  185. .social-buttons .qq:hover {
  186. background-color: #3cb3ff;
  187. }
  188. .main-wrapper {
  189. padding: 20px 0 40px;
  190. }
  191. .markdown {
  192. background-color: white;
  193. font-size: 16px;
  194. line-height: 24px;
  195. }
  196. .markdown .markdown-body {
  197. padding-left: 24px;
  198. padding-right: 16px;
  199. }
  200. .markdown a {
  201. color: #428BCA;
  202. }
  203. .markdown h1,
  204. .markdown h2,
  205. .markdown h3,
  206. .markdown h4,
  207. .markdown h5,
  208. .markdown h6 {
  209. line-height: 1.7;
  210. padding: 15px 0 0;
  211. margin: 0 0 15px;
  212. color: #444;
  213. font-weight: bold;
  214. }
  215. .markdown h1,
  216. .markdown h2 {
  217. border-bottom: 1px solid #E0E0E0;
  218. }
  219. .markdown h2 {
  220. border-bottom: 1px solid #E0E0E0;
  221. }
  222. .markdown h1 {
  223. color: #000;
  224. font-size: 33px;
  225. }
  226. .markdown h2 {
  227. color: #333;
  228. font-size: 28px;
  229. }
  230. .markdown h3 {
  231. font-size: 22px;
  232. }
  233. .markdown h4 {
  234. font-size: 18px;
  235. }
  236. .markdown h5 {
  237. font-size: 1em;
  238. }
  239. .markdown h6 {
  240. font-size: 1em;
  241. }
  242. .markdown table {
  243. border-collapse: collapse;
  244. border-spacing: 0;
  245. display: block;
  246. overflow: auto;
  247. width: 100%;
  248. margin: 0 0 9px;
  249. }
  250. .markdown table th {
  251. font-weight: 700;
  252. }
  253. .markdown table th,
  254. .markdown table td {
  255. border: 1px solid #DDD;
  256. padding: 6px 13px;
  257. }
  258. .markdown table tr {
  259. background-color: #FFF;
  260. border-top: 1px solid #CCC;
  261. }
  262. .markdown table tr:nth-child(2n) {
  263. background-color: #f8f8f8;
  264. }
  265. .markdown ul {
  266. padding: 10px 0 0 15px;
  267. }
  268. .markdown ul li {
  269. list-style: inside;
  270. }
  271. .markdown ol li {
  272. list-style: decimal inside;
  273. }
  274. .markdown li {
  275. line-height: 1.6;
  276. margin-top: 6px;
  277. }
  278. .markdown li:first-child {
  279. margin-top: 0;
  280. }
  281. .markdown dl dt {
  282. font-style: italic;
  283. margin-top: 9px;
  284. }
  285. .markdown dl dd {
  286. margin: 0 0 9px;
  287. padding: 0 9px;
  288. }
  289. .markdown blockquote,
  290. .markdown blockquote p {
  291. font-size: 14px;
  292. background-color: #f5f5f5;
  293. }
  294. .markdown > pre {
  295. font-size: 14px;
  296. line-height: 1.6;
  297. overflow: auto;
  298. border: 1px solid #ddd;
  299. border-radius: .25em;
  300. margin: 5px 0;
  301. padding: 10px;
  302. background-color: #f8f8f8;
  303. }
  304. .markdown > pre.linenums {
  305. padding: 0;
  306. }
  307. .markdown > pre > ol.linenums {
  308. list-style: none;
  309. padding: 0;
  310. }
  311. .markdown > pre > ol.linenums > li {
  312. margin-top: 2px;
  313. }
  314. .markdown > pre.nums-style > ol.linenums {
  315. list-style-type: decimal;
  316. padding: 0 0 0 40px;
  317. -webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
  318. box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
  319. }
  320. .markdown > pre > code {
  321. white-space: pre;
  322. word-wrap: normal;
  323. }
  324. .markdown > pre > ol.linenums > li {
  325. padding: 0 10px;
  326. }
  327. .markdown > pre > ol.linenums > li:first-child {
  328. padding-top: 12px;
  329. }
  330. .markdown > pre > ol.linenums > li:last-child {
  331. padding-bottom: 12px;
  332. }
  333. .markdown > pre.nums-style > ol.linenums > li {
  334. border-left: 1px solid #ddd;
  335. }
  336. .markdown hr {
  337. border: none;
  338. color: #ccc;
  339. height: 4px;
  340. padding: 0;
  341. margin: 15px 0;
  342. border-bottom: 2px solid #EEE;
  343. }
  344. .markdown blockquote:last-child,
  345. .markdown ul:last-child,
  346. .markdown ol:last-child,
  347. .markdown > pre:last-child,
  348. .markdown > pre:last-child,
  349. .markdown p:last-child {
  350. margin-bottom: 0;
  351. }
  352. .markdown img {
  353. padding: 10px 0;
  354. max-width: 100%;
  355. }
  356. .markdown .btn {
  357. color: #fff;
  358. }
  359. .markdown h1 a,
  360. .markdown h2 a,
  361. .markdown h3 a {
  362. text-decoration: none;
  363. }
  364. .markdown h1 a.anchor,
  365. .markdown h2 a.anchor,
  366. .markdown h3 a.anchor,
  367. .markdown h4 a.anchor,
  368. .markdown h5 a.anchor,
  369. .markdown h6 a.anchor {
  370. text-decoration: none;
  371. line-height: 1;
  372. padding-left: 0;
  373. margin-left: -24px;
  374. top: 15%;
  375. }
  376. .markdown a span.octicon {
  377. font-size: 16px;
  378. line-height: 1;
  379. display: inline-block;
  380. text-decoration: none;
  381. -webkit-font-smoothing: antialiased;
  382. margin-left: 30px;
  383. }
  384. .markdown a span.octicon-link {
  385. opacity: 0;
  386. color: #444;
  387. }
  388. .markdown h1:hover .octicon-link,
  389. .markdown h2:hover .octicon-link,
  390. .markdown h3:hover .octicon-link,
  391. .markdown h4:hover .octicon-link,
  392. .markdown h5:hover .octicon-link,
  393. .markdown h6:hover .octicon-link {
  394. display: inline-block;
  395. opacity: 1;
  396. }
  397. /* Author: jmblog */
  398. /* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */
  399. /* GitHub Theme */
  400. /* Pretty printing styles. Used with prettify.js. */
  401. /* SPAN elements with the classes below are added by prettyprint. */
  402. /* plain text */
  403. .pln {
  404. color: #333333;
  405. }
  406. @media screen {
  407. /* string content */
  408. .str {
  409. color: #dd1144;
  410. }
  411. /* a keyword */
  412. .kwd {
  413. color: #333333;
  414. }
  415. /* a comment */
  416. .com {
  417. color: #999988;
  418. font-style: italic;
  419. }
  420. /* a type name */
  421. .typ {
  422. color: #445588;
  423. }
  424. /* a literal value */
  425. .lit {
  426. color: #445588;
  427. }
  428. /* punctuation */
  429. .pun {
  430. color: #333333;
  431. }
  432. /* lisp open bracket */
  433. .opn {
  434. color: #333333;
  435. }
  436. /* lisp close bracket */
  437. .clo {
  438. color: #333333;
  439. }
  440. /* a markup tag name */
  441. .tag {
  442. color: navy;
  443. }
  444. /* a markup attribute name */
  445. .atn {
  446. color: teal;
  447. }
  448. /* a markup attribute value */
  449. .atv {
  450. color: #dd1144;
  451. }
  452. /* a declaration */
  453. .dec {
  454. color: #333333;
  455. }
  456. /* a variable name */
  457. .var {
  458. color: teal;
  459. }
  460. /* a function name */
  461. .fun {
  462. color: #990000;
  463. }
  464. }
  465. /* Use higher contrast and text-weight for printable form. */
  466. @media print, projection {
  467. .str {
  468. color: #006600;
  469. }
  470. .kwd {
  471. color: #006;
  472. font-weight: bold;
  473. }
  474. .com {
  475. color: #600;
  476. font-style: italic;
  477. }
  478. .typ {
  479. color: #404;
  480. font-weight: bold;
  481. }
  482. .lit {
  483. color: #004444;
  484. }
  485. .pun,
  486. .opn,
  487. .clo {
  488. color: #444400;
  489. }
  490. .tag {
  491. color: #006;
  492. font-weight: bold;
  493. }
  494. .atn {
  495. color: #440044;
  496. }
  497. .atv {
  498. color: #006600;
  499. }
  500. }
  501. /* Specify class=linenums on a pre to get line numbering */
  502. ol.linenums {
  503. margin-top: 0;
  504. margin-bottom: 0;
  505. }
  506. #promo-wrapper {
  507. padding-top: 50px;
  508. background-color: #428bca;
  509. }
  510. #promo-logo {
  511. margin-right: 50px;
  512. padding-bottom: 50px;
  513. }
  514. #promo-logo img {
  515. max-width: 250px;
  516. }
  517. #promo-content {
  518. color: #FFF;
  519. margin-left: 300px;
  520. }
  521. #promo-content h1,
  522. #promo-content h2 {
  523. font-family: 'PT Sans Narrow', sans-serif;
  524. line-height: 60px;
  525. margin-bottom: 0;
  526. text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5);
  527. }
  528. #promo-content h1 {
  529. font-size: 96px;
  530. line-height: 96px;
  531. margin-bottom: 30px;
  532. }
  533. #promo-content h2 {
  534. font-size: 52px;
  535. line-height: 70px;
  536. font-weight: normal;
  537. }
  538. #promo-form {
  539. padding: 40px 0;
  540. }
  541. #promo-form .ipt-large {
  542. border: none;
  543. border-radius: 4px;
  544. font-size: 18px;
  545. margin-right: 12px;
  546. }
  547. #promo-form .ipt-large:focus {
  548. box-shadow: 0 0 3px #FFF;
  549. }
  550. #promo-form .btn-large {
  551. border-radius: 4px;
  552. font-size: 18px;
  553. margin-right: 12px;
  554. }
  555. #promo-social {
  556. padding-bottom: 60px;
  557. }
  558. #promo-social .qq {
  559. box-shadow: 0 0 1px #1c6399;
  560. }
  561. #feature-wrapper {
  562. font-family: Lato, sans-serif;
  563. font-size: 18px;
  564. padding: 50px 0 100px 0;
  565. }
  566. #feature-wrapper .octicon {
  567. color: #d9453d;
  568. font-size: 60px;
  569. height: 60px;
  570. width: 60px;
  571. line-height: 60px;
  572. margin-right: 12px;
  573. vertical-align: middle;
  574. display: inline-block;
  575. }
  576. #feature-wrapper b {
  577. color: #000;
  578. font-size: 24px;
  579. display: inline-block;
  580. line-height: 60px;
  581. }
  582. #feature-wrapper p {
  583. margin: 1em 0;
  584. line-height: 40px;
  585. padding-right: 30px;
  586. }
  587. #feature-wrapper a {
  588. color: #d9453d;
  589. }
  590. #feature-wrapper a:hover {
  591. color: #ff635a;
  592. }
  593. #feature-wrapper .grid-1-2 {
  594. margin-bottom: 30px;
  595. }
  596. /*
  597. The dashboard page style
  598. */
  599. #dashboard-header {
  600. border-bottom: 1px solid #d6d6d6;
  601. height: 69px;
  602. }
  603. #dashboard-header > .menu-line > li {
  604. padding: 12px 0;
  605. }
  606. #dashboard-header > .menu-line > li.right > a {
  607. font-size: 1.2em;
  608. color: #444444;
  609. }
  610. #dashboard-header > .menu-line > li.right > a:hover {
  611. background-color: transparent;
  612. color: #d9453d;
  613. }
  614. #dashboard-header > .menu-line > li.right > a .octicon {
  615. margin-right: 6px;
  616. }
  617. #dashboard-header > .menu-line > li.right .current {
  618. border-bottom: 2px solid #D26911;
  619. }
  620. #dashboard-selection-menu a img {
  621. margin: -4px 10px 0 0;
  622. }
  623. #dashboard {
  624. padding: 24px 0;
  625. }
  626. #dashboard-sidebar .panel-header h4 {
  627. margin: 0;
  628. }
  629. #dashboard-sidebar > .panel {
  630. margin-bottom: 24px;
  631. border-bottom-left-radius: .3em;
  632. border-bottom-right-radius: .3em;
  633. }
  634. #dashboard-sidebar-menu {
  635. border-top-left-radius: .3em;
  636. border-top-right-radius: .3em;
  637. width: 100%;
  638. height: 35px;
  639. }
  640. #dashboard-sidebar-menu > li {
  641. border: 1px solid #d6d6d6;
  642. float: left;
  643. margin-right: -1px;
  644. border-bottom: none;
  645. }
  646. #dashboard-sidebar-menu > li > a {
  647. padding-top: .4em;
  648. padding-bottom: .4em;
  649. }
  650. #dashboard-sidebar-menu > li.first {
  651. border-top-left-radius: .3em;
  652. }
  653. #dashboard-sidebar-menu > li.first > a {
  654. border-top-left-radius: .3em;
  655. }
  656. #dashboard-sidebar-menu > li.drop {
  657. border: none;
  658. float: right;
  659. }
  660. #dashboard-sidebar-menu > li.js-tab-nav-show {
  661. background-color: #EEEEEE;
  662. }
  663. #dashboard-sidebar-menu > li.last {
  664. border-top-right-radius: .3em;
  665. }
  666. #dashboard-sidebar-menu > li.last > a {
  667. border-top-right-radius: .3em;
  668. }
  669. #dashboard-my-mirror li,
  670. #dashboard-my-org li,
  671. #dashboard-my-repo li {
  672. border-bottom: 1px solid #EAEAEA;
  673. }
  674. #dashboard-my-mirror li.private,
  675. #dashboard-my-org li.private,
  676. #dashboard-my-repo li.private {
  677. background-color: #fcf8e9;
  678. }
  679. #dashboard-my-mirror li:last-child,
  680. #dashboard-my-org li:last-child,
  681. #dashboard-my-repo li:last-child {
  682. border-bottom: none;
  683. }
  684. #dashboard-my-mirror li a,
  685. #dashboard-my-org li a,
  686. #dashboard-my-repo li a {
  687. padding: 6px 1.2em;
  688. display: block;
  689. }
  690. #dashboard-my-mirror li a .octicon,
  691. #dashboard-my-org li a .octicon,
  692. #dashboard-my-repo li a .octicon {
  693. margin-right: 6px;
  694. color: #888;
  695. }
  696. #dashboard-my-mirror li a:hover .repo-name,
  697. #dashboard-my-org li a:hover .repo-name,
  698. #dashboard-my-repo li a:hover .repo-name {
  699. text-decoration: underline;
  700. }
  701. #dashboard-my-mirror .repo-name,
  702. #dashboard-my-org .repo-name,
  703. #dashboard-my-repo .repo-name {
  704. font-size: 1.1em;
  705. }
  706. #dashboard-my-mirror .repo-star,
  707. #dashboard-my-org .repo-star,
  708. #dashboard-my-repo .repo-star {
  709. color: #888;
  710. }
  711. #dashboard-my-mirror .repo-contrib-header,
  712. #dashboard-my-org .repo-contrib-header,
  713. #dashboard-my-repo .repo-contrib-header {
  714. border-top: 1px solid #d6d6d6;
  715. }
  716. #dashboard-my-repo .panel-header .octicon {
  717. margin-right: 6px;
  718. font-size: 12px;
  719. }
  720. #dashboard-my-repo .repo-count {
  721. margin-left: 4px;
  722. }
  723. #dashboard-my-org,
  724. #dashboard-my-mirror {
  725. display: none;
  726. }
  727. #dashboard-new-repo {
  728. width: 50px;
  729. height: 35px;
  730. padding-top: 6px;
  731. margin-right: 1px;
  732. border-top-left-radius: .3em;
  733. border-top-right-radius: .3em;
  734. }
  735. #dashboard-new-repo .octicon {
  736. font-size: 2em;
  737. }
  738. #dashboard-new-repo-menu {
  739. top: 35px;
  740. width: 180px;
  741. background-color: #FFF;
  742. left: -132px;
  743. }
  744. #dashboard-new-repo-menu .octicon {
  745. margin-right: 6px;
  746. font-size: 1.1em;
  747. }
  748. #dashboard-selection-menu > .drop-down {
  749. top: 56px;
  750. }
  751. #dashboard-switch-menu {
  752. border-bottom-left-radius: .3em;
  753. border-bottom-right-radius: .3em;
  754. }
  755. #dashboard-switch-menu > li > a img {
  756. margin-top: 0;
  757. }
  758. #dashboard-switch-menu > li > a .octicon {
  759. margin-right: 12px;
  760. }
  761. #dashboard-switch-menu > li:last-child > a {
  762. border-bottom-left-radius: .3em;
  763. border-bottom-right-radius: .3em;
  764. }
  765. #dashboard-switch-menu > li.org > a .octicon {
  766. opacity: 0;
  767. }
  768. #dashboard-switch-menu > li.checked > a {
  769. font-weight: bold;
  770. }
  771. #dashboard-switch-menu > li.checked > a .octicon {
  772. opacity: 1;
  773. }
  774. #dashboard-news .news {
  775. margin-right: 2.4em;
  776. padding-bottom: 1em;
  777. margin-bottom: 1em;
  778. border-bottom: 1px solid #E6E6E6;
  779. min-height: 30px;
  780. }
  781. #dashboard-news .news .mega-octicon {
  782. color: #CCC;
  783. }
  784. #dashboard-news .news .avatar {
  785. margin: 0 1.2em;
  786. }
  787. #dashboard-news .news .news-content,
  788. #dashboard-news .news .news-time {
  789. color: #888;
  790. }
  791. #dashboard-news .push-news .news-content li {
  792. margin-left: 1em;
  793. }
  794. #dashboard-news .push-news .news-content li img {
  795. margin-bottom: -2px;
  796. }
  797. /*
  798. The register and sign-in page style
  799. */
  800. #sign-wrapper {
  801. padding: 60px 0;
  802. }
  803. .sign-panel {
  804. background-color: #ffffff;
  805. }
  806. .sign-form.form-align .field {
  807. margin: 1.2em 0 2em 0;
  808. }
  809. .sign-form.form-align .ipt-large {
  810. width: 300px;
  811. }
  812. .sign-form.form-align label,
  813. .sign-form.form-align .form-label {
  814. width: 160px;
  815. }
  816. .sign-form.form-align .alert {
  817. margin: 0 30px 24px 30px;
  818. }
  819. .sign-form.form-align:hover {
  820. box-shadow: 0 0 6px #CCC;
  821. }
  822. .sign-form.container {
  823. padding: 0;
  824. width: 600px;
  825. margin-bottom: 80px;
  826. }
  827. #sign-up-form .panel-content {
  828. margin-top: 1.2em;
  829. }
  830. #sign-up-form h2 {
  831. margin: .5em 1em;
  832. }
  833. #sign-social {
  834. position: relative;
  835. margin: 40px 0;
  836. }
  837. #sign-social .or {
  838. position: absolute;
  839. width: 30px;
  840. top: -52px;
  841. left: 50%;
  842. background-color: #FFF;
  843. margin-left: -15px;
  844. }
  845. /* repository main */
  846. #repo-wrapper {
  847. padding-bottom: 100px;
  848. }
  849. #repo-header {
  850. height: 69px;
  851. border-bottom: 1px solid #d6d6d6;
  852. background-color: #ffffff;
  853. }
  854. #repo-header-name {
  855. line-height: 66px;
  856. color: #888888;
  857. font-size: 1.6em;
  858. font-weight: normal;
  859. margin-bottom: 0;
  860. }
  861. #repo-header-name i {
  862. margin-right: 12px;
  863. vertical-align: middle;
  864. }
  865. #repo-header-name .divider {
  866. margin: 0 4px;
  867. }
  868. #repo-header-meta {
  869. line-height: 66px;
  870. }
  871. #repo-header-meta li > a {
  872. padding: 0;
  873. }
  874. #repo-header-meta li > a:hover {
  875. background-color: transparent;
  876. }
  877. #repo-header-meta a > .btn {
  878. font-size: 1.05em;
  879. margin-left: 16px;
  880. line-height: 16px;
  881. }
  882. #repo-header-meta a > .btn i {
  883. margin-right: 6px;
  884. }
  885. #repo-header-meta a > .btn .num {
  886. margin-left: 6px;
  887. }
  888. #repo-header-download-btn > .btn > i {
  889. margin-right: 0 !important;
  890. }
  891. #repo-header-download-btn:hover:after,
  892. #repo-header-download-btn:hover .btn {
  893. background-color: #383838;
  894. color: #FFF;
  895. }
  896. #repo-header-download-btn:after {
  897. background-color: #444444;
  898. padding: 9px 16px 8px 0;
  899. margin-left: -8px !important;
  900. color: #FFF;
  901. border-top: 1px solid #444444;
  902. border-bottom: 1px solid #444444;
  903. border-top-right-radius: .25em;
  904. border-bottom-right-radius: .25em;
  905. }
  906. #repo-header-download-drop {
  907. line-height: 24px;
  908. width: 440px;
  909. top: 50px;
  910. left: -354px;
  911. padding: 20px;
  912. box-sizing: border-box;
  913. }
  914. #repo-header-download-drop .btn > i {
  915. margin-right: 6px;
  916. }
  917. #repo-content {
  918. padding: 18px 0;
  919. }
  920. #repo-clone-url {
  921. border-right: none;
  922. width: 196px;
  923. border-left: none;
  924. }
  925. #repo-clone-help {
  926. line-height: 48px;
  927. }
  928. #repo-clone-zip {
  929. line-height: 48px;
  930. }
  931. #repo-clone-zip a {
  932. cursor: pointer;
  933. color: white;
  934. overflow: visible;
  935. padding: .6em 1.2em;
  936. }
  937. #repo-clone-zip .btn {
  938. margin: 0 6px;
  939. }
  940. #repo-desc {
  941. font-size: 1.2em;
  942. }
  943. #repo-sidebar-nav .label {
  944. font-size: 12px;
  945. line-height: 1.4em;
  946. margin-top: 2px;
  947. }
  948. #repo-sidebar-nav i {
  949. margin-right: 6px;
  950. }
  951. #repo-file-nav {
  952. padding: .6em 0 1em 0;
  953. }
  954. #repo-file-nav > li > a {
  955. padding-left: 0;
  956. }
  957. #repo-file-nav > li > a:hover {
  958. background-color: transparent;
  959. }
  960. #repo-file-nav li.repo-jump > a {
  961. padding-right: 0;
  962. }
  963. #repo-file-nav li.repo-jump > a .btn {
  964. margin-left: -1px;
  965. }
  966. #repo-branch-switch > a .btn {
  967. padding-right: 30px;
  968. }
  969. #repo-branch-switch > a:after {
  970. position: absolute;
  971. top: 12px;
  972. right: 30px;
  973. margin-left: 0;
  974. color: #444444;
  975. }
  976. #repo-branch-switch > .drop-down {
  977. top: 40px;
  978. left: 0;
  979. }
  980. #repo-branch-filter-ipt {
  981. width: 100%;
  982. border-left: none;
  983. border-right: none;
  984. box-sizing: border-box;
  985. }
  986. #repo-branch-tag .tab-nav {
  987. border-bottom: 1px solid #EAEAEA;
  988. }
  989. #repo-branch-tag .tab-nav a {
  990. padding: .3em .8em;
  991. }
  992. #repo-branch-tag .tab-nav .js-tab-nav-show {
  993. background-color: #EEE;
  994. font-weight: bold;
  995. }
  996. #repo-branch-list li i,
  997. #repo-tag-list li i {
  998. margin-right: 12px;
  999. opacity: 0;
  1000. }
  1001. #repo-branch-list li.checked i,
  1002. #repo-tag-list li.checked i {
  1003. opacity: 1;
  1004. }
  1005. #repo-tag-list {
  1006. display: none;
  1007. }
  1008. #repo-bread .bread {
  1009. padding-right: 0;
  1010. font-size: 16px;
  1011. font-weight: bold;
  1012. }
  1013. #repo-main {
  1014. padding-right: 40px;
  1015. box-sizing: border-box;
  1016. }
  1017. #repo-files-table {
  1018. margin-bottom: 20px;
  1019. }
  1020. #repo-files-table th,
  1021. #repo-files-table td {
  1022. text-align: left;
  1023. line-height: 32px;
  1024. }
  1025. #repo-files-table td.icon {
  1026. width: 16px;
  1027. padding-right: .1em;
  1028. padding-left: 1em;
  1029. }
  1030. #repo-files-table td.name {
  1031. max-width: 120px;
  1032. }
  1033. #repo-files-table td.name .text-truncate {
  1034. max-width: 100%;
  1035. }
  1036. #repo-files-table td.age {
  1037. max-width: 120px;
  1038. text-align: right;
  1039. }
  1040. #repo-files-table td.msg {
  1041. max-width: 440px;
  1042. }
  1043. #repo-files-table td.msg .text-truncate {
  1044. max-width: 100%;
  1045. }
  1046. #repo-files-table td.age,
  1047. #repo-files-table td.size,
  1048. #repo-files-table td.msg a {
  1049. color: #888;
  1050. }
  1051. #repo-files-table td.msg a:hover {
  1052. color: #428BCA;
  1053. text-decoration: underline;
  1054. }
  1055. #repo-files-table tbody {
  1056. background-color: #FFF;
  1057. }
  1058. #repo-files-table tbody tr:hover {
  1059. background-color: #ffffEE;
  1060. }
  1061. #repo-files-table thead {
  1062. background-color: #F0F0F0;
  1063. }
  1064. #repo-files-table thead .author a {
  1065. margin: 0 .4em;
  1066. }
  1067. #repo-files-table thead .last-commit strong {
  1068. color: #444;
  1069. }
  1070. #repo-files-table thead .last-commit .text-truncate {
  1071. margin-left: .4em;
  1072. }
  1073. #repo-files-table thead .last-commit .text-truncate,
  1074. #repo-files-table thead .age {
  1075. font-weight: normal;
  1076. color: #888;
  1077. }
  1078. #repo-readme {
  1079. margin-bottom: 80px;
  1080. }
  1081. #repo-bare-start {
  1082. margin-bottom: 100px;
  1083. }
  1084. #repo-bare-start .panel-content {
  1085. background-color: #FFF;
  1086. }
  1087. #repo-bare-start pre {
  1088. margin: 0 40px;
  1089. padding: 6px 10px;
  1090. border: 1px solid #ddd;
  1091. background: #f8f8f8;
  1092. }
  1093. .repo-bare #repo-bare-start h2 {
  1094. margin-top: 30px;
  1095. margin-bottom: 24px;
  1096. }
  1097. .repo-bare #repo-header-meta {
  1098. display: none;
  1099. }
  1100. .repo-bare #repo-clone-ssh {
  1101. margin-left: 200px;
  1102. }
  1103. .repo-bare #repo-clone-copy {
  1104. margin-right: 200px;
  1105. }
  1106. .repo-bare #repo-clone-help {
  1107. clear: both;
  1108. width: 100%;
  1109. }
  1110. .repo-bare #repo-clone-url {
  1111. width: 520px;
  1112. }
  1113. /* repository create */
  1114. #repo-migrate-form,
  1115. #repo-create-form {
  1116. width: 800px;
  1117. margin: 60px auto auto auto;
  1118. background: white;
  1119. }
  1120. #repo-migrate-form h2,
  1121. #repo-create-form h2 {
  1122. margin: .5em 1em;
  1123. }
  1124. #repo-migrate-form .field,
  1125. #repo-create-form .field {
  1126. margin: 1.2em 0 2em 0;
  1127. }
  1128. #repo-migrate-form .ipt,
  1129. #repo-create-form .ipt {
  1130. width: 540px;
  1131. }
  1132. #repo-migrate-form textarea,
  1133. #repo-create-form textarea {
  1134. height: 120px;
  1135. }
  1136. #repo-migrate-form .avatar,
  1137. #repo-create-form .avatar {
  1138. vertical-align: middle;
  1139. margin-right: .6em;
  1140. width: 28px;
  1141. height: 28px;
  1142. }
  1143. #repo-migrate-form:hover,
  1144. #repo-create-form:hover {
  1145. box-shadow: 0px 0px 6px #CCC;
  1146. }
  1147. #repo-create-cancel {
  1148. margin-left: 4em;
  1149. }
  1150. #repo-create-owner-list {
  1151. top: 30px;
  1152. left: 0;
  1153. }
  1154. #repo-create-owner-list .octicon {
  1155. margin-right: 12px;
  1156. opacity: 0;
  1157. }
  1158. #repo-create-owner-list .avatar {
  1159. width: 20px;
  1160. height: 20px;
  1161. }
  1162. #repo-create-owner-list li.checked .octicon {
  1163. opacity: 1;
  1164. }
  1165. .file-name {
  1166. margin-left: 1em;
  1167. }
  1168. .file-size {
  1169. font-size: 13px;
  1170. color: #888;
  1171. margin-left: 1em;
  1172. }
  1173. .code-view {
  1174. overflow: auto;
  1175. overflow-x: auto;
  1176. overflow-y: hidden;
  1177. background: white;
  1178. }
  1179. .code-view .view-raw {
  1180. min-height: 40px;
  1181. text-align: center;
  1182. padding-top: 20px;
  1183. }
  1184. .code-view .view-raw .btn {
  1185. font-size: 1.05em;
  1186. line-height: 16px;
  1187. padding: 6px 8px;
  1188. }
  1189. .code-view table {
  1190. width: 100%;
  1191. }
  1192. .code-view table td {
  1193. padding: 0;
  1194. }
  1195. .code-view .lines-num {
  1196. text-align: right;
  1197. color: #999;
  1198. background: #f5f5f5;
  1199. width: 1%;
  1200. }
  1201. .code-view .lines-num span {
  1202. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  1203. line-height: 18px;
  1204. padding: 0 8px 0 10px;
  1205. cursor: pointer;
  1206. display: block;
  1207. margin-top: 2px;
  1208. font-size: 12px;
  1209. }
  1210. .code-view .lines-code > pre {
  1211. border: none;
  1212. border-left: 1px solid #ddd;
  1213. }
  1214. .code-view .lines-code > pre > ol.linenums > li {
  1215. padding: 0 10px;
  1216. }
  1217. .code-view .lines-code > pre > ol.linenums > li.active {
  1218. background: #ffffdd;
  1219. }
  1220. .repo-setting-zone {
  1221. padding: 30px;
  1222. }
  1223. #setting-wrapper {
  1224. padding-bottom: 100px;
  1225. }
  1226. #setting-menu {
  1227. box-sizing: border-box;
  1228. }
  1229. #setting-menu li > a {
  1230. border-left: 2px solid #FFF;
  1231. background-color: #FFF;
  1232. }
  1233. #setting-menu li:hover {
  1234. border-color: #EAEAEA;
  1235. }
  1236. #setting-menu li:hover a {
  1237. border-left: 2px solid #EFEFEF;
  1238. background-color: #EFEFEF !important;
  1239. color: #000 !important;
  1240. }
  1241. #setting-menu li.current a {
  1242. color: #000 !important;
  1243. font-weight: bold;
  1244. border-left: 2px solid #d26911;
  1245. }
  1246. .setting-content {
  1247. margin-left: 32px;
  1248. }
  1249. #repo-setting-form,
  1250. #user-profile-form {
  1251. background-color: #FFF;
  1252. padding: 30px 0;
  1253. }
  1254. #repo-setting-form textarea,
  1255. #user-profile-form textarea {
  1256. margin-left: 4px;
  1257. height: 100px;
  1258. }
  1259. #repo-setting-form label,
  1260. #user-profile-form label,
  1261. #repo-setting-form .form-label,
  1262. #user-profile-form .form-label {
  1263. width: 240px;
  1264. }
  1265. #repo-setting-form .ipt,
  1266. #user-profile-form .ipt {
  1267. width: 360px;
  1268. }
  1269. #repo-setting-form .field,
  1270. #user-profile-form .field {
  1271. margin-bottom: 24px;
  1272. }
  1273. #user-ssh-panel {
  1274. margin-bottom: 20px;
  1275. }
  1276. #user-ssh-panel .switching-list {
  1277. background-color: #FFF;
  1278. }
  1279. #user-ssh-panel .switching-list li {
  1280. padding: 8px 20px;
  1281. }
  1282. #user-ssh-panel .switching-list li.ssh:hover {
  1283. background-color: #ffffEE;
  1284. }
  1285. #user-ssh-panel .active-icon {
  1286. width: 10px;
  1287. height: 10px;
  1288. border-radius: 6px;
  1289. padding: 0;
  1290. margin-right: 20px;
  1291. margin-top: 10px;
  1292. }
  1293. #user-ssh-panel .ssh-content {
  1294. margin-left: 24px;
  1295. }
  1296. #user-ssh-panel .ssh-content .octicon {
  1297. margin-right: 4px;
  1298. }
  1299. #user-ssh-panel .ssh-content .print,
  1300. #user-ssh-panel .ssh-content .activity {
  1301. color: #888;
  1302. }
  1303. #user-ssh-panel .ssh-delete-btn {
  1304. margin-top: 6px;
  1305. }
  1306. #user-ssh-add-form .panel-body {
  1307. background-color: #FFF;
  1308. padding: 30px 0;
  1309. }
  1310. #user-ssh-add-form .ipt {
  1311. width: 500px;
  1312. }
  1313. #user-ssh-add-form textarea {
  1314. height: 120px;
  1315. margin-left: 3px;
  1316. }
  1317. #user-ssh-add-form .field {
  1318. margin-bottom: 24px;
  1319. }
  1320. .repo-issue-wrapper {
  1321. padding: 18px 0;
  1322. }
  1323. .pr-main {
  1324. padding-right: 40px;
  1325. box-sizing: border-box;
  1326. }
  1327. .pr-sidebar {
  1328. border-left: 1px solid #DDD;
  1329. box-sizing: border-box;
  1330. }
  1331. #pr-sidebar-nav {
  1332. margin-top: 6px;
  1333. }
  1334. #pr-sidebar-nav li {
  1335. margin-bottom: 4px;
  1336. }
  1337. #pr-sidebar-nav li > a {
  1338. border: 1px solid transparent;
  1339. border-left: none;
  1340. }
  1341. #pr-sidebar-nav li > a:hover {
  1342. background-color: #FFF;
  1343. border-color: #DDD;
  1344. }
  1345. #pr-sidebar-nav .label {
  1346. font-size: 12px;
  1347. line-height: 1.4em;
  1348. margin-top: 1px;
  1349. }
  1350. #pr-sidebar-nav li.current a {
  1351. background-color: #FFF;
  1352. border-color: #DDD;
  1353. }
  1354. .pr-title .pr-num {
  1355. font-weight: normal;
  1356. color: #888;
  1357. }
  1358. .pr-meta {
  1359. color: #888;
  1360. }
  1361. .pr-meta .pr-author {
  1362. margin: 0 8px;
  1363. color: #444;
  1364. }
  1365. .pr-meta .pr-author:hover {
  1366. text-decoration: underline;
  1367. }
  1368. .pr-meta .pr-branch {
  1369. margin: 0 4px;
  1370. font-size: 12px;
  1371. padding: 4px 6px;
  1372. }
  1373. .pr-nav {
  1374. border-bottom: 1px solid #DDD;
  1375. margin-top: 16px;
  1376. }
  1377. .pr-nav .octicon {
  1378. margin-right: 4px;
  1379. }
  1380. .pr-nav li > a {
  1381. padding: 3px 9px !important;
  1382. border: 1px solid transparent;
  1383. border-bottom: none;
  1384. border-top-left-radius: .2em;
  1385. border-top-right-radius: .2em;
  1386. }
  1387. .pr-nav li > a .label {
  1388. padding: 1px 5px;
  1389. font-size: 12px;
  1390. margin-left: 4px;
  1391. }
  1392. .pr-nav li.current > a {
  1393. background-color: #FFF;
  1394. border-color: #E6E6E6;
  1395. }
  1396. .diff-bar .diff-add {
  1397. color: #65ad4e;
  1398. }
  1399. .diff-bar .diff-delete {
  1400. color: #d9453d;
  1401. }
  1402. .diff-bar .diff-status {
  1403. width: 50px;
  1404. background-color: #d9453d;
  1405. height: 10px;
  1406. margin-top: 7px;
  1407. margin-left: 4px;
  1408. margin-right: 4px;
  1409. border-radius: .2em;
  1410. }
  1411. .diff-bar .diff-status-inner {
  1412. width: 45%;
  1413. background-color: #65ad4e;
  1414. height: 10px;
  1415. border-top-left-radius: .2em;
  1416. border-bottom-left-radius: .2em;
  1417. }