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.1KB

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