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 b0b1838 commit ecf6933
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/hub-card.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% assign hub = include.hub %}
{% assign platform = include.platform %}
<a class="card" href="/{{ platform }}/hubs/{{ hub.href }}">
<a class="hub-card" href="/{{ platform }}/hubs/{{ hub.href }}">
<div class="row">
<div class="left-icon">
<img class="icon" src="{{ hub.icon }}" alt="{{ hub.href }}"/>
Expand Down
85 changes: 85 additions & 0 deletions docs/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,91 @@ button {



p.description {
padding: 0;
margin: 0;
font-weight: normal;

&.with-min-height {
min-height: 68px;

@include breakpoint($breakpoint-tablet) {
min-height: 48px;
}
}
}
}

.hub-card {
display: flex;
flex-wrap: nowrap;
border-radius: 16px;
padding: 28px;
font-weight: 700;
cursor: pointer;
color: $color-text;
background-color: $color-highlightBG;

&:hover {
background-color: darken($color-highlightBG, 1%);
}

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

.left-icon {
display: flex;
align-items: center;
padding-right: 28px;

img {
width: 64px;
}
}

.right-icon {
display: flex;
align-items: center;
padding-left: 16px;
}

.submit-button {
display: flex;
align-items: center;
margin-top: 16px;
padding-left: 0;

@include breakpoint($breakpoint-desktop) {
margin-top: 0;
padding-left: 16px;
}
}

.body {
display: flex;
flex-wrap: nowrap;
flex-direction: column;
flex-grow: 2;
}

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

h3.title,
h4.title {
padding: 0;
margin: 0;

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



p.description {
padding: 0;
margin: 0;
Expand Down

0 comments on commit ecf6933

Please sign in to comment.