mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 10:03:45 +03:00
Add github star button
This commit is contained in:
parent
4f2e1a29e6
commit
44acba7c72
|
@ -12,6 +12,8 @@
|
|||
<input id="schema-url-input" value='http://rebilly.github.io/SwaggerTemplateRepo/swagger.yaml'>
|
||||
<button type="submit"> Explore </button>
|
||||
</form>
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=Rebilly&repo=ReDoc&type=star&count=true&size=large"
|
||||
frameborder="0" scrolling="0" width="130px" height="30px"></iframe>
|
||||
</nav>
|
||||
|
||||
<redoc scroll-y-offset="body > nav" spec-url='http://rebilly.github.io:80/SwaggerTemplateRepo/swagger.yaml'></redoc>
|
||||
|
|
|
@ -105,6 +105,13 @@ nav {
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
nav iframe {
|
||||
margin: 10px 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 1000px) {
|
||||
nav header {
|
||||
position: absolute;
|
||||
|
@ -118,4 +125,8 @@ nav {
|
|||
nav header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav iframe {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user