diff options
author | silverwind <me@silverwind.io> | 2020-08-26 19:42:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 18:42:46 +0100 |
commit | e25d4867be295218eb9268f8a6416b7d9247ef75 (patch) | |
tree | 7d6a67c586ee3766761dfe852c6f6119b9f13c19 /templates/swagger | |
parent | 65444c5ea3b8ee417f0e1194e6e46740256f8cbb (diff) | |
download | gitea-e25d4867be295218eb9268f8a6416b7d9247ef75.tar.gz gitea-e25d4867be295218eb9268f8a6416b7d9247ef75.zip |
Extract Swagger CSS to its own file (#12616)
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/ui.tmpl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl index eb30578aca..7ad39dd8e0 100644 --- a/templates/swagger/ui.tmpl +++ b/templates/swagger/ui.tmpl @@ -4,33 +4,6 @@ <meta charset="UTF-8"> <title>Gitea API</title> <link href="{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}" rel="stylesheet"> - <style> - html { - box-sizing: border-box; - overflow-y: scroll; - } - *, *:before, *:after { - box-sizing: inherit; - } - body { - margin: 0; - background: #fff; - } - .swagger-back-link { - color: #1f69c0; - text-decoration: none; - position: absolute; - top: 1rem; - right: 1.5rem; - display: flex; - align-items: center; - } - .swagger-back-link svg { - color: inherit; - fill: currentcolor; - margin-right: .5rem; - } - </style> </head> <body> <a class="swagger-back-link" href="{{AppUrl}}">{{svg "octicon-reply" 16}}{{.i18n.Tr "return_to_gitea"}}</a> |