Skip to content

Commit

Permalink
add hub card styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Sep 22, 2023
1 parent ecf6933 commit 4ab9834
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/platform.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 class="title">{{ platform.hub-title }}</h1>

<p>{{ site.data.routes.home.description }}</p>

<div class="cards-group">
<div class="platform-cards-group">
{% for hub in platform.hubs %}
{% include hub-card.html hub=hub platform=selectedPlatform %}
{% endfor %}
Expand Down
18 changes: 14 additions & 4 deletions docs/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,26 @@ button {
}
}

.cards-group {
.cards-group, .platform-cards-group {
display: grid;
grid-template-columns: auto;
row-gap: 20px;
column-gap: 20px;
padding-bottom: 20px;
}

.cards-group {
@include breakpoint($breakpoint-desktop) {
grid-template-columns: 50% 50%;
}
}

.platform-cards-group {
@include breakpoint($breakpoint-desktop) {
grid-template-columns: 33.33% 33.33% 33.33%;
}
}

.card {
display: flex;
flex-wrap: nowrap;
Expand Down Expand Up @@ -546,7 +554,7 @@ button {
display: flex;
flex-wrap: nowrap;
border-radius: 16px;
padding: 28px;
padding: 24px;
font-weight: 700;
cursor: pointer;
color: $color-text;
Expand All @@ -558,6 +566,7 @@ button {

.row {
display: flex;
flex-direction: column;
flex-basis:100%;
}

Expand All @@ -567,7 +576,7 @@ button {
padding-right: 28px;

img {
width: 64px;
width: 68px;
}
}

Expand Down Expand Up @@ -597,6 +606,7 @@ button {
}

h3.title {
font-size: 1.2em;
font-family: "ExpensifyNewKansas", "Helvetica Neue", "Helvetica", Arial, sans-serif;
}

Expand All @@ -606,7 +616,7 @@ button {
margin: 0;

&.with-margin {
margin: 0 0 4px 0;
margin: 20px 0 8px 0;
}
}

Expand Down

0 comments on commit 4ab9834

Please sign in to comment.