Skip to content

Commit 411fb1e

Browse files
authored
[TASK]: Remove right margin in codeblocks (#779)
fixes #739 The right margin of codeblocks is now removed, making the actions wrapper positioned absolutely. BEFORE: ![obraz](https://github.com/user-attachments/assets/df6fd326-196c-4547-b4da-e58a757aa4bd) AFTER: ![obraz](https://github.com/user-attachments/assets/1bafccb8-7f4f-4869-b747-fcd50ce69953)
1 parent 218a3e7 commit 411fb1e

File tree

29 files changed

+426
-390
lines changed

29 files changed

+426
-390
lines changed

packages/typo3-docs-theme/assets/sass/components/_code.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,19 @@ code {
5353
position: relative;
5454
}
5555

56+
.code-block-actions {
57+
display: flex;
58+
position: absolute;
59+
right: 0.2em;
60+
top: 0.1em;
61+
}
62+
5663
.code-block-copy, a.code-block-edit {
5764
background: none;
5865
border: none;
5966
padding: .75rem;
60-
text-decoration: none!important;
67+
text-decoration: none !important;
68+
height: min-content;
6169

6270
.icon {
6371
opacity: .5;

0 commit comments

Comments
 (0)