Skip to content

Commit 153e4a1

Browse files
committed
doc: Update styling
1 parent 24923f2 commit 153e4a1

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

doc/themes/the-things-stack/assets/css/shortcodes/openapi.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
flex-direction: row;
44
align-items: center;
55
justify-content: space-between;
6+
padding-bottom: 1rem;
7+
}
8+
9+
.api-page-header h3 {
10+
margin-bottom: 0;
611
}
712

813
.collapse-button {
@@ -31,7 +36,7 @@
3136
flex-direction: column;
3237
align-items: stretch;
3338
width: 100%;
34-
margin-bottom: 1rem;
39+
margin-top: 1rem;
3540
border: 1px solid #e5e5e5;
3641
border-radius: 0.25rem;
3742
padding: 0.5rem;
@@ -50,11 +55,13 @@
5055
.api-tag-summary-icon-expand {
5156
display: none;
5257
width: 3%;
58+
z-index: 9999;
5359
}
5460

5561
.api-tag-summary-icon-collapse {
5662
width: 3%;
5763
display: block;
64+
z-index: 9999;
5865
}
5966

6067
.api-items {

doc/themes/the-things-stack/layouts/shortcodes/openapi/openapi.html

-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
<div class="api-page-header">
55
<h3>The Things Stack HTTP (REST) API Reference</h3>
66
<p>Version: <code> {{ $openapi.info.version }} </code></p>
7-
<button
8-
class="collapse-button"
9-
onclick="collapseAll()"
10-
title="Collapse All Services"
11-
>
12-
{{- $upArrow := resources.Get "/img/expand_less.svg" }}
13-
<img src="{{ $upArrow.Permalink }}" alt="Collapse all" />
14-
</button>
157
</div>
168
<div class="api-tags-table">
179
<table>

0 commit comments

Comments
 (0)