Skip to content

Commit

Permalink
docs: fix overlapping of open in playground button (#17403)
Browse files Browse the repository at this point in the history
* docs: fix overlapping of open play button

* docs: update px to rem

* docs: open play btn style change for mobile size
  • Loading branch information
Tanujkanti4441 committed Jul 25, 2023
1 parent 509f753 commit 6d6dc51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/src/assets/scss/docs.scss
Expand Up @@ -112,6 +112,10 @@ div.incorrect {
offset-inline-end: -22px;
offset-block-start: -22px;
}

pre.line-numbers-mode {
padding-bottom: 4.5rem;
}
}

div.correct {
Expand Down Expand Up @@ -142,10 +146,8 @@ pre[class*="language-"] {
.c-btn.c-btn--playground {
position: absolute;
font-size: var(--step--1);
bottom: -1rem;
bottom: 1rem;
right: 1rem;
offset-block-end: 0.5rem;
offset-inline-end: 0.5rem;
z-index: 1;

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

0 comments on commit 6d6dc51

Please sign in to comment.