mockaton 13.11.1 → 13.11.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.
@@ -116,240 +116,6 @@ select {
116
116
  }
117
117
  }
118
118
 
119
-
120
- header {
121
- display: flex;
122
- flex: 0 0 100%;
123
- padding: 16px;
124
- background: var(--colorBgHeader);
125
-
126
- .Logo {
127
- align-self: end;
128
- margin-right: 18px;
129
- margin-bottom: 2px;
130
- transition: opacity 240ms ease-in-out;
131
-
132
- svg {
133
- width: 122px;
134
- pointer-events: none;
135
- fill: var(--colorText);
136
- }
137
- }
138
-
139
- @media (max-width: 570px) {
140
- .Logo {
141
- display: none;
142
- }
143
- }
144
-
145
- &:has(.FallbackBackend) {
146
- @media (max-width: 740px) {
147
- .Logo {
148
- display: none;
149
- }
150
- }
151
- }
152
-
153
- > div {
154
- display: flex;
155
- width: 100%;
156
- flex-wrap: wrap;
157
- align-items: flex-end;
158
- gap: 16px 12px;
159
-
160
- &:has(.FallbackBackend) {
161
- @media (max-width: 600px) {
162
- .HelpLink {
163
- margin-left: unset;
164
- }
165
- }
166
- }
167
- }
168
-
169
- .GlobalDelayWrap {
170
- display: flex;
171
- }
172
-
173
-
174
- .ResetButton {
175
- padding: 6px 12px;
176
- border: 1px solid var(--colorRed);
177
- margin-right: 8px;
178
- margin-left: 4px;
179
- background: transparent;
180
- border-radius: 50px;
181
- color: var(--colorRed);
182
- box-shadow: var(--boxShadowRimDrop);
183
-
184
- @media (prefers-color-scheme: dark) {
185
- color: var(--colorText);
186
- }
187
-
188
- &:hover {
189
- background: var(--colorRed);
190
- color: white;
191
- }
192
- }
193
-
194
- .HelpLink {
195
- width: 24px;
196
- height: 24px;
197
- flex-shrink: 0;
198
- align-self: end;
199
- margin-bottom: 3px;
200
- margin-left: auto;
201
- box-shadow: var(--boxShadowRimDrop);
202
- opacity: 0.8;
203
- border-radius: 50%;
204
- fill: var(--colorBgHeader);
205
- background: var(--colorLabel);
206
-
207
- &:hover {
208
- background: var(--colorAccent);
209
- opacity: 1;
210
- }
211
-
212
- svg {
213
- transform: scale(.7);
214
- }
215
- }
216
- }
217
-
218
- .GlobalDelay,
219
- .GlobalDelayJitter,
220
- .CookieSelector,
221
- .FallbackBackend {
222
- width: 116px;
223
-
224
- span {
225
- display: flex;
226
- align-items: center;
227
- margin-left: 8px;
228
- white-space: nowrap;
229
- color: var(--colorLabel);
230
- font-size: 11px;
231
- gap: 4px;
232
- transition: color 200ms ease-out;
233
- }
234
-
235
- &:has(input:focus-visible),
236
- &:hover {
237
- span {
238
- color: var(--colorText);
239
- }
240
- }
241
-
242
- input[type=url],
243
- input[type=number],
244
- select {
245
- width: 100%;
246
- height: 28px;
247
- padding: 4px 8px;
248
- margin-top: 2px;
249
- color: var(--colorText);
250
- font-size: 11px;
251
- background-color: var(--colorBgHeaderField);
252
- border-radius: var(--radius);
253
- box-shadow: var(--boxShadowRimDrop);
254
- transition: background-color ease-in-out 120ms;
255
-
256
- &:hover {
257
- background-color: var(--colorBgFieldHover);
258
- }
259
- }
260
-
261
- &.GlobalDelay,
262
- &.GlobalDelayJitter {
263
- input {
264
- &&::selection {
265
- background-color: transparent;
266
- }
267
-
268
- &::-webkit-outer-spin-button,
269
- &::-webkit-inner-spin-button {
270
- -webkit-appearance: none;
271
- margin: 0;
272
- }
273
- }
274
- }
275
-
276
- &.GlobalDelay {
277
- position: relative;
278
- width: 76px;
279
-
280
- input {
281
- padding-right: 6px;
282
- border-bottom-right-radius: 0;
283
- border-top-right-radius: 0;
284
- }
285
-
286
- svg {
287
- width: 12px;
288
- height: 12px;
289
- border: 1px solid var(--colorLabel);
290
- stroke-width: 3px;
291
- border-radius: 50%;
292
- }
293
-
294
- &:focus-within {
295
- z-index: 100;
296
- }
297
- }
298
-
299
- &.GlobalDelayJitter {
300
- width: 80px;
301
-
302
- &:focus-within {
303
- z-index: 100;
304
- }
305
-
306
- span {
307
- margin-left: 8px;
308
- }
309
- input {
310
- border-bottom-left-radius: 0;
311
- border-top-left-radius: 0;
312
- }
313
- }
314
-
315
- &.CookieSelector {
316
- width: 100px;
317
- }
318
-
319
- &.FallbackBackend {
320
- position: relative;
321
- width: 160px;
322
-
323
- .SaveProxiedCheckbox {
324
- position: absolute;
325
- top: 0;
326
- right: 0;
327
- display: flex;
328
- width: auto;
329
- min-width: unset;
330
- align-items: center;
331
- gap: 4px;
332
-
333
- input + .checkboxBody {
334
- margin: 0;
335
- margin-right: 4px;
336
- }
337
- input:enabled + .checkboxBody {
338
- cursor: pointer;
339
- }
340
-
341
- input:disabled {
342
- cursor: not-allowed;
343
- }
344
- input:disabled + .checkboxBody {
345
- opacity: 0.8;
346
- cursor: not-allowed;
347
- }
348
- }
349
- }
350
- }
351
-
352
-
353
119
  main {
354
120
  display: flex;
355
121
  min-width: 0;
@@ -418,426 +184,6 @@ main {
418
184
  }
419
185
  }
420
186
 
421
- .SubToolbar {
422
- display: flex;
423
- align-items: center;
424
- justify-content: space-between;
425
- padding-right: 14px;
426
- padding-left: 16px;
427
- border-bottom: 1px solid var(--colorBorder);
428
- background: var(--colorBgHeader);
429
- }
430
-
431
- .GroupByMethod {
432
- display: flex;
433
- align-items: center;
434
- gap: 6px;
435
- cursor: pointer;
436
- }
437
-
438
- .BulkSelector {
439
- select {
440
- width: 110px;
441
- padding: 6px 8px;
442
- margin-left: 4px;
443
- background-image: none;
444
- text-align-last: center;
445
- color: var(--colorText);
446
- font-size: 11px;
447
- background-color: var(--colorBgHeaderField);
448
- border-radius: var(--radius);
449
- box-shadow: var(--boxShadowRimDrop);
450
- transition: background-color ease-in-out 120ms;
451
-
452
- &:hover {
453
- background-color: var(--colorBgFieldHover);
454
- }
455
- }
456
- }
457
-
458
- .Table {
459
- height: 100%;
460
- padding: 16px;
461
- padding-bottom: 64px;
462
- padding-left: 15px;
463
- user-select: none;
464
- overflow-y: auto;
465
-
466
- .TableHeading {
467
- padding-bottom: 4px;
468
- padding-left: 1px;
469
- border-top: 24px solid transparent;
470
- margin-left: 94px;
471
- font-weight: bold;
472
- text-align: left;
473
-
474
- &:first-of-type {
475
- border-top: 0;
476
- }
477
-
478
- &.canProxy {
479
- margin-left: 124px;
480
- }
481
- }
482
-
483
- .TableRow {
484
- display: flex;
485
- margin-left: 24px;
486
-
487
- &.animIn {
488
- opacity: 0;
489
- transform: scaleY(0);
490
- animation: _kfRowIn 180ms ease-in-out forwards;
491
- }
492
- }
493
-
494
- .FolderGroup {
495
- position: relative;
496
- border-radius: var(--radius);
497
-
498
- > summary {
499
- left: 0;
500
- display: flex;
501
- overflow: hidden;
502
- align-items: center;
503
- padding: 5px 0;
504
- font-weight: 500;
505
- font-size: 12px;
506
- list-style: none;
507
- cursor: pointer;
508
- user-select: none;
509
- color: var(--colorLabel);
510
- white-space: nowrap;
511
- text-overflow: ellipsis;
512
- border-radius: var(--radius);
513
-
514
- &:active {
515
- cursor: grabbing;
516
- }
517
-
518
- &::-webkit-details-marker,
519
- &::marker {
520
- display: none;
521
- }
522
-
523
- &:hover {
524
- background: var(--colorHover);
525
- }
526
-
527
- .FolderName {
528
- margin-left: 125px;
529
- &.canProxy {
530
- margin-left: 155px;
531
- }
532
-
533
- &.groupedByMethod {
534
- margin-left: 79px;
535
- &.canProxy {
536
- margin-left: 109px;
537
- }
538
- }
539
- }
540
-
541
- .FolderChevron {
542
- display: flex;
543
- width: 16px;
544
- height: 16px;
545
- flex-shrink: 0;
546
- align-items: center;
547
- justify-content: center;
548
- opacity: .7;
549
- transition: transform cubic-bezier(.2, .7, .8, 1.4) 400ms;
550
- transform: rotate(-90deg);
551
-
552
- svg {
553
- width: 100%;
554
- height: 100%;
555
- }
556
- }
557
- }
558
-
559
- &[open] {
560
- &:has(summary:hover):not(:has(details:hover)) {
561
- background: linear-gradient(90deg, var(--colorHover), var(--colorBg));
562
- }
563
-
564
- > summary {
565
- position: absolute;
566
- top: 0;
567
- left: 0;
568
- width: 16px;
569
-
570
- .FolderChevron {
571
- transform: rotate(0deg);
572
- }
573
- .FolderName {
574
- display: none;
575
- }
576
- }
577
- }
578
- }
579
- }
580
-
581
- @keyframes _kfRowIn {
582
- to {
583
- opacity: 1;
584
- transform: scaleY(1);
585
- }
586
- }
587
-
588
- .Method {
589
- overflow: hidden;
590
- min-width: 38px;
591
- padding: 4px 0;
592
- margin-top: 3px;
593
- margin-right: 8px;
594
- color: var(--colorLabel);
595
- font-size: 11px;
596
- text-align: center;
597
- white-space: nowrap;
598
- text-overflow: ellipsis;
599
- }
600
-
601
- .PreviewLink {
602
- position: relative;
603
- left: -8px;
604
- display: inline-block;
605
- width: auto;
606
- min-width: 140px;
607
- flex-grow: 1;
608
- padding: 6px 8px;
609
- margin-right: -2px;
610
- margin-left: 4px;
611
- font-weight: 500;
612
- border-radius: var(--radius);
613
- word-break: break-word;
614
-
615
- &:hover {
616
- background: var(--colorHover);
617
- }
618
- &.chosen {
619
- color: white;
620
- background: var(--colorAccent);
621
- }
622
- .dittoDir {
623
- opacity: 0.8;
624
- filter: saturate(0.1);
625
- }
626
- }
627
-
628
-
629
- .MockSelector {
630
- min-width: 58px;
631
- height: 24px;
632
- padding-right: 20px;
633
- padding-left: 8px;
634
- text-overflow: ellipsis;
635
- text-align: right;
636
-
637
- &:enabled {
638
- box-shadow: var(--boxShadowRimDrop);
639
- &:hover {
640
- background-color: var(--colorBgFieldHover);
641
- }
642
- }
643
-
644
- &.nonDefault {
645
- font-weight: bold;
646
- font-size: 11px;
647
- }
648
- &.status4xx {
649
- background: var(--colorBg4xx);
650
- }
651
- &:disabled {
652
- padding-right: 4px;
653
- padding-left: 0;
654
- border-color: transparent;
655
- appearance: none;
656
- background: transparent;
657
- cursor: default;
658
- color: var(--colorLabel);
659
- opacity: 0.8;
660
- }
661
- }
662
-
663
-
664
- .Toggler {
665
- display: flex;
666
- margin-top: 3px;
667
-
668
- input {
669
- /* For click drag target */
670
- position: absolute;
671
- width: 22px;
672
- height: 22px;
673
- opacity: 0;
674
-
675
- &:focus-visible {
676
- outline: 0;
677
- & + .checkboxBody {
678
- outline: 2px solid var(--colorAccent);
679
- }
680
- }
681
-
682
- &:disabled + .checkboxBody {
683
- cursor: not-allowed;
684
- opacity: 0.7;
685
- }
686
-
687
- &:checked + .checkboxBody {
688
- border-color: var(--colorAccent);
689
- fill: var(--colorAccent);
690
- background: var(--colorAccent);
691
- stroke: var(--colorBg);
692
- }
693
-
694
- &:enabled:hover:not(:checked) + .checkboxBody {
695
- border-color: var(--colorHover);
696
- background: var(--colorHover);
697
- stroke: var(--colorText);
698
- }
699
- }
700
-
701
- .checkboxBody {
702
- display: flex;
703
- width: 22px;
704
- height: 22px;
705
- align-items: center;
706
- justify-content: center;
707
- fill: none;
708
- stroke: var(--colorLabel);
709
- stroke-width: 2.5px;
710
- border-radius: 50%;
711
- box-shadow: var(--boxShadowRimDrop);
712
- background-color: var(--colorBgHeaderField);
713
- }
714
-
715
- &.canProxy {
716
- margin-left: 30px;
717
- }
718
- }
719
-
720
- .DelayToggler {
721
- }
722
-
723
- .ProxyToggler {
724
- margin-right: 8px;
725
-
726
- .checkboxBody {
727
- svg {
728
- width: 15px;
729
- }
730
- }
731
- }
732
-
733
- .StatusCodeToggler {
734
- margin-right: 10px;
735
- margin-left: 8px;
736
-
737
- input {
738
- width: 26px;
739
-
740
- &:not(:checked):enabled:hover + .checkboxBody {
741
- border-color: var(--colorRed);
742
- color: var(--colorRed);
743
- background: transparent;
744
- }
745
- &:checked + .checkboxBody {
746
- border-color: var(--colorRed);
747
- color: white;
748
- background: var(--colorRed);
749
- }
750
- }
751
-
752
- .checkboxBody {
753
- width: 27px;
754
- padding: 4px;
755
- font-size: 10px;
756
- font-weight: bold;
757
- color: var(--colorLabel);
758
- }
759
- }
760
-
761
-
762
- .PayloadViewer {
763
- display: grid;
764
- height: 100%;
765
- grid-template-rows: var(--subtoolbarHeight) 1fr;
766
-
767
- > pre {
768
- overflow: auto;
769
- height: 100%;
770
- padding: 16px;
771
- padding-top: 12px;
772
- font-family: monospace;
773
-
774
- &:has(> code > :is(iframe, video)) {
775
- padding: 0;
776
- }
777
-
778
- > code {
779
- line-height: 1.3;
780
- white-space: pre;
781
- tab-size: 2;
782
- color: var(--colorLabel);
783
-
784
- > video {
785
- width: 100%;
786
- }
787
- > iframe {
788
- width: 100%;
789
- height: 100%;
790
- }
791
- }
792
- }
793
- }
794
-
795
- .syntaxPunc {
796
- color: var(--colorLabel);
797
- }
798
- .syntaxKey,
799
- .syntaxTag {
800
- color: var(--colorPink);
801
- }
802
- .syntaxVal,
803
- .syntaxAttr {
804
- color: var(--colorPurple);
805
- }
806
- .syntaxStr,
807
- .syntaxAttrVal {
808
- color: var(--colorGreen);
809
- }
810
-
811
-
812
- .ProgressBar {
813
- position: relative;
814
- top: -12px;
815
- left: -16px;
816
- width: calc(100% + 32px);
817
- height: 2px;
818
- background: var(--colorBgHeaderField);
819
-
820
- > div {
821
- position: absolute;
822
- top: 0;
823
- left: 0;
824
- width: 0;
825
- height: 100%;
826
- background: var(--colorAccent);
827
- animation-name: _kfProgress;
828
- animation-timing-function: linear;
829
- animation-iteration-count: infinite;
830
- animation-direction: alternate;
831
- /* animation-duration is set in JS */
832
- }
833
- }
834
- @keyframes _kfProgress {
835
- to {
836
- width: 100%;
837
- }
838
- }
839
-
840
-
841
187
  .ErrorToast {
842
188
  position: fixed;
843
189
  z-index: 9999;