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 /web_src/less/standalone | |
parent | 65444c5ea3b8ee417f0e1194e6e46740256f8cbb (diff) | |
download | gitea-e25d4867be295218eb9268f8a6416b7d9247ef75.tar.gz gitea-e25d4867be295218eb9268f8a6416b7d9247ef75.zip |
Extract Swagger CSS to its own file (#12616)
Diffstat (limited to 'web_src/less/standalone')
-rw-r--r-- | web_src/less/standalone/swagger.less | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/web_src/less/standalone/swagger.less b/web_src/less/standalone/swagger.less new file mode 100644 index 0000000000..c34469bede --- /dev/null +++ b/web_src/less/standalone/swagger.less @@ -0,0 +1,31 @@ +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; +} |