code.gitea.io/gitea@v1.21.7/web_src/css/review.css (about) 1 .show-outdated, 2 .hide-outdated { 3 -webkit-touch-callout: none; 4 -webkit-user-select: none; 5 user-select: none; 6 } 7 8 .ui.button.add-code-comment { 9 padding: 2px; 10 position: absolute; 11 margin-left: -22px; 12 z-index: 5; 13 opacity: 0; 14 transition: transform 0.1s ease-in-out; 15 transform: scale(1); 16 box-shadow: none !important; 17 border: none !important; 18 } 19 20 .ui.button.add-code-comment:hover { 21 transform: scale(1.1); 22 } 23 24 .lines-escape .toggle-escape-button::before { 25 visibility: visible; 26 content: "⚠️"; 27 font-family: var(--fonts-emoji); 28 color: var(--color-red); 29 } 30 31 .repository .diff-file-box .code-diff td.lines-escape { 32 padding-left: 0 !important; 33 } 34 35 .diff-file-box .lines-code:hover .ui.button.add-code-comment { 36 opacity: 1; 37 } 38 39 .ui.button.add-code-comment:focus { 40 opacity: 1; 41 } 42 43 .repository .diff-file-box .code-diff .add-comment-left, 44 .repository .diff-file-box .code-diff .add-comment-right, 45 .repository .diff-file-box .code-diff .add-code-comment .add-comment-left, 46 .repository .diff-file-box .code-diff .add-code-comment .add-comment-right, 47 .repository .diff-file-box .code-diff .add-code-comment .lines-type-marker { 48 padding-left: 0 !important; 49 padding-right: 0 !important; 50 } 51 52 .add-comment-left.add-comment-right .ui.attached.header { 53 border: 1px solid var(--color-secondary); 54 } 55 56 .add-comment-left.add-comment-right .ui.attached.header:not(.top) { 57 margin-bottom: 0.5em; 58 } 59 60 .show-outdated:hover, 61 .hide-outdated:hover { 62 text-decoration: underline; 63 } 64 65 .comment-code-cloud { 66 padding: 0.5rem 1rem !important; 67 position: relative; 68 } 69 70 .code-diff .conversation-holder .comment-code-cloud { 71 max-width: 820px; 72 } 73 74 @media (max-width: 767.98px) { 75 .comment-code-cloud { 76 max-width: none; 77 padding: 0.75rem !important; 78 } 79 .comment-code-cloud .code-comment-buttons { 80 margin: 0.5rem 0 0.25rem !important; 81 } 82 .comment-code-cloud .code-comment-buttons .code-comment-buttons-buttons { 83 width: 100%; 84 } 85 .comment-code-cloud .ui.buttons { 86 width: 100%; 87 margin: 0 !important; 88 } 89 .comment-code-cloud .ui.buttons .button { 90 flex: 1; 91 } 92 } 93 94 .comment-code-cloud .comments .comment { 95 padding: 0; 96 } 97 98 @media (max-width: 767.98px) { 99 .comment-code-cloud .comments .comment { 100 display: flex; 101 } 102 .comment-code-cloud .comments .comment .comment-header-right.actions .ui.basic.label { 103 display: none; 104 } 105 .comment-code-cloud .comments .comment .avatar { 106 width: auto; 107 float: none; 108 margin: 0 0.5rem 0 0; 109 flex-shrink: 0; 110 } 111 .comment-code-cloud .comments .comment .avatar ~ .content { 112 margin-left: 1em; 113 } 114 .comment-code-cloud .comments .comment img.avatar { 115 margin: 0 !important; 116 } 117 .comment-code-cloud .comments .comment .comment-content { 118 margin-left: 0 !important; 119 } 120 .comment-code-cloud .comments .comment .comment-container { 121 width: 100%; 122 } 123 .comment-code-cloud .comments .comment.code-comment { 124 padding: 0 0 0.5rem !important; 125 } 126 } 127 128 .comment-code-cloud .attached.tab { 129 border: 0; 130 padding: 0; 131 margin: 0; 132 } 133 134 .comment-code-cloud .attached.header { 135 padding: 1px 8px 1px 12px; 136 } 137 138 .comment-code-cloud .attached.header .text { 139 margin: 0; 140 } 141 142 .comment-code-cloud .right.menu.options .item { 143 padding: 0.85714286em 0.442857em; 144 cursor: pointer; 145 } 146 147 .comment-code-cloud .ui.active.tab { 148 padding: 0.5em; 149 } 150 151 .comment-code-cloud .ui.active.tab.markup { 152 padding: 1em; 153 min-height: 168px; 154 } 155 156 .comment-code-cloud .ui.tabular.menu { 157 margin: 0.5em; 158 } 159 160 .comment-code-cloud .editor-statusbar { 161 display: none; 162 } 163 164 .comment-code-cloud .footer { 165 padding: 10px 0; 166 } 167 168 .comment-code-cloud .footer .markup-info { 169 display: inline-block; 170 margin: 5px 0; 171 font-size: 12px; 172 color: var(--color-text-light); 173 } 174 175 .comment-code-cloud .footer .ui.right.floated { 176 padding-top: 6px; 177 } 178 179 .comment-code-cloud .footer::after { 180 clear: both; 181 content: ""; 182 display: block; 183 } 184 185 @media (max-width: 767.98px) { 186 .comment-code-cloud .button { 187 width: 100%; 188 margin: 0 !important; 189 margin-bottom: 0.75rem !important; 190 } 191 } 192 193 .diff-file-body .comment-form { 194 margin: 0 0 0 3em; 195 } 196 197 .file-comment { 198 color: var(--color-text); 199 } 200 201 .code-expander-button { 202 border: none; 203 color: var(--color-text-light); 204 height: 28px; 205 display: flex; 206 justify-content: center; 207 align-items: center; 208 width: 100%; 209 background: var(--color-expand-button); 210 flex: 1; 211 } 212 213 .code-expander-button:hover { 214 background: var(--color-primary); 215 color: var(--color-primary-contrast); 216 } 217 218 .review-box-panel .ui.segment { 219 border: none; 220 } 221 222 /* See the comment of createCommentEasyMDE() for the review editor */ 223 /* EasyMDE's options can not handle minHeight & maxHeight together correctly, we have to set minHeight in JS code */ 224 .review-box-panel .CodeMirror-scroll { 225 min-height: 80px; 226 max-height: calc(100vh - 360px); 227 } 228 229 .review-box-panel .combo-markdown-editor { 230 width: 730px; /* this width matches current EasyMDE's toolbar's width */ 231 max-width: calc(100vw - 70px); /* leave enough space on left, and align the page content */ 232 } 233 234 #review-box { 235 position: relative; 236 } 237 238 #review-box .review-comments-counter { 239 background-color: var(--color-primary-light-4); 240 color: var(--color-primary-contrast); 241 } 242 243 #review-box:hover .review-comments-counter { 244 background-color: var(--color-primary-light-5); 245 } 246 247 #review-box .review-comments-counter[data-pending-comment-number="0"] { 248 display: none; 249 } 250 251 .pull.files.diff .comment { 252 scroll-margin-top: 99px; 253 } 254 255 @media (max-width: 991.98px) { 256 .pull.files.diff .comment { 257 scroll-margin-top: 130px; 258 } 259 } 260 261 .changed-since-last-review { 262 border: 1px var(--color-accent) solid; 263 background-color: var(--color-small-accent); 264 border-radius: var(--border-radius); 265 padding: 4px 8px; 266 margin: -8px 0; /* just like other buttons in the diff box header */ 267 font-size: 0.857rem; /* just like .ui.tiny.button */ 268 } 269 270 .viewed-file-form { 271 display: flex; 272 align-items: center; 273 border: 1px solid transparent; 274 padding: 4px 8px; 275 margin: -8px 0; /* just like other buttons in the diff box header */ 276 border-radius: var(--border-radius); 277 font-size: 0.857rem; /* just like .ui.tiny.button */ 278 } 279 280 .viewed-file-form input { 281 margin-right: 4px; 282 } 283 284 .viewed-file-checked-form { 285 background-color: var(--color-small-accent); 286 border-color: var(--color-accent); 287 } 288 289 #viewed-files-summary { 290 width: 100%; 291 height: 8px; 292 }