Skip to content

Commit 442920f

Browse files
authored
Fix Algolia search link positioning (mmistakes#1904)
* Add link for testing purposes * Fix excerpt link positioning in Algolia search results * Fix Algolia search input color * Update CHANGELOG and history Fixes mmistakes#1903
1 parent 671c5fe commit 442920f

File tree

8 files changed

+44
-13
lines changed

8 files changed

+44
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Enhancements
44

5+
- Fix Algolia search link positioning. [#1904](https://github.com/mmistakes/minimal-mistakes/pull/1904)
56
- Update Lunr to `2.3.3`. [#1885](https://github.com/mmistakes/minimal-mistakes/pull/1885)
67
- 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)
78
- Make entire feature and archive items "clickable". [#1864](https://github.com/mmistakes/minimal-mistakes/pull/1864)

_sass/minimal-mistakes/_archive.scss

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@
2020

2121
.archive__item {
2222
position: relative;
23-
24-
a::before {
25-
content: '';
26-
position: absolute;
27-
left: 0;
28-
top: 0;
29-
right: 0;
30-
bottom: 0;
31-
}
3223
}
3324

3425
.archive__subtitle {
@@ -50,6 +41,15 @@
5041
overflow: hidden;
5142
text-overflow: ellipsis;
5243

44+
a::before {
45+
content: '';
46+
position: absolute;
47+
left: 0;
48+
top: 0;
49+
right: 0;
50+
bottom: 0;
51+
}
52+
5353
a + a {
5454
opacity: 0.5;
5555
}
@@ -70,6 +70,10 @@
7070
& + p {
7171
text-indent: 0;
7272
}
73+
74+
a {
75+
position: relative;
76+
}
7377
}
7478

7579
.archive__item-teaser {
@@ -281,6 +285,10 @@
281285
clear: both;
282286
font-size: 1.125em;
283287

288+
.archive__item {
289+
float: left;
290+
}
291+
284292
.archive__item-teaser {
285293
margin-bottom: 2em;
286294
}
@@ -318,6 +326,10 @@
318326
clear: both;
319327
font-size: 1.125em;
320328

329+
.archive__item {
330+
float: left;
331+
}
332+
321333
.archive__item-teaser {
322334
margin-bottom: 2em;
323335
}
@@ -357,6 +369,11 @@
357369
clear: both;
358370
font-size: 1.125em;
359371

372+
.archive__item {
373+
float: left;
374+
width: 100%;
375+
}
376+
360377
.archive__item-teaser {
361378
margin-bottom: 2em;
362379
}

_sass/minimal-mistakes/_search.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@
114114
}
115115

116116
.archive__item-title .ais-Highlight {
117-
color: $link-color;
117+
color: $primary-color;
118118
font-style: normal;
119119
text-decoration: underline;
120120
}
121121
.archive__item-excerpt .ais-Highlight {
122-
color: $link-color;
122+
color: $primary-color;
123123
font-style: normal;
124124
font-weight: bold;
125125
}

_sass/minimal-mistakes/skins/_dark.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ $base0f: #cc6633 !default;
4040
.page__footer-follow .social-icons .svg-inline--fa {
4141
color: inherit;
4242
}
43+
44+
.ais-search-box .ais-search-box--input {
45+
background-color: $form-background-color;
46+
}

_sass/minimal-mistakes/skins/_neon.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ $base0f: #cc6633 !default;
5151
color: $text-color;
5252
}
5353
}
54+
55+
.ais-search-box .ais-search-box--input {
56+
background-color: $form-background-color;
57+
}

_sass/minimal-mistakes/skins/_plum.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ $base0f: #cc6633 !default;
5858
color: $text-color;
5959
}
6060
}
61+
62+
.ais-search-box .ais-search-box--input {
63+
background-color: $form-background-color;
64+
}

docs/_docs/18-history.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ permalink: /docs/history/
44
excerpt: "Change log of enhancements and bug fixes made to the theme."
55
sidebar:
66
nav: docs
7-
last_modified_at: 2018-10-09T14:49:28-04:00
7+
last_modified_at: 2018-10-22T13:55:29-04:00
88
toc: true
99
---
1010

1111
## Unreleased
1212

1313
### Enhancements
1414

15+
- Fix Algolia search link positioning. [#1904](https://github.com/mmistakes/minimal-mistakes/pull/1904)
1516
- Update Lunr to `2.3.3`. [#1885](https://github.com/mmistakes/minimal-mistakes/pull/1885)
1617
- 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]
1718
- Make entire feature and archive items "clickable". [#1864](https://github.com/mmistakes/minimal-mistakes/pull/1864)

test/_posts/2016-02-24-welcome-to-jekyll.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags:
88
- update
99
---
1010

11-
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.
11+
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.
1212

1313
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.
1414

0 commit comments

Comments
 (0)