gitea源码

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. .ui.button.add-code-comment {
  2. padding: 2px;
  3. position: absolute;
  4. margin-left: -22px;
  5. min-height: 0;
  6. z-index: 5;
  7. opacity: 0;
  8. transition: transform 0.1s ease-in-out;
  9. transform: scale(1);
  10. box-shadow: none !important;
  11. border: none !important;
  12. }
  13. .ui.button.add-code-comment:hover {
  14. transform: scale(1.1);
  15. }
  16. .lines-escape .toggle-escape-button::before {
  17. visibility: visible;
  18. content: "⚠️";
  19. font-family: var(--fonts-emoji);
  20. color: var(--color-red);
  21. }
  22. .repository .diff-file-box .code-diff td.lines-escape {
  23. padding-left: 0 !important;
  24. }
  25. .diff-file-box .lines-code:hover .ui.button.add-code-comment {
  26. opacity: 1;
  27. }
  28. .ui.button.add-code-comment:focus {
  29. opacity: 1;
  30. }
  31. .repository .diff-file-box .code-diff .add-comment-left,
  32. .repository .diff-file-box .code-diff .add-comment-right,
  33. .repository .diff-file-box .code-diff .add-code-comment .add-comment-left,
  34. .repository .diff-file-box .code-diff .add-code-comment .add-comment-right,
  35. .repository .diff-file-box .code-diff .add-code-comment .lines-type-marker {
  36. padding-left: 0 !important;
  37. padding-right: 0 !important;
  38. }
  39. .add-comment-left.add-comment-right .ui.attached.header {
  40. border: 1px solid var(--color-secondary);
  41. }
  42. .add-comment-left.add-comment-right .ui.attached.header:not(.top) {
  43. margin-bottom: 0.5em;
  44. }
  45. .comment-code-cloud {
  46. padding: 0.5rem 1rem !important;
  47. position: relative;
  48. }
  49. .code-diff .conversation-holder .comment-code-cloud {
  50. max-width: 820px;
  51. }
  52. .comment-code-cloud .comments .comment {
  53. padding: 0;
  54. }
  55. .comment-code-cloud .attached.tab {
  56. border: 0;
  57. padding: 0;
  58. margin: 0;
  59. }
  60. .comment-code-cloud .attached.header {
  61. padding: 1px 8px 1px 12px;
  62. }
  63. @media (max-width: 767.98px) {
  64. .comment-code-cloud .attached.header {
  65. padding-top: 4px;
  66. padding-bottom: 4px;
  67. }
  68. }
  69. .comment-code-cloud .attached.header .text {
  70. margin: 0;
  71. }
  72. .comment-code-cloud .right.menu.options .item {
  73. padding: 0.85714286em 0.442857em;
  74. cursor: pointer;
  75. }
  76. .comment-code-cloud .ui.active.tab.markup {
  77. padding: 1em;
  78. min-height: 168px;
  79. }
  80. .comment-code-cloud .editor-statusbar {
  81. display: none;
  82. }
  83. .comment-code-cloud .footer {
  84. padding: 10px 0;
  85. }
  86. .diff-file-body .comment-form {
  87. margin: 0 0 0 3em;
  88. }
  89. .diff-file-body.binary {
  90. padding: 5px 10px;
  91. }
  92. .file-comment {
  93. color: var(--color-text);
  94. }
  95. .code-expander-button {
  96. border: none;
  97. color: var(--color-text-light);
  98. height: 28px;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. width: 100%;
  103. background: var(--color-expand-button);
  104. flex: 1;
  105. }
  106. /* expand direction 3 is both ways with two buttons */
  107. .code-expander-buttons[data-expand-direction="3"] .code-expander-button {
  108. height: 18px;
  109. }
  110. .code-expander-button:hover {
  111. background: var(--color-primary);
  112. color: var(--color-primary-contrast);
  113. }
  114. .review-box-panel .ui.segment {
  115. border: none;
  116. }
  117. /* See the comment of createCommentEasyMDE() for the review editor */
  118. /* EasyMDE's options can not handle minHeight & maxHeight together correctly, we have to set minHeight in JS code */
  119. .review-box-panel .CodeMirror-scroll {
  120. min-height: 80px;
  121. max-height: calc(100vh - 360px);
  122. }
  123. .review-box-panel .combo-markdown-editor {
  124. width: 730px; /* this width matches current EasyMDE's toolbar's width */
  125. max-width: calc(100vw - 70px); /* leave enough space on left, and align the page content */
  126. }
  127. #review-box {
  128. position: relative;
  129. }
  130. #review-box .review-comments-counter {
  131. background-color: var(--color-primary-light-4);
  132. color: var(--color-primary-contrast);
  133. }
  134. #review-box:hover .review-comments-counter {
  135. background-color: var(--color-primary-light-5);
  136. }
  137. #review-box .review-comments-counter[data-pending-comment-number="0"] {
  138. display: none;
  139. }
  140. .pull.files.diff .comment {
  141. scroll-margin-top: 99px;
  142. }
  143. @media (max-width: 991.98px) {
  144. .pull.files.diff .comment {
  145. scroll-margin-top: 130px;
  146. }
  147. }
  148. .changed-since-last-review {
  149. border: 1px var(--color-accent) solid;
  150. background-color: var(--color-small-accent);
  151. border-radius: var(--border-radius);
  152. padding: 4px 8px;
  153. margin: -8px 0; /* just like other buttons in the diff box header */
  154. font-size: 0.857rem; /* just like .ui.tiny.button */
  155. }
  156. .viewed-file-form {
  157. display: flex;
  158. align-items: center;
  159. border: 1px solid transparent;
  160. padding: 4px 8px;
  161. border-radius: var(--border-radius);
  162. font-size: 0.857rem; /* just like .ui.tiny.button */
  163. }
  164. @media (max-width: 767.98px) {
  165. .viewed-file-form {
  166. margin-left: auto;
  167. }
  168. }
  169. .viewed-file-form input {
  170. margin-right: 4px;
  171. }
  172. .viewed-file-checked-form {
  173. background-color: var(--color-small-accent);
  174. border-color: var(--color-accent);
  175. }
  176. #viewed-files-summary {
  177. width: 100%;
  178. height: 8px;
  179. }