|
134 | 134 | font-family: monospace, monospace; |
135 | 135 | _font-family: "courier new", monospace; |
136 | 136 | font-size: 0.98em; |
| 137 | + padding: 0.25rem; |
137 | 138 | } |
138 | 139 |
|
139 | 140 | kbd { |
|
161 | 162 | white-space: pre; |
162 | 163 | white-space: pre-wrap; |
163 | 164 | word-wrap: break-word; |
| 165 | + position: relative !important; |
| 166 | + } |
| 167 | + |
| 168 | + pre:hover .copy-button { |
| 169 | + opacity: 1; |
| 170 | + } |
| 171 | + |
| 172 | + .copy-button { |
| 173 | + position: absolute; |
| 174 | + top: 8px; |
| 175 | + right: 5px; |
| 176 | + padding: 4px 8px; |
| 177 | + background: rgba(0, 0, 0, 0.8); |
| 178 | + border: none; |
| 179 | + border-radius: 4px; |
| 180 | + cursor: pointer; |
| 181 | + opacity: 0; |
| 182 | + transition: opacity 0.2s; |
| 183 | + font-size: 12px; |
| 184 | + color: inherit; |
| 185 | + |
| 186 | + &:hover { |
| 187 | + background: rgba(0, 0, 0, 0.9); |
| 188 | + } |
164 | 189 | } |
165 | 190 |
|
166 | 191 | b, |
|
284 | 309 | content: ""; |
285 | 310 | } |
286 | 311 |
|
287 | | - pre, |
288 | 312 | blockquote { |
289 | 313 | border: 1px solid #999; |
290 | 314 | padding-right: 1em; |
|
390 | 414 | color: var(--color-caution); |
391 | 415 | } |
392 | 416 | .task-list-item { |
393 | | - list-style-type: none; |
394 | | - |
395 | | - label { |
396 | | - font-weight: 400; |
397 | | - } |
398 | | - |
399 | | - &.enabled label { |
400 | | - cursor: pointer; |
401 | | - } |
402 | | - |
403 | | - &+.task-list-item { |
404 | | - margin-top: 0.25rem; |
405 | | - } |
406 | | - |
407 | | - .handle { |
408 | | - display: none; |
409 | | - } |
410 | | - |
411 | | - &-checkbox { |
412 | | - margin: 0 0.2em 0.25em -1.4em; |
413 | | - vertical-align: middle; |
414 | | - border-radius: 4px; |
415 | | - cursor: pointer; |
416 | | - } |
| 417 | + list-style-type: none; |
| 418 | + |
| 419 | + label { |
| 420 | + font-weight: 400; |
417 | 421 | } |
418 | 422 |
|
| 423 | + &.enabled label { |
| 424 | + cursor: pointer; |
| 425 | + } |
| 426 | + |
| 427 | + & + .task-list-item { |
| 428 | + margin-top: 0.25rem; |
| 429 | + } |
| 430 | + |
| 431 | + .handle { |
| 432 | + display: none; |
| 433 | + } |
419 | 434 |
|
420 | | - ul:dir(rtl) .task-list-item-checkbox, |
421 | | - ol:dir(rtl) .task-list-item-checkbox { |
422 | | - margin: 0 -1.6em 0.25em 0.2em; |
| 435 | + &-checkbox { |
| 436 | + margin: 0 0.2em 0.25em -1.4em; |
| 437 | + vertical-align: middle; |
| 438 | + border-radius: 4px; |
| 439 | + cursor: pointer; |
423 | 440 | } |
| 441 | + } |
424 | 442 |
|
425 | | - .contains-task-list { |
| 443 | + ul:dir(rtl) .task-list-item-checkbox, |
| 444 | + ol:dir(rtl) .task-list-item-checkbox { |
| 445 | + margin: 0 -1.6em 0.25em 0.2em; |
| 446 | + } |
426 | 447 |
|
427 | | - &:hover .task-list-item-convert-container, |
428 | | - &:focus-within .task-list-item-convert-container { |
429 | | - display: block; |
430 | | - width: auto; |
431 | | - height: 24px; |
432 | | - overflow: visible; |
433 | | - clip: auto; |
434 | | - } |
| 448 | + .contains-task-list { |
| 449 | + &:hover .task-list-item-convert-container, |
| 450 | + &:focus-within .task-list-item-convert-container { |
| 451 | + display: block; |
| 452 | + width: auto; |
| 453 | + height: 24px; |
| 454 | + overflow: visible; |
| 455 | + clip: auto; |
435 | 456 | } |
| 457 | + } |
436 | 458 | } |
0 commit comments