Skip to content

Commit 6d6dc51

Browse files
docs: fix overlapping of open in playground button (#17403)
* docs: fix overlapping of open play button * docs: update px to rem * docs: open play btn style change for mobile size
1 parent 509f753 commit 6d6dc51

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/src/assets/scss/docs.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ div.incorrect {
112112
offset-inline-end: -22px;
113113
offset-block-start: -22px;
114114
}
115+
116+
pre.line-numbers-mode {
117+
padding-bottom: 4.5rem;
118+
}
115119
}
116120

117121
div.correct {
@@ -142,10 +146,8 @@ pre[class*="language-"] {
142146
.c-btn.c-btn--playground {
143147
position: absolute;
144148
font-size: var(--step--1);
145-
bottom: -1rem;
149+
bottom: 1rem;
146150
right: 1rem;
147-
offset-block-end: 0.5rem;
148-
offset-inline-end: 0.5rem;
149151
z-index: 1;
150152

151153
@media all and (min-width: 768px) {
@@ -166,6 +168,7 @@ pre[class*="language-"] {
166168
position: fixed;
167169
right: 50px;
168170
bottom: 35px;
171+
z-index: 1;
169172
font-size: 1.5rem;
170173
border-radius: 50%;
171174
color: var(--body-background-color);

0 commit comments

Comments
 (0)