Skip to content

Commit

Permalink
Bigger more clickable buttons on mobile (#69)
Browse files Browse the repository at this point in the history
Bigger more clickable buttons on mobile. Feels a lot better on a phone. The buttons already have invisible margin in their hitbox but the bigger size makes your thumb less cramped to the edge to click them.

Also reduce the container padding so it feels more balanced in the single column card layout.
  • Loading branch information
MadLittleMods authored Sep 9, 2022
1 parent b7597b2 commit f732467
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions public/css/room-directory.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,20 @@

.RoomDirectoryView_paginationButton {
display: inline-block;
padding: 4px 16px;
padding: 8px 32px;
background-color: #17191c;
border-radius: 9999px;
color: #ffffff;
line-height: 24px;
text-decoration: none;
}

@media (min-width: 750px) {
.RoomDirectoryView_paginationButton {
padding: 4px 16px;
}
}

.RoomDirectoryView_paginationButton:not([href]) {
background-color: rgba(23, 25, 28, 0.7);
color: #bbbbbb;
Expand All @@ -113,15 +119,18 @@
gap: 20px;
width: 100%;
max-width: 1180px;
padding-left: 40px;
padding-right: 40px;
margin-top: 40px;
padding-left: 20px;
padding-right: 20px;
margin-top: 20px;
margin-bottom: 0;
}

@media (min-width: 750px) {
.RoomDirectoryView_roomList {
grid-template-columns: repeat(2, 1fr);
padding-left: 40px;
padding-right: 40px;
margin-top: 40px;
}
}

Expand Down Expand Up @@ -226,7 +235,7 @@

.RoomCardView_viewButton {
display: inline-block;
padding: 4px 16px;
padding: 8px 32px;

background-color: #17191c;
/* Always make a pill shape */
Expand All @@ -237,6 +246,12 @@
text-decoration: none;
}

@media (min-width: 750px) {
.RoomCardView_viewButton {
padding: 4px 16px;
}
}

.RoomCardView_viewButtonWrapperLink:hover > .RoomCardView_viewButton,
.RoomCardView_viewButtonWrapperLink:focus > .RoomCardView_viewButton {
background-color: #0098d4;
Expand Down

0 comments on commit f732467

Please sign in to comment.