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

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