Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/style/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ select {

.opblock-body select {
min-width: 230px;
@media (max-width: 768px) {
@container swagger-ui (max-width: 768px) {
min-width: 180px;
}
@media (max-width: 640px) {
@container swagger-ui (max-width: 640px) {
width: 100%;
min-width: 100%;
}
Expand All @@ -58,7 +58,7 @@ input[type="email"],
input[type="file"] {
line-height: 1;

@media (max-width: 768px) {
@container swagger-ui (max-width: 768px) {
max-width: 175px;
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/style/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
font-weight: 400;
}

@media (max-width: 640px) {
@container swagger-ui (max-width: 640px) {
small {
flex: 1;
}
Expand Down Expand Up @@ -262,7 +262,7 @@

@include type.text_headline($opblock-summary-method-font-color);

@media (max-width: 768px) {
@container swagger-ui (max-width: 768px) {
font-size: 12px;
}
}
Expand All @@ -279,7 +279,7 @@

@include type.text_code();

@media (max-width: 768px) {
@container swagger-ui (max-width: 768px) {
font-size: 12px;
}
}
Expand All @@ -288,7 +288,7 @@
flex-shrink: 1;
}

@media (max-width: 640px) {
@container swagger-ui (max-width: 640px) {
.opblock-summary-path {
max-width: 100%;
}
Expand Down Expand Up @@ -322,7 +322,7 @@
flex-grow: 1;
}

@media (max-width: 550px) {
@container swagger-ui (max-width: 550px) {
.opblock-summary-path-description-wrapper {
flex-direction: column;
align-items: flex-start;
Expand Down
8 changes: 4 additions & 4 deletions src/style/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,22 @@ $browser-context: 16;
}

@mixin maxHeight($height) {
@media (max-height: $height) {
@container swagger-ui (max-height: $height) {
@content;
}
}

@mixin breakpoint($class) {
@if $class == tablet {
@media (min-width: 768px) and (max-width: 1024px) {
@container swagger-ui (min-width: 768px) and (max-width: 1024px) {
@content;
}
} @else if $class == mobile {
@media (min-width: 320px) and (max-width: 736px) {
@container swagger-ui (min-width: 320px) and (max-width: 736px) {
@content;
}
} @else if $class == desktop {
@media (min-width: 1400px) {
@container swagger-ui (min-width: 1400px) {
@content;
}
} @else {
Expand Down
4 changes: 2 additions & 2 deletions src/style/_topbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
flex-wrap: wrap;
gap: 10px;
}
@media (max-width: 550px) {
@container swagger-ui (max-width: 550px) {
.topbar-wrapper {
flex-direction: column;
align-items: start;
Expand Down Expand Up @@ -97,7 +97,7 @@
@include type.text_headline($topbar-download-url-button-font-color);
}
}
@media (max-width: 550px) {
@container swagger-ui (max-width: 550px) {
.download-url-wrapper {
width: 100%;
}
Expand Down
3 changes: 3 additions & 0 deletions src/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
@use "type";

.swagger-ui {
container-name: swagger-ui;
container-type: inline-size;

@include type.text_body();
@include meta.load-css("~tachyons-sass/tachyons.scss");
@include meta.load-css("mixins");
Expand Down