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.

_review.less 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. .ui.button.add-code-comment {
  2. padding: 2px;
  3. position: absolute;
  4. margin-left: -22px;
  5. z-index: 5;
  6. opacity: 0;
  7. transition: transform .1s ease-in-out;
  8. transform: scale(1);
  9. box-shadow: none !important;
  10. border: none !important;
  11. &:hover {
  12. transform: scale(1.1);
  13. }
  14. }
  15. .diff-file-box .lines-code:hover .ui.button.add-code-comment {
  16. opacity: 1;
  17. }
  18. .repository .diff-file-box .code-diff .add-comment-left,
  19. .repository .diff-file-box .code-diff .add-comment-right,
  20. .repository .diff-file-box .code-diff .add-code-comment .add-comment-left,
  21. .repository .diff-file-box .code-diff .add-code-comment .add-comment-right,
  22. .repository .diff-file-box .code-diff .add-code-comment .lines-type-marker {
  23. padding-left: 0 !important;
  24. padding-right: 0 !important;
  25. }
  26. .add-comment-left.add-comment-right .ui.attached.header {
  27. border: 1px solid var(--color-secondary);
  28. &:not(.top) {
  29. margin-bottom: .5em;
  30. }
  31. .show-outdated,
  32. .hide-outdated {
  33. display: block;
  34. margin-left: auto;
  35. }
  36. }
  37. .comment-code-cloud {
  38. padding: 4px;
  39. padding-left: 0;
  40. position: relative;
  41. margin: 0 auto;
  42. .attached {
  43. &.tab {
  44. border: 0;
  45. padding: 0;
  46. margin: 0;
  47. }
  48. &.header {
  49. padding: .1rem 1rem;
  50. .text {
  51. margin: 0;
  52. }
  53. }
  54. }
  55. .right.menu.options .item {
  56. padding: .85714286em .442857em;
  57. cursor: pointer;
  58. }
  59. .ui.active.tab {
  60. padding: .5em;
  61. &.markdown {
  62. padding: 1em;
  63. min-height: 168px;
  64. }
  65. }
  66. .ui.tabular.menu {
  67. margin: .5em;
  68. }
  69. .footer {
  70. border-top: 1px solid #f1f1f1;
  71. padding: 10px 0;
  72. .markdown-info {
  73. display: inline-block;
  74. margin: 5px 0;
  75. font-size: 12px;
  76. color: rgba(0, 0, 0, .6);
  77. }
  78. .ui.right.floated {
  79. padding-top: 6px;
  80. }
  81. &::after {
  82. clear: both;
  83. content: "";
  84. display: block;
  85. }
  86. }
  87. button.comment-form-reply {
  88. margin: .5em .5em .5em 4.5em;
  89. }
  90. form.comment-form-reply {
  91. margin: 0 0 0 1em;
  92. }
  93. }
  94. .file-comment {
  95. color: rgba(0, 0, 0, .87);
  96. }
  97. a.fold-file {
  98. margin-right: 10px;
  99. color: inherit;
  100. }
  101. a.blob-excerpt {
  102. color: #575a68;
  103. height: 28px;
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. width: 100%;
  108. background: var(--color-primary-light-5);
  109. }
  110. a.blob-excerpt:hover {
  111. background: var(--color-primary);
  112. color: #fff;
  113. }
  114. .btn-review > .dropdown.icon {
  115. float: right;
  116. height: 12px !important;
  117. margin-left: .5rem;
  118. }
  119. @media only screen and (max-width: 768px) {
  120. #review-box > .menu {
  121. > .ui.segment {
  122. width: 94vw;
  123. }
  124. .editor-toolbar {
  125. overflow-x: auto;
  126. }
  127. }
  128. #review-box .CodeMirror-scroll {
  129. max-width: calc(100vw - 70px);
  130. }
  131. }
  132. @media only screen and (min-width: 768px) and (max-width: 992px) {
  133. #review-box .CodeMirror-scroll {
  134. max-width: 700px;
  135. }
  136. }
  137. @media only screen and (min-width: 992px) and (max-width: 1200px) {
  138. #review-box .CodeMirror-scroll {
  139. max-width: 800px;
  140. }
  141. }
  142. @media only screen and (min-width: 1200px) {
  143. #review-box .CodeMirror-scroll {
  144. max-width: 900px;
  145. }
  146. }