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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 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 @monospaced-fonts, monospace;
  110. color: rgba(0, 0, 0, .87);
  111. }
  112. .ui.fold-code {
  113. margin-right: 1em;
  114. padding-left: 5px;
  115. cursor: pointer;
  116. width: 22px;
  117. font-size: 12px;
  118. }
  119. .ui.fold-code:hover {
  120. color: #428bca;
  121. }
  122. .ui.blob-excerpt {
  123. display: block;
  124. line-height: 20px;
  125. font-size: 16px;
  126. cursor: pointer;
  127. }
  128. .ui.blob-excerpt:hover {
  129. color: #428bca;
  130. }
  131. @media only screen and (max-width: 768px) {
  132. #review-box > .menu {
  133. > .ui.segment {
  134. width: 94vw;
  135. }
  136. .editor-toolbar {
  137. overflow-x: auto;
  138. }
  139. }
  140. #review-box .CodeMirror-scroll {
  141. max-width: calc(100vw - 70px);
  142. }
  143. }
  144. @media only screen and (min-width: 768px) and (max-width: 992px) {
  145. #review-box .CodeMirror-scroll {
  146. max-width: 700px;
  147. }
  148. }
  149. @media only screen and (min-width: 992px) and (max-width: 1200px) {
  150. #review-box .CodeMirror-scroll {
  151. max-width: 800px;
  152. }
  153. }
  154. @media only screen and (min-width: 1200px) {
  155. #review-box .CodeMirror-scroll {
  156. max-width: 900px;
  157. }
  158. }