mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-06 07:38:42 +00:00
Keep `swagger` and `external-render-helper` as a standalone entries for external render. - Move `devtest.ts` to `modules/` as init functions - Make external renders correctly load its helper JS and Gitea's current theme - Make external render iframe inherit Gitea's iframe's background color to avoid flicker - Add e2e tests for external render and OpenAPI iframe --------- Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
42 lines
824 B
CSS
42 lines
824 B
CSS
@import "../../node_modules/swagger-ui-dist/swagger-ui.css";
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
html,
|
|
html body,
|
|
html .swagger-ui,
|
|
html .swagger-ui .scheme-container {
|
|
background: var(--gitea-iframe-bgcolor, var(--color-box-body)) !important;
|
|
}
|
|
|
|
/* swagger's bug: the selector was incorrectly written in "thead": "html.dark-mode .swagger-ui .opblock.opblock-get thead tr td" */
|
|
html.dark-mode .swagger-ui table.headers td {
|
|
color: var(--color-text) !important;
|
|
}
|
|
|
|
.swagger-back-link {
|
|
color: var(--color-primary);
|
|
text-decoration: none;
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.swagger-back-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.swagger-back-link svg {
|
|
color: inherit;
|
|
fill: currentcolor;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.swagger-spec-content {
|
|
display: none;
|
|
}
|