Skip to content

Commit

Permalink
fix(clayui.com): Make Search Bar larger in small screens and search d…
Browse files Browse the repository at this point in the history
…ropdown highlight should go full width

fix(clayui.com): Scope secondary color to .docs-description, .clay-p so Clay CSS default color isn't overwritten by site styles

fixes liferay#2792
  • Loading branch information
pat270 committed Jan 25, 2020
1 parent 94e34f3 commit 3342cad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clayui.com/src/components/LayoutNav/LayoutNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import Search from './Search';

export default () => (
<nav className="navbar navbar-clay-site navbar-expand-lg navbar-light">
<div className="autofit-padded autofit-row">
<div className="autofit-float-sm-down autofit-padded autofit-row">
<div className="autofit-col autofit-col-expand">
<Search placeholder="Search..." />
</div>
<div className="autofit-col">
<ul className="ml-auto navbar-nav">
<li className="nav-item">
<Link
className="ml-3 nav-link"
className="nav-link"
to="/docs/get-started/what-is-clay.html"
>
{'Docs'}
Expand Down
5 changes: 5 additions & 0 deletions clayui.com/src/styles/_docsearch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,9 @@

.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
background-color: rgba(179, 71, 45, 0.15) !important;
}

.algolia-docsearch-suggestion--content,
.algolia-docsearch-suggestion--title {
display: block !important;
}
5 changes: 3 additions & 2 deletions clayui.com/src/styles/_guide.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.docs {
.clay-blog-content,
.clay-docs-content {
.docs-description,
.clay-p {
color: #6B6C7E;
}


.nav-clay {
.nav-item .nav-link.active:after {
background-color: $brand-dark;
Expand Down

0 comments on commit 3342cad

Please sign in to comment.