Skip to content

Commit 353fd00

Browse files
authored
Merge pull request #3746 from racedale/master
Support for mobile view on Swagger UI
2 parents 3387d47 + bc67660 commit 353fd00

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

dev-helpers/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<html lang="en">
44
<head>
55
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
67
<title>Swagger UI</title>
78
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
89
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >

src/style/_form.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ select
3030
.opblock-body select
3131
{
3232
min-width: 230px;
33+
@media (max-width: 768px)
34+
{
35+
min-width: 180px;
36+
}
3337
}
3438

3539
label
@@ -56,6 +60,10 @@ input[type=file]
5660
border: 1px solid #d9d9d9;
5761
border-radius: 4px;
5862
background: #fff;
63+
@media (max-width: 768px) {
64+
max-width: 175px;
65+
}
66+
5967

6068
&.invalid
6169
{

src/style/_layout.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@
250250
.opblock-summary-path__deprecated
251251
{
252252
font-size: 16px;
253+
@media (max-width: 768px) {
254+
font-size: 12px;
255+
}
256+
253257

254258
display: flex;
255259
flex: 0 3 auto;

src/style/_topbar.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.topbar
22
{
3-
padding: 8px 30px;
3+
padding: 8px 0;
44

55
background-color: #89bf04;
66
.topbar-wrapper
@@ -39,7 +39,6 @@
3939
input[type=text]
4040
{
4141
width: 100%;
42-
min-width: 350px;
4342
margin: 0;
4443

4544
border: 2px solid #547f00;
@@ -84,7 +83,7 @@
8483
font-size: 16px;
8584
font-weight: bold;
8685

87-
padding: 4px 40px;
86+
padding: 4px 30px;
8887

8988
border: none;
9089
border-radius: 0 4px 4px 0;

0 commit comments

Comments
 (0)