You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1693 lines
43 KiB

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