Fix Algolia search link positioning (#1904)

* Add link for testing purposes
* Fix excerpt link positioning in Algolia search results
* Fix Algolia search input color
* Update CHANGELOG and history

Fixes #1903
This commit is contained in:
Michael Rose 2018-10-22 13:56:43 -04:00 committed by GitHub
parent de15fb80c4
commit c8f4820d31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 44 additions and 13 deletions

View file

@ -2,6 +2,7 @@
### Enhancements ### Enhancements
- Fix Algolia search link positioning. [#1904](https://github.com/mmistakes/minimal-mistakes/pull/1904)
- Update Lunr to `2.3.3`. [#1885](https://github.com/mmistakes/minimal-mistakes/pull/1885) - Update Lunr to `2.3.3`. [#1885](https://github.com/mmistakes/minimal-mistakes/pull/1885)
- Cache "static" includes to improve build performance. **Note:** The theme uses the [jekyll-include-cache](https://github.com/benbalter/jekyll-include-cache) plugin which will need to be installed in your `Gemfile` and added to the `plugins` array of `_config.yml`. Otherwise you'll throw `Unknown tag 'include_cached'` errors at build. [#1874](https://github.com/mmistakes/minimal-mistakes/pull/1874) - Cache "static" includes to improve build performance. **Note:** The theme uses the [jekyll-include-cache](https://github.com/benbalter/jekyll-include-cache) plugin which will need to be installed in your `Gemfile` and added to the `plugins` array of `_config.yml`. Otherwise you'll throw `Unknown tag 'include_cached'` errors at build. [#1874](https://github.com/mmistakes/minimal-mistakes/pull/1874)
- Make entire feature and archive items "clickable". [#1864](https://github.com/mmistakes/minimal-mistakes/pull/1864) - Make entire feature and archive items "clickable". [#1864](https://github.com/mmistakes/minimal-mistakes/pull/1864)

View file

@ -20,15 +20,6 @@
.archive__item { .archive__item {
position: relative; position: relative;
a::before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
} }
.archive__subtitle { .archive__subtitle {
@ -50,6 +41,15 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
a::before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
a + a { a + a {
opacity: 0.5; opacity: 0.5;
} }
@ -70,6 +70,10 @@
& + p { & + p {
text-indent: 0; text-indent: 0;
} }
a {
position: relative;
}
} }
.archive__item-teaser { .archive__item-teaser {
@ -281,6 +285,10 @@
clear: both; clear: both;
font-size: 1.125em; font-size: 1.125em;
.archive__item {
float: left;
}
.archive__item-teaser { .archive__item-teaser {
margin-bottom: 2em; margin-bottom: 2em;
} }
@ -318,6 +326,10 @@
clear: both; clear: both;
font-size: 1.125em; font-size: 1.125em;
.archive__item {
float: left;
}
.archive__item-teaser { .archive__item-teaser {
margin-bottom: 2em; margin-bottom: 2em;
} }
@ -357,6 +369,11 @@
clear: both; clear: both;
font-size: 1.125em; font-size: 1.125em;
.archive__item {
float: left;
width: 100%;
}
.archive__item-teaser { .archive__item-teaser {
margin-bottom: 2em; margin-bottom: 2em;
} }

View file

@ -114,12 +114,12 @@
} }
.archive__item-title .ais-Highlight { .archive__item-title .ais-Highlight {
color: $link-color; color: $primary-color;
font-style: normal; font-style: normal;
text-decoration: underline; text-decoration: underline;
} }
.archive__item-excerpt .ais-Highlight { .archive__item-excerpt .ais-Highlight {
color: $link-color; color: $primary-color;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: bold;
} }

View file

@ -40,3 +40,7 @@ $base0f: #cc6633 !default;
.page__footer-follow .social-icons .svg-inline--fa { .page__footer-follow .social-icons .svg-inline--fa {
color: inherit; color: inherit;
} }
.ais-search-box .ais-search-box--input {
background-color: $form-background-color;
}

View file

@ -51,3 +51,7 @@ $base0f: #cc6633 !default;
color: $text-color; color: $text-color;
} }
} }
.ais-search-box .ais-search-box--input {
background-color: $form-background-color;
}

View file

@ -58,3 +58,7 @@ $base0f: #cc6633 !default;
color: $text-color; color: $text-color;
} }
} }
.ais-search-box .ais-search-box--input {
background-color: $form-background-color;
}

View file

@ -4,7 +4,7 @@ permalink: /docs/history/
excerpt: "Change log of enhancements and bug fixes made to the theme." excerpt: "Change log of enhancements and bug fixes made to the theme."
sidebar: sidebar:
nav: docs nav: docs
last_modified_at: 2018-10-09T14:49:28-04:00 last_modified_at: 2018-10-22T13:55:29-04:00
toc: true toc: true
--- ---
@ -12,6 +12,7 @@ toc: true
### Enhancements ### Enhancements
- Fix Algolia search link positioning. [#1904](https://github.com/mmistakes/minimal-mistakes/pull/1904)
- Update Lunr to `2.3.3`. [#1885](https://github.com/mmistakes/minimal-mistakes/pull/1885) - Update Lunr to `2.3.3`. [#1885](https://github.com/mmistakes/minimal-mistakes/pull/1885)
- Cache "static" includes to improve build performance. **Note:** The theme uses the [jekyll-include-cache](https://github.com/benbalter/jekyll-include-cache) plugin which will need to be installed in your `Gemfile` and added to the `plugins` array of `_config.yml`. Otherwise you'll throw `Unknown tag 'include_cached'` errors at build. [#1874] - Cache "static" includes to improve build performance. **Note:** The theme uses the [jekyll-include-cache](https://github.com/benbalter/jekyll-include-cache) plugin which will need to be installed in your `Gemfile` and added to the `plugins` array of `_config.yml`. Otherwise you'll throw `Unknown tag 'include_cached'` errors at build. [#1874]
- Make entire feature and archive items "clickable". [#1864](https://github.com/mmistakes/minimal-mistakes/pull/1864) - Make entire feature and archive items "clickable". [#1864](https://github.com/mmistakes/minimal-mistakes/pull/1864)

View file

@ -8,7 +8,7 @@ tags:
- update - update
--- ---
You'll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. You'll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in [many different ways](https://jekyllrb.com/docs/usage/), but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.