minimal update to styling
This commit is contained in:
1
dist/index.html
vendored
1
dist/index.html
vendored
@@ -71,6 +71,7 @@
|
|||||||
<script src="./swagger-ui-standalone-preset.js"> </script>
|
<script src="./swagger-ui-standalone-preset.js"> </script>
|
||||||
<script>
|
<script>
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
|
|
||||||
// Build a system
|
// Build a system
|
||||||
const ui = SwaggerUIBundle({
|
const ui = SwaggerUIBundle({
|
||||||
url: "http://petstore.swagger.io/v2/swagger.json",
|
url: "http://petstore.swagger.io/v2/swagger.json",
|
||||||
|
|||||||
@@ -83,7 +83,13 @@ export default class Topbar extends React.Component {
|
|||||||
rows.push(<option key={i} value={link.url} selected={i===this.state.selectedIndex}>{link.name}</option>)
|
rows.push(<option key={i} value={link.url} selected={i===this.state.selectedIndex}>{link.name}</option>)
|
||||||
})
|
})
|
||||||
|
|
||||||
control.push(<select disabled={isLoading} onChange={ this.onUrlSelect }>{rows}</select>)
|
control.push(
|
||||||
|
<label className="select-label" htmlFor="select"><span>Select a URL</span>
|
||||||
|
<select id="select" disabled={isLoading} onChange={ this.onUrlSelect }>
|
||||||
|
{rows}
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
formOnSubmit = this.downloadUrl
|
formOnSubmit = this.downloadUrl
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
.swagger-ui {
|
.swagger-ui {
|
||||||
|
|
||||||
.topbar {
|
.topbar {
|
||||||
background-color: #89bf04;
|
background-color: #89bf04;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar-wrapper {
|
.topbar-wrapper {
|
||||||
padding: 0.7em
|
padding: 0.7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar-logo__img {
|
.topbar-logo__img {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
.topbar-wrapper
|
.topbar-wrapper
|
||||||
{
|
{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
a
|
a
|
||||||
@@ -15,13 +14,13 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
flex: 1;
|
|
||||||
align-items: center;
|
|
||||||
@include text_headline(#fff);
|
@include text_headline(#fff);
|
||||||
|
|
||||||
span
|
span
|
||||||
@@ -48,15 +47,35 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
select
|
.select-label
|
||||||
{
|
{
|
||||||
min-width: 200px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
border: 2px solid #547f00;
|
width: 100%;
|
||||||
outline: none;
|
max-width: 600px;
|
||||||
box-shadow: none;
|
span
|
||||||
|
{
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
padding: 0 10px 0 0;
|
||||||
|
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
select
|
||||||
|
{
|
||||||
|
flex: 2;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
border: 2px solid #547f00;
|
||||||
|
outline: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.download-url-button
|
.download-url-button
|
||||||
{
|
{
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
Reference in New Issue
Block a user