Skip to content

Commit

Permalink
CSS polishments
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Feb 9, 2023
1 parent 2ff1941 commit c5784f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion searchlib/components/Result/HorizontalCardItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ExtraContent = (props) => {
</div>
</div>
<div>
<div className="result-info">
<div className="result-info result-source">
<span className="result-info-title">Source: </span>
<ExternalLink href={result.href}>
<strong title={result.source} className="source">
Expand Down
8 changes: 7 additions & 1 deletion src/SearchBlock/less/landingpage.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,18 @@
}

@media only screen and (min-width: 900px) {
// max-width: 950px;
column-count: 2;
column-gap: 2.5em;
}
}

&.cluster_name {
.ui.list .count {
display: block;
margin: 0;
}
}

// .ui.cards {
// .ui.card {
// margin-top: 2em;
Expand Down
25 changes: 16 additions & 9 deletions src/SearchBlock/less/searchresult.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@
.slot-head {
display: flex;
flex-direction: row;
}

.listing-header {
display: flex;
.listing-header {
display: flex;

.ui.label {
margin: 0 0.5em;
font-size: 0.75rem;
.ui.label {
margin: 0 0.5em;
font-size: 0.75rem;
}
}
}

.slot-bottom {
margin-top: 1.5em;
}

.result-bottom {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-top: 1.5em;
gap: 4em;
column-gap: 4em;
row-gap: 1em;

@media only screen and (max-width: @largestMobileScreen) {
flex-direction: column;
Expand All @@ -46,9 +50,12 @@
}
}

.result-source {
margin-top: 1em;
}

.result-info {
display: flex;
margin-bottom: 1em;
color: @midlightGray;
font-size: 14px;
gap: 0.5em;
Expand Down

0 comments on commit c5784f1

Please sign in to comment.