Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Add styles for small devices to .onboarding-modal (mastodon#2748)
Browse files Browse the repository at this point in the history
  • Loading branch information
unarist authored and Gargron committed May 3, 2017
1 parent 90c00f0 commit e61ecf4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions app/javascript/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,19 @@ button.icon-button.active i.fa-retweet {
margin-right: 10px;
}

@media screen and (max-width: 400px) {
.onboarding-modal__page-one {
flex-direction: column;
}

.onboarding-modal__page-one__elephant-friend {
width: 100%;
height: 30vh;
max-height: 160px;
margin-bottom: 5vh;
}
}

.onboarding-modal__page-two,
.onboarding-modal__page-three,
.onboarding-modal__page-four,
Expand Down Expand Up @@ -2889,6 +2902,30 @@ button.icon-button.active i.fa-retweet {
}
}

@media screen and (max-width: 320px) and (max-height: 600px) {
.onboarding-modal__page p {
font-size: 14px;
line-height: 20px;
}

.onboarding-modal__page-two .figure,
.onboarding-modal__page-three .figure,
.onboarding-modal__page-four .figure,
.onboarding-modal__page-five .figure {
font-size: 12px;
margin-bottom: 10px;
}

.onboarding-modal__page-four__columns .row {
margin-bottom: 10px;
}

.onboarding-modal__page-four__columns .column-header {
padding: 5px;
font-size: 12px;
}
}

.onboarding-modal__image {
border-radius: 8px;
width: 70vw;
Expand Down

0 comments on commit e61ecf4

Please sign in to comment.