Skip to content

Commit e19b5d1

Browse files
authored
Merge pull request #990 from InnerSourceCommons/add-search
add search
2 parents 7982673 + 7eaff44 commit e19b5d1

22 files changed

Lines changed: 270 additions & 46 deletions

assets/scss/_custom.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// This file is empty within the template
22
// You can use it to override CSS from within your project
33
a, .content a {
4-
color: #0aa8a7;
4+
color: #00A0A0;
55
border-bottom: 1px dotted #ececec;
66
}
77

88
a:hover, .content a:hover {
9-
color: #0aa8a7;
9+
color: #00A0A0;
1010
border-bottom: 1px solid #ececec;
1111
}
1212

@@ -277,7 +277,7 @@ button.svelte-la9dd4 {
277277
position: relative;
278278
z-index: 1;
279279
transition: .2s ease;
280-
background-color: #0aa8a7;
280+
background-color: #00A0A0;
281281
color: #fff;
282282
box-shadow: none;
283283
height: inherit;
@@ -325,7 +325,7 @@ button.svelte-la9dd4:disabled {
325325
}
326326

327327
.cite-icons i:hover {
328-
color: #0aa8a7;
328+
color: #00A0A0;
329329
}
330330

331331
.cite-text {
@@ -551,14 +551,14 @@ button.svelte-la9dd4:disabled {
551551

552552
&:focus {
553553
outline: none;
554-
border-color: #0aa8a7;
554+
border-color: #00A0A0;
555555
}
556556
}
557557

558558
button {
559559
white-space: nowrap;
560560
background: none;
561-
color: #0aa8a7;
561+
color: #00A0A0;
562562
border: none;
563563
padding: 6px 0;
564564
font-size: 14px;
@@ -582,7 +582,7 @@ button.svelte-la9dd4:disabled {
582582
.btn-link {
583583
display: inline-flex;
584584
align-items: center;
585-
color: #0aa8a7;
585+
color: #00A0A0;
586586
font-size: 14px;
587587
font-weight: 500;
588588
text-decoration: none;
@@ -596,7 +596,7 @@ button.svelte-la9dd4:disabled {
596596
}
597597

598598
&:hover {
599-
color: darken(#0aa8a7, 10%);
599+
color: darken(#00A0A0, 10%);
600600
text-decoration: none;
601601

602602
i {
@@ -690,7 +690,7 @@ body.has-notice {
690690
}
691691

692692
.btn-link {
693-
color: darken(#0aa8a7, 10%);
693+
color: darken(#00A0A0, 10%);
694694

695695
i {
696696
transform: translateX(3px);
@@ -871,7 +871,7 @@ body.has-notice {
871871
z-index: 1;
872872

873873
&:hover {
874-
color: #0aa8a7;
874+
color: #00A0A0;
875875
}
876876
}
877877

assets/scss/_search.scss

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.search-container {
2+
position: relative;
3+
padding: 10px 15px;
4+
}
5+
6+
#search-input {
7+
width: 100px;
8+
padding: 8px 12px;
9+
border: 1px solid #ddd;
10+
border-radius: 4px;
11+
font-size: 14px;
12+
}
13+
14+
.search-results {
15+
display: none;
16+
position: absolute;
17+
top: 100%;
18+
left: 15px;
19+
right: -200px;
20+
min-width: 300px;
21+
background: white;
22+
border: 1px solid #ddd;
23+
border-radius: 4px;
24+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
25+
max-height: 400px;
26+
overflow-y: auto;
27+
z-index: 1000;
28+
29+
.search-result-item {
30+
display: block;
31+
padding: 10px;
32+
text-decoration: none;
33+
color: inherit;
34+
border-bottom: 1px solid #eee;
35+
36+
&:hover {
37+
background: #f5f5f5;
38+
}
39+
40+
.search-result-title {
41+
font-weight: bold;
42+
margin-bottom: 5px;
43+
}
44+
45+
.search-result-summary {
46+
font-size: 0.9em;
47+
color: #666;
48+
}
49+
}
50+
51+
.no-results {
52+
padding: 10px;
53+
text-align: center;
54+
color: #666;
55+
}
56+
}

assets/scss/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Color Variables
2-
$primary-color: #0AA8A7;
2+
$primary-color: #00A0A0;
33
$text-color: #777;
44
$text-color-dark: #222;
55
$body-color: #fff;

assets/scss/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ VERSION: Versoin Number
2323

2424
@import 'templates/main.scss';
2525

26-
@import 'custom';
26+
@import 'custom';
27+
28+
@import 'search';

config/_default/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ frontmatter:
2121
date:
2222
- report_publish_date
2323
- :default
24+
outputs:
25+
home: ["HTML", "RSS", "JSON"]

config/_default/menus.de.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ main:
145145
weight: 11
146146

147147
# News
148-
- name: Blog & News
148+
- name: News
149149
URL: about/announcements
150150
weight: 5
151151
identifier: news

config/_default/menus.en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ main:
145145
weight: 11
146146

147147
# News
148-
- name: Blog & News
148+
- name: News
149149
URL: about/announcements
150150
weight: 5
151151
identifier: news

config/_default/menus.es.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ main:
145145
weight: 11
146146

147147
# News
148-
- name: Blog & News
148+
- name: News
149149
URL: about/announcements
150150
weight: 5
151151
identifier: news

config/_default/menus.fr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ main:
145145
weight: 11
146146

147147
# News
148-
- name: Blog & News
148+
- name: News
149149
URL: about/announcements
150150
weight: 5
151151
identifier: news

config/_default/menus.it.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ main:
145145
weight: 11
146146

147147
# News
148-
- name: Blog & News
148+
- name: News
149149
URL: about/announcements
150150
weight: 5
151151
identifier: news

0 commit comments

Comments
 (0)