_repository.less 13 KB

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