mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
feat: Scalar API Reference (#3485)
Co-authored-by: anthony lio <lionnet.ant@gmail.com> Co-authored-by: Deborah Barnard <deborah@deborahwrites.com>
This commit is contained in:
@@ -1,30 +1,39 @@
|
||||
{% extends "main.html" %}
|
||||
|
||||
{% block extrahead %}
|
||||
{% block extrahead %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
|
||||
<!--
|
||||
Redoc doesn't change outer page styles
|
||||
-->
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.md-content__button {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 50px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.md-typeset svg {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.md-main__inner {
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.md-grid {
|
||||
max-width: 100%;
|
||||
.md-typeset .grid {
|
||||
grid-gap: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.md-content__inner {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.md-content__inner > p {
|
||||
@@ -39,14 +48,45 @@ Redoc doesn't change outer page styles
|
||||
margin-bottom: invalid;
|
||||
}
|
||||
|
||||
[dir=ltr] .md-typeset ol li, [dir=ltr] .md-typeset ul li {
|
||||
margin-left: 0;
|
||||
[dir=ltr] .md-typeset ol li, [dir=ltr] .md-typeset ul li,
|
||||
[dir=ltr] .md-typeset ol, [dir=ltr] .md-typeset ul,
|
||||
[dir=ltr] .md-typeset ul li ul {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
[dir=ltr] .md-typeset ol, [dir=ltr] .md-typeset ul {
|
||||
margin-left: 0;
|
||||
}
|
||||
/* API Reference styles */
|
||||
.scalar-api-reference {
|
||||
--scalar-custom-header-height: 48px;
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
table,
|
||||
li,
|
||||
kbd {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
.sidebar-search {
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.section-container {
|
||||
padding-right: 4px !important;
|
||||
}
|
||||
|
||||
.section-container:has(.show-more) {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.scalar-code-block {
|
||||
padding: 10px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
{% endblock %}
|
||||
@@ -99,4 +139,4 @@ Redoc doesn't change outer page styles
|
||||
) %}
|
||||
{% include "partials/source-file.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user