gogs.css 23 KB

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