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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. }
  25. .focus-lines-new .ui.button.add-code-comment.add-code-comment-right,
  26. .focus-lines-old .ui.button.add-code-comment.add-code-comment-left {
  27. opacity: 1;
  28. }
  29. .comment-code-cloud {
  30. padding: 4px;
  31. position: relative;
  32. border: 1px solid #f1f1f1;
  33. margin: 13px 10px 5px auto;
  34. &:before {
  35. content: " ";
  36. width: 0;
  37. height: 0;
  38. border-left: 13px solid transparent;
  39. border-right: 13px solid transparent;
  40. border-bottom: 13px solid #f1f1f1;
  41. left: 20px;
  42. position: absolute;
  43. top: -13px;
  44. }
  45. .attached {
  46. &.tab {
  47. border: 0;
  48. padding: 0;
  49. margin: 0;
  50. }
  51. &.header {
  52. padding: .1rem 1rem;
  53. .text {
  54. margin: 0;
  55. }
  56. }
  57. }
  58. .right.menu.options .item {
  59. padding: .85714286em .442857em;
  60. cursor: pointer;
  61. }
  62. .ui.form textarea {
  63. border: 0;
  64. }
  65. .ui.active.tab {
  66. padding: .5em;
  67. &.markdown {
  68. padding: 1em;
  69. min-height: 168px;
  70. }
  71. }
  72. .ui.tabular.menu {
  73. margin: .5em;
  74. }
  75. .comment-list {
  76. padding-bottom: 10px;
  77. }
  78. .footer {
  79. border-top: 1px solid #f1f1f1;
  80. padding: 10px 0 10px 0;
  81. .markdown-info {
  82. display: inline-block;
  83. margin: 5px 0;
  84. font-size: 12px;
  85. color: rgba(0, 0, 0, .6);
  86. }
  87. .ui.right.floated {
  88. padding-top: 6px;
  89. }
  90. &:after {
  91. clear: both;
  92. content: "";
  93. display: block;
  94. }
  95. }
  96. button.comment-form-reply {
  97. margin: .5em .5em .5em 4.5em;
  98. }
  99. form.comment-form-reply {
  100. margin: 0 0 0 1em;
  101. }
  102. }
  103. .file-comment {
  104. font: 12px @monospaced-fonts, monospace;
  105. color: rgba(0, 0, 0, .87);
  106. }
  107. .ui.fold-code {
  108. margin-right: 1em;
  109. padding-left: 5px;
  110. cursor: pointer;
  111. width: 22px;
  112. font-size: 12px;
  113. }
  114. .ui.fold-code:hover {
  115. color: #428bca;
  116. }
  117. .ui.blob-excerpt {
  118. display: block;
  119. line-height: 20px;
  120. font-size: 16px;
  121. cursor: pointer;
  122. }
  123. .ui.blob-excerpt:hover {
  124. color: #428bca;
  125. }
  126. @media only screen and (max-width: 768px) {
  127. #review-box > .menu {
  128. > .ui.segment {
  129. width: 94vw;
  130. }
  131. .editor-toolbar {
  132. overflow-x: auto;
  133. }
  134. }
  135. #review-box .CodeMirror-scroll {
  136. max-width: calc(100vw - 70px);
  137. }
  138. }
  139. @media only screen and (min-width: 768px) and (max-width: 992px) {
  140. #review-box .CodeMirror-scroll {
  141. max-width: 700px;
  142. }
  143. }
  144. @media only screen and (min-width: 992px) and (max-width: 1200px) {
  145. #review-box .CodeMirror-scroll {
  146. max-width: 800px;
  147. }
  148. }
  149. @media only screen and (min-width: 1200px) {
  150. #review-box .CodeMirror-scroll {
  151. max-width: 900px;
  152. }
  153. }