_repository.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  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: 11px;
  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. &.options {
  79. input {
  80. width: 50%!important;
  81. min-width: 300px;
  82. }
  83. #interval {
  84. width: 100px!important;
  85. min-width: 100px;
  86. }
  87. .danger {
  88. .item {
  89. padding: 20px 15px;
  90. }
  91. .ui.divider {
  92. margin: 0;
  93. }
  94. }
  95. }
  96. @comment-avatar-width: 3em;
  97. &.new.issue {
  98. .comment.form {
  99. .comment {
  100. .avatar {
  101. width: @comment-avatar-width;
  102. }
  103. }
  104. .content {
  105. margin-left: 4em;
  106. .markdown {
  107. font-size: 14px;
  108. }
  109. }
  110. .metas {
  111. min-width: 220px;
  112. .filter.menu {
  113. max-height: 300px;
  114. overflow-x: auto;
  115. }
  116. }
  117. }
  118. }
  119. &.view.issue {
  120. .title {
  121. padding-bottom: 0!important;
  122. h1 {
  123. font-weight: 300;
  124. font-size: 3rem;
  125. margin-bottom: 5px;
  126. .ui.input {
  127. font-size: 0.5em;
  128. vertical-align: top;
  129. width: 50%;
  130. min-width: 600px;
  131. input {
  132. font-size: 1.5em;
  133. padding: 6px 10px;
  134. }
  135. }
  136. }
  137. .index {
  138. font-weight: 300;
  139. color: #aaa;
  140. letter-spacing: -1px;
  141. }
  142. .label {
  143. margin-right: 10px;
  144. }
  145. .edit-zone {
  146. margin-top: 10px;
  147. }
  148. }
  149. .pull-desc {
  150. code {
  151. color: #0166E6;
  152. }
  153. }
  154. .pull {
  155. &.tabular.menu {
  156. margin-bottom: 10px;
  157. .octicon {
  158. margin-right: 5px;
  159. }
  160. }
  161. &.tab.segment {
  162. border: none;
  163. padding: 0;
  164. padding-top: 10px;
  165. box-shadow: none;
  166. background-color: inherit;
  167. }
  168. }
  169. .comment-list {
  170. &:before {
  171. display: block;
  172. content: "";
  173. position: absolute;
  174. margin-top: 12px;
  175. margin-bottom: 14px;
  176. top: 0;
  177. bottom: 0;
  178. left: 96px;
  179. width: 2px;
  180. background-color: #f3f3f3;
  181. z-index: -1;
  182. }
  183. .comment {
  184. .avatar {
  185. width: @comment-avatar-width;
  186. }
  187. .tag {
  188. color: #767676;
  189. margin-top: 3px;
  190. padding: 2px 5px;
  191. font-size: 12px;
  192. border: 1px solid rgba(0,0,0,0.1);
  193. border-radius: 3px;
  194. }
  195. .actions {
  196. .item {
  197. float: left;
  198. }
  199. a.item {
  200. margin-top: 6px;
  201. margin-left: 10px;
  202. }
  203. }
  204. .content {
  205. margin-left: 4em;
  206. .header {
  207. font-weight: normal;
  208. padding: auto 15px;
  209. color: #767676;
  210. background-color: #f7f7f7;
  211. border-bottom: 1px solid #eee;
  212. border-top-left-radius: 3px;
  213. border-top-right-radius: 3px;
  214. .text {
  215. max-width: 78%;
  216. padding-top: 10px;
  217. padding-bottom: 10px;
  218. }
  219. }
  220. .markdown {
  221. font-size: 14px;
  222. }
  223. .no-content {
  224. color: #767676;
  225. font-style: italic;
  226. }
  227. > .bottom.segment {
  228. background: #f3f4f5;
  229. .ui.image {
  230. max-height: 150px;
  231. }
  232. }
  233. }
  234. .ui.form {
  235. .field:first-child {
  236. clear: none;
  237. }
  238. .tab.segment {
  239. border: none;
  240. padding: 0;
  241. padding-top: 10px;
  242. }
  243. textarea {
  244. height: 200px;
  245. }
  246. }
  247. .edit.buttons {
  248. margin-top: 10px;
  249. }
  250. }
  251. .event {
  252. position: relative;
  253. margin: 15px 0 15px 79px;
  254. padding-left: 25px;
  255. .octicon {
  256. width: 30px;
  257. float: left;
  258. margin-left: -36px;
  259. text-align: center;
  260. &.octicon-circle-slash {
  261. margin-top: 5px;
  262. font-size: 20px;
  263. color: #bd2c00;
  264. }
  265. &.octicon-primitive-dot {
  266. font-size: 30px;
  267. color: #6cc644;
  268. }
  269. &.octicon-bookmark {
  270. margin-top: 3px;
  271. font-size: 25px;
  272. }
  273. }
  274. .detail {
  275. font-size: 0.9rem;
  276. margin-top: 5px;
  277. margin-left: 35px;
  278. .octicon {
  279. &.octicon-git-commit {
  280. margin-top: 2px;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. .ui.segment.metas {
  287. margin-top: -3px;
  288. }
  289. }
  290. .comment.form {
  291. .ui.comments {
  292. margin-top: -12px;
  293. max-width: 100%;
  294. }
  295. .content {
  296. .field:first-child {
  297. clear: none;
  298. }
  299. .tab.segment {
  300. border: none;
  301. padding: 0;
  302. padding-top: 10px;
  303. }
  304. textarea {
  305. height: 200px;
  306. }
  307. }
  308. }
  309. .label.list {
  310. list-style: none;
  311. padding-top: 15px;
  312. .item {
  313. padding-top: 10px;
  314. padding-bottom: 10px;
  315. border-bottom: 1px dashed #AAA;
  316. a {
  317. font-size: 15px;
  318. padding-top: 5px;
  319. padding-right: 10px;
  320. color: #666;
  321. &:hover {
  322. color: #000;
  323. }
  324. &.open-issues {
  325. margin-right: 30px;
  326. }
  327. }
  328. }
  329. }
  330. .milestone.list {
  331. list-style: none;
  332. padding-top: 15px;
  333. > .item {
  334. padding-top: 10px;
  335. padding-bottom: 10px;
  336. border-bottom: 1px dashed #AAA;
  337. > a {
  338. padding-top: 5px;
  339. padding-right: 10px;
  340. color: #000;
  341. &:hover {
  342. color: #4078c0;
  343. }
  344. }
  345. .ui.progress {
  346. width: 40%;
  347. padding: 0;
  348. border: 0;
  349. margin: 0;
  350. .bar {
  351. height: 20px;
  352. }
  353. }
  354. .meta {
  355. color: #999;
  356. padding-top: 5px;
  357. .issue-stats .octicon{
  358. padding-left: 5px;
  359. }
  360. .overdue {
  361. color: red;
  362. }
  363. }
  364. .operate {
  365. margin-top: -15px;
  366. > a {
  367. font-size: 15px;
  368. padding-top: 5px;
  369. padding-right: 10px;
  370. color: #666;
  371. &:hover {
  372. color: #000;
  373. }
  374. }
  375. }
  376. .content {
  377. padding-top: 10px;
  378. }
  379. }
  380. }
  381. &.new.milestone {
  382. textarea {
  383. height: 200px;
  384. }
  385. #deadline {
  386. width: 150px;
  387. }
  388. }
  389. &.compare.pull {
  390. .choose.branch {
  391. .octicon {
  392. padding-right: 10px;
  393. }
  394. }
  395. }
  396. .filter.dropdown .menu {
  397. margin-top: 1px!important;
  398. }
  399. &.commits {
  400. .header {
  401. .ui.right {
  402. .search {
  403. input {
  404. font-weight: normal;
  405. padding: 5px 10px;
  406. }
  407. }
  408. .button {
  409. float: right;
  410. margin-left: 5px;
  411. margin-top: 1px;
  412. }
  413. }
  414. }
  415. }
  416. .commits.table {
  417. font-size: 13px;
  418. th, td {
  419. &:first-child {
  420. padding-left: 15px;
  421. }
  422. }
  423. td {
  424. line-height: 15px;
  425. }
  426. .author {
  427. min-width: 180px;
  428. }
  429. .message span {
  430. max-width: 500px;
  431. }
  432. .date {
  433. width: 120px;
  434. }
  435. }
  436. .sha.label {
  437. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  438. font-size: 14px;
  439. padding: 6px 10px 4px 10px;
  440. font-weight: normal;
  441. }
  442. .diff-detail-box {
  443. margin: 15px 0;
  444. line-height: 30px;
  445. ol {
  446. clear: both;
  447. padding-left: 0;
  448. margin-top: 5px;
  449. margin-bottom: 28px;
  450. li {
  451. list-style: none;
  452. padding-bottom: 4px;
  453. margin-bottom: 4px;
  454. border-bottom: 1px dashed #DDD;
  455. padding-left: 6px;
  456. }
  457. }
  458. span.status{
  459. display: inline-block;
  460. width: 12px;
  461. height: 12px;
  462. margin-right: 8px;
  463. vertical-align: middle;
  464. &.modify {
  465. background-color: #f0db88;
  466. }
  467. &.add {
  468. background-color: #b4e2b4;
  469. }
  470. &.del {
  471. background-color: #e9aeae;
  472. }
  473. &.rename {
  474. background-color: #dad8ff;
  475. }
  476. }
  477. }
  478. .diff-box {
  479. .count {
  480. margin-right: 12px;
  481. .bar {
  482. background-color: #e75316;
  483. height: 12px;
  484. width: 40px;
  485. display: inline-block;
  486. margin: 2px 4px 0 4px;
  487. vertical-align: text-top;
  488. .add {
  489. background-color: #77c64a;
  490. height: 12px;
  491. }
  492. }
  493. }
  494. .file {
  495. color: #888;
  496. }
  497. }
  498. .diff-file-box {
  499. .header {
  500. border-bottom: 1px solid #d4d4d5!important;
  501. }
  502. .file-body.file-code {
  503. .lines-num {
  504. text-align: right;
  505. color: #999;
  506. background: #fafafa;
  507. width: 1%;
  508. }
  509. .lines-num-old {
  510. border-right: 1px solid #DDD;
  511. }
  512. }
  513. .code-diff {
  514. font-size: 13px;
  515. td {
  516. padding: 0;
  517. border-top: none;
  518. }
  519. pre {
  520. margin: 0;
  521. }
  522. .lines-num {
  523. border-right: 1px solid #d4d4d5;
  524. padding: 0 5px;
  525. }
  526. tbody {
  527. tr {
  528. &.tag-code {
  529. td, pre {
  530. background-color: #E0E0E0 !important;
  531. border-color: #ADADAD!important;
  532. }
  533. // td.selected-line, td.selected-line pre {
  534. // background-color: #ffffdd !important;
  535. // }
  536. }
  537. // &.same-code {
  538. // td.selected-line, td.selected-line pre {
  539. // background-color: #ffffdd !important;
  540. // }
  541. // }
  542. &.del-code {
  543. td, pre {
  544. background-color: #ffe2dd !important;
  545. border-color: #e9aeae !important;
  546. }
  547. // td.selected-line, td.selected-line pre {
  548. // background-color: #ffffdd !important;
  549. // }
  550. }
  551. &.add-code {
  552. td, pre {
  553. background-color: #d1ffd6 !important;
  554. border-color: #b4e2b4 !important;
  555. }
  556. // td.selected-line, td.selected-line pre {
  557. // background-color: #ffffdd !important;
  558. // }
  559. }
  560. &:hover {
  561. td {
  562. background-color: #FFF8D2 !important;
  563. border-color: #F0DB88 !important;
  564. }
  565. pre {
  566. background-color: transparent !important;
  567. }
  568. }
  569. }
  570. }
  571. }
  572. }
  573. .code-view {
  574. overflow: auto;
  575. overflow-x: auto;
  576. overflow-y: hidden;
  577. }
  578. }
  579. .issue.list {
  580. list-style: none;
  581. padding-top: 15px;
  582. >.item {
  583. padding-top: 15px;
  584. padding-bottom: 10px;
  585. border-bottom: 1px dashed #AAA;
  586. .title {
  587. color: #444;
  588. font-size: 15px;
  589. font-weight: bold;
  590. margin: 0 6px;
  591. &:hover {
  592. color: #000;
  593. }
  594. }
  595. .comment {
  596. padding-right: 10px;
  597. color: #666;
  598. }
  599. .desc {
  600. padding-top: 5px;
  601. color: #999;
  602. a.milestone {
  603. padding-left: 5px;
  604. color: #999!important;
  605. &:hover {
  606. color: #000!important;
  607. }
  608. }
  609. .assignee {
  610. margin-top: -5px;
  611. margin-right: 5px;
  612. }
  613. }
  614. }
  615. }
  616. .page.buttons {
  617. padding-top: 15px;
  618. }
  619. .ui.comments {
  620. .dropzone {
  621. width: 100%;
  622. margin-bottom: 10px;
  623. border: 2px dashed #0087F7;
  624. box-shadow: none!important;
  625. .dz-error-message {
  626. top: 140px;
  627. }
  628. }
  629. }
  630. .settings {
  631. .content {
  632. margin-top: 2px;
  633. .header,
  634. .segment {
  635. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  636. }
  637. }
  638. .key.list {
  639. .item:not(:first-child) {
  640. border-top: 1px solid #eaeaea;
  641. }
  642. .ssh-key-state-indicator {
  643. float: left;
  644. color: gray;
  645. padding-left: 10px;
  646. padding-top: 10px;
  647. &.active {
  648. color: #6cc644;
  649. }
  650. }
  651. .meta {
  652. padding-top: 5px;
  653. }
  654. .print {
  655. color: #767676;
  656. }
  657. .activity {
  658. color: #666;
  659. }
  660. }
  661. .hook.list {
  662. > .item:not(:first-child) {
  663. border-top: 1px solid #eaeaea;
  664. }
  665. .item {
  666. padding: 10px 20px;
  667. .octicon,
  668. .fa {
  669. width: 20px;
  670. text-align: center;
  671. }
  672. }
  673. }
  674. .hook.history.list {
  675. .item {
  676. padding-left: 13px;
  677. .meta {
  678. .ui.right {
  679. margin-top: 5px;
  680. .time {
  681. font-size: 12px;
  682. }
  683. }
  684. }
  685. .info {
  686. margin-top: 10px;
  687. .tabular.menu {
  688. .item {
  689. font-weight: 500;
  690. }
  691. }
  692. .tab.segment {
  693. border: none;
  694. padding: 0;
  695. padding-top: 10px;
  696. box-shadow: none;
  697. > * {
  698. color: #666;
  699. }
  700. pre {
  701. word-wrap: break-word;
  702. .hljs {
  703. padding: 0;
  704. background-color: inherit;
  705. }
  706. }
  707. }
  708. }
  709. }
  710. }
  711. }
  712. .ui.vertical.menu {
  713. .header.item {
  714. font-size: 1.1em;
  715. background: #f0f0f0;
  716. }
  717. }
  718. .edit-label.modal,
  719. .new-label.segment {
  720. .form {
  721. .column {
  722. padding-right: 0;
  723. }
  724. .buttons {
  725. margin-left: auto;
  726. padding-top: 15px;
  727. }
  728. .color.picker.column {
  729. width: auto;
  730. .color-picker {
  731. height: 35px;
  732. width: auto;
  733. padding-left: 30px;
  734. }
  735. }
  736. .minicolors-swatch.minicolors-sprite {
  737. top: 10px;
  738. left: 10px;
  739. width: 15px;
  740. height: 15px;
  741. }
  742. .precolors {
  743. padding-left: 0;
  744. padding-right: 0;
  745. margin: 3px 10px auto 10px;
  746. width: 120px;
  747. .color {
  748. float: left;
  749. width: 15px;
  750. height: 15px;
  751. }
  752. }
  753. }
  754. }
  755. #transfer-repo-modal,
  756. #delete-repo-modal {
  757. .ui.message {
  758. width: 100%!important;
  759. }
  760. }