_repository.less 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581
  1. .repository {
  2. @mega-octicon-width: 30px;
  3. padding-top: 15px;
  4. padding-bottom: @footer-margin * 2;
  5. .head {
  6. .column {
  7. padding-top: 5px !important;
  8. padding-bottom: 5px !important;
  9. }
  10. .ui.compact.menu {
  11. margin-left: 1rem;
  12. }
  13. .ui.header {
  14. margin-top: 0;
  15. }
  16. .mega-octicon {
  17. width: @mega-octicon-width;
  18. font-size: 30px;
  19. }
  20. .ui.huge.breadcrumb {
  21. font-weight: 400;
  22. font-size: 1.7rem;
  23. }
  24. .fork-flag {
  25. margin-left: @mega-octicon-width + 8px;
  26. margin-top: 3px;
  27. display: block;
  28. font-size: 12px;
  29. white-space: nowrap;
  30. }
  31. .octicon.octicon-repo-forked {
  32. margin-top: -1px;
  33. font-size: 15px;
  34. }
  35. }
  36. .navbar {
  37. .ui.label {
  38. margin-top: -2px;
  39. margin-left: 7px;
  40. padding: 3px 5px;
  41. }
  42. }
  43. .owner.dropdown {
  44. min-width: 40% !important;
  45. }
  46. .metas {
  47. .menu {
  48. max-height: 300px;
  49. overflow-x: auto;
  50. }
  51. .ui.list {
  52. .hide {
  53. display: none!important;
  54. }
  55. .item {
  56. padding: 0px;
  57. }
  58. .label.color {
  59. padding: 0 8px;
  60. margin-right: 5px;
  61. }
  62. a {
  63. margin: 2px 0;
  64. .text {
  65. color: #444;
  66. &:hover {
  67. color: #000;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. .header-wrapper {
  74. background-color: #FAFAFA;
  75. margin-top: -15px;
  76. padding-top: 15px;
  77. .ui.tabs.divider {
  78. border-bottom: none;
  79. }
  80. .ui.tabular .octicon {
  81. margin-right: 5px;
  82. }
  83. }
  84. .filter.menu {
  85. .label.color {
  86. border-radius: 3px;
  87. margin-left: 15px;
  88. padding: 0 8px;
  89. }
  90. .octicon {
  91. float: left;
  92. margin-left: -5px;
  93. margin-right: -7px;
  94. }
  95. .menu {
  96. max-height: 300px;
  97. overflow-x: auto;
  98. right: 0!important;
  99. left: auto!important;
  100. }
  101. .dropdown.item {
  102. margin: 1px;
  103. padding-right: 0;
  104. }
  105. }
  106. .ui.tabs {
  107. &.container {
  108. margin-top: 14px;
  109. margin-bottom: 0px;
  110. .ui.menu {
  111. border-bottom: none;
  112. }
  113. }
  114. &.divider {
  115. margin-top: 0;
  116. margin-bottom: 20px;
  117. }
  118. }
  119. #clone-panel {
  120. margin-top: -8px;
  121. margin-left: 5px;
  122. width: 350px;
  123. input {
  124. border-radius: 0;
  125. padding: 5px 10px;
  126. }
  127. .clone.button {
  128. font-size: 13px;
  129. padding: 0 5px;
  130. &:first-child {
  131. border-radius: .28571429rem 0 0 .28571429rem;
  132. }
  133. }
  134. .icon.button {
  135. padding: 0 10px;
  136. }
  137. .dropdown .menu {
  138. right: 0!important;
  139. left: auto!important;
  140. }
  141. }
  142. &.file.list {
  143. #repo-desc {
  144. font-size: 1.2em;
  145. }
  146. .choose.reference {
  147. .header .icon {
  148. font-size: 1.4em;
  149. }
  150. }
  151. #file-buttons {
  152. font-weight: normal;
  153. margin-top: -3px;
  154. .ui.button {
  155. padding: 8px 10px;
  156. font-weight: normal;
  157. }
  158. }
  159. #repo-files-table {
  160. thead {
  161. th {
  162. padding-top: 8px;
  163. padding-bottom: 5px;
  164. font-weight: normal;
  165. &:first-child {
  166. display: block;
  167. position: relative;
  168. width: 325%;
  169. }
  170. }
  171. .ui.avatar {
  172. margin-bottom: 5px;
  173. }
  174. }
  175. tbody {
  176. .octicon {
  177. margin-left: 3px;
  178. margin-right: 5px;
  179. color: #777;
  180. &.octicon-mail-reply {
  181. margin-right: 10px;
  182. }
  183. &.octicon-file-directory, &.octicon-file-submodule {
  184. color: #1e70bf;
  185. }
  186. }
  187. }
  188. td {
  189. padding-top: 8px;
  190. padding-bottom: 8px;
  191. }
  192. tr:hover {
  193. background-color: #ffffEE;
  194. }
  195. }
  196. #file-content {
  197. .header {
  198. .icon {
  199. font-size: 1em;
  200. margin-top: -2px;
  201. }
  202. .file-actions {
  203. padding-left: 20px;
  204. .btn-octicon {
  205. display: inline-block;
  206. padding: 5px;
  207. margin-left: 5px;
  208. line-height: 1;
  209. color: #767676;
  210. vertical-align: middle;
  211. background: transparent;
  212. border: 0;
  213. outline: none;
  214. }
  215. .btn-octicon:hover {
  216. color: #4078c0;
  217. }
  218. .btn-octicon-danger:hover {
  219. color: #bd2c00;
  220. }
  221. .btn-octicon.disabled {
  222. color: #bbb;
  223. cursor: default;
  224. }
  225. #delete-file-form {
  226. display: inline-block;
  227. }
  228. }
  229. }
  230. .view-raw {
  231. padding: 5px;
  232. * {
  233. max-width: 100%;
  234. }
  235. img {
  236. margin-bottom: -5px;
  237. }
  238. }
  239. #ipython-notebook {
  240. margin-left: 80px;
  241. .nb-notebook {
  242. line-height: 1.5;
  243. }
  244. .nb-stdout, .nb-stderr {
  245. white-space: pre-wrap;
  246. margin: 1em 0;
  247. padding: 0.1em 0.5em;
  248. }
  249. .nb-stderr {
  250. background-color: #FAA;
  251. }
  252. .nb-cell + .nb-cell {
  253. margin-top: 0.5em;
  254. }
  255. .nb-output table {
  256. border: 1px solid #000;
  257. border-collapse: collapse;
  258. }
  259. .nb-output th {
  260. font-weight: bold;
  261. }
  262. .nb-output th, .nb-output td {
  263. border: 1px solid #000;
  264. padding: 0.25em;
  265. text-align: left;
  266. vertical-align: middle;
  267. border-collapse: collapse;
  268. }
  269. .nb-cell {
  270. position: relative;
  271. }
  272. .nb-raw-cell {
  273. white-space: pre-wrap;
  274. background-color: #f5f2f0;
  275. font-family: Consolas, Monaco, 'Andale Mono', monospace;
  276. padding: 1em;
  277. margin: .5em 0;
  278. }
  279. .nb-output {
  280. min-height: 1em;
  281. width: 100%;
  282. overflow-x: scroll;
  283. border-right: 1px dotted #CCC;
  284. }
  285. .nb-output img {
  286. max-width: 100%;
  287. }
  288. .nb-output:before, .nb-input:before {
  289. position: absolute;
  290. font-family: monospace;
  291. color: #999;
  292. left: -7.5em;
  293. width: 7em;
  294. text-align: right;
  295. }
  296. .nb-input:before {
  297. content: "In [" attr(data-prompt-number) "]:";
  298. }
  299. .nb-output:before {
  300. content: "Out [" attr(data-prompt-number) "]:";
  301. }
  302. .nb-markdown-cell {
  303. background-color: #eee;
  304. margin-left: -80px;
  305. padding: 11.5px 10px 19.5px 80px;
  306. }
  307. // Fix pandas dataframe formatting
  308. div[style="max-height:1000px;max-width:1500px;overflow:auto;"] {
  309. max-height: none !important;
  310. }
  311. }
  312. .plain-text {
  313. font-size: 14px;
  314. padding: 10px 15px;
  315. }
  316. .code-view {
  317. * {
  318. font-size: 12px;
  319. font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  320. line-height: 20px;
  321. }
  322. table {
  323. width: 100%;
  324. }
  325. .lines-num {
  326. vertical-align: top;
  327. text-align: right;
  328. color: #999;
  329. background: #f5f5f5;
  330. width: 1%;
  331. span {
  332. line-height: 20px;
  333. padding: 0 10px;
  334. cursor: pointer;
  335. display: block;
  336. }
  337. }
  338. .lines-num,
  339. .lines-code {
  340. padding: 0;
  341. pre,
  342. ol,
  343. .hljs {
  344. background-color: white;
  345. margin: 0;
  346. padding: 0 !important;
  347. li {
  348. display: inline-block;
  349. width: 100%;
  350. &.active {
  351. background: #ffffdd;
  352. }
  353. &:before {
  354. content: ' ';
  355. }
  356. }
  357. }
  358. }
  359. }
  360. }
  361. .sidebar {
  362. padding-left: 0;
  363. .octicon {
  364. width: 16px;
  365. }
  366. }
  367. }
  368. &.file.editor {
  369. .treepath {
  370. width: 100%;
  371. input {
  372. vertical-align: middle;
  373. box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 2px inset;
  374. width: inherit;
  375. padding: 7px 8px;
  376. margin-right: 5px;
  377. }
  378. }
  379. .tabular.menu {
  380. .octicon {
  381. margin-right: 5px;
  382. }
  383. }
  384. .commit-form-wrapper {
  385. padding-left: 64px;
  386. .commit-avatar {
  387. float: left;
  388. margin-left: -64px;
  389. width: 3em;
  390. height: auto;
  391. }
  392. .commit-form {
  393. position: relative;
  394. padding: 15px;
  395. margin-bottom: 10px;
  396. border: 1px solid #ddd;
  397. border-radius: 3px;
  398. #avatar-arrow;
  399. &:after {
  400. border-right-color: #fff;
  401. }
  402. .quick-pull-choice {
  403. .branch-name {
  404. display: inline-block;
  405. padding: 3px 6px;
  406. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  407. color: rgba(0,0,0,0.65);
  408. background-color: rgba(209,227,237,0.45);
  409. border-radius: 3px;
  410. }
  411. .new-branch-name-input {
  412. position: relative;
  413. margin-left: 25px;
  414. input {
  415. width: 240px !important;
  416. padding-left: 26px !important;
  417. }
  418. }
  419. .octicon-git-branch {
  420. position: absolute;
  421. top: 9px;
  422. left: 10px;
  423. color: #b0c4ce;
  424. }
  425. }
  426. }
  427. }
  428. }
  429. &.options {
  430. #interval {
  431. width: 100px!important;
  432. min-width: 100px;
  433. }
  434. .danger {
  435. .item {
  436. padding: 20px 15px;
  437. }
  438. .ui.divider {
  439. margin: 0;
  440. }
  441. }
  442. }
  443. @comment-avatar-width: 3em;
  444. &.new.issue {
  445. .comment.form {
  446. .comment {
  447. .avatar {
  448. width: @comment-avatar-width;
  449. }
  450. }
  451. .content {
  452. margin-left: 4em;
  453. #avatar-arrow;
  454. &:after {
  455. border-right-color: #fff;
  456. }
  457. .markdown {
  458. font-size: 14px;
  459. }
  460. }
  461. .metas {
  462. min-width: 220px;
  463. .filter.menu {
  464. max-height: 300px;
  465. overflow-x: auto;
  466. }
  467. }
  468. }
  469. }
  470. &.view.issue {
  471. .title {
  472. padding-bottom: 0!important;
  473. h1 {
  474. font-weight: 300;
  475. font-size: 2.3rem;
  476. margin-bottom: 5px;
  477. .ui.input {
  478. font-size: 0.5em;
  479. vertical-align: top;
  480. width: 50%;
  481. min-width: 600px;
  482. input {
  483. font-size: 1.5em;
  484. padding: 6px 10px;
  485. }
  486. }
  487. }
  488. .index {
  489. font-weight: 300;
  490. color: #aaa;
  491. letter-spacing: -1px;
  492. }
  493. .label {
  494. margin-right: 10px;
  495. }
  496. .edit-zone {
  497. margin-top: 10px;
  498. }
  499. }
  500. .pull-desc {
  501. code {
  502. color: #0166E6;
  503. }
  504. }
  505. .pull {
  506. &.tabular.menu {
  507. margin-bottom: 10px;
  508. .octicon {
  509. margin-right: 5px;
  510. }
  511. }
  512. &.tab.segment {
  513. border: none;
  514. padding: 0;
  515. padding-top: 10px;
  516. box-shadow: none;
  517. background-color: inherit;
  518. }
  519. .merge.box {
  520. .avatar {
  521. margin-left: 10px;
  522. margin-top: 10px;
  523. }
  524. }
  525. }
  526. .comment-list {
  527. &:before {
  528. display: block;
  529. content: "";
  530. position: absolute;
  531. margin-top: 12px;
  532. margin-bottom: 14px;
  533. top: 0;
  534. bottom: 0;
  535. left: 96px;
  536. width: 2px;
  537. background-color: #f3f3f3;
  538. z-index: -1;
  539. }
  540. .comment {
  541. .avatar {
  542. width: @comment-avatar-width;
  543. }
  544. .tag {
  545. color: #767676;
  546. margin-top: 3px;
  547. padding: 2px 5px;
  548. font-size: 12px;
  549. border: 1px solid rgba(0,0,0,0.1);
  550. border-radius: 3px;
  551. }
  552. .actions {
  553. .item {
  554. float: left;
  555. &.tag {
  556. margin-right: 5px;
  557. }
  558. &.action {
  559. margin-top: 6px;
  560. margin-left: 10px;
  561. }
  562. }
  563. }
  564. .content {
  565. margin-left: 4em;
  566. .header {
  567. #avatar-arrow;
  568. font-weight: normal;
  569. padding: auto 15px;
  570. position: relative;
  571. color: #767676;
  572. background-color: #f7f7f7;
  573. border-bottom: 1px solid #eee;
  574. border-top-left-radius: 3px;
  575. border-top-right-radius: 3px;
  576. .text {
  577. max-width: 78%;
  578. padding-top: 10px;
  579. padding-bottom: 10px;
  580. }
  581. }
  582. .markdown {
  583. font-size: 14px;
  584. }
  585. .no-content {
  586. color: #767676;
  587. font-style: italic;
  588. }
  589. > .bottom.segment {
  590. background: #f3f4f5;
  591. .ui.images::after {
  592. clear: both;
  593. content: ' ';
  594. display: block;
  595. }
  596. a {
  597. display: block;
  598. float: left;
  599. margin: 5px;
  600. padding: 5px;
  601. height: 150px;
  602. border: solid 1px #eee;
  603. border-radius: 3px;
  604. max-width: 150px;
  605. background-color: #fff;
  606. &:before {
  607. content:' ';
  608. display: inline-block;
  609. height: 100%;
  610. vertical-align: middle;
  611. }
  612. }
  613. .ui.image {
  614. max-height: 100%;
  615. width: auto;
  616. margin: 0;
  617. vertical-align: middle;
  618. }
  619. span.ui.image {
  620. font-size: 8vw;
  621. color: #000000;
  622. }
  623. span.ui.image:hover {
  624. color: #000000;
  625. }
  626. }
  627. }
  628. .ui.form {
  629. .field:first-child {
  630. clear: none;
  631. }
  632. .tab.segment {
  633. border: none;
  634. padding: 0;
  635. padding-top: 10px;
  636. }
  637. textarea {
  638. height: 200px;
  639. font-family: "Consolas", monospace;
  640. }
  641. }
  642. .edit.buttons {
  643. margin-top: 10px;
  644. }
  645. }
  646. .event {
  647. position: relative;
  648. margin: 15px 0 15px 79px;
  649. padding-left: 25px;
  650. .octicon {
  651. width: 30px;
  652. float: left;
  653. text-align: center;
  654. &.octicon-circle-slash {
  655. margin-top: 5px;
  656. margin-left: -34.5px;
  657. font-size: 20px;
  658. color: #bd2c00;
  659. }
  660. &.octicon-primitive-dot {
  661. margin-left: -28.5px;
  662. margin-right: -1px;
  663. font-size: 30px;
  664. color: #6cc644;
  665. }
  666. &.octicon-bookmark {
  667. margin-top: 3px;
  668. margin-left: -31px;
  669. margin-right: -1px;
  670. font-size: 25px;
  671. }
  672. }
  673. .detail {
  674. font-size: 0.9rem;
  675. margin-top: 5px;
  676. margin-left: 35px;
  677. .octicon {
  678. &.octicon-git-commit {
  679. margin-top: 2px;
  680. }
  681. }
  682. }
  683. }
  684. }
  685. .ui.segment.metas {
  686. margin-top: -3px;
  687. }
  688. .ui.participants {
  689. img {
  690. margin-top: 5px;
  691. margin-right: 5px;
  692. }
  693. }
  694. }
  695. .comment.form {
  696. .ui.comments {
  697. margin-top: -12px;
  698. max-width: 100%;
  699. }
  700. .content {
  701. .field:first-child {
  702. clear: none;
  703. }
  704. .form {
  705. #avatar-arrow;
  706. &:after {
  707. border-right-color: #fff;
  708. }
  709. }
  710. .tab.segment {
  711. border: none;
  712. padding: 0;
  713. padding-top: 10px;
  714. }
  715. textarea {
  716. height: 200px;
  717. font-family: "Consolas", monospace;
  718. }
  719. }
  720. }
  721. .label.list {
  722. list-style: none;
  723. padding-top: 15px;
  724. .item {
  725. padding-top: 10px;
  726. padding-bottom: 10px;
  727. border-bottom: 1px dashed #AAA;
  728. a {
  729. font-size: 15px;
  730. padding-top: 5px;
  731. padding-right: 10px;
  732. color: #666;
  733. &:hover {
  734. color: #000;
  735. }
  736. &.open-issues {
  737. margin-right: 30px;
  738. }
  739. }
  740. .ui.label {
  741. font-size: 1em;
  742. }
  743. }
  744. }
  745. .milestone.list {
  746. list-style: none;
  747. padding-top: 15px;
  748. > .item {
  749. padding-top: 10px;
  750. padding-bottom: 10px;
  751. border-bottom: 1px dashed #AAA;
  752. > a {
  753. padding-top: 5px;
  754. padding-right: 10px;
  755. color: #000;
  756. &:hover {
  757. color: #4078c0;
  758. }
  759. }
  760. .ui.progress {
  761. width: 40%;
  762. padding: 0;
  763. border: 0;
  764. margin: 0;
  765. .bar {
  766. height: 20px;
  767. }
  768. }
  769. .meta {
  770. color: #999;
  771. padding-top: 5px;
  772. .issue-stats .octicon{
  773. padding-left: 5px;
  774. }
  775. .overdue {
  776. color: red;
  777. }
  778. }
  779. .operate {
  780. margin-top: -15px;
  781. > a {
  782. font-size: 15px;
  783. padding-top: 5px;
  784. padding-right: 10px;
  785. color: #666;
  786. &:hover {
  787. color: #000;
  788. }
  789. }
  790. }
  791. .content {
  792. padding-top: 10px;
  793. }
  794. }
  795. }
  796. &.new.milestone {
  797. textarea {
  798. height: 200px;
  799. }
  800. #deadline {
  801. width: 150px;
  802. }
  803. }
  804. &.compare.pull {
  805. .choose.branch {
  806. .octicon {
  807. padding-right: 10px;
  808. }
  809. }
  810. .comment.form {
  811. .content {
  812. #avatar-arrow;
  813. &:after {
  814. border-right-color: #fff;
  815. }
  816. }
  817. }
  818. }
  819. .filter.dropdown .menu {
  820. margin-top: 1px!important;
  821. }
  822. &.commits {
  823. .header {
  824. .ui.right {
  825. .search {
  826. input {
  827. font-weight: normal;
  828. padding: 5px 10px;
  829. }
  830. }
  831. }
  832. }
  833. }
  834. #commits-table {
  835. thead {
  836. th:first-of-type {
  837. padding-left: 15px;
  838. }
  839. .sha {
  840. font-size: 13px;
  841. padding: 6px 40px 4px 35px;
  842. }
  843. }
  844. &.ui.basic.striped.table tbody tr:nth-child(2n) {
  845. background-color: rgba(0, 0, 0, .02)!important;
  846. }
  847. }
  848. .diff-detail-box {
  849. margin: 15px 0;
  850. line-height: 30px;
  851. ol {
  852. clear: both;
  853. padding-left: 0;
  854. margin-top: 5px;
  855. margin-bottom: 28px;
  856. li {
  857. list-style: none;
  858. padding-bottom: 4px;
  859. margin-bottom: 4px;
  860. border-bottom: 1px dashed #DDD;
  861. padding-left: 6px;
  862. }
  863. }
  864. span.status{
  865. display: inline-block;
  866. width: 12px;
  867. height: 12px;
  868. margin-right: 8px;
  869. vertical-align: middle;
  870. &.modify {
  871. background-color: #f0db88;
  872. }
  873. &.add {
  874. background-color: #b4e2b4;
  875. }
  876. &.del {
  877. background-color: #e9aeae;
  878. }
  879. &.rename {
  880. background-color: #dad8ff;
  881. }
  882. }
  883. }
  884. .diff-box {
  885. .count {
  886. margin-right: 12px;
  887. font-size: 13px;
  888. .bar {
  889. background-color: #bd2c00;
  890. height: 12px;
  891. width: 40px;
  892. display: inline-block;
  893. margin: 2px 4px 0 4px;
  894. vertical-align: text-top;
  895. .add {
  896. background-color: #55a532;
  897. height: 12px;
  898. }
  899. }
  900. }
  901. .file {
  902. color: #888;
  903. }
  904. }
  905. .diff-file-box {
  906. .header {
  907. background-color: #f7f7f7;
  908. }
  909. .file-body.file-code {
  910. .lines-num {
  911. text-align: right;
  912. color: #A7A7A7;
  913. background: #fafafa;
  914. width: 1%;
  915. span.fold {
  916. display: block;
  917. text-align: center;
  918. }
  919. }
  920. .lines-num-old {
  921. border-right: 1px solid #DDD;
  922. }
  923. }
  924. .code-diff {
  925. font-size: 12px;
  926. td {
  927. padding: 0;
  928. padding-left: 10px;
  929. border-top: none;
  930. }
  931. pre {
  932. margin: 0;
  933. }
  934. .lines-num {
  935. border-right: 1px solid #d4d4d5;
  936. padding: 0 5px;
  937. }
  938. tbody {
  939. tr {
  940. &.tag-code {
  941. td, pre {
  942. background-color: #F0F0F0 !important;
  943. border-color: #D2CECE!important;
  944. padding-top: 4px;
  945. padding-bottom: 4px;
  946. }
  947. td.halfwidth {
  948. width: 50%;
  949. }
  950. // td.selected-line, td.selected-line pre {
  951. // background-color: #ffffdd !important;
  952. // }
  953. }
  954. // &.same-code {
  955. // td.selected-line, td.selected-line pre {
  956. // background-color: #ffffdd !important;
  957. // }
  958. // }
  959. &.del-code {
  960. // Duplicate here to enforce add code color.
  961. td.add-code {
  962. background-color: #eaffea !important;
  963. border-color: #c1e9c1 !important;
  964. pre {
  965. background-color: #eaffea !important;
  966. border-color: #c1e9c1 !important;
  967. }
  968. }
  969. td, pre {
  970. background-color: #ffecec !important;
  971. border-color: #f1c0c0 !important;
  972. }
  973. td.halfwidth {
  974. width: 50%;
  975. }
  976. // td.selected-line, td.selected-line pre {
  977. // background-color: #ffffdd !important;
  978. // }
  979. }
  980. &.add-code {
  981. td, pre {
  982. background-color: #eaffea !important;
  983. border-color: #c1e9c1 !important;
  984. }
  985. td.halfwidth {
  986. width: 50%;
  987. }
  988. // td.selected-line, td.selected-line pre {
  989. // background-color: #ffffdd !important;
  990. // }
  991. }
  992. .removed-code {
  993. background-color: #ff9999;
  994. }
  995. .added-code {
  996. background-color: #99ff99;
  997. }
  998. }
  999. }
  1000. }
  1001. &.file-content {
  1002. img {
  1003. max-width: 100%;
  1004. padding: 5px 5px 0 5px;
  1005. }
  1006. }
  1007. }
  1008. .code-view {
  1009. overflow: auto;
  1010. overflow-x: auto;
  1011. overflow-y: hidden;
  1012. }
  1013. &.quickstart {
  1014. .guide {
  1015. .item {
  1016. padding: 1em;
  1017. small {
  1018. font-weight: normal;
  1019. }
  1020. }
  1021. .clone.button:first-child {
  1022. border-radius: .28571429rem 0 0 .28571429rem;
  1023. }
  1024. .ui.action.small.input {
  1025. width: 100%;
  1026. }
  1027. #repo-clone-url {
  1028. border-radius: 0;
  1029. padding: 5px 10px;
  1030. font-size: 1.2em;
  1031. }
  1032. }
  1033. }
  1034. &.release {
  1035. #release-list {
  1036. border-top: 1px solid #DDD;
  1037. margin-top: 20px;
  1038. padding-top: 15px;
  1039. >li {
  1040. list-style: none;
  1041. .meta,
  1042. .detail {
  1043. padding-top: 30px;
  1044. padding-bottom: 40px;
  1045. }
  1046. .meta {
  1047. text-align: right;
  1048. position: relative;
  1049. .tag:not(.icon) {
  1050. display: block;
  1051. margin-top: 15px;
  1052. }
  1053. .commit {
  1054. display: block;
  1055. margin-top: 10px;
  1056. }
  1057. }
  1058. .detail {
  1059. border-left: 1px solid #DDD;
  1060. .author {
  1061. img {
  1062. margin-bottom: -3px;
  1063. }
  1064. }
  1065. .download {
  1066. margin-top: 20px;
  1067. >a {
  1068. .octicon {
  1069. margin-left: 5px;
  1070. margin-right: 5px;
  1071. }
  1072. }
  1073. .list {
  1074. padding-left: 0;
  1075. border-top: 1px solid #eee;
  1076. li {
  1077. list-style: none;
  1078. display: block;
  1079. padding-top: 8px;
  1080. padding-bottom: 8px;
  1081. border-bottom: 1px solid #eee;
  1082. }
  1083. }
  1084. }
  1085. .dot {
  1086. width: 9px;
  1087. height: 9px;
  1088. background-color: #ccc;
  1089. z-index: 999;
  1090. position: absolute;
  1091. display: block;
  1092. left: -5px;
  1093. top: 40px;
  1094. border-radius: 6px;
  1095. border: 1px solid #FFF;
  1096. }
  1097. }
  1098. }
  1099. }
  1100. }
  1101. &.new.release {
  1102. .target {
  1103. min-width: 500px;
  1104. #tag-name {
  1105. margin-top: -4px;
  1106. }
  1107. .at {
  1108. margin-left: -5px;
  1109. margin-right: 5px;
  1110. }
  1111. .dropdown.icon {
  1112. margin: 0;
  1113. padding-top: 3px;
  1114. }
  1115. .selection.dropdown {
  1116. padding-top: 10px;
  1117. padding-bottom: 10px;
  1118. }
  1119. }
  1120. .prerelease.field {
  1121. margin-bottom: 0;
  1122. }
  1123. }
  1124. &.forks {
  1125. .list {
  1126. margin-top: 0;
  1127. .item {
  1128. padding-top: 10px;
  1129. padding-bottom: 10px;
  1130. border-bottom: 1px solid #DDD;
  1131. .ui.avatar {
  1132. float: left;
  1133. margin-right: 5px;
  1134. }
  1135. .link {
  1136. padding-top: 5px;
  1137. }
  1138. }
  1139. }
  1140. }
  1141. &.wiki {
  1142. &.start {
  1143. .ui.segment {
  1144. padding-top: 70px;
  1145. padding-bottom: 100px;
  1146. .mega-octicon {
  1147. font-size: 48px;
  1148. }
  1149. }
  1150. }
  1151. &.new {
  1152. .CodeMirror {
  1153. .CodeMirror-code {
  1154. font-family: "Consolas", monospace;
  1155. .cm-comment {
  1156. background: inherit;
  1157. }
  1158. }
  1159. }
  1160. .editor-preview {
  1161. background-color: white;
  1162. }
  1163. }
  1164. &.view {
  1165. .choose.page {
  1166. margin-top: -5px;
  1167. }
  1168. .ui.sub.header {
  1169. text-transform: none;
  1170. }
  1171. >.markdown {
  1172. padding: 15px 30px;
  1173. h1, h2, h3, h4, h5, h6 {
  1174. &:first-of-type {
  1175. margin-top: 0;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. }
  1181. &.settings {
  1182. &.collaboration {
  1183. .collaborator.list {
  1184. padding: 0;
  1185. >.item {
  1186. margin: 0;
  1187. line-height: 2em;
  1188. &:not(:last-child) {
  1189. border-bottom: 1px solid #DDD;
  1190. }
  1191. }
  1192. }
  1193. #repo-collab-form {
  1194. #search-user-box {
  1195. .results {
  1196. left: 7px;
  1197. }
  1198. }
  1199. .ui.button {
  1200. margin-left: 5px;
  1201. margin-top: -3px;
  1202. }
  1203. }
  1204. }
  1205. &.webhook {
  1206. .events {
  1207. .column {
  1208. padding-bottom: 0;
  1209. }
  1210. .help {
  1211. font-size: 13px;
  1212. margin-left: 26px;
  1213. padding-top: 0;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. }
  1219. // End of .repository
  1220. &.user-cards {
  1221. .list {
  1222. padding: 0;
  1223. .item {
  1224. list-style: none;
  1225. width: 32%;
  1226. margin: 10px 10px 10px 0;
  1227. padding-bottom: 14px;
  1228. float: left;
  1229. .avatar {
  1230. width: 48px;
  1231. height: 48px;
  1232. float: left;
  1233. display: block;
  1234. margin-right: 10px;
  1235. }
  1236. .name {
  1237. margin-top: 0;
  1238. margin-bottom: 0;
  1239. font-weight: normal;
  1240. }
  1241. .meta {
  1242. margin-top: 5px;
  1243. }
  1244. }
  1245. }
  1246. }
  1247. #search-repo-box,
  1248. #search-user-box {
  1249. .results {
  1250. padding: 0;
  1251. position: absolute;
  1252. .item {
  1253. padding: 10px 15px;
  1254. border-bottom: 1px solid #DDD;
  1255. cursor: pointer;
  1256. &:hover {
  1257. background: rgba(0,0,0,.05)!important;
  1258. color: rgba(0,0,0,.95)!important;
  1259. }
  1260. img {
  1261. margin-right: 8px;
  1262. }
  1263. }
  1264. }
  1265. }
  1266. .issue.list {
  1267. list-style: none;
  1268. padding-top: 15px;
  1269. >.item {
  1270. padding-top: 15px;
  1271. padding-bottom: 10px;
  1272. border-bottom: 1px dashed #AAA;
  1273. .title {
  1274. color: #444;
  1275. font-size: 15px;
  1276. font-weight: bold;
  1277. margin: 0 6px;
  1278. &:hover {
  1279. color: #000;
  1280. }
  1281. }
  1282. .comment {
  1283. padding-right: 10px;
  1284. color: #666;
  1285. }
  1286. .desc {
  1287. padding-top: 5px;
  1288. color: #999;
  1289. a.milestone {
  1290. padding-left: 5px;
  1291. color: #999!important;
  1292. &:hover {
  1293. color: #000!important;
  1294. }
  1295. }
  1296. .assignee {
  1297. margin-top: -5px;
  1298. margin-right: 5px;
  1299. }
  1300. }
  1301. }
  1302. }
  1303. .page.buttons {
  1304. padding-top: 15px;
  1305. }
  1306. .ui.form {
  1307. .dropzone {
  1308. width: 100%;
  1309. margin-bottom: 10px;
  1310. border: 2px dashed #0087F7;
  1311. box-shadow: none!important;
  1312. .dz-error-message {
  1313. top: 140px;
  1314. }
  1315. }
  1316. }
  1317. .settings {
  1318. .content {
  1319. margin-top: 2px;
  1320. >.header,
  1321. .segment {
  1322. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  1323. }
  1324. }
  1325. .key.list {
  1326. .item:not(:first-child) {
  1327. border-top: 1px solid #eaeaea;
  1328. }
  1329. .ssh-key-state-indicator {
  1330. float: left;
  1331. color: gray;
  1332. padding-left: 10px;
  1333. padding-top: 10px;
  1334. &.active {
  1335. color: #6cc644;
  1336. }
  1337. }
  1338. .meta {
  1339. padding-top: 5px;
  1340. }
  1341. .print {
  1342. color: #767676;
  1343. }
  1344. .activity {
  1345. color: #666;
  1346. }
  1347. }
  1348. .hook.list {
  1349. > .item:not(:first-child) {
  1350. border-top: 1px solid #eaeaea;
  1351. }
  1352. .item {
  1353. padding: 10px 20px;
  1354. .octicon,
  1355. .fa {
  1356. width: 20px;
  1357. text-align: center;
  1358. }
  1359. a {
  1360. .dont-break-out;
  1361. }
  1362. }
  1363. }
  1364. .hook.history.list {
  1365. .item {
  1366. padding-left: 13px;
  1367. .meta {
  1368. .ui.right {
  1369. margin-top: 5px;
  1370. .time {
  1371. font-size: 12px;
  1372. }
  1373. }
  1374. }
  1375. .info {
  1376. margin-top: 10px;
  1377. .tabular.menu {
  1378. .item {
  1379. font-weight: 500;
  1380. }
  1381. }
  1382. .tab.segment {
  1383. border: none;
  1384. padding: 0;
  1385. padding-top: 10px;
  1386. box-shadow: none;
  1387. > * {
  1388. color: #666;
  1389. }
  1390. pre {
  1391. word-wrap: break-word;
  1392. .hljs {
  1393. padding: 0;
  1394. background-color: inherit;
  1395. }
  1396. }
  1397. }
  1398. }
  1399. }
  1400. }
  1401. }
  1402. .ui.vertical.menu {
  1403. .header.item {
  1404. font-size: 1.1em;
  1405. background: #f0f0f0;
  1406. }
  1407. }
  1408. .edit-label.modal,
  1409. .new-label.segment {
  1410. .form {
  1411. .column {
  1412. padding-right: 0;
  1413. }
  1414. .buttons {
  1415. margin-left: auto;
  1416. padding-top: 15px;
  1417. }
  1418. .color.picker.column {
  1419. width: auto;
  1420. .color-picker {
  1421. height: 35px;
  1422. width: auto;
  1423. padding-left: 30px;
  1424. }
  1425. }
  1426. .minicolors-swatch.minicolors-sprite {
  1427. top: 10px;
  1428. left: 10px;
  1429. width: 15px;
  1430. height: 15px;
  1431. }
  1432. .precolors {
  1433. padding-left: 0;
  1434. padding-right: 0;
  1435. margin: 3px 10px auto 10px;
  1436. width: 120px;
  1437. .color {
  1438. float: left;
  1439. width: 15px;
  1440. height: 15px;
  1441. }
  1442. }
  1443. }
  1444. }
  1445. #avatar-arrow {
  1446. &:before, &:after {
  1447. right: 100%;
  1448. top: 20px;
  1449. border: solid transparent;
  1450. content: " ";
  1451. height: 0;
  1452. width: 0;
  1453. position: absolute;
  1454. pointer-events: none;
  1455. }
  1456. &:before {
  1457. border-right-color: #D4D4D5;
  1458. border-width: 9px;
  1459. margin-top: -9px;
  1460. }
  1461. &:after {
  1462. border-right-color: #f7f7f7;
  1463. border-width: 8px;
  1464. margin-top: -8px;
  1465. }
  1466. }
  1467. #transfer-repo-modal,
  1468. #delete-repo-modal {
  1469. .ui.message {
  1470. width: 100%!important;
  1471. }
  1472. }
  1473. // generate .tab-size-{i} from 1 to 16
  1474. .generate-tab-size(16);
  1475. .generate-tab-size(@n, @i: 1) when (@i =< @n) {
  1476. .tab-size-@{i} {
  1477. tab-size: @i !important;
  1478. -moz-tab-size: @i !important;
  1479. }
  1480. .generate-tab-size(@n, (@i + 1));
  1481. }