Skip to content

Commit

Permalink
370 fix overlap for small screens (#387)
Browse files Browse the repository at this point in the history
* only move closer to center for large screens and shrink size of font for small screens

* fix lint

* change max-width
  • Loading branch information
Dankco authored Nov 22, 2023
1 parent 924fbe6 commit 2f75b6d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/styles/CompareCode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,28 @@

.left-code {
float: left;
left: 10%;
margin: auto;
max-width: 50%;
max-width: 49%;
position: relative;
@media screen and (min-width: 1400px) {
left: 12%;
}
}

.right-code {
float: right;
margin: 10 0 10 50px;
max-width: 50%;
margin: 10 0;
max-width: 49%;
position: relative;
right: 10%;
@media screen and (min-width: 1400px) {
right: 12%;
}
}
}

.caption {
color: $primary-1-color;
@media screen and (max-width: 600px) {
font-size: 20px !important;
}
}

0 comments on commit 2f75b6d

Please sign in to comment.