Skip to content

Commit d839ff1

Browse files
authored
Merge pull request #21817 from shuuji3/narrow-spaces-between-lines
Narrow the space between lines in buttons in docs/home
2 parents 29eaf74 + b2f7323 commit d839ff1

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

assets/scss/_base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ footer {
6565
.button {
6666
display: inline-block;
6767
border-radius: 6px;
68-
padding: 0 20px;
69-
line-height: 40px;
68+
padding: 6px 20px;
69+
line-height: 1.3rem;
7070
color: white;
7171
background-color: $blue;
7272
text-decoration: none;

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ <h2 id="{{ replace .title " " "-" | lower }}">{{ .title }}</h2>
1919
{{ end }}
2020
{{ end }}
2121
</ul>
22-
<br>
23-
<button id="btn-concepts" class="button" onClick="location.href='{{ .button_path | relLangURL }}';" aria-label="{{ .title }}">{{ .button }}</button>
24-
<br>
25-
<br>
22+
{{ if .button }}
23+
<br>
24+
<button id="btn-concepts" class="button" onClick="location.href='{{ .button_path | relLangURL }}';" aria-label="{{ .title }}">{{ .button }}</button>
25+
<br>
26+
<br>
27+
{{ end }}
2628
</div>
2729
{{ end }}

0 commit comments

Comments
 (0)