Skip to content

Commit 2c62b6b

Browse files
authored
Merge pull request #47785 from sftim/20240904_tidy_docs_portal_cards
Revise docs landing page (Docsy alignment)
2 parents 6641c03 + 29fc69d commit 2c62b6b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

assets/scss/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ footer {
9494
}
9595

9696
main {
97-
.button {
97+
.button, .portal-button {
9898
display: inline-block;
9999
border-radius: 6px;
100100
padding: 6px 20px;

layouts/partials/docs/docs-portal-card.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ <h2 id="{{ replace .title " " "-" | lower }}">{{ .title }}</h2>
2020
{{ end }}
2121
{{ end }}
2222
</ul>
23-
{{ if .button }}
24-
<br>
25-
<button id="btn-concepts" class="button" onClick="location.href='{{ .button_path | relLangURL }}';" aria-label="{{ .title }}">{{ .button }}</button>
26-
<br>
27-
<br>
28-
{{ end }}
23+
{{- if .button -}}
24+
<button class="portal-button" id="btn-{{ replace .title " " "-" | lower }}" onClick="location.href='{{ .button_path | relLangURL }}';" aria-label="{{ .title }}">{{ .button }}</button>
25+
{{- end -}}
2926
</div>
3027
</div>
3128
{{ end }}

0 commit comments

Comments
 (0)