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