gogs.css 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300
  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: 14px;
  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: 14px;
  238. }
  239. .markdown h6 {
  240. font-size: 14px;
  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 li {
  266. list-style: inside;
  267. }
  268. .markdown ol li {
  269. list-style: decimal inside;
  270. }
  271. .markdown li {
  272. line-height: 1.6;
  273. margin-top: 6px;
  274. }
  275. .markdown li:first-child {
  276. margin-top: 0;
  277. }
  278. .markdown dl dt {
  279. font-style: italic;
  280. margin-top: 9px;
  281. }
  282. .markdown dl dd {
  283. margin: 0 0 9px;
  284. padding: 0 9px;
  285. }
  286. .markdown blockquote,
  287. .markdown blockquote p {
  288. font-size: 14px;
  289. background-color: #f5f5f5;
  290. }
  291. .markdown > pre {
  292. line-height: 1.6;
  293. overflow: auto;
  294. border: 1px solid #ddd;
  295. border-radius: .25em;
  296. margin: 5px 0;
  297. padding: 10px;
  298. background-color: #f8f8f8;
  299. }
  300. .markdown > pre.linenums {
  301. padding: 0;
  302. }
  303. .markdown > pre > ol.linenums {
  304. list-style: none;
  305. padding: 0;
  306. }
  307. .markdown > pre > ol.linenums > li {
  308. margin-top: 2px;
  309. }
  310. .markdown > pre.nums-style > ol.linenums {
  311. list-style-type: decimal;
  312. padding: 0 0 0 40px;
  313. -webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
  314. box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
  315. }
  316. .markdown > pre > code {
  317. white-space: pre;
  318. word-wrap: normal;
  319. }
  320. .markdown > pre > ol.linenums > li {
  321. padding: 0 10px;
  322. }
  323. .markdown > pre > ol.linenums > li:first-child {
  324. padding-top: 12px;
  325. }
  326. .markdown > pre > ol.linenums > li:last-child {
  327. padding-bottom: 12px;
  328. }
  329. .markdown > pre.nums-style > ol.linenums > li {
  330. border-left: 1px solid #ddd;
  331. }
  332. .markdown hr {
  333. border: none;
  334. color: #ccc;
  335. height: 4px;
  336. padding: 0;
  337. margin: 15px 0;
  338. border-bottom: 2px solid #EEE;
  339. }
  340. .markdown blockquote:last-child,
  341. .markdown ul:last-child,
  342. .markdown ol:last-child,
  343. .markdown > pre:last-child,
  344. .markdown > pre:last-child,
  345. .markdown p:last-child {
  346. margin-bottom: 0;
  347. }
  348. .markdown img {
  349. max-width: 100%;
  350. }
  351. .markdown .btn {
  352. color: #fff;
  353. }
  354. .markdown h1 a,
  355. .markdown h2 a,
  356. .markdown h3 a {
  357. text-decoration: none;
  358. }
  359. .markdown h1 a.anchor,
  360. .markdown h2 a.anchor,
  361. .markdown h3 a.anchor,
  362. .markdown h4 a.anchor,
  363. .markdown h5 a.anchor,
  364. .markdown h6 a.anchor {
  365. text-decoration: none;
  366. line-height: 1;
  367. padding-left: 0;
  368. margin-left: -24px;
  369. top: 15%;
  370. }
  371. .markdown a span.octicon {
  372. font-size: 16px;
  373. line-height: 1;
  374. display: inline-block;
  375. text-decoration: none;
  376. -webkit-font-smoothing: antialiased;
  377. margin-left: 30px;
  378. }
  379. .markdown a span.octicon-link {
  380. opacity: 0;
  381. color: #444;
  382. }
  383. .markdown h1:hover .octicon-link,
  384. .markdown h2:hover .octicon-link,
  385. .markdown h3:hover .octicon-link,
  386. .markdown h4:hover .octicon-link,
  387. .markdown h5:hover .octicon-link,
  388. .markdown h6:hover .octicon-link {
  389. display: inline-block;
  390. opacity: 1;
  391. }
  392. /* Author: jmblog */
  393. /* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */
  394. /* GitHub Theme */
  395. /* Pretty printing styles. Used with prettify.js. */
  396. /* SPAN elements with the classes below are added by prettyprint. */
  397. /* plain text */
  398. .pln {
  399. color: #333333;
  400. }
  401. @media screen {
  402. /* string content */
  403. .str {
  404. color: #dd1144;
  405. }
  406. /* a keyword */
  407. .kwd {
  408. color: #333333;
  409. }
  410. /* a comment */
  411. .com {
  412. color: #999988;
  413. font-style: italic;
  414. }
  415. /* a type name */
  416. .typ {
  417. color: #445588;
  418. }
  419. /* a literal value */
  420. .lit {
  421. color: #445588;
  422. }
  423. /* punctuation */
  424. .pun {
  425. color: #333333;
  426. }
  427. /* lisp open bracket */
  428. .opn {
  429. color: #333333;
  430. }
  431. /* lisp close bracket */
  432. .clo {
  433. color: #333333;
  434. }
  435. /* a markup tag name */
  436. .tag {
  437. color: navy;
  438. }
  439. /* a markup attribute name */
  440. .atn {
  441. color: teal;
  442. }
  443. /* a markup attribute value */
  444. .atv {
  445. color: #dd1144;
  446. }
  447. /* a declaration */
  448. .dec {
  449. color: #333333;
  450. }
  451. /* a variable name */
  452. .var {
  453. color: teal;
  454. }
  455. /* a function name */
  456. .fun {
  457. color: #990000;
  458. }
  459. }
  460. /* Use higher contrast and text-weight for printable form. */
  461. @media print, projection {
  462. .str {
  463. color: #006600;
  464. }
  465. .kwd {
  466. color: #006;
  467. font-weight: bold;
  468. }
  469. .com {
  470. color: #600;
  471. font-style: italic;
  472. }
  473. .typ {
  474. color: #404;
  475. font-weight: bold;
  476. }
  477. .lit {
  478. color: #004444;
  479. }
  480. .pun,
  481. .opn,
  482. .clo {
  483. color: #444400;
  484. }
  485. .tag {
  486. color: #006;
  487. font-weight: bold;
  488. }
  489. .atn {
  490. color: #440044;
  491. }
  492. .atv {
  493. color: #006600;
  494. }
  495. }
  496. /* Specify class=linenums on a pre to get line numbering */
  497. ol.linenums {
  498. margin-top: 0;
  499. margin-bottom: 0;
  500. }
  501. #promo-wrapper {
  502. padding-top: 50px;
  503. background-color: #428bca;
  504. }
  505. #promo-logo {
  506. margin-right: 50px;
  507. padding-bottom: 50px;
  508. }
  509. #promo-logo img {
  510. max-width: 250px;
  511. }
  512. #promo-content {
  513. color: #FFF;
  514. margin-left: 300px;
  515. }
  516. #promo-content h1,
  517. #promo-content h2 {
  518. font-family: 'PT Sans Narrow', sans-serif;
  519. line-height: 60px;
  520. margin-bottom: 0;
  521. text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5);
  522. }
  523. #promo-content h1 {
  524. font-size: 96px;
  525. line-height: 96px;
  526. margin-bottom: 30px;
  527. }
  528. #promo-content h2 {
  529. font-size: 52px;
  530. line-height: 70px;
  531. font-weight: normal;
  532. }
  533. #promo-form {
  534. padding: 40px 0;
  535. }
  536. #promo-form .ipt-large {
  537. border: none;
  538. border-radius: 4px;
  539. font-size: 18px;
  540. margin-right: 12px;
  541. }
  542. #promo-form .ipt-large:focus {
  543. box-shadow: 0 0 3px #FFF;
  544. }
  545. #promo-form .btn-large {
  546. border-radius: 4px;
  547. font-size: 18px;
  548. margin-right: 12px;
  549. }
  550. #promo-social {
  551. padding-bottom: 60px;
  552. }
  553. #promo-social .qq {
  554. box-shadow: 0 0 1px #1c6399;
  555. }
  556. #feature-wrapper {
  557. font-family: Lato, sans-serif;
  558. font-size: 18px;
  559. padding: 50px 0 100px 0;
  560. }
  561. #feature-wrapper .octicon {
  562. color: #d9453d;
  563. font-size: 60px;
  564. height: 60px;
  565. width: 60px;
  566. line-height: 60px;
  567. margin-right: 12px;
  568. vertical-align: middle;
  569. display: inline-block;
  570. }
  571. #feature-wrapper b {
  572. color: #000;
  573. font-size: 24px;
  574. display: inline-block;
  575. line-height: 60px;
  576. }
  577. #feature-wrapper p {
  578. margin: 1em 0;
  579. line-height: 40px;
  580. padding-right: 30px;
  581. }
  582. #feature-wrapper a {
  583. color: #d9453d;
  584. }
  585. #feature-wrapper a:hover {
  586. color: #ff635a;
  587. }
  588. #feature-wrapper .grid-1-2 {
  589. margin-bottom: 30px;
  590. }
  591. /*
  592. The dashboard page style
  593. */
  594. #dashboard-header {
  595. border-bottom: 1px solid #d6d6d6;
  596. height: 69px;
  597. }
  598. #dashboard-header > .menu-line > li {
  599. padding: 12px 0;
  600. }
  601. #dashboard-header > .menu-line > li.right > a {
  602. font-size: 1.2em;
  603. color: #444444;
  604. }
  605. #dashboard-header > .menu-line > li.right > a:hover {
  606. background-color: transparent;
  607. color: #d9453d;
  608. }
  609. #dashboard-header > .menu-line > li.right > a .octicon {
  610. margin-right: 6px;
  611. }
  612. #dashboard-header > .menu-line > li.right .current {
  613. border-bottom: 2px solid #D26911;
  614. }
  615. #dashboard-selection-menu a img {
  616. margin: -4px 10px 0 0;
  617. }
  618. #dashboard {
  619. padding: 24px 0;
  620. }
  621. #dashboard-sidebar .panel-header h4 {
  622. margin: 0;
  623. }
  624. #dashboard-sidebar > .panel {
  625. margin-bottom: 24px;
  626. border-bottom-left-radius: .3em;
  627. border-bottom-right-radius: .3em;
  628. }
  629. #dashboard-sidebar-menu {
  630. border-top-left-radius: .3em;
  631. border-top-right-radius: .3em;
  632. width: 100%;
  633. height: 35px;
  634. }
  635. #dashboard-sidebar-menu > li {
  636. border: 1px solid #d6d6d6;
  637. float: left;
  638. margin-right: -1px;
  639. border-bottom: none;
  640. }
  641. #dashboard-sidebar-menu > li > a {
  642. padding-top: .4em;
  643. padding-bottom: .4em;
  644. }
  645. #dashboard-sidebar-menu > li.first {
  646. border-top-left-radius: .3em;
  647. }
  648. #dashboard-sidebar-menu > li.first > a {
  649. border-top-left-radius: .3em;
  650. }
  651. #dashboard-sidebar-menu > li.drop {
  652. border: none;
  653. float: right;
  654. }
  655. #dashboard-sidebar-menu > li.js-tab-nav-show {
  656. background-color: #EEEEEE;
  657. }
  658. #dashboard-sidebar-menu > li.last {
  659. border-top-right-radius: .3em;
  660. }
  661. #dashboard-sidebar-menu > li.last > a {
  662. border-top-right-radius: .3em;
  663. }
  664. #dashboard-my-mirror li,
  665. #dashboard-my-org li,
  666. #dashboard-my-repo li {
  667. border-bottom: 1px solid #EAEAEA;
  668. }
  669. #dashboard-my-mirror li.private,
  670. #dashboard-my-org li.private,
  671. #dashboard-my-repo li.private {
  672. background-color: #fcf8e9;
  673. }
  674. #dashboard-my-mirror li:last-child,
  675. #dashboard-my-org li:last-child,
  676. #dashboard-my-repo li:last-child {
  677. border-bottom: none;
  678. }
  679. #dashboard-my-mirror li a,
  680. #dashboard-my-org li a,
  681. #dashboard-my-repo li a {
  682. padding: 6px 1.2em;
  683. display: block;
  684. }
  685. #dashboard-my-mirror li a .octicon,
  686. #dashboard-my-org li a .octicon,
  687. #dashboard-my-repo li a .octicon {
  688. margin-right: 6px;
  689. color: #888;
  690. }
  691. #dashboard-my-mirror li a:hover .repo-name,
  692. #dashboard-my-org li a:hover .repo-name,
  693. #dashboard-my-repo li a:hover .repo-name {
  694. text-decoration: underline;
  695. }
  696. #dashboard-my-mirror .repo-name,
  697. #dashboard-my-org .repo-name,
  698. #dashboard-my-repo .repo-name {
  699. font-size: 1.1em;
  700. }
  701. #dashboard-my-mirror .repo-star,
  702. #dashboard-my-org .repo-star,
  703. #dashboard-my-repo .repo-star {
  704. color: #888;
  705. }
  706. #dashboard-my-mirror .repo-contrib-header,
  707. #dashboard-my-org .repo-contrib-header,
  708. #dashboard-my-repo .repo-contrib-header {
  709. border-top: 1px solid #d6d6d6;
  710. }
  711. #dashboard-my-repo .panel-header .octicon {
  712. margin-right: 6px;
  713. font-size: 12px;
  714. }
  715. #dashboard-my-repo .repo-count {
  716. margin-left: 4px;
  717. }
  718. #dashboard-my-org,
  719. #dashboard-my-mirror {
  720. display: none;
  721. }
  722. #dashboard-new-repo {
  723. width: 50px;
  724. height: 35px;
  725. padding-top: 6px;
  726. margin-right: 1px;
  727. border-top-left-radius: .3em;
  728. border-top-right-radius: .3em;
  729. }
  730. #dashboard-new-repo .octicon {
  731. font-size: 2em;
  732. }
  733. #dashboard-new-repo-menu {
  734. top: 35px;
  735. width: 180px;
  736. background-color: #FFF;
  737. left: -132px;
  738. }
  739. #dashboard-new-repo-menu .octicon {
  740. margin-right: 6px;
  741. font-size: 1.1em;
  742. }
  743. #dashboard-selection-menu > .drop-down {
  744. top: 56px;
  745. }
  746. #dashboard-switch-menu {
  747. border-bottom-left-radius: .3em;
  748. border-bottom-right-radius: .3em;
  749. }
  750. #dashboard-switch-menu > li > a img {
  751. margin-top: 0;
  752. }
  753. #dashboard-switch-menu > li > a .octicon {
  754. margin-right: 12px;
  755. }
  756. #dashboard-switch-menu > li:last-child > a {
  757. border-bottom-left-radius: .3em;
  758. border-bottom-right-radius: .3em;
  759. }
  760. #dashboard-switch-menu > li.org > a .octicon {
  761. opacity: 0;
  762. }
  763. #dashboard-switch-menu > li.checked > a {
  764. font-weight: bold;
  765. }
  766. #dashboard-switch-menu > li.checked > a .octicon {
  767. opacity: 1;
  768. }
  769. #dashboard-news .news {
  770. margin-right: 2.4em;
  771. padding-bottom: 1em;
  772. margin-bottom: 1em;
  773. border-bottom: 1px solid #E6E6E6;
  774. min-height: 30px;
  775. }
  776. #dashboard-news .news .mega-octicon {
  777. color: #CCC;
  778. }
  779. #dashboard-news .news .avatar {
  780. margin: 0 1.2em;
  781. }
  782. #dashboard-news .news .news-content,
  783. #dashboard-news .news .news-time {
  784. color: #888;
  785. }
  786. #dashboard-news .push-news .news-content li {
  787. margin-left: 1em;
  788. }
  789. #dashboard-news .push-news .news-content li img {
  790. margin-bottom: -2px;
  791. }
  792. /*
  793. The register and sign-in page style
  794. */
  795. #sign-wrapper {
  796. padding: 60px 0;
  797. }
  798. .sign-panel {
  799. background-color: #ffffff;
  800. }
  801. .sign-form.form-align .field {
  802. margin: 1.2em 0 2em 0;
  803. }
  804. .sign-form.form-align .ipt-large {
  805. width: 300px;
  806. }
  807. .sign-form.form-align label,
  808. .sign-form.form-align .form-label {
  809. width: 160px;
  810. }
  811. .sign-form.form-align .alert {
  812. margin: 0 30px 24px 30px;
  813. }
  814. .sign-form.form-align:hover {
  815. box-shadow: 0 0 6px #CCC;
  816. }
  817. .sign-form.container {
  818. padding: 0;
  819. width: 600px;
  820. margin-bottom: 80px;
  821. }
  822. #sign-up-form .panel-content {
  823. margin-top: 1.2em;
  824. }
  825. #sign-up-form h2 {
  826. margin: .5em 1em;
  827. }
  828. #sign-social {
  829. position: relative;
  830. margin: 40px 0;
  831. }
  832. #sign-social .or {
  833. position: absolute;
  834. width: 30px;
  835. top: -52px;
  836. left: 50%;
  837. background-color: #FFF;
  838. margin-left: -15px;
  839. }
  840. /* repository main */
  841. #repo-wrapper {
  842. padding-bottom: 100px;
  843. }
  844. #repo-header {
  845. height: 69px;
  846. border-bottom: 1px solid #d6d6d6;
  847. background-color: #ffffff;
  848. }
  849. #repo-header-name {
  850. line-height: 66px;
  851. color: #888888;
  852. font-size: 1.6em;
  853. font-weight: normal;
  854. }
  855. #repo-header-name i {
  856. margin-right: 12px;
  857. vertical-align: middle;
  858. }
  859. #repo-header-name .divider {
  860. margin: 0 4px;
  861. }
  862. #repo-header-meta {
  863. line-height: 66px;
  864. }
  865. #repo-header-meta li > a {
  866. padding: 0;
  867. }
  868. #repo-header-meta li > a:hover {
  869. background-color: transparent;
  870. }
  871. #repo-header-meta a > .btn {
  872. font-size: 1.05em;
  873. margin-left: 16px;
  874. line-height: 16px;
  875. }
  876. #repo-header-meta a > .btn i {
  877. margin-right: 6px;
  878. }
  879. #repo-header-meta a > .btn .num {
  880. margin-left: 6px;
  881. }
  882. #repo-header-download-btn > .btn > i {
  883. margin-right: 0 !important;
  884. }
  885. #repo-header-download-btn:hover:after,
  886. #repo-header-download-btn:hover .btn {
  887. background-color: #383838;
  888. color: #FFF;
  889. }
  890. #repo-header-download-btn:after {
  891. background-color: #444444;
  892. padding: 9px 16px 8px 0;
  893. margin-left: -8px !important;
  894. color: #FFF;
  895. border-top: 1px solid #444444;
  896. border-bottom: 1px solid #444444;
  897. border-top-right-radius: .25em;
  898. border-bottom-right-radius: .25em;
  899. }
  900. #repo-header-download-drop {
  901. line-height: 24px;
  902. width: 440px;
  903. top: 50px;
  904. left: -354px;
  905. padding: 20px;
  906. box-sizing: border-box;
  907. }
  908. #repo-header-download-drop .btn > i {
  909. margin-right: 6px;
  910. }
  911. #repo-content {
  912. padding: 18px 0;
  913. }
  914. #repo-clone-url {
  915. border-right: none;
  916. width: 196px;
  917. border-left: none;
  918. }
  919. #repo-clone-help {
  920. line-height: 48px;
  921. }
  922. #repo-clone-zip {
  923. line-height: 48px;
  924. }
  925. #repo-clone-zip a {
  926. cursor: pointer;
  927. color: white;
  928. overflow: visible;
  929. padding: .6em 1.2em;
  930. }
  931. #repo-clone-zip .btn {
  932. margin: 0 6px;
  933. }
  934. #repo-desc {
  935. font-size: 1.2em;
  936. }
  937. #repo-sidebar-nav .label {
  938. font-size: 12px;
  939. line-height: 1.4em;
  940. margin-top: 2px;
  941. }
  942. #repo-sidebar-nav i {
  943. margin-right: 6px;
  944. }
  945. #repo-file-nav {
  946. padding: .6em 0 1em 0;
  947. }
  948. #repo-file-nav > li > a {
  949. padding-left: 0;
  950. }
  951. #repo-file-nav > li > a:hover {
  952. background-color: transparent;
  953. }
  954. #repo-file-nav li.repo-jump > a {
  955. padding-right: 0;
  956. }
  957. #repo-file-nav li.repo-jump > a .btn {
  958. margin-left: -1px;
  959. }
  960. #repo-branch-switch > a .btn {
  961. padding-right: 30px;
  962. }
  963. #repo-branch-switch > a:after {
  964. position: absolute;
  965. top: 12px;
  966. right: 30px;
  967. margin-left: 0;
  968. color: #444444;
  969. }
  970. #repo-branch-switch > .drop-down {
  971. top: 40px;
  972. left: 0;
  973. }
  974. #repo-branch-filter-ipt {
  975. width: 100%;
  976. border-left: none;
  977. border-right: none;
  978. box-sizing: border-box;
  979. }
  980. #repo-branch-tag .tab-nav {
  981. border-bottom: 1px solid #EAEAEA;
  982. }
  983. #repo-branch-tag .tab-nav a {
  984. padding: .3em .8em;
  985. }
  986. #repo-branch-tag .tab-nav .js-tab-nav-show {
  987. background-color: #EEE;
  988. font-weight: bold;
  989. }
  990. #repo-branch-list li i,
  991. #repo-tag-list li i {
  992. margin-right: 12px;
  993. opacity: 0;
  994. }
  995. #repo-branch-list li.checked i,
  996. #repo-tag-list li.checked i {
  997. opacity: 1;
  998. }
  999. #repo-tag-list {
  1000. display: none;
  1001. }
  1002. #repo-bread .bread {
  1003. padding-right: 0;
  1004. font-size: 16px;
  1005. font-weight: bold;
  1006. }
  1007. #repo-main {
  1008. padding-right: 40px;
  1009. box-sizing: border-box;
  1010. }
  1011. #repo-files-table {
  1012. margin-bottom: 20px;
  1013. }
  1014. #repo-files-table th,
  1015. #repo-files-table td {
  1016. text-align: left;
  1017. line-height: 32px;
  1018. }
  1019. #repo-files-table td.icon {
  1020. width: 16px;
  1021. padding-right: .1em;
  1022. padding-left: 1em;
  1023. }
  1024. #repo-files-table td.name {
  1025. max-width: 120px;
  1026. }
  1027. #repo-files-table td.name .text-truncate {
  1028. max-width: 100%;
  1029. }
  1030. #repo-files-table td.age {
  1031. max-width: 120px;
  1032. text-align: right;
  1033. }
  1034. #repo-files-table td.msg {
  1035. max-width: 440px;
  1036. }
  1037. #repo-files-table td.msg .text-truncate {
  1038. max-width: 100%;
  1039. }
  1040. #repo-files-table td.age,
  1041. #repo-files-table td.size,
  1042. #repo-files-table td.msg a {
  1043. color: #888;
  1044. }
  1045. #repo-files-table td.msg a:hover {
  1046. color: #428BCA;
  1047. text-decoration: underline;
  1048. }
  1049. #repo-files-table tbody {
  1050. background-color: #FFF;
  1051. }
  1052. #repo-files-table tbody tr:hover {
  1053. background-color: #ffffEE;
  1054. }
  1055. #repo-files-table thead {
  1056. background-color: #F0F0F0;
  1057. }
  1058. #repo-files-table thead .author a {
  1059. margin: 0 .4em;
  1060. }
  1061. #repo-files-table thead .last-commit strong {
  1062. color: #444;
  1063. }
  1064. #repo-files-table thead .last-commit .text-truncate {
  1065. margin-left: .4em;
  1066. }
  1067. #repo-files-table thead .last-commit .text-truncate,
  1068. #repo-files-table thead .age {
  1069. font-weight: normal;
  1070. color: #888;
  1071. }
  1072. #repo-readme {
  1073. margin-bottom: 80px;
  1074. }
  1075. #repo-bare-start {
  1076. margin-bottom: 100px;
  1077. }
  1078. #repo-bare-start .panel-content {
  1079. background-color: #FFF;
  1080. }
  1081. #repo-bare-start pre {
  1082. margin: 0 40px;
  1083. padding: 6px 10px;
  1084. border: 1px solid #ddd;
  1085. background: #f8f8f8;
  1086. }
  1087. .repo-bare #repo-bare-start h2 {
  1088. margin-top: 30px;
  1089. margin-bottom: 24px;
  1090. }
  1091. .repo-bare #repo-header-meta {
  1092. display: none;
  1093. }
  1094. .repo-bare #repo-clone-ssh {
  1095. margin-left: 200px;
  1096. }
  1097. .repo-bare #repo-clone-copy {
  1098. margin-right: 200px;
  1099. }
  1100. .repo-bare #repo-clone-help {
  1101. clear: both;
  1102. width: 100%;
  1103. }
  1104. .repo-bare #repo-clone-url {
  1105. width: 520px;
  1106. }
  1107. /* repository create */
  1108. #repo-migrate-form,
  1109. #repo-create-form {
  1110. width: 800px;
  1111. margin: 60px auto auto auto;
  1112. background: white;
  1113. }
  1114. #repo-migrate-form h2,
  1115. #repo-create-form h2 {
  1116. margin: .5em 1em;
  1117. }
  1118. #repo-migrate-form .field,
  1119. #repo-create-form .field {
  1120. margin: 1.2em 0 2em 0;
  1121. }
  1122. #repo-migrate-form .ipt,
  1123. #repo-create-form .ipt {
  1124. width: 540px;
  1125. }
  1126. #repo-migrate-form textarea,
  1127. #repo-create-form textarea {
  1128. height: 120px;
  1129. }
  1130. #repo-migrate-form .avatar,
  1131. #repo-create-form .avatar {
  1132. vertical-align: middle;
  1133. margin-right: .6em;
  1134. width: 28px;
  1135. height: 28px;
  1136. }
  1137. #repo-migrate-form:hover,
  1138. #repo-create-form:hover {
  1139. box-shadow: 0px 0px 6px #CCC;
  1140. }
  1141. #repo-create-cancel {
  1142. margin-left: 4em;
  1143. }
  1144. #repo-create-owner-list {
  1145. top: 30px;
  1146. left: 0;
  1147. }
  1148. #repo-create-owner-list .octicon {
  1149. margin-right: 12px;
  1150. opacity: 0;
  1151. }
  1152. #repo-create-owner-list .avatar {
  1153. width: 20px;
  1154. height: 20px;
  1155. }
  1156. #repo-create-owner-list li.checked .octicon {
  1157. opacity: 1;
  1158. }
  1159. .file-name {
  1160. margin-left: 1em;
  1161. }
  1162. .file-size {
  1163. font-size: 13px;
  1164. color: #888;
  1165. margin-left: 1em;
  1166. }
  1167. .code-view {
  1168. overflow: auto;
  1169. overflow-x: auto;
  1170. overflow-y: hidden;
  1171. background: white;
  1172. }
  1173. .code-view .view-raw {
  1174. min-height: 40px;
  1175. text-align: center;
  1176. padding-top: 20px;
  1177. }
  1178. .code-view .view-raw .btn {
  1179. font-size: 1.05em;
  1180. line-height: 16px;
  1181. padding: 6px 8px;
  1182. }
  1183. .code-view table {
  1184. width: 100%;
  1185. }
  1186. .code-view table td {
  1187. padding: 0;
  1188. }
  1189. .code-view .lines-num {
  1190. text-align: right;
  1191. color: #999;
  1192. background: #f5f5f5;
  1193. width: 1%;
  1194. }
  1195. .code-view .lines-num span {
  1196. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  1197. line-height: 18px;
  1198. padding: 0 8px 0 10px;
  1199. cursor: pointer;
  1200. display: block;
  1201. margin-top: 2px;
  1202. font-size: 12px;
  1203. }
  1204. .code-view .lines-code > pre {
  1205. border: none;
  1206. border-left: 1px solid #ddd;
  1207. }
  1208. .code-view .lines-code > pre > ol.linenums > li {
  1209. padding: 0 10px;
  1210. }
  1211. .code-view .lines-code > pre > ol.linenums > li.active {
  1212. background: #ffffdd;
  1213. }
  1214. #setting-wrapper {
  1215. padding-bottom: 100px;
  1216. }
  1217. #setting-menu {
  1218. box-sizing: border-box;
  1219. }
  1220. #setting-menu li > a {
  1221. border-left: 2px solid #FFF;
  1222. background-color: #FFF;
  1223. }
  1224. #setting-menu li:hover {
  1225. border-color: #EAEAEA;
  1226. }
  1227. #setting-menu li:hover a {
  1228. border-left: 2px solid #EFEFEF;
  1229. background-color: #EFEFEF !important;
  1230. color: #000 !important;
  1231. }
  1232. #setting-menu li.current a {
  1233. color: #000 !important;
  1234. font-weight: bold;
  1235. border-left: 2px solid #d26911;
  1236. }
  1237. .setting-content {
  1238. margin-left: 32px;
  1239. }
  1240. #user-profile-form {
  1241. background-color: #FFF;
  1242. padding: 30px 0;
  1243. }
  1244. #user-profile-form label,
  1245. #user-profile-form .form-label {
  1246. width: 240px;
  1247. }
  1248. #user-profile-form .ipt {
  1249. width: 360px;
  1250. }
  1251. #user-profile-form .field {
  1252. margin-bottom: 24px;
  1253. }
  1254. #user-ssh-panel {
  1255. margin-bottom: 20px;
  1256. }
  1257. #user-ssh-panel .switching-list {
  1258. background-color: #FFF;
  1259. }
  1260. #user-ssh-panel .switching-list li {
  1261. padding: 8px 20px;
  1262. }
  1263. #user-ssh-panel .switching-list li.ssh:hover {
  1264. background-color: #ffffEE;
  1265. }
  1266. #user-ssh-panel .active-icon {
  1267. width: 10px;
  1268. height: 10px;
  1269. border-radius: 6px;
  1270. padding: 0;
  1271. margin-right: 20px;
  1272. margin-top: 10px;
  1273. }
  1274. #user-ssh-panel .ssh-content {
  1275. margin-left: 24px;
  1276. }
  1277. #user-ssh-panel .ssh-content .octicon {
  1278. margin-right: 4px;
  1279. }
  1280. #user-ssh-panel .ssh-content .print,
  1281. #user-ssh-panel .ssh-content .activity {
  1282. color: #888;
  1283. }
  1284. #user-ssh-panel .ssh-delete-btn {
  1285. margin-top: 6px;
  1286. }
  1287. #user-ssh-add-form .panel-body {
  1288. background-color: #FFF;
  1289. padding: 30px 0;
  1290. }
  1291. #user-ssh-add-form .ipt {
  1292. width: 500px;
  1293. }
  1294. #user-ssh-add-form textarea {
  1295. height: 120px;
  1296. margin-left: 3px;
  1297. }
  1298. #user-ssh-add-form .field {
  1299. margin-bottom: 24px;
  1300. }