Repository navigation
Commit 4a18e9d
committed
Size the annotated copy button margin in the code font size
The margin multiplied $code-block-font-size inside calc(), which only
matches the gutter for length units. A percentage, which a theme or a
brand typography size can set, resolved against the scaffold width in
a margin, and pushed the button about 290px into the code.
The button now takes the code block font size itself, so it shares the
pre's em, and the margin repeats the gutter's own calc(20px + 0.5em)
plus 5px. That holds for any value the pre accepts. The copy icon is
sized in rem, so it keeps its size.1 parent 69fce03 commit 4a18e9d
4 files changed
Lines changed: 24 additions & 4 deletions
File tree
- src/resources/formats/html/bootstrap
- tests
- docs/playwright/html
- integration/playwright/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1997 | 1997 | | |
1998 | 1998 | | |
1999 | 1999 | | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
2003 | 2003 | | |
2004 | | - | |
| 2004 | + | |
| 2005 | + | |
2005 | 2006 | | |
2006 | 2007 | | |
2007 | 2008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments