Skip to content

Commit

Permalink
Update header RWD settings
Browse files Browse the repository at this point in the history
  • Loading branch information
windsuzu committed Feb 17, 2022
1 parent 7cace19 commit d0e308f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 22 deletions.
40 changes: 30 additions & 10 deletions src/components/Cart/CartButton.module.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
.button {
background-color: transparent;
border-color: #1ad1b9;
color: #1ad1b9;
background-color: transparent;
border-color: #1ad1b9;
color: #1ad1b9;
}

.button:hover,
.button:active {
color: white;
color: white;
}

.button span {
margin: 0 0.5rem;
margin: 0 0.5rem;
}

.badge {
background-color: #1ad1b9;
border-radius: 30px;
padding: 0.15rem 1.25rem;
color: #1d1d1d;
}
background-color: #1ad1b9;
border-radius: 30px;
padding: 0.15rem 1.25rem;
color: #1d1d1d;
}

@media (max-width: 768px) {
.button {
width: 100px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
span {
font-size: 0.7rem;
}
.badge {
width: 20px;
height: 20px;
display: flex;
justify-content: center;
padding: 0.1rem 1rem;
}
}
30 changes: 18 additions & 12 deletions src/components/Layout/MainHeader.module.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
.header {
width: 100%;
height: 5rem;
padding: 0 10%;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #252424;
width: 100%;
height: 5rem;
padding: 0 10%;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #252424;
}

.header h1 {
color: white;
color: white;
}

.header ul {
list-style: none;
margin: 0;
padding: 0;
}
list-style: none;
margin: 0;
padding: 0;
}

@media (max-width: 768px) {
.header h1 {
font-size: 1.5rem;
}
}

0 comments on commit d0e308f

Please sign in to comment.