Skip to content

Commit 391ed63

Browse files
sjtrimbleIgorMinar
authored andcommitted
fix(aio): copy code button overlap fix on mobile (angular#17302)
1 parent 0940e6d commit 391ed63

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

aio/src/styles/2-modules/_code.scss

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ code-tabs mat-tab-body-content .fadeIn {
6969
aio-code pre {
7070
display: flex;
7171
min-height: 32px;
72-
margin: 16px;
72+
margin: 16px 32px;
7373
white-space: pre-wrap;
7474
align-items: center;
7575

@@ -101,8 +101,8 @@ code ol {
101101
.copy-button {
102102
display: inline-block;
103103
position: absolute;
104-
top: 6px;
105-
right: 8px;
104+
top: -8px;
105+
right: -32px;
106106

107107
color: $blue-grey-200;
108108
background-color: transparent;
@@ -111,11 +111,6 @@ code ol {
111111
&:hover {
112112
color: $mediumgray;
113113
}
114-
115-
@media (max-width: 480px) {
116-
top: 0;
117-
right: 0;
118-
}
119114
}
120115

121116
.lang-sh .copy-button, .lang-bash .copy-button {

0 commit comments

Comments
 (0)