_repository.less 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987
  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: 300;
  22. font-size: 1.7rem;
  23. }
  24. .fork-flag {
  25. margin-left: @mega-octicon-width + 8px;
  26. display: block;
  27. font-size: 12px;
  28. line-height: 10px;
  29. white-space: nowrap;
  30. }
  31. }
  32. .metas {
  33. .menu {
  34. max-height: 300px;
  35. overflow-x: auto;
  36. }
  37. .ui.list {
  38. .hide {
  39. display: none!important;
  40. }
  41. .label.color {
  42. padding: 0 8px;
  43. margin-right: 5px;
  44. }
  45. a {
  46. padding-top: 5px;
  47. padding-right: 10px;
  48. .text {
  49. color: #444;
  50. &:hover {
  51. color: #000;
  52. }
  53. }
  54. }
  55. }
  56. }
  57. .filter.menu {
  58. .label.color {
  59. margin-left: 15px;
  60. padding: 0 8px;
  61. }
  62. .octicon {
  63. float: left;
  64. margin-left: -5px;
  65. margin-right: -7px;
  66. }
  67. .menu {
  68. max-height: 300px;
  69. overflow-x: auto;
  70. right: 0!important;
  71. left: auto!important;
  72. }
  73. .dropdown.item {
  74. margin: 1px;
  75. padding-right: 0;
  76. }
  77. }
  78. &.file.list {
  79. #repo-desc {
  80. font-size: 1.2em;
  81. }
  82. .choose.reference {
  83. .header .icon {
  84. font-size: 1.4em;
  85. }
  86. }
  87. .head.meta {
  88. padding: 0;
  89. li {
  90. list-style: none;
  91. display: inline-block;
  92. .ui.breadcrumb {
  93. margin-top: -5px;
  94. span,
  95. a {
  96. font-size: 16px;
  97. }
  98. }
  99. }
  100. }
  101. .clone.input {
  102. margin-top: -8px;
  103. width: 100%;
  104. input {
  105. border-radius: 0;
  106. padding: 5px 10px;
  107. }
  108. .clone.button {
  109. font-size: 13px;
  110. padding: 0 5px;
  111. &:first-child {
  112. border-radius: .28571429rem 0 0 .28571429rem;
  113. }
  114. }
  115. .icon.button {
  116. padding: 0 10px;
  117. }
  118. .dropdown .menu {
  119. right: 0!important;
  120. left: auto!important;
  121. }
  122. }
  123. #repo-files-table {
  124. .table.list {
  125. width: 80% !important;
  126. }
  127. thead {
  128. th {
  129. padding-top: 8px;
  130. padding-bottom: 5px;
  131. font-weight: normal;
  132. #last-commit-message {
  133. margin-left: 5px;
  134. margin-bottom: -4px;
  135. width: 400px;
  136. }
  137. .age {
  138. margin-top: 2px;
  139. }
  140. }
  141. .ui.avatar {
  142. margin-bottom: 5px;
  143. }
  144. }
  145. tbody {
  146. .icon {
  147. margin-left: 5px;
  148. }
  149. .name {
  150. max-width: 120px;
  151. }
  152. .message {
  153. max-width: 300px;
  154. }
  155. .age {
  156. min-width: 150px;
  157. }
  158. .text.truncate {
  159. margin-bottom: -5px;
  160. max-width: 100%;
  161. }
  162. }
  163. td {
  164. padding-top: 8px;
  165. padding-bottom: 8px;
  166. }
  167. tr:hover {
  168. background-color: #ffffEE;
  169. }
  170. }
  171. #file-content {
  172. .header {
  173. .icon {
  174. font-size: 1em;
  175. margin-top: -2px;
  176. }
  177. }
  178. .view-raw {
  179. * {
  180. width: 100%;
  181. }
  182. img {
  183. padding: 5px 5px 0 5px;
  184. }
  185. }
  186. .code-view {
  187. * {
  188. font-size: 13px;
  189. font-family: monospace;
  190. line-height: 20px;
  191. }
  192. table {
  193. width: 100%;
  194. }
  195. .lines-num {
  196. vertical-align: top;
  197. text-align: right;
  198. color: #999;
  199. background: #f5f5f5;
  200. width: 1%;
  201. span {
  202. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  203. line-height: 20px;
  204. padding: 0 10px;
  205. cursor: pointer;
  206. display: block;
  207. }
  208. }
  209. .lines-num,
  210. .lines-code {
  211. padding: 0;
  212. pre,
  213. ol,
  214. .hljs {
  215. background-color: white;
  216. margin: 0;
  217. padding: 0 !important;
  218. li {
  219. padding-left: 5px;
  220. &.active {
  221. background: #ffffdd;
  222. }
  223. }
  224. }
  225. }
  226. }
  227. }
  228. .sidebar {
  229. padding-left: 0;
  230. .octicon {
  231. width: 16px;
  232. }
  233. }
  234. }
  235. &.options {
  236. #interval {
  237. width: 100px!important;
  238. min-width: 100px;
  239. }
  240. .danger {
  241. .item {
  242. padding: 20px 15px;
  243. }
  244. .ui.divider {
  245. margin: 0;
  246. }
  247. }
  248. }
  249. @comment-avatar-width: 3em;
  250. &.new.issue {
  251. .comment.form {
  252. .comment {
  253. .avatar {
  254. width: @comment-avatar-width;
  255. }
  256. }
  257. .content {
  258. margin-left: 4em;
  259. .markdown {
  260. font-size: 14px;
  261. }
  262. }
  263. .metas {
  264. min-width: 220px;
  265. .filter.menu {
  266. max-height: 300px;
  267. overflow-x: auto;
  268. }
  269. }
  270. }
  271. }
  272. &.view.issue {
  273. .title {
  274. padding-bottom: 0!important;
  275. h1 {
  276. font-weight: 300;
  277. font-size: 3rem;
  278. margin-bottom: 5px;
  279. .ui.input {
  280. font-size: 0.5em;
  281. vertical-align: top;
  282. width: 50%;
  283. min-width: 600px;
  284. input {
  285. font-size: 1.5em;
  286. padding: 6px 10px;
  287. }
  288. }
  289. }
  290. .index {
  291. font-weight: 300;
  292. color: #aaa;
  293. letter-spacing: -1px;
  294. }
  295. .label {
  296. margin-right: 10px;
  297. }
  298. .edit-zone {
  299. margin-top: 10px;
  300. }
  301. }
  302. .pull-desc {
  303. code {
  304. color: #0166E6;
  305. }
  306. }
  307. .pull {
  308. &.tabular.menu {
  309. margin-bottom: 10px;
  310. .octicon {
  311. margin-right: 5px;
  312. }
  313. }
  314. &.tab.segment {
  315. border: none;
  316. padding: 0;
  317. padding-top: 10px;
  318. box-shadow: none;
  319. background-color: inherit;
  320. }
  321. .merge.box {
  322. .avatar {
  323. margin-left: 10px;
  324. margin-top: 10px;
  325. }
  326. }
  327. }
  328. .comment-list {
  329. &:before {
  330. display: block;
  331. content: "";
  332. position: absolute;
  333. margin-top: 12px;
  334. margin-bottom: 14px;
  335. top: 0;
  336. bottom: 0;
  337. left: 96px;
  338. width: 2px;
  339. background-color: #f3f3f3;
  340. z-index: -1;
  341. }
  342. .comment {
  343. .avatar {
  344. width: @comment-avatar-width;
  345. }
  346. .tag {
  347. color: #767676;
  348. margin-top: 3px;
  349. padding: 2px 5px;
  350. font-size: 12px;
  351. border: 1px solid rgba(0,0,0,0.1);
  352. border-radius: 3px;
  353. }
  354. .actions {
  355. .item {
  356. float: left;
  357. }
  358. a.item {
  359. margin-top: 6px;
  360. margin-left: 10px;
  361. }
  362. }
  363. .content {
  364. margin-left: 4em;
  365. .header {
  366. font-weight: normal;
  367. padding: auto 15px;
  368. color: #767676;
  369. background-color: #f7f7f7;
  370. border-bottom: 1px solid #eee;
  371. border-top-left-radius: 3px;
  372. border-top-right-radius: 3px;
  373. .text {
  374. max-width: 78%;
  375. padding-top: 10px;
  376. padding-bottom: 10px;
  377. }
  378. }
  379. .markdown {
  380. font-size: 14px;
  381. }
  382. .no-content {
  383. color: #767676;
  384. font-style: italic;
  385. }
  386. > .bottom.segment {
  387. background: #f3f4f5;
  388. .ui.image {
  389. max-height: 150px;
  390. }
  391. }
  392. }
  393. .ui.form {
  394. .field:first-child {
  395. clear: none;
  396. }
  397. .tab.segment {
  398. border: none;
  399. padding: 0;
  400. padding-top: 10px;
  401. }
  402. textarea {
  403. height: 200px;
  404. }
  405. }
  406. .edit.buttons {
  407. margin-top: 10px;
  408. }
  409. }
  410. .event {
  411. position: relative;
  412. margin: 15px 0 15px 79px;
  413. padding-left: 25px;
  414. .octicon {
  415. width: 30px;
  416. float: left;
  417. margin-left: -36px;
  418. text-align: center;
  419. &.octicon-circle-slash {
  420. margin-top: 5px;
  421. font-size: 20px;
  422. color: #bd2c00;
  423. }
  424. &.octicon-primitive-dot {
  425. font-size: 30px;
  426. color: #6cc644;
  427. }
  428. &.octicon-bookmark {
  429. margin-top: 3px;
  430. font-size: 25px;
  431. }
  432. }
  433. .detail {
  434. font-size: 0.9rem;
  435. margin-top: 5px;
  436. margin-left: 35px;
  437. .octicon {
  438. &.octicon-git-commit {
  439. margin-top: 2px;
  440. }
  441. }
  442. }
  443. }
  444. }
  445. .ui.segment.metas {
  446. margin-top: -3px;
  447. }
  448. }
  449. .comment.form {
  450. .ui.comments {
  451. margin-top: -12px;
  452. max-width: 100%;
  453. }
  454. .content {
  455. .field:first-child {
  456. clear: none;
  457. }
  458. .tab.segment {
  459. border: none;
  460. padding: 0;
  461. padding-top: 10px;
  462. }
  463. textarea {
  464. height: 200px;
  465. }
  466. }
  467. }
  468. .label.list {
  469. list-style: none;
  470. padding-top: 15px;
  471. .item {
  472. padding-top: 10px;
  473. padding-bottom: 10px;
  474. border-bottom: 1px dashed #AAA;
  475. a {
  476. font-size: 15px;
  477. padding-top: 5px;
  478. padding-right: 10px;
  479. color: #666;
  480. &:hover {
  481. color: #000;
  482. }
  483. &.open-issues {
  484. margin-right: 30px;
  485. }
  486. }
  487. }
  488. }
  489. .milestone.list {
  490. list-style: none;
  491. padding-top: 15px;
  492. > .item {
  493. padding-top: 10px;
  494. padding-bottom: 10px;
  495. border-bottom: 1px dashed #AAA;
  496. > a {
  497. padding-top: 5px;
  498. padding-right: 10px;
  499. color: #000;
  500. &:hover {
  501. color: #4078c0;
  502. }
  503. }
  504. .ui.progress {
  505. width: 40%;
  506. padding: 0;
  507. border: 0;
  508. margin: 0;
  509. .bar {
  510. height: 20px;
  511. }
  512. }
  513. .meta {
  514. color: #999;
  515. padding-top: 5px;
  516. .issue-stats .octicon{
  517. padding-left: 5px;
  518. }
  519. .overdue {
  520. color: red;
  521. }
  522. }
  523. .operate {
  524. margin-top: -15px;
  525. > a {
  526. font-size: 15px;
  527. padding-top: 5px;
  528. padding-right: 10px;
  529. color: #666;
  530. &:hover {
  531. color: #000;
  532. }
  533. }
  534. }
  535. .content {
  536. padding-top: 10px;
  537. }
  538. }
  539. }
  540. &.new.milestone {
  541. textarea {
  542. height: 200px;
  543. }
  544. #deadline {
  545. width: 150px;
  546. }
  547. }
  548. &.compare.pull {
  549. .choose.branch {
  550. .octicon {
  551. padding-right: 10px;
  552. }
  553. }
  554. }
  555. .filter.dropdown .menu {
  556. margin-top: 1px!important;
  557. }
  558. &.commits {
  559. .header {
  560. .ui.right {
  561. .search {
  562. input {
  563. font-weight: normal;
  564. padding: 5px 10px;
  565. }
  566. }
  567. .button {
  568. float: right;
  569. margin-left: 5px;
  570. margin-top: 1px;
  571. }
  572. }
  573. }
  574. }
  575. .commits.table {
  576. font-size: 13px;
  577. th, td {
  578. &:first-child {
  579. padding-left: 15px;
  580. }
  581. }
  582. td {
  583. line-height: 15px;
  584. }
  585. .author {
  586. min-width: 180px;
  587. }
  588. .message span {
  589. max-width: 500px;
  590. }
  591. .date {
  592. width: 120px;
  593. }
  594. }
  595. .sha.label {
  596. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  597. font-size: 14px;
  598. padding: 6px 10px 4px 10px;
  599. font-weight: normal;
  600. }
  601. .diff-detail-box {
  602. margin: 15px 0;
  603. line-height: 30px;
  604. ol {
  605. clear: both;
  606. padding-left: 0;
  607. margin-top: 5px;
  608. margin-bottom: 28px;
  609. li {
  610. list-style: none;
  611. padding-bottom: 4px;
  612. margin-bottom: 4px;
  613. border-bottom: 1px dashed #DDD;
  614. padding-left: 6px;
  615. }
  616. }
  617. span.status{
  618. display: inline-block;
  619. width: 12px;
  620. height: 12px;
  621. margin-right: 8px;
  622. vertical-align: middle;
  623. &.modify {
  624. background-color: #f0db88;
  625. }
  626. &.add {
  627. background-color: #b4e2b4;
  628. }
  629. &.del {
  630. background-color: #e9aeae;
  631. }
  632. &.rename {
  633. background-color: #dad8ff;
  634. }
  635. }
  636. }
  637. .diff-box {
  638. .count {
  639. margin-right: 12px;
  640. .bar {
  641. background-color: #e75316;
  642. height: 12px;
  643. width: 40px;
  644. display: inline-block;
  645. margin: 2px 4px 0 4px;
  646. vertical-align: text-top;
  647. .add {
  648. background-color: #77c64a;
  649. height: 12px;
  650. }
  651. }
  652. }
  653. .file {
  654. color: #888;
  655. }
  656. }
  657. .diff-file-box {
  658. .header {
  659. border-bottom: 1px solid #d4d4d5!important;
  660. }
  661. .file-body.file-code {
  662. .lines-num {
  663. text-align: right;
  664. color: #999;
  665. background: #fafafa;
  666. width: 1%;
  667. }
  668. .lines-num-old {
  669. border-right: 1px solid #DDD;
  670. }
  671. }
  672. .code-diff {
  673. font-size: 13px;
  674. td {
  675. padding: 0;
  676. border-top: none;
  677. }
  678. pre {
  679. margin: 0;
  680. }
  681. .lines-num {
  682. border-right: 1px solid #d4d4d5;
  683. padding: 0 5px;
  684. }
  685. tbody {
  686. tr {
  687. &.tag-code {
  688. td, pre {
  689. background-color: #E0E0E0 !important;
  690. border-color: #ADADAD!important;
  691. }
  692. // td.selected-line, td.selected-line pre {
  693. // background-color: #ffffdd !important;
  694. // }
  695. }
  696. // &.same-code {
  697. // td.selected-line, td.selected-line pre {
  698. // background-color: #ffffdd !important;
  699. // }
  700. // }
  701. &.del-code {
  702. td, pre {
  703. background-color: #ffe2dd !important;
  704. border-color: #e9aeae !important;
  705. }
  706. // td.selected-line, td.selected-line pre {
  707. // background-color: #ffffdd !important;
  708. // }
  709. }
  710. &.add-code {
  711. td, pre {
  712. background-color: #d1ffd6 !important;
  713. border-color: #b4e2b4 !important;
  714. }
  715. // td.selected-line, td.selected-line pre {
  716. // background-color: #ffffdd !important;
  717. // }
  718. }
  719. &:hover {
  720. td {
  721. background-color: #FFF8D2 !important;
  722. border-color: #F0DB88 !important;
  723. }
  724. pre {
  725. background-color: transparent !important;
  726. }
  727. }
  728. }
  729. }
  730. }
  731. &.file-content {
  732. img {
  733. max-width: 100%;
  734. padding: 5px 5px 0 5px;
  735. }
  736. }
  737. }
  738. .code-view {
  739. overflow: auto;
  740. overflow-x: auto;
  741. overflow-y: hidden;
  742. }
  743. &.quickstart {
  744. .guide {
  745. .item {
  746. padding: 1em;
  747. small {
  748. font-weight: normal;
  749. }
  750. }
  751. .clone.button:first-child {
  752. border-radius: .28571429rem 0 0 .28571429rem;
  753. }
  754. .ui.action.small.input {
  755. width: 100%;
  756. }
  757. #repo-clone-url {
  758. border-radius: 0;
  759. padding: 5px 10px;
  760. font-size: 1.2em;
  761. }
  762. }
  763. }
  764. }
  765. // End of .repository
  766. .issue.list {
  767. list-style: none;
  768. padding-top: 15px;
  769. >.item {
  770. padding-top: 15px;
  771. padding-bottom: 10px;
  772. border-bottom: 1px dashed #AAA;
  773. .title {
  774. color: #444;
  775. font-size: 15px;
  776. font-weight: bold;
  777. margin: 0 6px;
  778. &:hover {
  779. color: #000;
  780. }
  781. }
  782. .comment {
  783. padding-right: 10px;
  784. color: #666;
  785. }
  786. .desc {
  787. padding-top: 5px;
  788. color: #999;
  789. a.milestone {
  790. padding-left: 5px;
  791. color: #999!important;
  792. &:hover {
  793. color: #000!important;
  794. }
  795. }
  796. .assignee {
  797. margin-top: -5px;
  798. margin-right: 5px;
  799. }
  800. }
  801. }
  802. }
  803. .page.buttons {
  804. padding-top: 15px;
  805. }
  806. .ui.comments {
  807. .dropzone {
  808. width: 100%;
  809. margin-bottom: 10px;
  810. border: 2px dashed #0087F7;
  811. box-shadow: none!important;
  812. .dz-error-message {
  813. top: 140px;
  814. }
  815. }
  816. }
  817. .settings {
  818. .content {
  819. margin-top: 2px;
  820. .header,
  821. .segment {
  822. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  823. }
  824. }
  825. .key.list {
  826. .item:not(:first-child) {
  827. border-top: 1px solid #eaeaea;
  828. }
  829. .ssh-key-state-indicator {
  830. float: left;
  831. color: gray;
  832. padding-left: 10px;
  833. padding-top: 10px;
  834. &.active {
  835. color: #6cc644;
  836. }
  837. }
  838. .meta {
  839. padding-top: 5px;
  840. }
  841. .print {
  842. color: #767676;
  843. }
  844. .activity {
  845. color: #666;
  846. }
  847. }
  848. .hook.list {
  849. > .item:not(:first-child) {
  850. border-top: 1px solid #eaeaea;
  851. }
  852. .item {
  853. padding: 10px 20px;
  854. .octicon,
  855. .fa {
  856. width: 20px;
  857. text-align: center;
  858. }
  859. }
  860. }
  861. .hook.history.list {
  862. .item {
  863. padding-left: 13px;
  864. .meta {
  865. .ui.right {
  866. margin-top: 5px;
  867. .time {
  868. font-size: 12px;
  869. }
  870. }
  871. }
  872. .info {
  873. margin-top: 10px;
  874. .tabular.menu {
  875. .item {
  876. font-weight: 500;
  877. }
  878. }
  879. .tab.segment {
  880. border: none;
  881. padding: 0;
  882. padding-top: 10px;
  883. box-shadow: none;
  884. > * {
  885. color: #666;
  886. }
  887. pre {
  888. word-wrap: break-word;
  889. .hljs {
  890. padding: 0;
  891. background-color: inherit;
  892. }
  893. }
  894. }
  895. }
  896. }
  897. }
  898. }
  899. .ui.vertical.menu {
  900. .header.item {
  901. font-size: 1.1em;
  902. background: #f0f0f0;
  903. }
  904. }
  905. .edit-label.modal,
  906. .new-label.segment {
  907. .form {
  908. .column {
  909. padding-right: 0;
  910. }
  911. .buttons {
  912. margin-left: auto;
  913. padding-top: 15px;
  914. }
  915. .color.picker.column {
  916. width: auto;
  917. .color-picker {
  918. height: 35px;
  919. width: auto;
  920. padding-left: 30px;
  921. }
  922. }
  923. .minicolors-swatch.minicolors-sprite {
  924. top: 10px;
  925. left: 10px;
  926. width: 15px;
  927. height: 15px;
  928. }
  929. .precolors {
  930. padding-left: 0;
  931. padding-right: 0;
  932. margin: 3px 10px auto 10px;
  933. width: 120px;
  934. .color {
  935. float: left;
  936. width: 15px;
  937. height: 15px;
  938. }
  939. }
  940. }
  941. }
  942. #transfer-repo-modal,
  943. #delete-repo-modal {
  944. .ui.message {
  945. width: 100%!important;
  946. }
  947. }