@createiq/swagger-ui-scss 5.31.2 → 5.32.1
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 +1 -1
- package/style/_dark-mode.scss +135 -57
- package/style/_form.scss +3 -3
- package/style/_layout.scss +9 -5
- package/style/_mixins.scss +4 -4
- package/style/_topbar.scss +4 -4
- package/style/_variables.scss +1 -0
- package/style/main.scss +3 -0
package/package.json
CHANGED
package/style/_dark-mode.scss
CHANGED
|
@@ -1,41 +1,87 @@
|
|
|
1
1
|
@use "sass:list";
|
|
2
2
|
|
|
3
3
|
// Variables for consistent theme
|
|
4
|
-
$neutral-10: #
|
|
5
|
-
$neutral-20: #
|
|
6
|
-
$neutral-30: #
|
|
7
|
-
$neutral-40: #
|
|
8
|
-
$neutral-50: #
|
|
9
|
-
$neutral-60: #
|
|
10
|
-
$neutral-80: #
|
|
11
|
-
$neutral-85: #
|
|
12
|
-
$neutral-95: #
|
|
13
|
-
$neutral-98: #
|
|
14
|
-
$neutral-100: #
|
|
15
|
-
|
|
16
|
-
$success-30: #
|
|
17
|
-
$error-30: #
|
|
18
|
-
|
|
19
|
-
$authorize-button: #
|
|
20
|
-
$link: #
|
|
21
|
-
$markdown-code: #
|
|
22
|
-
$textarea: #
|
|
4
|
+
$neutral-10: #f0f1f1;
|
|
5
|
+
$neutral-20: #e4e6e6;
|
|
6
|
+
$neutral-30: #d2d6d7;
|
|
7
|
+
$neutral-40: #b7bcbf;
|
|
8
|
+
$neutral-50: #8c969a;
|
|
9
|
+
$neutral-60: #6b757a;
|
|
10
|
+
$neutral-80: #545d61;
|
|
11
|
+
$neutral-85: #434b4f;
|
|
12
|
+
$neutral-95: #2a2e30;
|
|
13
|
+
$neutral-98: #1c2022;
|
|
14
|
+
$neutral-100: #080a0b;
|
|
15
|
+
|
|
16
|
+
$success-30: #4ac966;
|
|
17
|
+
$error-30: #ff5f5f;
|
|
18
|
+
|
|
19
|
+
$authorize-button: #3ece90;
|
|
20
|
+
$link: #51a8ff;
|
|
21
|
+
$markdown-code: #b68ae1;
|
|
22
|
+
$textarea: #0d1014;
|
|
23
23
|
$textarea-disabled: #202225;
|
|
24
|
-
$info-version-stamp: #
|
|
25
|
-
$curl-command-button: #
|
|
26
|
-
$curl-command-button-text: #
|
|
27
|
-
$json-schema-2020-12__attribute--primary: #
|
|
28
|
-
$json-schema-2020-12__constraint--string: #
|
|
24
|
+
$info-version-stamp: #1d632e;
|
|
25
|
+
$curl-command-button: #3b424d;
|
|
26
|
+
$curl-command-button-text: #ebebeb;
|
|
27
|
+
$json-schema-2020-12__attribute--primary: #9898ff;
|
|
28
|
+
$json-schema-2020-12__constraint--string: #d4aa53;
|
|
29
29
|
|
|
30
30
|
$opblock_colors: (
|
|
31
|
-
post: (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
post: (
|
|
32
|
+
#112929,
|
|
33
|
+
#104834,
|
|
34
|
+
#14392c,
|
|
35
|
+
#00b572,
|
|
36
|
+
),
|
|
37
|
+
deprecated: (
|
|
38
|
+
#272c34,
|
|
39
|
+
#495361,
|
|
40
|
+
#262e36,
|
|
41
|
+
#6a6a6a,
|
|
42
|
+
),
|
|
43
|
+
put: (
|
|
44
|
+
#27201e,
|
|
45
|
+
#523524,
|
|
46
|
+
#9a5b3e,
|
|
47
|
+
#ff7d35,
|
|
48
|
+
),
|
|
49
|
+
get: (
|
|
50
|
+
#182536,
|
|
51
|
+
#294262,
|
|
52
|
+
#1c3043,
|
|
53
|
+
#55a1ff,
|
|
54
|
+
),
|
|
55
|
+
delete: (
|
|
56
|
+
#241a20,
|
|
57
|
+
#4b2420,
|
|
58
|
+
#2f2020,
|
|
59
|
+
#eb6156,
|
|
60
|
+
),
|
|
61
|
+
patch: (
|
|
62
|
+
#11282f,
|
|
63
|
+
#16494b,
|
|
64
|
+
#113239,
|
|
65
|
+
#03b7bf,
|
|
66
|
+
),
|
|
67
|
+
head: (
|
|
68
|
+
#282231,
|
|
69
|
+
#44336a,
|
|
70
|
+
#352c45,
|
|
71
|
+
#b889ff,
|
|
72
|
+
),
|
|
73
|
+
options: (
|
|
74
|
+
#202c3c,
|
|
75
|
+
#33465e,
|
|
76
|
+
#314558,
|
|
77
|
+
#6895c8,
|
|
78
|
+
),
|
|
79
|
+
query: (
|
|
80
|
+
#2a1a28,
|
|
81
|
+
#4a2848,
|
|
82
|
+
#3a2238,
|
|
83
|
+
#d977c6,
|
|
84
|
+
),
|
|
39
85
|
);
|
|
40
86
|
|
|
41
87
|
html.dark-mode {
|
|
@@ -57,13 +103,16 @@ html.dark-mode {
|
|
|
57
103
|
}
|
|
58
104
|
|
|
59
105
|
table thead tr {
|
|
60
|
-
td,
|
|
106
|
+
td,
|
|
107
|
+
th {
|
|
61
108
|
color: $neutral-20;
|
|
62
109
|
}
|
|
63
110
|
}
|
|
64
111
|
|
|
65
|
-
.markdown,
|
|
66
|
-
|
|
112
|
+
.markdown,
|
|
113
|
+
.renderedMarkdown {
|
|
114
|
+
p,
|
|
115
|
+
pre {
|
|
67
116
|
color: $neutral-20;
|
|
68
117
|
}
|
|
69
118
|
|
|
@@ -109,7 +158,7 @@ html.dark-mode {
|
|
|
109
158
|
right 10px center no-repeat;
|
|
110
159
|
color: $neutral-10;
|
|
111
160
|
border-color: $neutral-40;
|
|
112
|
-
box-shadow: none;
|
|
161
|
+
box-shadow: none;
|
|
113
162
|
outline: none;
|
|
114
163
|
|
|
115
164
|
&[multiple] {
|
|
@@ -121,12 +170,15 @@ html.dark-mode {
|
|
|
121
170
|
}
|
|
122
171
|
}
|
|
123
172
|
|
|
124
|
-
input::placeholder,
|
|
173
|
+
input::placeholder,
|
|
174
|
+
textarea::placeholder {
|
|
125
175
|
color: $neutral-10;
|
|
126
176
|
opacity: 0.5;
|
|
127
177
|
}
|
|
128
178
|
|
|
129
|
-
input.invalid,
|
|
179
|
+
input.invalid,
|
|
180
|
+
select.invalid,
|
|
181
|
+
textarea.invalid {
|
|
130
182
|
background: $neutral-98;
|
|
131
183
|
border-color: $error-30;
|
|
132
184
|
}
|
|
@@ -158,17 +210,22 @@ html.dark-mode {
|
|
|
158
210
|
.modal-ux {
|
|
159
211
|
background-color: $neutral-95;
|
|
160
212
|
color: $neutral-20;
|
|
161
|
-
border: none;
|
|
213
|
+
border: none;
|
|
162
214
|
|
|
163
215
|
&-header {
|
|
164
216
|
border-color: $neutral-80;
|
|
165
217
|
|
|
166
|
-
.close-modal svg {
|
|
218
|
+
.close-modal svg {
|
|
167
219
|
fill: $neutral-20;
|
|
168
220
|
}
|
|
169
221
|
}
|
|
170
222
|
|
|
171
|
-
h2,
|
|
223
|
+
h2,
|
|
224
|
+
h3,
|
|
225
|
+
h4,
|
|
226
|
+
h5,
|
|
227
|
+
p,
|
|
228
|
+
label {
|
|
172
229
|
color: $neutral-20;
|
|
173
230
|
}
|
|
174
231
|
|
|
@@ -207,8 +264,8 @@ html.dark-mode {
|
|
|
207
264
|
}
|
|
208
265
|
}
|
|
209
266
|
}
|
|
210
|
-
|
|
211
|
-
// ------ LOADING SPINNER ------
|
|
267
|
+
|
|
268
|
+
// ------ LOADING SPINNER ------
|
|
212
269
|
|
|
213
270
|
.loading-container .loading {
|
|
214
271
|
&::before {
|
|
@@ -221,7 +278,7 @@ html.dark-mode {
|
|
|
221
278
|
}
|
|
222
279
|
}
|
|
223
280
|
|
|
224
|
-
// ------ SCHEMES / SERVERS ------
|
|
281
|
+
// ------ SCHEMES / SERVERS ------
|
|
225
282
|
|
|
226
283
|
.scheme-container {
|
|
227
284
|
background: $neutral-98;
|
|
@@ -241,14 +298,22 @@ html.dark-mode {
|
|
|
241
298
|
}
|
|
242
299
|
}
|
|
243
300
|
|
|
244
|
-
// ------ INFO ------
|
|
301
|
+
// ------ INFO ------
|
|
245
302
|
|
|
246
303
|
.info {
|
|
247
|
-
h1,
|
|
304
|
+
h1,
|
|
305
|
+
h2,
|
|
306
|
+
h3,
|
|
307
|
+
h4,
|
|
308
|
+
h5,
|
|
309
|
+
.title {
|
|
248
310
|
color: $neutral-30;
|
|
249
311
|
}
|
|
250
312
|
|
|
251
|
-
li,
|
|
313
|
+
li,
|
|
314
|
+
p,
|
|
315
|
+
table,
|
|
316
|
+
.base-url {
|
|
252
317
|
color: $neutral-20;
|
|
253
318
|
}
|
|
254
319
|
|
|
@@ -268,7 +333,8 @@ html.dark-mode {
|
|
|
268
333
|
background: $neutral-85;
|
|
269
334
|
border-color: $error-30;
|
|
270
335
|
|
|
271
|
-
h4,
|
|
336
|
+
h4,
|
|
337
|
+
span {
|
|
272
338
|
color: $neutral-20;
|
|
273
339
|
}
|
|
274
340
|
|
|
@@ -281,7 +347,8 @@ html.dark-mode {
|
|
|
281
347
|
|
|
282
348
|
// ------ COPY / DOWNLOAD BUTTONS ------
|
|
283
349
|
|
|
284
|
-
.copy-to-clipboard,
|
|
350
|
+
.copy-to-clipboard,
|
|
351
|
+
.download-contents {
|
|
285
352
|
background: $neutral-80;
|
|
286
353
|
color: $neutral-20;
|
|
287
354
|
|
|
@@ -476,7 +543,8 @@ html.dark-mode {
|
|
|
476
543
|
}
|
|
477
544
|
|
|
478
545
|
.responses-inner {
|
|
479
|
-
h4,
|
|
546
|
+
h4,
|
|
547
|
+
h5 {
|
|
480
548
|
color: $neutral-20;
|
|
481
549
|
}
|
|
482
550
|
}
|
|
@@ -507,7 +575,12 @@ html.dark-mode {
|
|
|
507
575
|
color: $markdown-code;
|
|
508
576
|
}
|
|
509
577
|
|
|
510
|
-
.property-row,
|
|
578
|
+
.property-row,
|
|
579
|
+
.brace-open,
|
|
580
|
+
.brace-close,
|
|
581
|
+
.prop-format,
|
|
582
|
+
.property,
|
|
583
|
+
.description {
|
|
511
584
|
color: $neutral-20;
|
|
512
585
|
}
|
|
513
586
|
|
|
@@ -519,7 +592,8 @@ html.dark-mode {
|
|
|
519
592
|
.model-box {
|
|
520
593
|
background: $neutral-95;
|
|
521
594
|
|
|
522
|
-
.model-title,
|
|
595
|
+
.model-title,
|
|
596
|
+
.model {
|
|
523
597
|
color: $neutral-20;
|
|
524
598
|
}
|
|
525
599
|
|
|
@@ -527,7 +601,7 @@ html.dark-mode {
|
|
|
527
601
|
&:focus {
|
|
528
602
|
outline: none;
|
|
529
603
|
}
|
|
530
|
-
|
|
604
|
+
|
|
531
605
|
&:not(.prop) {
|
|
532
606
|
color: $neutral-20;
|
|
533
607
|
}
|
|
@@ -555,7 +629,10 @@ html.dark-mode {
|
|
|
555
629
|
color: $neutral-20;
|
|
556
630
|
}
|
|
557
631
|
|
|
558
|
-
&-property--required
|
|
632
|
+
&-property--required
|
|
633
|
+
> .json-schema-2020-12:first-of-type
|
|
634
|
+
> .json-schema-2020-12-head
|
|
635
|
+
.json-schema-2020-12__title::after {
|
|
559
636
|
color: $error-30;
|
|
560
637
|
}
|
|
561
638
|
|
|
@@ -596,10 +673,10 @@ html.dark-mode {
|
|
|
596
673
|
}
|
|
597
674
|
|
|
598
675
|
&--patternProperties {
|
|
599
|
-
.json-schema-2020-12__title::before,
|
|
676
|
+
.json-schema-2020-12__title::before,
|
|
600
677
|
.json-schema-2020-12__title::after {
|
|
601
678
|
color: $json-schema-2020-12__attribute--primary;
|
|
602
|
-
}
|
|
679
|
+
}
|
|
603
680
|
}
|
|
604
681
|
}
|
|
605
682
|
|
|
@@ -618,7 +695,8 @@ html.dark-mode {
|
|
|
618
695
|
}
|
|
619
696
|
|
|
620
697
|
&-json-viewer {
|
|
621
|
-
&__name--secondary,
|
|
698
|
+
&__name--secondary,
|
|
699
|
+
&__value--secondary {
|
|
622
700
|
color: $neutral-40;
|
|
623
701
|
}
|
|
624
702
|
}
|
package/style/_form.scss
CHANGED
|
@@ -33,10 +33,10 @@ select {
|
|
|
33
33
|
|
|
34
34
|
.opblock-body select {
|
|
35
35
|
min-width: 230px;
|
|
36
|
-
@
|
|
36
|
+
@container swagger-ui (max-width: 768px) {
|
|
37
37
|
min-width: 180px;
|
|
38
38
|
}
|
|
39
|
-
@
|
|
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
|
-
@
|
|
61
|
+
@container swagger-ui (max-width: 768px) {
|
|
62
62
|
max-width: 175px;
|
|
63
63
|
}
|
|
64
64
|
}
|
package/style/_layout.scss
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
font-weight: 400;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
@
|
|
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
|
-
@
|
|
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
|
-
@
|
|
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
|
-
@
|
|
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
|
-
@
|
|
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;
|
|
@@ -388,6 +388,10 @@
|
|
|
388
388
|
@include mixins.method($color-options);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
&.opblock-query {
|
|
392
|
+
@include mixins.method($color-query);
|
|
393
|
+
}
|
|
394
|
+
|
|
391
395
|
&.opblock-deprecated {
|
|
392
396
|
opacity: 0.6;
|
|
393
397
|
|
package/style/_mixins.scss
CHANGED
|
@@ -112,22 +112,22 @@ $browser-context: 16;
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
@mixin maxHeight($height) {
|
|
115
|
-
@
|
|
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
|
-
@
|
|
122
|
+
@container swagger-ui (min-width: 768px) and (max-width: 1024px) {
|
|
123
123
|
@content;
|
|
124
124
|
}
|
|
125
125
|
} @else if $class == mobile {
|
|
126
|
-
@
|
|
126
|
+
@container swagger-ui (min-width: 320px) and (max-width: 736px) {
|
|
127
127
|
@content;
|
|
128
128
|
}
|
|
129
129
|
} @else if $class == desktop {
|
|
130
|
-
@
|
|
130
|
+
@container swagger-ui (min-width: 1400px) {
|
|
131
131
|
@content;
|
|
132
132
|
}
|
|
133
133
|
} @else {
|
package/style/_topbar.scss
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
flex-wrap: wrap;
|
|
12
12
|
gap: 10px;
|
|
13
13
|
}
|
|
14
|
-
@
|
|
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
|
-
@
|
|
100
|
+
@container swagger-ui (max-width: 550px) {
|
|
101
101
|
.download-url-wrapper {
|
|
102
102
|
width: 100%;
|
|
103
103
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
.dark-mode-toggle {
|
|
107
107
|
margin-left: 10px;
|
|
108
108
|
opacity: 0.8;
|
|
109
|
-
transition: all .2s;
|
|
109
|
+
transition: all 0.2s;
|
|
110
110
|
cursor: pointer;
|
|
111
111
|
|
|
112
112
|
button {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
padding: 0;
|
|
116
116
|
|
|
117
117
|
svg {
|
|
118
|
-
fill: #
|
|
118
|
+
fill: #e4e6e6;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
package/style/_variables.scss
CHANGED