Skip to content

Commit

Permalink
Merge pull request #1101 from pattern-lab/fix/code-panel-overflow-fix
Browse files Browse the repository at this point in the history
UIKit Fix: Code Panel Overflow Fix for Firefox
  • Loading branch information
bmuenzenmeyer authored Nov 22, 2019
2 parents 4954b28 + 378cf42 commit 9f4c1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions packages/uikit-workshop/src/sass/pattern-lab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,8 @@
.pl-c-code-copy-btn {
display: inline-block;
position: absolute;
top: 0.5rem;
top: 0.4rem;
right: 0.5rem;

@supports (position: sticky){
transform: translateY(-0.7rem);
float: right;
position: sticky;
top: 1rem;
right: 0;
margin-top: -2rem;
}

padding: 0.2rem 0.4rem;
background-color: $pl-color-gray-07;
color: $pl-color-gray-87;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
display: flex;
flex-basis: auto;
-webkit-overflow-scrolling: touch;
height: 100%;
overflow-y: auto; // workaround to firefox background gradient overflow bug

/**
* Tab content inside modal
Expand Down

0 comments on commit 9f4c1e6

Please sign in to comment.