Skip to content

Commit f696a22

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

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

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

+6-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;

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

-20
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>
@@ -38,18 +30,6 @@ <h3>The Things Stack HTTP (REST) API Reference</h3>
3830
<span><h4 class="api-tag-header" id="{{ $tag }}">{{ $tag }}</h4></span>
3931
<div class="api-tag-summary">
4032
<p>{{ $tagDetails.description }}</p>
41-
{{- $downArrow := resources.Get "/img/expand_more.svg" }} {{- $upArrow :=
42-
resources.Get "/img/expand_less.svg" }}
43-
<img
44-
class="api-tag-summary-icon-expand"
45-
src="{{ $downArrow.Permalink }}"
46-
alt="Expand"
47-
/>
48-
<img
49-
class="api-tag-summary-icon-collapse"
50-
src="{{ $upArrow.Permalink }}"
51-
alt="Collapse"
52-
/>
5333
</div>
5434
<div class="api-items">
5535
{{ range $path, $pathMethods := $openapi.paths }} {{ range $pathMethod,

0 commit comments

Comments
 (0)