gogs.css 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412
  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. margin-bottom: 0;
  855. }
  856. #repo-header-name i {
  857. margin-right: 12px;
  858. vertical-align: middle;
  859. }
  860. #repo-header-name .divider {
  861. margin: 0 4px;
  862. }
  863. #repo-header-meta {
  864. line-height: 66px;
  865. }
  866. #repo-header-meta li > a {
  867. padding: 0;
  868. }
  869. #repo-header-meta li > a:hover {
  870. background-color: transparent;
  871. }
  872. #repo-header-meta a > .btn {
  873. font-size: 1.05em;
  874. margin-left: 16px;
  875. line-height: 16px;
  876. }
  877. #repo-header-meta a > .btn i {
  878. margin-right: 6px;
  879. }
  880. #repo-header-meta a > .btn .num {
  881. margin-left: 6px;
  882. }
  883. #repo-header-download-btn > .btn > i {
  884. margin-right: 0 !important;
  885. }
  886. #repo-header-download-btn:hover:after,
  887. #repo-header-download-btn:hover .btn {
  888. background-color: #383838;
  889. color: #FFF;
  890. }
  891. #repo-header-download-btn:after {
  892. background-color: #444444;
  893. padding: 9px 16px 8px 0;
  894. margin-left: -8px !important;
  895. color: #FFF;
  896. border-top: 1px solid #444444;
  897. border-bottom: 1px solid #444444;
  898. border-top-right-radius: .25em;
  899. border-bottom-right-radius: .25em;
  900. }
  901. #repo-header-download-drop {
  902. line-height: 24px;
  903. width: 440px;
  904. top: 50px;
  905. left: -354px;
  906. padding: 20px;
  907. box-sizing: border-box;
  908. }
  909. #repo-header-download-drop .btn > i {
  910. margin-right: 6px;
  911. }
  912. #repo-content {
  913. padding: 18px 0;
  914. }
  915. #repo-clone-url {
  916. border-right: none;
  917. width: 196px;
  918. border-left: none;
  919. }
  920. #repo-clone-help {
  921. line-height: 48px;
  922. }
  923. #repo-clone-zip {
  924. line-height: 48px;
  925. }
  926. #repo-clone-zip a {
  927. cursor: pointer;
  928. color: white;
  929. overflow: visible;
  930. padding: .6em 1.2em;
  931. }
  932. #repo-clone-zip .btn {
  933. margin: 0 6px;
  934. }
  935. #repo-desc {
  936. font-size: 1.2em;
  937. }
  938. #repo-sidebar-nav .label {
  939. font-size: 12px;
  940. line-height: 1.4em;
  941. margin-top: 2px;
  942. }
  943. #repo-sidebar-nav i {
  944. margin-right: 6px;
  945. }
  946. #repo-file-nav {
  947. padding: .6em 0 1em 0;
  948. }
  949. #repo-file-nav > li > a {
  950. padding-left: 0;
  951. }
  952. #repo-file-nav > li > a:hover {
  953. background-color: transparent;
  954. }
  955. #repo-file-nav li.repo-jump > a {
  956. padding-right: 0;
  957. }
  958. #repo-file-nav li.repo-jump > a .btn {
  959. margin-left: -1px;
  960. }
  961. #repo-branch-switch > a .btn {
  962. padding-right: 30px;
  963. }
  964. #repo-branch-switch > a:after {
  965. position: absolute;
  966. top: 12px;
  967. right: 30px;
  968. margin-left: 0;
  969. color: #444444;
  970. }
  971. #repo-branch-switch > .drop-down {
  972. top: 40px;
  973. left: 0;
  974. }
  975. #repo-branch-filter-ipt {
  976. width: 100%;
  977. border-left: none;
  978. border-right: none;
  979. box-sizing: border-box;
  980. }
  981. #repo-branch-tag .tab-nav {
  982. border-bottom: 1px solid #EAEAEA;
  983. }
  984. #repo-branch-tag .tab-nav a {
  985. padding: .3em .8em;
  986. }
  987. #repo-branch-tag .tab-nav .js-tab-nav-show {
  988. background-color: #EEE;
  989. font-weight: bold;
  990. }
  991. #repo-branch-list li i,
  992. #repo-tag-list li i {
  993. margin-right: 12px;
  994. opacity: 0;
  995. }
  996. #repo-branch-list li.checked i,
  997. #repo-tag-list li.checked i {
  998. opacity: 1;
  999. }
  1000. #repo-tag-list {
  1001. display: none;
  1002. }
  1003. #repo-bread .bread {
  1004. padding-right: 0;
  1005. font-size: 16px;
  1006. font-weight: bold;
  1007. }
  1008. #repo-main {
  1009. padding-right: 40px;
  1010. box-sizing: border-box;
  1011. }
  1012. #repo-files-table {
  1013. margin-bottom: 20px;
  1014. }
  1015. #repo-files-table th,
  1016. #repo-files-table td {
  1017. text-align: left;
  1018. line-height: 32px;
  1019. }
  1020. #repo-files-table td.icon {
  1021. width: 16px;
  1022. padding-right: .1em;
  1023. padding-left: 1em;
  1024. }
  1025. #repo-files-table td.name {
  1026. max-width: 120px;
  1027. }
  1028. #repo-files-table td.name .text-truncate {
  1029. max-width: 100%;
  1030. }
  1031. #repo-files-table td.age {
  1032. max-width: 120px;
  1033. text-align: right;
  1034. }
  1035. #repo-files-table td.msg {
  1036. max-width: 440px;
  1037. }
  1038. #repo-files-table td.msg .text-truncate {
  1039. max-width: 100%;
  1040. }
  1041. #repo-files-table td.age,
  1042. #repo-files-table td.size,
  1043. #repo-files-table td.msg a {
  1044. color: #888;
  1045. }
  1046. #repo-files-table td.msg a:hover {
  1047. color: #428BCA;
  1048. text-decoration: underline;
  1049. }
  1050. #repo-files-table tbody {
  1051. background-color: #FFF;
  1052. }
  1053. #repo-files-table tbody tr:hover {
  1054. background-color: #ffffEE;
  1055. }
  1056. #repo-files-table thead {
  1057. background-color: #F0F0F0;
  1058. }
  1059. #repo-files-table thead .author a {
  1060. margin: 0 .4em;
  1061. }
  1062. #repo-files-table thead .last-commit strong {
  1063. color: #444;
  1064. }
  1065. #repo-files-table thead .last-commit .text-truncate {
  1066. margin-left: .4em;
  1067. }
  1068. #repo-files-table thead .last-commit .text-truncate,
  1069. #repo-files-table thead .age {
  1070. font-weight: normal;
  1071. color: #888;
  1072. }
  1073. #repo-readme {
  1074. margin-bottom: 80px;
  1075. }
  1076. #repo-bare-start {
  1077. margin-bottom: 100px;
  1078. }
  1079. #repo-bare-start .panel-content {
  1080. background-color: #FFF;
  1081. }
  1082. #repo-bare-start pre {
  1083. margin: 0 40px;
  1084. padding: 6px 10px;
  1085. border: 1px solid #ddd;
  1086. background: #f8f8f8;
  1087. }
  1088. .repo-bare #repo-bare-start h2 {
  1089. margin-top: 30px;
  1090. margin-bottom: 24px;
  1091. }
  1092. .repo-bare #repo-header-meta {
  1093. display: none;
  1094. }
  1095. .repo-bare #repo-clone-ssh {
  1096. margin-left: 200px;
  1097. }
  1098. .repo-bare #repo-clone-copy {
  1099. margin-right: 200px;
  1100. }
  1101. .repo-bare #repo-clone-help {
  1102. clear: both;
  1103. width: 100%;
  1104. }
  1105. .repo-bare #repo-clone-url {
  1106. width: 520px;
  1107. }
  1108. /* repository create */
  1109. #repo-migrate-form,
  1110. #repo-create-form {
  1111. width: 800px;
  1112. margin: 60px auto auto auto;
  1113. background: white;
  1114. }
  1115. #repo-migrate-form h2,
  1116. #repo-create-form h2 {
  1117. margin: .5em 1em;
  1118. }
  1119. #repo-migrate-form .field,
  1120. #repo-create-form .field {
  1121. margin: 1.2em 0 2em 0;
  1122. }
  1123. #repo-migrate-form .ipt,
  1124. #repo-create-form .ipt {
  1125. width: 540px;
  1126. }
  1127. #repo-migrate-form textarea,
  1128. #repo-create-form textarea {
  1129. height: 120px;
  1130. }
  1131. #repo-migrate-form .avatar,
  1132. #repo-create-form .avatar {
  1133. vertical-align: middle;
  1134. margin-right: .6em;
  1135. width: 28px;
  1136. height: 28px;
  1137. }
  1138. #repo-migrate-form:hover,
  1139. #repo-create-form:hover {
  1140. box-shadow: 0px 0px 6px #CCC;
  1141. }
  1142. #repo-create-cancel {
  1143. margin-left: 4em;
  1144. }
  1145. #repo-create-owner-list {
  1146. top: 30px;
  1147. left: 0;
  1148. }
  1149. #repo-create-owner-list .octicon {
  1150. margin-right: 12px;
  1151. opacity: 0;
  1152. }
  1153. #repo-create-owner-list .avatar {
  1154. width: 20px;
  1155. height: 20px;
  1156. }
  1157. #repo-create-owner-list li.checked .octicon {
  1158. opacity: 1;
  1159. }
  1160. .file-name {
  1161. margin-left: 1em;
  1162. }
  1163. .file-size {
  1164. font-size: 13px;
  1165. color: #888;
  1166. margin-left: 1em;
  1167. }
  1168. .code-view {
  1169. overflow: auto;
  1170. overflow-x: auto;
  1171. overflow-y: hidden;
  1172. background: white;
  1173. }
  1174. .code-view .view-raw {
  1175. min-height: 40px;
  1176. text-align: center;
  1177. padding-top: 20px;
  1178. }
  1179. .code-view .view-raw .btn {
  1180. font-size: 1.05em;
  1181. line-height: 16px;
  1182. padding: 6px 8px;
  1183. }
  1184. .code-view table {
  1185. width: 100%;
  1186. }
  1187. .code-view table td {
  1188. padding: 0;
  1189. }
  1190. .code-view .lines-num {
  1191. text-align: right;
  1192. color: #999;
  1193. background: #f5f5f5;
  1194. width: 1%;
  1195. }
  1196. .code-view .lines-num span {
  1197. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  1198. line-height: 18px;
  1199. padding: 0 8px 0 10px;
  1200. cursor: pointer;
  1201. display: block;
  1202. margin-top: 2px;
  1203. font-size: 12px;
  1204. }
  1205. .code-view .lines-code > pre {
  1206. border: none;
  1207. border-left: 1px solid #ddd;
  1208. }
  1209. .code-view .lines-code > pre > ol.linenums > li {
  1210. padding: 0 10px;
  1211. }
  1212. .code-view .lines-code > pre > ol.linenums > li.active {
  1213. background: #ffffdd;
  1214. }
  1215. .repo-setting-zone {
  1216. padding: 30px;
  1217. }
  1218. #setting-wrapper {
  1219. padding-bottom: 100px;
  1220. }
  1221. #setting-menu {
  1222. box-sizing: border-box;
  1223. }
  1224. #setting-menu li > a {
  1225. border-left: 2px solid #FFF;
  1226. background-color: #FFF;
  1227. }
  1228. #setting-menu li:hover {
  1229. border-color: #EAEAEA;
  1230. }
  1231. #setting-menu li:hover a {
  1232. border-left: 2px solid #EFEFEF;
  1233. background-color: #EFEFEF !important;
  1234. color: #000 !important;
  1235. }
  1236. #setting-menu li.current a {
  1237. color: #000 !important;
  1238. font-weight: bold;
  1239. border-left: 2px solid #d26911;
  1240. }
  1241. .setting-content {
  1242. margin-left: 32px;
  1243. }
  1244. #repo-setting-form,
  1245. #user-profile-form {
  1246. background-color: #FFF;
  1247. padding: 30px 0;
  1248. }
  1249. #repo-setting-form textarea,
  1250. #user-profile-form textarea {
  1251. margin-left: 4px;
  1252. height: 100px;
  1253. }
  1254. #repo-setting-form label,
  1255. #user-profile-form label,
  1256. #repo-setting-form .form-label,
  1257. #user-profile-form .form-label {
  1258. width: 240px;
  1259. }
  1260. #repo-setting-form .ipt,
  1261. #user-profile-form .ipt {
  1262. width: 360px;
  1263. }
  1264. #repo-setting-form .field,
  1265. #user-profile-form .field {
  1266. margin-bottom: 24px;
  1267. }
  1268. #user-ssh-panel {
  1269. margin-bottom: 20px;
  1270. }
  1271. #user-ssh-panel .switching-list {
  1272. background-color: #FFF;
  1273. }
  1274. #user-ssh-panel .switching-list li {
  1275. padding: 8px 20px;
  1276. }
  1277. #user-ssh-panel .switching-list li.ssh:hover {
  1278. background-color: #ffffEE;
  1279. }
  1280. #user-ssh-panel .active-icon {
  1281. width: 10px;
  1282. height: 10px;
  1283. border-radius: 6px;
  1284. padding: 0;
  1285. margin-right: 20px;
  1286. margin-top: 10px;
  1287. }
  1288. #user-ssh-panel .ssh-content {
  1289. margin-left: 24px;
  1290. }
  1291. #user-ssh-panel .ssh-content .octicon {
  1292. margin-right: 4px;
  1293. }
  1294. #user-ssh-panel .ssh-content .print,
  1295. #user-ssh-panel .ssh-content .activity {
  1296. color: #888;
  1297. }
  1298. #user-ssh-panel .ssh-delete-btn {
  1299. margin-top: 6px;
  1300. }
  1301. #user-ssh-add-form .panel-body {
  1302. background-color: #FFF;
  1303. padding: 30px 0;
  1304. }
  1305. #user-ssh-add-form .ipt {
  1306. width: 500px;
  1307. }
  1308. #user-ssh-add-form textarea {
  1309. height: 120px;
  1310. margin-left: 3px;
  1311. }
  1312. #user-ssh-add-form .field {
  1313. margin-bottom: 24px;
  1314. }
  1315. .repo-issue-wrapper {
  1316. padding: 18px 0;
  1317. }
  1318. .pr-main {
  1319. padding-right: 40px;
  1320. box-sizing: border-box;
  1321. }
  1322. .pr-sidebar {
  1323. border-left: 1px solid #DDD;
  1324. box-sizing: border-box;
  1325. }
  1326. #pr-sidebar-nav {
  1327. margin-top: 6px;
  1328. }
  1329. #pr-sidebar-nav li {
  1330. margin-bottom: 4px;
  1331. }
  1332. #pr-sidebar-nav li > a {
  1333. border: 1px solid transparent;
  1334. border-left: none;
  1335. }
  1336. #pr-sidebar-nav li > a:hover {
  1337. background-color: #FFF;
  1338. border-color: #DDD;
  1339. }
  1340. #pr-sidebar-nav .label {
  1341. font-size: 12px;
  1342. line-height: 1.4em;
  1343. margin-top: 1px;
  1344. }
  1345. #pr-sidebar-nav li.current a {
  1346. background-color: #FFF;
  1347. border-color: #DDD;
  1348. }
  1349. .pr-title .pr-num {
  1350. font-weight: normal;
  1351. color: #888;
  1352. }
  1353. .pr-meta {
  1354. color: #888;
  1355. }
  1356. .pr-meta .pr-author {
  1357. margin: 0 8px;
  1358. color: #444;
  1359. }
  1360. .pr-meta .pr-author:hover {
  1361. text-decoration: underline;
  1362. }
  1363. .pr-meta .pr-branch {
  1364. margin: 0 4px;
  1365. font-size: 12px;
  1366. padding: 4px 6px;
  1367. }
  1368. .pr-nav {
  1369. border-bottom: 1px solid #DDD;
  1370. margin-top: 16px;
  1371. }
  1372. .pr-nav .octicon {
  1373. margin-right: 4px;
  1374. }
  1375. .pr-nav li > a {
  1376. padding: 3px 9px !important;
  1377. border: 1px solid transparent;
  1378. border-bottom: none;
  1379. border-top-left-radius: .2em;
  1380. border-top-right-radius: .2em;
  1381. }
  1382. .pr-nav li > a .label {
  1383. padding: 1px 5px;
  1384. font-size: 12px;
  1385. margin-left: 4px;
  1386. }
  1387. .pr-nav li.current > a {
  1388. background-color: #FFF;
  1389. border-color: #E6E6E6;
  1390. }
  1391. .diff-bar .diff-add {
  1392. color: #65ad4e;
  1393. }
  1394. .diff-bar .diff-delete {
  1395. color: #d9453d;
  1396. }
  1397. .diff-bar .diff-status {
  1398. width: 50px;
  1399. background-color: #d9453d;
  1400. height: 10px;
  1401. margin-top: 7px;
  1402. margin-left: 4px;
  1403. margin-right: 4px;
  1404. border-radius: .2em;
  1405. }
  1406. .diff-bar .diff-status-inner {
  1407. width: 45%;
  1408. background-color: #65ad4e;
  1409. height: 10px;
  1410. border-top-left-radius: .2em;
  1411. border-bottom-left-radius: .2em;
  1412. }