Skip to content

Commit

Permalink
Merge pull request #3746 from racedale/master
Browse files Browse the repository at this point in the history
Support for mobile view on Swagger UI
  • Loading branch information
shockey authored Oct 21, 2017
2 parents 3387d47 + bc67660 commit 353fd00
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions dev-helpers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
Expand Down
8 changes: 8 additions & 0 deletions src/style/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ select
.opblock-body select
{
min-width: 230px;
@media (max-width: 768px)
{
min-width: 180px;
}
}

label
Expand All @@ -56,6 +60,10 @@ input[type=file]
border: 1px solid #d9d9d9;
border-radius: 4px;
background: #fff;
@media (max-width: 768px) {
max-width: 175px;
}


&.invalid
{
Expand Down
4 changes: 4 additions & 0 deletions src/style/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@
.opblock-summary-path__deprecated
{
font-size: 16px;
@media (max-width: 768px) {
font-size: 12px;
}


display: flex;
flex: 0 3 auto;
Expand Down
5 changes: 2 additions & 3 deletions src/style/_topbar.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.topbar
{
padding: 8px 30px;
padding: 8px 0;

background-color: #89bf04;
.topbar-wrapper
Expand Down Expand Up @@ -39,7 +39,6 @@
input[type=text]
{
width: 100%;
min-width: 350px;
margin: 0;

border: 2px solid #547f00;
Expand Down Expand Up @@ -84,7 +83,7 @@
font-size: 16px;
font-weight: bold;

padding: 4px 40px;
padding: 4px 30px;

border: none;
border-radius: 0 4px 4px 0;
Expand Down

0 comments on commit 353fd00

Please sign in to comment.