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

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