Skip to content

Commit

Permalink
fix(ux): responsive ui display (#8132)
Browse files Browse the repository at this point in the history
* fix: responsive operation

* fix: responsive tag display

* fix: responsive content type selector

* fix: input display

* fix: width of server selector
  • Loading branch information
yzhe819 committed Aug 1, 2022
1 parent a9ae910 commit c36f240
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/style/_authorize.scss
Expand Up @@ -21,6 +21,7 @@
.authorize
{
padding-right: 20px;
margin-left: 10px;
margin-right: 10px;
}
}
Expand Down Expand Up @@ -68,7 +69,7 @@
background-color: #ffeeee;

color: red;

margin: 1em;

@include text_code();
Expand Down
5 changes: 5 additions & 0 deletions src/style/_form.scss
Expand Up @@ -34,6 +34,11 @@ select
{
min-width: 180px;
}
@media (max-width: 640px)
{
width: 100%;
min-width: 100%;
}
}

label
Expand Down
20 changes: 20 additions & 0 deletions src/style/_layout.scss
Expand Up @@ -106,6 +106,18 @@
flex: 1 1 150px;
font-weight: 400;
}

@media (max-width: 640px) {
small
{
flex: 1;
}

>div
{
flex: 1;
}
}
}

.parameter__type
Expand Down Expand Up @@ -328,6 +340,14 @@
max-width: calc(100% - 110px - 15rem);
}

@media (max-width: 640px) {
.opblock-summary-path
{
flex-shrink: 1;
max-width: 100%;
}
}

.opblock-summary-path__deprecated
{
text-decoration: line-through;
Expand Down
1 change: 1 addition & 0 deletions src/style/_servers.scss
Expand Up @@ -12,6 +12,7 @@
{
min-width: 130px;
max-width: 100%;
width: 100%;
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/style/_table.scss
Expand Up @@ -39,9 +39,9 @@ table
@include text_code();
}

.header-example
.header-example
{
color: #999;
color: #999;
font-style: italic;
}
}
Expand Down Expand Up @@ -91,7 +91,7 @@ table
{
width: 99%; // forces other columns to shrink to their content widths
margin-bottom: 2em;
input[type=text]
input
{
width: 100%;
max-width: 340px;
Expand Down

0 comments on commit c36f240

Please sign in to comment.