Skip to content

Commit

Permalink
two-card now switches to vertical layout when screen is too small
Browse files Browse the repository at this point in the history
  • Loading branch information
paaton committed Aug 27, 2024
1 parent e9a9921 commit 2e8abbb
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,16 @@ h1 {
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
background-color: var(--color-card-background);
border-radius: var(--border-radius);
padding: 35px 44px;
margin-bottom: 11px;
padding: 25px;
text-align: center;
margin: 10px;
}

@media (min-width: 768px) {
.card {
padding: 35px 44px;
margin: 0 0 11px;
}
}

.card-half {
Expand All @@ -66,6 +73,15 @@ h1 {
h2, h3 {
margin-top: 0;
}
h2 {
font-size: 1.25rem; /* Smaller font for mobile */
}

@media (min-width: 768px) {
h2 {
font-size: 1.75rem;
}
}

a {
color: var(--color-link);
Expand Down Expand Up @@ -109,10 +125,17 @@ a:visited {

.two-cards {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-columns: 1fr;
grid-gap: 13px;
}

@media (min-width: 768px) {
.two-cards {
grid-template-columns: repeat(2, 1fr)
}
}


.login-card {
margin: 0 auto;
max-width: 400px;
Expand All @@ -130,16 +153,22 @@ ul.steps {
padding: 0;
flex-direction: row;
}
@media (max-width: 250px) {
ul.steps {
display: none;
}
}

li.step {
width: 33%;
position: relative;
text-align: center;
font-size: 1.25rem;
font-size: clamp(0.75rem, 4vw, 1.25rem);
font-weight: bolder;
color: var(--color-light);
}


li.step::before {
content: " ";
line-height: 30px;
Expand Down

0 comments on commit 2e8abbb

Please sign in to comment.