Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Commit

Permalink
Improve search styling
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Jan 8, 2019
1 parent 2a4bfb8 commit 7f0783c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/renderer/assets/styles/components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
width: 100%;
height: 100%;
padding: ($spacing-small / 2) $spacing-small;
font-weight: $font-weight-normal;
line-height: $line-height;
}

Expand All @@ -37,6 +38,10 @@
margin-top: $spacing-small;
}

.search-title:not(.text-faded) {
font-weight: $font-weight-semibold;
}

::-webkit-search-cancel-button {
-webkit-appearance: none; /* stylelint-disable-line property-no-vendor-prefix */
}
2 changes: 1 addition & 1 deletion src/renderer/assets/styles/elements/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ fieldset {

legend {
margin-bottom: $spacing-small / 2;
font-weight: $font-weight-bold;
font-weight: $font-weight-semibold;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default class Search extends PureComponent {
<p className="search-date text-faded">
{dateText}
</p>
<p className="search-title">{title}</p>
<p className={`search-title ${!title ? 'text-faded' : ''}`}>
{title || 'No title'}
</p>
</button>
</li>
);
Expand Down

0 comments on commit 7f0783c

Please sign in to comment.