Skip to content

Commit

Permalink
fix: media orientation portrait :nerd:
Browse files Browse the repository at this point in the history
  • Loading branch information
stifskere committed May 16, 2024
1 parent 29ce70b commit 250543f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ body {

gap: 15px;

@media (orientation: portrait) {
gap: 10px;
justify-content: center;
}

flex-wrap: wrap;

margin-bottom: 15px;
Expand All @@ -183,6 +188,10 @@ body {
align-items: center;

padding: 0 30px;

@media (orientation: portrait) {
padding: 0 20px;
}
}

.presentation-experience {
Expand Down Expand Up @@ -217,6 +226,10 @@ body {
align-items: flex-start;
justify-content: center;

@media (orientation: portrait) {
align-items: center;
}

gap: 10px;
}

Expand Down
15 changes: 15 additions & 0 deletions src/components/github-rating/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
display: flex;

gap: 5px;

@media (orientation: portrait) {
font-size: 0.8em;
}
}

@media (orientation: portrait) {
.github-rating-stats > div:last-child > p {
font-size: 0.8em;
}

}

.github-mark {
Expand Down Expand Up @@ -72,6 +83,10 @@
font-size: 1.8em;

position: relative;

@media (orientation: portrait) {
font-size: 1.4em;
}
}

.github-status > h2::before {
Expand Down
17 changes: 17 additions & 0 deletions src/components/spotify-status/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

height: 130px;
width: 130px;

@media (orientation: portrait) {
height: 110px;
width: 110px;
}
}

.spotify-box-song > div > img {
Expand Down Expand Up @@ -58,6 +63,10 @@
position: relative;

width: fit-content;

@media (orientation: portrait) {
font-size: 1.3em;
}
}

.song-title::before {
Expand Down Expand Up @@ -86,6 +95,10 @@
font-size: 0.8em;

color: #b4b4b4;

@media (orientation: portrait) {
font-size: 0.7em;
}
}

.spotify-song-artist {
Expand All @@ -110,6 +123,10 @@
font-size: 0.8em;

text-align: right;

@media (orientation: portrait) {
font-size: 0.7em;
}
}

.spotify-box-controls {
Expand Down

0 comments on commit 250543f

Please sign in to comment.