Skip to content

Commit c839fda

Browse files
committed
Use class for OpenAPI property links
1 parent a6ba35d commit c839fda

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

site/themes/arangodb-docs-theme/layouts/_default/_markup/render-codeblock-openapi.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
{{- $statusDescription := index $statusMap $status }}
170170
{{- if not $statusDescription }}{{ errorf "OpenAPI: %v missing in HTTP status code mapping" $status }}{{ end }}
171171
<span class="openapi-property-type bold-text">{{ $statusDescription }}</span>
172-
<a href="{{ printf "#%s" $statusId }}"><i class="fa fa-link" style="font-size: 12px;"></i></a>
172+
<a class="openapi-property-link" href="{{ printf "#%s" $statusId }}"><i class="fa fa-link"></i></a>
173173
</summary>
174174
{{- $description := $content.description | $page.RenderString }}
175175
<div class="openapi-prop-content">
@@ -226,7 +226,7 @@
226226
<span class="bold-text">{{ $value.schema.type }}</span>
227227
{{- if isset $value.schema "default" }} (default: <code>{{ $value.schema.default | jsonify }}</code>){{ end }}
228228
</span>
229-
<a href="{{ printf "#%s" $anchor }}"><i class="fa fa-link" style="font-size: 12px;"></i></a>
229+
<a class="openapi-property-link" href="{{ printf "#%s" $anchor }}"><i class="fa fa-link"></i></a>
230230
</summary>
231231
{{- $description := $value.description | $page.RenderString }}
232232
<div class="openapi-prop-content">
@@ -266,7 +266,7 @@
266266
<span class="bold-text">{{ $type }}</span>
267267
{{- if isset $value "default" }} (default: <code>{{ $value.default | jsonify }}</code>){{ end }}
268268
</span>
269-
<a href="#{{ $anchor }}"><i class="fa fa-link" style="font-size: 12px;"></i></a>
269+
<a class="openapi-property-link" href="#{{ $anchor }}"><i class="fa fa-link"></i></a>
270270
</summary>
271271
{{- $description := $value.description | $page.RenderString }}
272272
<div class="openapi-prop-content">

site/themes/arangodb-docs-theme/static/css/theme.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,10 +1271,13 @@ h3:hover .header-link,
12711271
h4:hover .header-link,
12721272
h5:hover .header-link,
12731273
h6:hover .header-link {
1274-
filter: alpha(opacity=70);
1275-
opacity: 0.7;
1274+
filter: alpha(opacity=70);
1275+
opacity: 0.7;
12761276
}
12771277

1278+
.openapi-property-link {
1279+
font-size: 12px;
1280+
}
12781281

12791282
/* Codeblocks */
12801283
pre {

0 commit comments

Comments
 (0)