Skip to content

Commit 980cd7e

Browse files
committed
GC Search: Relocation of specific results section styles
1 parent 734e3f6 commit 980cd7e

File tree

9 files changed

+40
-46
lines changed

9 files changed

+40
-46
lines changed

templates/search/_search.scss

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,6 @@
1414
h2 {
1515
font-size: 1.5rem;
1616
}
17-
}
18-
19-
.results > section {
20-
border-bottom: solid 1px #000;
21-
margin-bottom: 1.5em;
22-
padding-bottom: 1.5em;
23-
24-
.context-labels {
25-
font-size: 1rem;
26-
list-style: none;
27-
padding-left: 0;
28-
29-
li {
30-
background-color: #5e738b;
31-
color:#fff;
32-
display: inline-block;
33-
font-weight: $bold-weight;
34-
margin-bottom: 1px;
35-
padding: 0 5px;
36-
}
37-
}
3817

3918
h3 {
4019
font-size: 1.375rem;
@@ -67,4 +46,25 @@
6746
}
6847
}
6948
}
49+
50+
.results > section {
51+
border-bottom: solid 1px #000;
52+
margin-bottom: 1.5em;
53+
padding-bottom: 1.5em;
54+
55+
.context-labels {
56+
font-size: 1rem;
57+
list-style: none;
58+
padding-left: 0;
59+
60+
li {
61+
background-color: #5e738b;
62+
color:#fff;
63+
display: inline-block;
64+
font-weight: $bold-weight;
65+
margin-bottom: 1px;
66+
padding: 0 5px;
67+
}
68+
}
69+
}
7070
}

templates/search/api-en.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"language": "en",
55
"secondlevel": false,
66
"altLangPage": "api-fr.html",
7-
"dateModified": "2025-11-25",
7+
"dateModified": "2026-01-23",
88
"share": "true"
99
}
1010
---
@@ -70,6 +70,7 @@ <h2>Usability Research</h2>
7070

7171
<h2>Version history</h2>
7272
<ul>
73+
<li><time>2026-01-23</time> Version 3.3 - In the search css file, moved h3 and various location elements from results section to #wb-land</li>
7374
<li><time>2025-11-25</time> Version 3.2 - Adjusted font sizes for h2, and ol and p elements in a list, and removed margin-top from "cite a"</li>
7475
<li><time>2025-07-28</time> Version 3.1 - Alignement of Search UI with GCWeb:</li>
7576
<ul>

templates/search/api-fr.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"language": "fr",
55
"secondlevel": false,
66
"altLangPage": "api-en.html",
7-
"dateModified": "2025-11-25",
7+
"dateModified": "2026-01-23",
88
"share": "true"
99
}
1010
---
@@ -73,6 +73,7 @@ <h2>Usability Research</h2>
7373

7474
<h2>Version history</h2>
7575
<ul>
76+
<li><time>2026-01-23</time> Version 3.3 - In the search css file, moved h3 and various location elements from results section to #wb-land</li>
7677
<li><time>2025-11-25</time> Version 3.2 - Adjusted font sizes for h2, and ol and p elements in a list, and removed margin-top from "cite a"</li>
7778
<li><time>2025-07-28</time> Version 3.1 - Alignement of Search UI with GCWeb:</li>
7879
<ul>

templates/search/results-advanced-en.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"altLangPage": "results-advanced-fr.html",
66
"pageType": "search",
77
"pageclass": "page-type-search",
8-
"dateModified": "2025-12-02",
8+
"dateModified": "2026-02-05",
99
"share": "false",
1010
"nositesearch": true
1111
}
@@ -60,8 +60,7 @@
6060
</div>
6161

6262
<section class="results" id="wb-land">
63-
<h2 class="wb-inv">Search results</h2>
64-
<p class="h4">[number] search results for "[search term]"</p>
63+
<h2>[number] search results for "[search term]"</h2>
6564

6665
<section>
6766
<h3><a href="#">[Search result page title]</a></h3>

templates/search/results-advanced-fr.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"altLangPage": "results-advanced-en.html",
66
"pageType": "recherche",
77
"pageclass": "page-type-search",
8-
"dateModified": "2025-12-02",
8+
"dateModified": "2026-02-05",
99
"share": "false",
1010
"nositesearch": true
1111
}
@@ -61,8 +61,7 @@
6161
</div>
6262

6363
<section class="results" id="wb-land">
64-
<h2 class="wb-inv">Résultats de recherche</h2>
65-
<p class="h4">[nombre de] résultats de recherché pour "[le terme recherché]"</p>
64+
<h2>[nombre de] résultats de recherché pour "[le terme recherché]"</h2>
6665
<section>
6766
<h3><a href="#">[Titre du résultat de recherche]</a></h3>
6867
<ol class="location">

templates/search/results-en.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"altLangPage": "results-fr.html",
66
"pageType": "search",
77
"pageclass": "page-type-search",
8-
"dateModified": "2025-12-02",
8+
"dateModified": "2026-02-05",
99
"share": "false",
1010
"nositesearch": true
1111
}
1212
---
1313
<search>
14-
<form id="gc-searchbox" class="mrgn-tp-sm">
14+
<form>
1515
<label class="wb-inv" for="sch-inp">Search Government of Canada websites</label>
1616
<div class="input-group mrgn-tp-lg">
1717
<input spellcheck="false" autocomplete="off" id="sch-inp" class="form-control" type="search" data-fusion-query name="q" aria-describedby="gc-pi">
@@ -24,9 +24,7 @@
2424
</search>
2525

2626
<section id="wb-land">
27-
<div>
28-
<h2>[number] search results for "[search term]"</h2>
29-
</div>
27+
<h2>[number] search results for "[search term]"</h2>
3028

3129
<div class="results">
3230
<section>

templates/search/results-filters-en.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"altLangPage": "results-filters-fr.html",
66
"pageType": "search",
77
"pageclass": "page-type-search",
8-
"dateModified": "2025-12-02",
8+
"dateModified": "2026-02-05",
99
"share": "false"
1010
}
1111
---
@@ -44,8 +44,7 @@ <h2 class="wb-inv">Filters</h2>
4444
</div>
4545
<div class="col-md-8">
4646
<section class="results" id="wb-land">
47-
<h2 class="wb-inv">Search results</h2>
48-
<p class="h4">[number] search results for "[search term]"</p>
47+
<h2>[number] search results for "[search term]"</h2>
4948

5049
<section>
5150
<h3><a href="#">[Search result page title]</a></h3>

templates/search/results-filters-fr.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"altLangPage": "results-filters-en.html",
66
"pageType": "recherche",
77
"pageclass": "page-type-search",
8-
"dateModified": "2025-12-02",
8+
"dateModified": "2026-02-05",
99
"share": "false"
1010
}
1111
---
@@ -44,8 +44,7 @@ <h2 class="wb-inv">Filtres</h2>
4444
</div>
4545
<div class="col-md-8">
4646
<section class="results" id="wb-land">
47-
<h2 class="wb-inv">Résultats de recherche</h2>
48-
<p class="h4">[nombre de] résultats de recherche pour "[le terme recherché]"</p>
47+
<h2>[nombre de] résultats de recherche pour "[le terme recherché]"</h2>
4948

5049
<section>
5150
<h3><a href="#">[Titre du résultat de recherche]</a></h3>

templates/search/results-fr.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"altLangPage": "results-en.html",
66
"pageType": "recherche",
77
"pageclass": "page-type-search",
8-
"dateModified": "2025-12-02",
8+
"dateModified": "2026-02-05",
99
"share": "false",
1010
"nositesearch": true
1111
}
@@ -23,12 +23,10 @@
2323
</form>
2424
</search>
2525

26-
<section>
27-
<div>
28-
<h2>[nombre de] résultats de recherché pour "[le terme recherché]"</h2>
29-
<div>
26+
<section id="wb-land">
27+
<h2>[nombre de] résultats de recherché pour "[le terme recherché]"</h2>
3028

31-
<div class="results" id="wb-land">
29+
<div class="results">
3230
<section>
3331
<h3><a href="#">[Titre du résultat de recherche]</a></h3>
3432
<ol class="location">

0 commit comments

Comments
 (0)