@createiq/swagger-ui-scss 5.32.0 → 5.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@createiq/swagger-ui-scss",
3
- "version": "5.32.0",
3
+ "version": "5.32.2",
4
4
  "main": "./style/main.scss",
5
5
  "homepage": "https://github.com/swagger-api/swagger-ui",
6
6
  "repository": {
package/style/_form.scss CHANGED
@@ -33,10 +33,10 @@ select {
33
33
 
34
34
  .opblock-body select {
35
35
  min-width: 230px;
36
- @media (max-width: 768px) {
36
+ @container swagger-ui (max-width: 768px) {
37
37
  min-width: 180px;
38
38
  }
39
- @media (max-width: 640px) {
39
+ @container swagger-ui (max-width: 640px) {
40
40
  width: 100%;
41
41
  min-width: 100%;
42
42
  }
@@ -58,7 +58,7 @@ input[type="email"],
58
58
  input[type="file"] {
59
59
  line-height: 1;
60
60
 
61
- @media (max-width: 768px) {
61
+ @container swagger-ui (max-width: 768px) {
62
62
  max-width: 175px;
63
63
  }
64
64
  }
@@ -78,7 +78,7 @@
78
78
  font-weight: 400;
79
79
  }
80
80
 
81
- @media (max-width: 640px) {
81
+ @container swagger-ui (max-width: 640px) {
82
82
  small {
83
83
  flex: 1;
84
84
  }
@@ -262,7 +262,7 @@
262
262
 
263
263
  @include type.text_headline($opblock-summary-method-font-color);
264
264
 
265
- @media (max-width: 768px) {
265
+ @container swagger-ui (max-width: 768px) {
266
266
  font-size: 12px;
267
267
  }
268
268
  }
@@ -279,7 +279,7 @@
279
279
 
280
280
  @include type.text_code();
281
281
 
282
- @media (max-width: 768px) {
282
+ @container swagger-ui (max-width: 768px) {
283
283
  font-size: 12px;
284
284
  }
285
285
  }
@@ -288,7 +288,7 @@
288
288
  flex-shrink: 1;
289
289
  }
290
290
 
291
- @media (max-width: 640px) {
291
+ @container swagger-ui (max-width: 640px) {
292
292
  .opblock-summary-path {
293
293
  max-width: 100%;
294
294
  }
@@ -322,7 +322,7 @@
322
322
  flex-grow: 1;
323
323
  }
324
324
 
325
- @media (max-width: 550px) {
325
+ @container swagger-ui (max-width: 550px) {
326
326
  .opblock-summary-path-description-wrapper {
327
327
  flex-direction: column;
328
328
  align-items: flex-start;
@@ -112,22 +112,22 @@ $browser-context: 16;
112
112
  }
113
113
 
114
114
  @mixin maxHeight($height) {
115
- @media (max-height: $height) {
115
+ @container swagger-ui (max-height: $height) {
116
116
  @content;
117
117
  }
118
118
  }
119
119
 
120
120
  @mixin breakpoint($class) {
121
121
  @if $class == tablet {
122
- @media (min-width: 768px) and (max-width: 1024px) {
122
+ @container swagger-ui (min-width: 768px) and (max-width: 1024px) {
123
123
  @content;
124
124
  }
125
125
  } @else if $class == mobile {
126
- @media (min-width: 320px) and (max-width: 736px) {
126
+ @container swagger-ui (min-width: 320px) and (max-width: 736px) {
127
127
  @content;
128
128
  }
129
129
  } @else if $class == desktop {
130
- @media (min-width: 1400px) {
130
+ @container swagger-ui (min-width: 1400px) {
131
131
  @content;
132
132
  }
133
133
  } @else {
@@ -11,7 +11,7 @@
11
11
  flex-wrap: wrap;
12
12
  gap: 10px;
13
13
  }
14
- @media (max-width: 550px) {
14
+ @container swagger-ui (max-width: 550px) {
15
15
  .topbar-wrapper {
16
16
  flex-direction: column;
17
17
  align-items: start;
@@ -97,7 +97,7 @@
97
97
  @include type.text_headline($topbar-download-url-button-font-color);
98
98
  }
99
99
  }
100
- @media (max-width: 550px) {
100
+ @container swagger-ui (max-width: 550px) {
101
101
  .download-url-wrapper {
102
102
  width: 100%;
103
103
  }
package/style/main.scss CHANGED
@@ -2,6 +2,9 @@
2
2
  @use "type";
3
3
 
4
4
  .swagger-ui {
5
+ container-name: swagger-ui;
6
+ container-type: inline-size;
7
+
5
8
  @include type.text_body();
6
9
  @include meta.load-css("~tachyons-sass/tachyons.scss");
7
10
  @include meta.load-css("mixins");