Skip to content

Commit

Permalink
Wrap cards on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Jun 16, 2022
1 parent fc570b3 commit a7ae5d0
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions src/SearchBlock/less/landingpage.less
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
.landing-page-container {
margin-top: 5em;

.search-tab-wrapper {
width: 100%;
overflow-x: auto;
}

.search-tab {
width: 1108px;
margin-top: 4em;

.ui.tab {
Expand All @@ -19,13 +13,17 @@
a.item {
font-size: 20px;
}

&::-webkit-scrollbar {
height: 0.3rem !important;
}
}
}

.landing-page-cards {
.ui.cards {
margin-top: 1em;
padding: 0 1.25rem;

.ui.cards {
.ui.card {
margin-top: 2em;
color: @deepBlue;
Expand Down Expand Up @@ -69,3 +67,18 @@
font-size: 85%;
}
}

@media only screen and (max-width: @tabletBreakpoint) {
.landing-page-cards {
.ui.cards {
display: grid;
justify-content: space-between;
padding-right: 2px;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));

.ui.card {
width: unset;
}
}
}
}

0 comments on commit a7ae5d0

Please sign in to comment.