@govbr-ds/playground 5.2.2 → 5.3.0
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/README.md +80 -0
- package/dist/Playground.d.ts.map +1 -1
- package/dist/browser/examplePicker.d.ts +6 -0
- package/dist/browser/examplePicker.d.ts.map +1 -0
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +34 -34
- package/dist/components/ControlsPanel.d.ts +1 -0
- package/dist/components/ControlsPanel.d.ts.map +1 -1
- package/dist/components/Workbench.d.ts +1 -2
- package/dist/components/Workbench.d.ts.map +1 -1
- package/dist/core/index.d.ts +15 -3
- package/dist/core/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/library/components.d.ts +22 -7
- package/dist/library/components.d.ts.map +1 -1
- package/dist/react/index.js +23 -23
- package/dist/sources.d.ts +7 -0
- package/dist/sources.d.ts.map +1 -1
- package/dist/styles.css +497 -828
- package/docs/configuration.md +44 -15
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -624,16 +624,6 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
.govbr-playground__viewport-dimension {
|
|
628
|
-
display: inline-flex;
|
|
629
|
-
align-items: center;
|
|
630
|
-
gap: 0.4rem;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.govbr-playground__viewport-dimension input {
|
|
634
|
-
width: 6rem;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
627
|
.govbr-playground__modes-card {
|
|
638
628
|
display: block;
|
|
639
629
|
flex: 0 0 auto;
|
|
@@ -655,9 +645,6 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
655
645
|
inline-size: 16rem;
|
|
656
646
|
max-inline-size: 100%;
|
|
657
647
|
}
|
|
658
|
-
.govbr-playground__viewport-dimension br-input {
|
|
659
|
-
inline-size: 6rem;
|
|
660
|
-
}
|
|
661
648
|
[data-library] br-tag {
|
|
662
649
|
display: inline-flex;
|
|
663
650
|
margin-inline-start: 0.4rem;
|
|
@@ -704,43 +691,6 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
704
691
|
.govbr-playground__appearance br-select {
|
|
705
692
|
width: 12rem;
|
|
706
693
|
}
|
|
707
|
-
.govbr-playground__settings-trigger {
|
|
708
|
-
margin-inline-start: auto;
|
|
709
|
-
}
|
|
710
|
-
.govbr-playground__settings-trigger i:first-child {
|
|
711
|
-
margin-inline-end: 0.4rem;
|
|
712
|
-
}
|
|
713
|
-
.govbr-playground__settings-trigger span {
|
|
714
|
-
margin-inline: 0.4rem;
|
|
715
|
-
}
|
|
716
|
-
.govbr-playground__settings-trigger i:last-child {
|
|
717
|
-
margin-inline-start: 0.15rem;
|
|
718
|
-
}
|
|
719
|
-
.govbr-playground__settings {
|
|
720
|
-
position: fixed;
|
|
721
|
-
inset: auto;
|
|
722
|
-
margin: 0;
|
|
723
|
-
width: 420px;
|
|
724
|
-
max-width: calc(100vw - 24px);
|
|
725
|
-
max-height: none;
|
|
726
|
-
overflow: visible;
|
|
727
|
-
padding: 0.85rem;
|
|
728
|
-
border: 1px solid var(--gp-border);
|
|
729
|
-
border-radius: 0.85rem;
|
|
730
|
-
background: var(--gp-surface);
|
|
731
|
-
color: var(--gp-text);
|
|
732
|
-
box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
|
|
733
|
-
}
|
|
734
|
-
.govbr-playground__settings:popover-open {
|
|
735
|
-
display: grid;
|
|
736
|
-
grid-template-columns: minmax(0, 1fr);
|
|
737
|
-
align-items: center;
|
|
738
|
-
gap: 0.35rem;
|
|
739
|
-
height: max-content;
|
|
740
|
-
max-height: none;
|
|
741
|
-
overflow: visible;
|
|
742
|
-
contain: none;
|
|
743
|
-
}
|
|
744
694
|
.govbr-playground__viewport-controls {
|
|
745
695
|
display: flex;
|
|
746
696
|
flex-wrap: wrap;
|
|
@@ -753,38 +703,6 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
753
703
|
align-items: center;
|
|
754
704
|
gap: 0.35rem;
|
|
755
705
|
}
|
|
756
|
-
.govbr-playground__viewport-dimensions {
|
|
757
|
-
display: flex;
|
|
758
|
-
flex-wrap: wrap;
|
|
759
|
-
align-items: center;
|
|
760
|
-
gap: 0.75rem;
|
|
761
|
-
}
|
|
762
|
-
.govbr-playground__setting-row {
|
|
763
|
-
display: grid;
|
|
764
|
-
grid-template-columns: minmax(0, 1fr);
|
|
765
|
-
align-items: start;
|
|
766
|
-
gap: 0.25rem;
|
|
767
|
-
}
|
|
768
|
-
.govbr-playground__setting-row br-select {
|
|
769
|
-
width: 100%;
|
|
770
|
-
min-width: 0;
|
|
771
|
-
}
|
|
772
|
-
.govbr-playground__settings hr {
|
|
773
|
-
grid-column: 1 / -1;
|
|
774
|
-
border: 0;
|
|
775
|
-
border-block-start: 1px solid var(--gp-border);
|
|
776
|
-
width: 100%;
|
|
777
|
-
margin: 0.25rem 0;
|
|
778
|
-
}
|
|
779
|
-
.govbr-playground__settings br-checkbox {
|
|
780
|
-
display: block;
|
|
781
|
-
width: 100%;
|
|
782
|
-
}
|
|
783
|
-
.govbr-playground__menu-behavior {
|
|
784
|
-
display: flex;
|
|
785
|
-
flex-direction: column;
|
|
786
|
-
gap: 0.5rem;
|
|
787
|
-
}
|
|
788
706
|
@media (max-width: 700px) {
|
|
789
707
|
.govbr-playground__appearance {
|
|
790
708
|
border: 0;
|
|
@@ -813,29 +731,6 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
813
731
|
inline-size: auto;
|
|
814
732
|
min-width: 0;
|
|
815
733
|
}
|
|
816
|
-
.govbr-playground__settings-trigger {
|
|
817
|
-
margin-inline-start: 0;
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
822
|
-
display: flex;
|
|
823
|
-
flex: 1;
|
|
824
|
-
min-height: 0;
|
|
825
|
-
width: 100%;
|
|
826
|
-
height: 100%;
|
|
827
|
-
}
|
|
828
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item {
|
|
829
|
-
flex: 1;
|
|
830
|
-
min-width: 0;
|
|
831
|
-
min-height: 0;
|
|
832
|
-
}
|
|
833
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item:not([hidden]) {
|
|
834
|
-
display: flex;
|
|
835
|
-
flex-direction: column;
|
|
836
|
-
height: 100%;
|
|
837
|
-
min-height: 0;
|
|
838
|
-
gap: 0.5rem;
|
|
839
734
|
}
|
|
840
735
|
|
|
841
736
|
@media (min-width: 701px) {
|
|
@@ -856,14 +751,6 @@ br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e fram
|
|
|
856
751
|
.govbr-playground__appearance br-select {
|
|
857
752
|
inline-size: clamp(9rem, 15vw, 13rem);
|
|
858
753
|
}
|
|
859
|
-
.govbr-playground__settings-trigger {
|
|
860
|
-
flex: 0 0 auto;
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
865
|
-
--tab-container-padding: 0;
|
|
866
|
-
--tab-size: 2.5rem;
|
|
867
754
|
}
|
|
868
755
|
|
|
869
756
|
.govbr-playground__preview-toolbar {
|
|
@@ -874,37 +761,6 @@ br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e fram
|
|
|
874
761
|
.govbr-playground__preview-toolbar > br-select {
|
|
875
762
|
margin-inline-start: 0.35rem;
|
|
876
763
|
}
|
|
877
|
-
.govbr-playground__settings-trigger {
|
|
878
|
-
align-self: center;
|
|
879
|
-
margin-block: auto;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
@media (max-width: 480px) {
|
|
883
|
-
.govbr-playground__settings:popover-open {
|
|
884
|
-
grid-template-columns: minmax(0, 1fr);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
.govbr-playground__settings-trigger {
|
|
889
|
-
float: inline-end;
|
|
890
|
-
margin-inline-start: 2rem;
|
|
891
|
-
}
|
|
892
|
-
.govbr-playground__settings-line > .govbr-playground__settings-trigger {
|
|
893
|
-
float: none;
|
|
894
|
-
margin-inline-start: 0;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
898
|
-
display: flex;
|
|
899
|
-
height: 100%;
|
|
900
|
-
min-height: 0;
|
|
901
|
-
}
|
|
902
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item:not([hidden]) {
|
|
903
|
-
display: flex;
|
|
904
|
-
flex: 1 1 auto;
|
|
905
|
-
flex-direction: column;
|
|
906
|
-
min-height: 0;
|
|
907
|
-
}
|
|
908
764
|
|
|
909
765
|
.govbr-playground__tools {
|
|
910
766
|
display: flex;
|
|
@@ -917,53 +773,11 @@ br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e fram
|
|
|
917
773
|
display: flex;
|
|
918
774
|
flex-direction: column;
|
|
919
775
|
}
|
|
920
|
-
.govbr-playground__editor > br-tab {
|
|
921
|
-
display: flex;
|
|
922
|
-
flex: 1 1 0;
|
|
923
|
-
min-height: 0;
|
|
924
|
-
min-width: 0;
|
|
925
|
-
}
|
|
926
|
-
.govbr-playground__editor > br-tab > br-tab-item:not([hidden]) {
|
|
927
|
-
display: flex;
|
|
928
|
-
flex: 1 1 0;
|
|
929
|
-
flex-direction: column;
|
|
930
|
-
min-height: 0;
|
|
931
|
-
min-width: 0;
|
|
932
|
-
}
|
|
933
|
-
.govbr-playground__editor > br-tab > br-tab-item > .cm-theme {
|
|
934
|
-
flex: 1 1 0;
|
|
935
|
-
min-height: 0;
|
|
936
|
-
min-width: 0;
|
|
937
|
-
}
|
|
938
|
-
br-tab[aria-label='Arquivos e frameworks'] > br-tab-item:not([hidden]) {
|
|
939
|
-
display: flex;
|
|
940
|
-
flex-direction: column;
|
|
941
|
-
}
|
|
942
|
-
br-tab[aria-label='Arquivos e frameworks'] .cm-theme {
|
|
943
|
-
flex: 1;
|
|
944
|
-
min-height: 0;
|
|
945
|
-
}
|
|
946
776
|
|
|
947
777
|
.govbr-playground__preview-area,
|
|
948
778
|
.govbr-playground__tools {
|
|
949
779
|
position: relative;
|
|
950
780
|
}
|
|
951
|
-
br-tab[aria-label^='Arquivos '] {
|
|
952
|
-
display: flex;
|
|
953
|
-
flex: 1;
|
|
954
|
-
min-height: 0;
|
|
955
|
-
height: 100%;
|
|
956
|
-
}
|
|
957
|
-
br-tab[aria-label^='Arquivos '] > br-tab-item:not([hidden]) {
|
|
958
|
-
display: flex;
|
|
959
|
-
flex-direction: column;
|
|
960
|
-
flex: 1;
|
|
961
|
-
min-height: 0;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
965
|
-
position: relative;
|
|
966
|
-
}
|
|
967
781
|
|
|
968
782
|
/* Bancada: dimensões relativas ao espaço concedido pelo host. */
|
|
969
783
|
[data-library] {
|
|
@@ -989,56 +803,15 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
989
803
|
gap: 0.5rem;
|
|
990
804
|
flex: 0 0 auto;
|
|
991
805
|
}
|
|
992
|
-
.govbr-playground__bench-main {
|
|
993
|
-
display: grid;
|
|
994
|
-
flex: 1 1 auto;
|
|
995
|
-
min-height: 0;
|
|
996
|
-
min-width: 0;
|
|
997
|
-
grid-template-columns: minmax(0, 1fr);
|
|
998
|
-
grid-template-rows: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
999
|
-
}
|
|
1000
|
-
.govbr-playground__bench-preview {
|
|
1001
|
-
grid-area: 1 / 1;
|
|
1002
|
-
}
|
|
1003
806
|
.govbr-playground__bench-divider {
|
|
1004
807
|
grid-area: 2 / 1;
|
|
1005
808
|
}
|
|
1006
|
-
.govbr-playground__bench-code {
|
|
1007
|
-
grid-area: 3 / 1;
|
|
1008
|
-
}
|
|
1009
|
-
.govbr-playground__bench-preview,
|
|
1010
|
-
.govbr-playground__bench-code,
|
|
1011
|
-
.govbr-playground__bench-properties {
|
|
1012
|
-
min-height: 0;
|
|
1013
|
-
min-width: 0;
|
|
1014
|
-
overflow: auto;
|
|
1015
|
-
}
|
|
1016
|
-
.govbr-playground__bench-code {
|
|
1017
|
-
display: flex;
|
|
1018
|
-
flex-direction: column;
|
|
1019
|
-
}
|
|
1020
|
-
.govbr-playground__bench-properties {
|
|
1021
|
-
display: none;
|
|
1022
|
-
}
|
|
1023
809
|
.govbr-playground__bench-divider {
|
|
1024
810
|
touch-action: none;
|
|
1025
811
|
cursor: row-resize;
|
|
1026
812
|
background: var(--gp-surface-muted);
|
|
1027
813
|
border-radius: 0.25rem;
|
|
1028
814
|
}
|
|
1029
|
-
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1030
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1031
|
-
}
|
|
1032
|
-
.govbr-playground__diagnostics {
|
|
1033
|
-
flex: 0 0 auto;
|
|
1034
|
-
min-height: 0;
|
|
1035
|
-
height: 16rem;
|
|
1036
|
-
max-height: 40%;
|
|
1037
|
-
overflow: auto;
|
|
1038
|
-
}
|
|
1039
|
-
.govbr-playground__diagnostics br-tab[aria-label='Diagnóstico'] {
|
|
1040
|
-
height: auto;
|
|
1041
|
-
}
|
|
1042
815
|
.govbr-playground__tools {
|
|
1043
816
|
flex: 1;
|
|
1044
817
|
}
|
|
@@ -1075,16 +848,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1075
848
|
color: var(--gp-accent);
|
|
1076
849
|
font-weight: 600;
|
|
1077
850
|
}
|
|
1078
|
-
.govbr-playground__bench-properties .govbr-playground__controls table,
|
|
1079
|
-
.govbr-playground__bench-properties .govbr-playground__controls tbody,
|
|
1080
|
-
.govbr-playground__bench-properties .govbr-playground__controls tr,
|
|
1081
|
-
.govbr-playground__bench-properties .govbr-playground__controls td,
|
|
1082
|
-
.govbr-playground__bench-properties .govbr-playground__controls th {
|
|
1083
|
-
display: block;
|
|
1084
|
-
}
|
|
1085
|
-
.govbr-playground__bench-properties .govbr-playground__controls thead {
|
|
1086
|
-
display: none;
|
|
1087
|
-
}
|
|
1088
851
|
.govbr-playground__bench[data-maximized='true'] {
|
|
1089
852
|
position: fixed;
|
|
1090
853
|
inset: 0;
|
|
@@ -1092,87 +855,13 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1092
855
|
padding: 0.75rem;
|
|
1093
856
|
background: var(--gp-surface);
|
|
1094
857
|
}
|
|
1095
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-
|
|
1096
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-divider,
|
|
1097
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-properties {
|
|
858
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-divider {
|
|
1098
859
|
display: none;
|
|
1099
860
|
}
|
|
1100
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-main {
|
|
1101
|
-
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1102
|
-
}
|
|
1103
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-code {
|
|
1104
|
-
display: flex;
|
|
1105
|
-
grid-area: 1 / 1;
|
|
1106
|
-
}
|
|
1107
|
-
@container workbench (min-width: 700px) {
|
|
1108
|
-
.govbr-playground__bench-main[data-properties='true'] {
|
|
1109
|
-
grid-template-columns: minmax(0, 1fr) minmax(16rem, 30%);
|
|
1110
|
-
column-gap: 0.75rem;
|
|
1111
|
-
}
|
|
1112
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1113
|
-
display: block;
|
|
1114
|
-
grid-area: 1 / 2 / 4 / 3;
|
|
1115
|
-
}
|
|
1116
|
-
.govbr-playground__bench-main[data-layout='horizontal'] {
|
|
1117
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1118
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1119
|
-
}
|
|
1120
|
-
.govbr-playground__bench-main[data-layout='horizontal'] .govbr-playground__bench-code {
|
|
1121
|
-
grid-area: 1 / 3;
|
|
1122
|
-
}
|
|
1123
|
-
.govbr-playground__bench-main[data-layout='horizontal'] .govbr-playground__bench-divider {
|
|
1124
|
-
grid-area: 1 / 2;
|
|
1125
|
-
cursor: col-resize;
|
|
1126
|
-
}
|
|
1127
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1128
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) minmax(16rem, 25%);
|
|
1129
|
-
}
|
|
1130
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1131
|
-
grid-area: 1 / 4;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
@container workbench (min-width: 1100px) {
|
|
1135
|
-
.govbr-playground__bench-main[data-layout='auto'] {
|
|
1136
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1137
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1138
|
-
}
|
|
1139
|
-
.govbr-playground__bench-main[data-layout='auto'] .govbr-playground__bench-code {
|
|
1140
|
-
grid-area: 1 / 3;
|
|
1141
|
-
}
|
|
1142
|
-
.govbr-playground__bench-main[data-layout='auto'] .govbr-playground__bench-divider {
|
|
1143
|
-
grid-area: 1 / 2;
|
|
1144
|
-
cursor: col-resize;
|
|
1145
|
-
}
|
|
1146
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1147
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) minmax(16rem, 25%);
|
|
1148
|
-
}
|
|
1149
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1150
|
-
grid-area: 1 / 4;
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
861
|
@container workbench (width < 700px) {
|
|
1154
|
-
.govbr-playground__bench-main {
|
|
1155
|
-
display: flex;
|
|
1156
|
-
flex-direction: column;
|
|
1157
|
-
}
|
|
1158
|
-
.govbr-playground__bench-preview,
|
|
1159
|
-
.govbr-playground__bench-code,
|
|
1160
|
-
.govbr-playground__bench-properties,
|
|
1161
862
|
.govbr-playground__bench-divider {
|
|
1162
863
|
display: none;
|
|
1163
864
|
}
|
|
1164
|
-
.govbr-playground__bench-main[data-mobile-panel='preview'] .govbr-playground__bench-preview {
|
|
1165
|
-
display: block;
|
|
1166
|
-
flex: 1;
|
|
1167
|
-
}
|
|
1168
|
-
.govbr-playground__bench-main[data-mobile-panel='code'] .govbr-playground__bench-code {
|
|
1169
|
-
display: flex;
|
|
1170
|
-
flex: 1;
|
|
1171
|
-
}
|
|
1172
|
-
.govbr-playground__bench-main[data-mobile-panel='properties'] .govbr-playground__bench-properties {
|
|
1173
|
-
display: block;
|
|
1174
|
-
flex: 1;
|
|
1175
|
-
}
|
|
1176
865
|
.govbr-playground__bench-header > br-select {
|
|
1177
866
|
inline-size: 100%;
|
|
1178
867
|
}
|
|
@@ -1187,65 +876,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1187
876
|
display: none;
|
|
1188
877
|
}
|
|
1189
878
|
}
|
|
1190
|
-
|
|
1191
|
-
.govbr-playground__settings h3 {
|
|
1192
|
-
margin: 0.35rem 0 0;
|
|
1193
|
-
font-size: 0.875rem;
|
|
1194
|
-
grid-column: 1 / -1;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1198
|
-
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
@container workbench (min-width: 700px) {
|
|
1202
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1203
|
-
column-gap: 0;
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
@container workbench (min-width: 1100px) {
|
|
1207
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1208
|
-
column-gap: 0;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1212
|
-
padding-inline-start: 0.75rem;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1216
|
-
margin-inline-start: auto;
|
|
1217
|
-
float: none;
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
@container workbench (700px <= width < 1600px) {
|
|
1221
|
-
.govbr-playground__bench-main[data-properties='true'] {
|
|
1222
|
-
grid-template-columns: minmax(0, 1fr);
|
|
1223
|
-
column-gap: 0;
|
|
1224
|
-
}
|
|
1225
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-code {
|
|
1226
|
-
display: none;
|
|
1227
|
-
}
|
|
1228
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1229
|
-
grid-area: 3 / 1;
|
|
1230
|
-
padding-inline-start: 0;
|
|
1231
|
-
}
|
|
1232
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1233
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1234
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1235
|
-
}
|
|
1236
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1237
|
-
grid-area: 1 / 3;
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
@container workbench (1100px <= width < 1600px) {
|
|
1241
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1242
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1243
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1244
|
-
}
|
|
1245
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1246
|
-
grid-area: 1 / 3;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
879
|
@container workbench (width < 700px) {
|
|
1250
880
|
.govbr-playground__preview-header br-button,
|
|
1251
881
|
.govbr-playground__code-header br-button {
|
|
@@ -1253,16 +883,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1253
883
|
min-block-size: 44px;
|
|
1254
884
|
}
|
|
1255
885
|
}
|
|
1256
|
-
|
|
1257
|
-
.govbr-playground__workspace-actions > div {
|
|
1258
|
-
display: flex;
|
|
1259
|
-
flex-wrap: wrap;
|
|
1260
|
-
gap: 0.5rem;
|
|
1261
|
-
}
|
|
1262
|
-
.govbr-playground__workspace-actions summary {
|
|
1263
|
-
cursor: pointer;
|
|
1264
|
-
padding: 0.5rem;
|
|
1265
|
-
}
|
|
1266
886
|
.govbr-playground__bench-header > br-select {
|
|
1267
887
|
inline-size: 10rem;
|
|
1268
888
|
}
|
|
@@ -1275,17 +895,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1275
895
|
.govbr-playground__bench-header > label br-select {
|
|
1276
896
|
inline-size: 16rem;
|
|
1277
897
|
}
|
|
1278
|
-
@container workbench (min-width: 1100px) {
|
|
1279
|
-
.govbr-playground__workspace-actions {
|
|
1280
|
-
display: contents;
|
|
1281
|
-
}
|
|
1282
|
-
.govbr-playground__workspace-actions > summary {
|
|
1283
|
-
display: none;
|
|
1284
|
-
}
|
|
1285
|
-
.govbr-playground__workspace-actions > div {
|
|
1286
|
-
display: flex;
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
898
|
@container workbench (width < 700px) {
|
|
1290
899
|
.govbr-playground__bench-header {
|
|
1291
900
|
gap: 0.25rem;
|
|
@@ -1302,9 +911,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1302
911
|
.govbr-playground__bench-header > br-select {
|
|
1303
912
|
inline-size: 8rem;
|
|
1304
913
|
}
|
|
1305
|
-
.govbr-playground__workspace-actions > div {
|
|
1306
|
-
padding-block: 0.5rem;
|
|
1307
|
-
}
|
|
1308
914
|
}
|
|
1309
915
|
|
|
1310
916
|
[data-library] [aria-label='Área de preview'] {
|
|
@@ -1328,31 +934,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1328
934
|
.govbr-playground__preview-header .govbr-playground__viewport-controls {
|
|
1329
935
|
flex: 1 1 auto;
|
|
1330
936
|
}
|
|
1331
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension {
|
|
1332
|
-
display: flex;
|
|
1333
|
-
align-items: center;
|
|
1334
|
-
flex: 0 0 auto;
|
|
1335
|
-
gap: 0.35rem;
|
|
1336
|
-
font-weight: 600;
|
|
1337
|
-
line-height: 1;
|
|
1338
|
-
white-space: nowrap;
|
|
1339
|
-
}
|
|
1340
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension > span {
|
|
1341
|
-
color: var(--gp-muted);
|
|
1342
|
-
font-size: 0.8rem;
|
|
1343
|
-
font-weight: 400;
|
|
1344
|
-
}
|
|
1345
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension br-input {
|
|
1346
|
-
flex: 0 0 7rem;
|
|
1347
|
-
inline-size: 7rem;
|
|
1348
|
-
min-inline-size: 7rem;
|
|
1349
|
-
margin-block-end: 0;
|
|
1350
|
-
}
|
|
1351
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension br-input::part(input) {
|
|
1352
|
-
padding-inline: 0.5rem;
|
|
1353
|
-
text-align: center;
|
|
1354
|
-
font-variant-numeric: tabular-nums;
|
|
1355
|
-
}
|
|
1356
937
|
.govbr-playground__preview-header > br-tooltip {
|
|
1357
938
|
margin-block-end: 0.25rem;
|
|
1358
939
|
}
|
|
@@ -1362,18 +943,12 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1362
943
|
font-size: 1.25rem;
|
|
1363
944
|
line-height: 1.4;
|
|
1364
945
|
}
|
|
1365
|
-
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1366
|
-
order: 100;
|
|
1367
|
-
}
|
|
1368
946
|
@container workbench (width < 1100px) {
|
|
1369
947
|
.govbr-playground__bench-header > br-select[aria-label$='rápido'] {
|
|
1370
948
|
display: none;
|
|
1371
949
|
}
|
|
1372
950
|
}
|
|
1373
951
|
|
|
1374
|
-
@container workbench (width < 700px) {
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
952
|
.govbr-playground__preview-header > br-select {
|
|
1378
953
|
flex: 0 1 180px;
|
|
1379
954
|
width: 180px;
|
|
@@ -1384,19 +959,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1384
959
|
width: 100px;
|
|
1385
960
|
min-width: 0;
|
|
1386
961
|
}
|
|
1387
|
-
.govbr-playground__wide-behavior {
|
|
1388
|
-
display: none;
|
|
1389
|
-
}
|
|
1390
|
-
@container workbench (min-width: 1600px) {
|
|
1391
|
-
.govbr-playground__wide-behavior {
|
|
1392
|
-
display: inline-flex;
|
|
1393
|
-
align-items: center;
|
|
1394
|
-
gap: 0.75rem;
|
|
1395
|
-
}
|
|
1396
|
-
.govbr-playground__settings-behavior {
|
|
1397
|
-
display: none;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
962
|
@container workbench (min-width: 1600px) {
|
|
1401
963
|
.govbr-playground__viewport-buttons {
|
|
1402
964
|
flex-wrap: nowrap;
|
|
@@ -1404,11 +966,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1404
966
|
}
|
|
1405
967
|
|
|
1406
968
|
@container workbench (min-width: 1600px) {
|
|
1407
|
-
.govbr-playground__bench-properties {
|
|
1408
|
-
display: flex !important;
|
|
1409
|
-
flex-direction: column;
|
|
1410
|
-
gap: 0.75rem;
|
|
1411
|
-
}
|
|
1412
969
|
.govbr-playground__diagnostics--sidebar {
|
|
1413
970
|
display: block;
|
|
1414
971
|
flex: 1 1 40%;
|
|
@@ -1421,21 +978,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1421
978
|
display: none;
|
|
1422
979
|
}
|
|
1423
980
|
}
|
|
1424
|
-
@container workbench (min-width: 1600px) {
|
|
1425
|
-
.govbr-playground__bench-properties > br-tab,
|
|
1426
|
-
.govbr-playground__bench-properties > .govbr-playground__tool-tabs {
|
|
1427
|
-
display: flex;
|
|
1428
|
-
flex: 0 0 auto;
|
|
1429
|
-
flex-direction: row;
|
|
1430
|
-
width: 100%;
|
|
1431
|
-
min-height: 0;
|
|
1432
|
-
}
|
|
1433
|
-
.govbr-playground__bench-properties > [role='tabpanel'] {
|
|
1434
|
-
flex: 1 1 auto;
|
|
1435
|
-
min-height: 0;
|
|
1436
|
-
overflow: auto;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
981
|
.govbr-playground__property-field {
|
|
1440
982
|
position: relative;
|
|
1441
983
|
min-width: 0;
|
|
@@ -1447,111 +989,16 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1447
989
|
}
|
|
1448
990
|
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1449
991
|
flex: 1 1 auto;
|
|
1450
|
-
min-height:
|
|
1451
|
-
}
|
|
1452
|
-
@container workbench (min-width: 1600px) {
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
@container workbench (min-width: 1600px) {
|
|
1456
|
-
.govbr-playground__bench-main[data-wide='true'] {
|
|
1457
|
-
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
|
|
1458
|
-
grid-template-rows: minmax(0, 1fr) !important;
|
|
1459
|
-
column-gap: 0.75rem !important;
|
|
1460
|
-
}
|
|
1461
|
-
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-preview {
|
|
1462
|
-
grid-area: 1 / 1;
|
|
1463
|
-
}
|
|
1464
|
-
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-divider {
|
|
1465
|
-
display: none !important;
|
|
1466
|
-
}
|
|
1467
|
-
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-properties {
|
|
1468
|
-
display: flex !important;
|
|
1469
|
-
grid-area: 1 / 2;
|
|
1470
|
-
min-height: 0;
|
|
1471
|
-
overflow: hidden;
|
|
1472
|
-
}
|
|
1473
|
-
.govbr-playground__bench-properties > br-tab {
|
|
1474
|
-
display: flex;
|
|
1475
|
-
flex: 1;
|
|
1476
|
-
flex-direction: column;
|
|
1477
|
-
min-height: 0;
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
@container workbench (min-width: 1600px) {
|
|
1482
|
-
.govbr-playground__bench > .govbr-playground__bench-code {
|
|
1483
|
-
flex: 0 1 18rem;
|
|
1484
|
-
min-height: 12rem;
|
|
1485
|
-
max-height: 35vh;
|
|
1486
|
-
}
|
|
992
|
+
min-height: 0;
|
|
1487
993
|
}
|
|
1488
994
|
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1489
995
|
align-self: stretch;
|
|
1490
996
|
}
|
|
1491
|
-
.govbr-playground__diagnostics ol {
|
|
1492
|
-
margin: 0;
|
|
1493
|
-
padding: 0;
|
|
1494
|
-
list-style: none;
|
|
1495
|
-
}
|
|
1496
|
-
.govbr-playground__diagnostics li {
|
|
1497
|
-
padding: 0.625rem 0.75rem;
|
|
1498
|
-
border-bottom: 1px solid var(--gp-border);
|
|
1499
|
-
overflow-wrap: anywhere;
|
|
1500
|
-
}
|
|
1501
|
-
.govbr-playground__diagnostics li time {
|
|
1502
|
-
display: inline-block;
|
|
1503
|
-
min-width: 5.5rem;
|
|
1504
|
-
color: var(--gp-muted);
|
|
1505
|
-
font-variant-numeric: tabular-nums;
|
|
1506
|
-
}
|
|
1507
|
-
.govbr-playground__diagnostics li[data-type='error'],
|
|
1508
|
-
.govbr-playground__diagnostics li[data-type='exception'],
|
|
1509
|
-
.govbr-playground__diagnostics li[data-type='unhandledrejection'] {
|
|
1510
|
-
border-inline-start: 3px solid var(--gp-danger);
|
|
1511
|
-
background: color-mix(in srgb, var(--gp-danger) 7%, transparent);
|
|
1512
|
-
}
|
|
1513
|
-
.govbr-playground__diagnostics pre {
|
|
1514
|
-
white-space: pre-wrap;
|
|
1515
|
-
overflow-wrap: anywhere;
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
.govbr-playground__diagnostics li[data-type='info'] {
|
|
1519
|
-
border-inline-start: 3px solid #1a73a8;
|
|
1520
|
-
background: color-mix(in srgb, #1a73a8 6%, transparent);
|
|
1521
|
-
}
|
|
1522
|
-
.govbr-playground__diagnostics li[data-type='warn'] {
|
|
1523
|
-
border-inline-start: 3px solid #b54708;
|
|
1524
|
-
background: color-mix(in srgb, #f79009 12%, transparent);
|
|
1525
|
-
}
|
|
1526
|
-
.govbr-playground__diagnostics li[data-type='log'] {
|
|
1527
|
-
border-inline-start: 3px solid #667085;
|
|
1528
|
-
}
|
|
1529
|
-
.govbr-playground__diagnostics li[data-type='error'],
|
|
1530
|
-
.govbr-playground__diagnostics li[data-type='exception'],
|
|
1531
|
-
.govbr-playground__diagnostics li[data-type='unhandledrejection'] {
|
|
1532
|
-
border-inline-start-color: #b42318;
|
|
1533
|
-
background: color-mix(in srgb, #d92d20 10%, transparent);
|
|
1534
|
-
}
|
|
1535
997
|
.govbr-playground__console-style {
|
|
1536
998
|
display: inline-block;
|
|
1537
999
|
margin-inline-end: 0.25rem;
|
|
1538
1000
|
font-family: var(--gp-font, inherit);
|
|
1539
1001
|
}
|
|
1540
|
-
.govbr-playground__diagnostics li strong {
|
|
1541
|
-
display: inline-block;
|
|
1542
|
-
min-width: 4.5rem;
|
|
1543
|
-
text-transform: uppercase;
|
|
1544
|
-
font-size: 0.75rem;
|
|
1545
|
-
letter-spacing: 0.04em;
|
|
1546
|
-
}
|
|
1547
|
-
.govbr-playground__diagnostics li[data-type='warn'] strong {
|
|
1548
|
-
color: #93370d;
|
|
1549
|
-
}
|
|
1550
|
-
.govbr-playground__diagnostics li[data-type='error'] strong,
|
|
1551
|
-
.govbr-playground__diagnostics li[data-type='exception'] strong,
|
|
1552
|
-
.govbr-playground__diagnostics li[data-type='unhandledrejection'] strong {
|
|
1553
|
-
color: #b42318;
|
|
1554
|
-
}
|
|
1555
1002
|
|
|
1556
1003
|
.govbr-playground__console-message,
|
|
1557
1004
|
.govbr-playground__console-details {
|
|
@@ -1584,65 +1031,9 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1584
1031
|
Consolas,
|
|
1585
1032
|
monospace;
|
|
1586
1033
|
}
|
|
1587
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar {
|
|
1588
|
-
display: flex;
|
|
1589
|
-
align-items: end;
|
|
1590
|
-
flex-wrap: wrap;
|
|
1591
|
-
gap: 0.5rem;
|
|
1592
|
-
padding: 0.5rem 0 0.75rem;
|
|
1593
|
-
}
|
|
1594
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label {
|
|
1595
|
-
display: flex;
|
|
1596
|
-
flex: 1 1 15rem;
|
|
1597
|
-
flex-direction: column;
|
|
1598
|
-
gap: 0.25rem;
|
|
1599
|
-
}
|
|
1600
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label br-input,
|
|
1601
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label br-select {
|
|
1602
|
-
width: 100%;
|
|
1603
|
-
}
|
|
1604
|
-
.govbr-playground__diagnostics li details {
|
|
1605
|
-
flex-basis: 100%;
|
|
1606
|
-
margin-block-start: 0.35rem;
|
|
1607
|
-
}
|
|
1608
|
-
.govbr-playground__diagnostics li details pre {
|
|
1609
|
-
max-height: 16rem;
|
|
1610
|
-
overflow: auto;
|
|
1611
|
-
padding: 0.75rem;
|
|
1612
|
-
border-radius: 0.35rem;
|
|
1613
|
-
background: var(--gp-surface-muted);
|
|
1614
|
-
}
|
|
1615
|
-
@container workbench (min-width: 1600px) {
|
|
1616
|
-
}
|
|
1617
1034
|
|
|
1618
1035
|
@container workbench (min-width: 1600px) {
|
|
1619
1036
|
/* Override the former three-panel placement: it created implicit empty columns. */
|
|
1620
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-preview {
|
|
1621
|
-
grid-area: 1 / 1 / 2 / 2 !important;
|
|
1622
|
-
}
|
|
1623
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-properties {
|
|
1624
|
-
grid-area: 1 / 2 / 2 / 3 !important;
|
|
1625
|
-
padding-inline-start: 0;
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
@container workbench (min-width: 1600px) {
|
|
1630
|
-
.govbr-playground__bench-main[data-wide='true'] {
|
|
1631
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) !important;
|
|
1632
|
-
column-gap: 0 !important;
|
|
1633
|
-
}
|
|
1634
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-divider {
|
|
1635
|
-
display: block !important;
|
|
1636
|
-
grid-area: 1 / 2 / 2 / 3 !important;
|
|
1637
|
-
cursor: col-resize;
|
|
1638
|
-
}
|
|
1639
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-properties {
|
|
1640
|
-
grid-area: 1 / 3 / 2 / 4 !important;
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
.govbr-playground__bench-preview {
|
|
1644
|
-
display: flex;
|
|
1645
|
-
flex-direction: column;
|
|
1646
1037
|
}
|
|
1647
1038
|
.govbr-playground__preview-area {
|
|
1648
1039
|
display: flex;
|
|
@@ -1660,26 +1051,10 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1660
1051
|
.govbr-playground__preview-area > [aria-label='Área de preview'][data-fill-height='false'] {
|
|
1661
1052
|
flex: 0 0 auto;
|
|
1662
1053
|
}
|
|
1663
|
-
|
|
1664
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar:has(.govbr-playground__event-filter) {
|
|
1665
|
-
align-items: center;
|
|
1666
|
-
}
|
|
1667
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > .govbr-playground__event-filter {
|
|
1668
|
-
flex-direction: row;
|
|
1669
|
-
align-items: center;
|
|
1670
|
-
gap: 0.75rem;
|
|
1671
|
-
min-width: 0;
|
|
1672
|
-
text-align: start;
|
|
1673
|
-
}
|
|
1674
1054
|
.govbr-playground__event-filter > span {
|
|
1675
1055
|
flex: 0 0 auto;
|
|
1676
1056
|
white-space: nowrap;
|
|
1677
1057
|
}
|
|
1678
|
-
.govbr-playground__diagnostics .govbr-playground__event-filter > br-input {
|
|
1679
|
-
flex: 1 1 auto;
|
|
1680
|
-
min-width: 0;
|
|
1681
|
-
width: auto;
|
|
1682
|
-
}
|
|
1683
1058
|
.govbr-playground__bench-header {
|
|
1684
1059
|
align-items: center;
|
|
1685
1060
|
}
|
|
@@ -1694,9 +1069,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1694
1069
|
align-self: center;
|
|
1695
1070
|
margin: 0;
|
|
1696
1071
|
}
|
|
1697
|
-
.govbr-playground__wide-behavior {
|
|
1698
|
-
align-self: center;
|
|
1699
|
-
}
|
|
1700
1072
|
|
|
1701
1073
|
.govbr-playground__component-tree ul {
|
|
1702
1074
|
list-style: none;
|
|
@@ -1767,16 +1139,8 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1767
1139
|
width: 0;
|
|
1768
1140
|
flex: 1 1 0;
|
|
1769
1141
|
}
|
|
1770
|
-
br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not([hidden]) {
|
|
1771
|
-
display: flex;
|
|
1772
|
-
flex-direction: column;
|
|
1773
|
-
flex: 1 1 auto;
|
|
1774
|
-
min-height: 0;
|
|
1775
|
-
height: 100%;
|
|
1776
|
-
}
|
|
1777
1142
|
|
|
1778
|
-
.govbr-playground__example-line
|
|
1779
|
-
.govbr-playground__settings-line {
|
|
1143
|
+
.govbr-playground__example-line {
|
|
1780
1144
|
display: flex;
|
|
1781
1145
|
flex: 0 0 100%;
|
|
1782
1146
|
min-width: 0;
|
|
@@ -1795,61 +1159,6 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1795
1159
|
max-inline-size: 100%;
|
|
1796
1160
|
margin: 0;
|
|
1797
1161
|
}
|
|
1798
|
-
.govbr-playground__settings-line {
|
|
1799
|
-
justify-content: flex-start;
|
|
1800
|
-
}
|
|
1801
|
-
.govbr-playground__settings-line > br-select {
|
|
1802
|
-
inline-size: 14rem;
|
|
1803
|
-
margin: 0;
|
|
1804
|
-
}
|
|
1805
|
-
@container workbench (min-width: 700px) {
|
|
1806
|
-
.govbr-playground__settings-line > .govbr-playground__settings-trigger {
|
|
1807
|
-
display: none;
|
|
1808
|
-
}
|
|
1809
|
-
.govbr-playground__settings-line > .govbr-playground__settings {
|
|
1810
|
-
display: flex !important;
|
|
1811
|
-
position: static !important;
|
|
1812
|
-
inset: auto !important;
|
|
1813
|
-
flex: 1 1 100%;
|
|
1814
|
-
align-items: center;
|
|
1815
|
-
gap: 1rem;
|
|
1816
|
-
width: 100%;
|
|
1817
|
-
max-width: none;
|
|
1818
|
-
max-height: none;
|
|
1819
|
-
margin: 0;
|
|
1820
|
-
padding: 0;
|
|
1821
|
-
overflow: visible;
|
|
1822
|
-
border: 0;
|
|
1823
|
-
background: transparent;
|
|
1824
|
-
color: inherit;
|
|
1825
|
-
box-shadow: none;
|
|
1826
|
-
}
|
|
1827
|
-
.govbr-playground__settings-line > .govbr-playground__settings h3 {
|
|
1828
|
-
display: none;
|
|
1829
|
-
}
|
|
1830
|
-
.govbr-playground__settings-line .govbr-playground__settings-behavior {
|
|
1831
|
-
display: flex;
|
|
1832
|
-
align-items: center;
|
|
1833
|
-
}
|
|
1834
|
-
.govbr-playground__settings-line .govbr-playground__menu-behavior {
|
|
1835
|
-
flex-direction: row;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
@container workbench (min-width: 1600px) {
|
|
1839
|
-
.govbr-playground__settings-line br-select,
|
|
1840
|
-
.govbr-playground__settings-line br-switch {
|
|
1841
|
-
align-self: center;
|
|
1842
|
-
margin: 0;
|
|
1843
|
-
}
|
|
1844
|
-
.govbr-playground__settings-line .govbr-playground__settings hr {
|
|
1845
|
-
display: none;
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
@container workbench (width < 1100px) {
|
|
1849
|
-
.govbr-playground__settings-line > br-select[aria-label$='rápido'] {
|
|
1850
|
-
display: none;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
1162
|
@container workbench (width < 700px) {
|
|
1854
1163
|
.govbr-playground__example-line > label {
|
|
1855
1164
|
width: 100%;
|
|
@@ -1860,89 +1169,7 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1860
1169
|
min-width: 0;
|
|
1861
1170
|
}
|
|
1862
1171
|
}
|
|
1863
|
-
@container workbench (width < 700px) {
|
|
1864
|
-
.govbr-playground__bench-main[data-mobile-panel='preview'] > .govbr-playground__bench-preview {
|
|
1865
|
-
display: flex;
|
|
1866
|
-
flex-direction: column;
|
|
1867
|
-
min-height: 0;
|
|
1868
|
-
}
|
|
1869
|
-
.govbr-playground__bench-main:not([data-mobile-panel='preview']) > .govbr-playground__bench-preview {
|
|
1870
|
-
display: none;
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
1172
|
/* The preview/tools divider shares the space granted by the host in either orientation. */
|
|
1874
|
-
.govbr-playground__workspace {
|
|
1875
|
-
display: flex;
|
|
1876
|
-
flex: 1 1 0;
|
|
1877
|
-
flex-direction: column;
|
|
1878
|
-
min-height: 0;
|
|
1879
|
-
min-width: 0;
|
|
1880
|
-
gap: 0.5rem;
|
|
1881
|
-
}
|
|
1882
|
-
.govbr-playground__workspace[data-stacked-tools='true'] {
|
|
1883
|
-
display: grid;
|
|
1884
|
-
grid-template-rows: minmax(160px, 1fr) auto;
|
|
1885
|
-
gap: 0;
|
|
1886
|
-
min-height: 400px;
|
|
1887
|
-
}
|
|
1888
|
-
.govbr-playground__workspace[data-stacked-tools='true'][data-tools-open='true'] {
|
|
1889
|
-
grid-template-rows: minmax(160px, var(--stacked-split)) 12px minmax(180px, var(--stacked-rest));
|
|
1890
|
-
}
|
|
1891
|
-
.govbr-playground__workspace[data-stacked-tools='true'] > .govbr-playground__bench-main {
|
|
1892
|
-
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1893
|
-
}
|
|
1894
|
-
.govbr-playground__workspace[data-stacked-tools='true'] > .govbr-playground__diagnostics {
|
|
1895
|
-
min-height: 0;
|
|
1896
|
-
max-height: none;
|
|
1897
|
-
height: auto;
|
|
1898
|
-
overflow: auto;
|
|
1899
|
-
}
|
|
1900
|
-
.govbr-playground__workspace[data-mobile-tabs='true'] {
|
|
1901
|
-
display: flex;
|
|
1902
|
-
flex-direction: column;
|
|
1903
|
-
min-height: 0;
|
|
1904
|
-
}
|
|
1905
|
-
.govbr-playground__workspace[data-mobile-tabs='true'] > .govbr-playground__diagnostics--mobile-tabs {
|
|
1906
|
-
display: flex;
|
|
1907
|
-
flex: 1 1 auto;
|
|
1908
|
-
flex-direction: column;
|
|
1909
|
-
min-height: 0;
|
|
1910
|
-
max-height: none;
|
|
1911
|
-
height: auto;
|
|
1912
|
-
overflow: hidden;
|
|
1913
|
-
}
|
|
1914
|
-
.govbr-playground__diagnostics--mobile-tabs > br-tab {
|
|
1915
|
-
display: flex;
|
|
1916
|
-
flex: 1 1 auto;
|
|
1917
|
-
flex-direction: column;
|
|
1918
|
-
min-height: 0;
|
|
1919
|
-
height: 100%;
|
|
1920
|
-
}
|
|
1921
|
-
.govbr-playground__diagnostics--mobile-tabs > .govbr-playground__tool-tabs {
|
|
1922
|
-
flex: 0 0 auto;
|
|
1923
|
-
flex-direction: row;
|
|
1924
|
-
width: 100%;
|
|
1925
|
-
}
|
|
1926
|
-
.govbr-playground__diagnostics--mobile-tabs > br-tab > br-tab-item:not([hidden]) {
|
|
1927
|
-
display: flex;
|
|
1928
|
-
flex: 1 1 auto;
|
|
1929
|
-
flex-direction: column;
|
|
1930
|
-
min-height: 0;
|
|
1931
|
-
}
|
|
1932
|
-
.govbr-playground__diagnostics--mobile-tabs > [role='tabpanel'] {
|
|
1933
|
-
display: flex;
|
|
1934
|
-
flex-direction: column;
|
|
1935
|
-
flex: 1 1 auto;
|
|
1936
|
-
min-height: 0;
|
|
1937
|
-
overflow: auto;
|
|
1938
|
-
}
|
|
1939
|
-
.govbr-playground__diagnostics--mobile-tabs .govbr-playground__bench-preview {
|
|
1940
|
-
display: flex;
|
|
1941
|
-
flex: 1 1 auto;
|
|
1942
|
-
flex-direction: column;
|
|
1943
|
-
min-height: 0;
|
|
1944
|
-
overflow: auto;
|
|
1945
|
-
}
|
|
1946
1173
|
.govbr-playground__stacked-divider,
|
|
1947
1174
|
.govbr-playground__bench-divider {
|
|
1948
1175
|
position: relative;
|
|
@@ -1978,49 +1205,15 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1978
1205
|
.govbr-playground__bench[data-resizing='true'] iframe {
|
|
1979
1206
|
pointer-events: none;
|
|
1980
1207
|
}
|
|
1981
|
-
@container workbench (min-width: 700px) {
|
|
1982
|
-
.govbr-playground__workspace > .govbr-playground__bench-main[data-inspector-tabs='true'] {
|
|
1983
|
-
grid-template-columns: minmax(240px, var(--bench-split)) 12px minmax(280px, var(--bench-rest)) !important;
|
|
1984
|
-
grid-template-rows: minmax(0, 1fr) !important;
|
|
1985
|
-
column-gap: 0 !important;
|
|
1986
|
-
}
|
|
1987
|
-
.govbr-playground__bench-main[data-inspector-tabs='true'] > .govbr-playground__bench-divider {
|
|
1988
|
-
display: block !important;
|
|
1989
|
-
grid-area: 1 / 2 !important;
|
|
1990
|
-
cursor: col-resize;
|
|
1991
|
-
}
|
|
1992
|
-
.govbr-playground__bench-main[data-inspector-tabs='true'] > .govbr-playground__bench-properties {
|
|
1993
|
-
grid-area: 1 / 3 !important;
|
|
1994
|
-
padding-inline-start: 0;
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
1208
|
|
|
1998
1209
|
/* Presentation changes visibility, preserving the live preview node. */
|
|
1999
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__settings-line,
|
|
2000
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-properties,
|
|
2001
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-code,
|
|
2002
1210
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-divider,
|
|
2003
1211
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__stacked-divider,
|
|
2004
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer'])
|
|
2005
|
-
.govbr-playground__workspace
|
|
2006
|
-
> .govbr-playground__diagnostics,
|
|
2007
1212
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-description,
|
|
2008
1213
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-details,
|
|
2009
1214
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__component-title {
|
|
2010
1215
|
display: none !important;
|
|
2011
1216
|
}
|
|
2012
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__workspace,
|
|
2013
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-main {
|
|
2014
|
-
display: flex !important;
|
|
2015
|
-
flex: 1 1 0;
|
|
2016
|
-
flex-direction: column;
|
|
2017
|
-
min-height: 0;
|
|
2018
|
-
gap: 0;
|
|
2019
|
-
}
|
|
2020
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-preview {
|
|
2021
|
-
display: flex !important;
|
|
2022
|
-
flex: 1 1 0;
|
|
2023
|
-
}
|
|
2024
1217
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__preview-header,
|
|
2025
1218
|
.govbr-playground__bench[data-presentation='preview'] .govbr-playground__bench-header {
|
|
2026
1219
|
display: none !important;
|
|
@@ -2030,44 +1223,520 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
2030
1223
|
min-inline-size: 0;
|
|
2031
1224
|
flex: 1 1 12rem;
|
|
2032
1225
|
}
|
|
2033
|
-
.govbr-playground__settings-line > br-select,
|
|
2034
1226
|
.govbr-playground__example-line br-select {
|
|
2035
1227
|
max-inline-size: 100%;
|
|
2036
1228
|
}
|
|
2037
|
-
[data-library='wbc'] .govbr-playground__settings-line > br-select::part(input-label),
|
|
2038
1229
|
[data-library='wbc'] .govbr-playground__example-line br-select::part(input-label) {
|
|
2039
1230
|
display: none;
|
|
2040
1231
|
}
|
|
2041
|
-
[data-
|
|
1232
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__resize {
|
|
1233
|
+
display: none !important;
|
|
1234
|
+
}
|
|
1235
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) [aria-label='Área de preview'] {
|
|
1236
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.govbr-playground__workspace-modes {
|
|
2042
1240
|
display: flex;
|
|
2043
|
-
flex:
|
|
2044
|
-
|
|
1241
|
+
flex-wrap: wrap;
|
|
1242
|
+
gap: 0.5rem;
|
|
1243
|
+
align-items: center;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.govbr-playground__preview-area iframe {
|
|
1247
|
+
zoom: var(--preview-zoom, 1);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.govbr-playground__workspace-modes button,
|
|
1251
|
+
.govbr-playground__workspace-modes select {
|
|
1252
|
+
padding: 0.5rem 0.75rem;
|
|
1253
|
+
border: 1px solid var(--gp-border);
|
|
1254
|
+
border-radius: 4px;
|
|
1255
|
+
background: var(--gp-bg, #fff);
|
|
1256
|
+
color: var(--gp-text, #333);
|
|
1257
|
+
font: inherit;
|
|
1258
|
+
cursor: pointer;
|
|
1259
|
+
}
|
|
1260
|
+
.govbr-playground__workspace-modes button[aria-pressed='true'] {
|
|
1261
|
+
background: var(--interactive, #1351b4);
|
|
1262
|
+
color: #fff;
|
|
1263
|
+
}
|
|
1264
|
+
.govbr-playground__workspace-modes :focus-visible {
|
|
1265
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1266
|
+
outline-offset: 2px;
|
|
1267
|
+
}
|
|
1268
|
+
.govbr-playground__mode-help {
|
|
1269
|
+
margin: 0;
|
|
1270
|
+
color: var(--gp-muted);
|
|
1271
|
+
font-size: 0.875rem;
|
|
1272
|
+
}
|
|
1273
|
+
.govbr-playground__studio {
|
|
1274
|
+
display: grid;
|
|
1275
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1276
|
+
grid-template-rows: minmax(240px, 1fr);
|
|
1277
|
+
flex: 1;
|
|
2045
1278
|
min-height: 0;
|
|
2046
1279
|
min-width: 0;
|
|
1280
|
+
overflow: auto;
|
|
1281
|
+
}
|
|
1282
|
+
.govbr-playground__studio[data-tools-open='true'] {
|
|
1283
|
+
grid-template-rows: minmax(240px, var(--studio-split)) 12px minmax(280px, var(--studio-rest));
|
|
1284
|
+
}
|
|
1285
|
+
.govbr-playground__studio[data-horizontal='true'][data-tools-open='true'] {
|
|
1286
|
+
grid-template-columns: minmax(240px, var(--studio-split)) 12px minmax(280px, var(--studio-rest));
|
|
1287
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1288
|
+
}
|
|
1289
|
+
.govbr-playground__studio-preview,
|
|
1290
|
+
.govbr-playground__studio-tools {
|
|
1291
|
+
min-width: 0;
|
|
1292
|
+
min-height: 0;
|
|
1293
|
+
overflow: auto;
|
|
2047
1294
|
}
|
|
2048
|
-
|
|
1295
|
+
.govbr-playground__studio-tools {
|
|
2049
1296
|
display: flex;
|
|
2050
|
-
flex: 1 1 0;
|
|
2051
1297
|
flex-direction: column;
|
|
1298
|
+
}
|
|
1299
|
+
.govbr-playground__studio > [role='separator'] {
|
|
1300
|
+
display: block;
|
|
1301
|
+
width: auto;
|
|
1302
|
+
height: auto;
|
|
1303
|
+
min-height: 12px;
|
|
1304
|
+
min-width: 12px;
|
|
1305
|
+
}
|
|
1306
|
+
.govbr-playground__studio[data-tools-open='true'] > .govbr-playground__studio-tools {
|
|
1307
|
+
grid-row: 3;
|
|
1308
|
+
grid-column: 1;
|
|
1309
|
+
}
|
|
1310
|
+
.govbr-playground__studio[data-horizontal='true'][data-tools-open='true'] > .govbr-playground__studio-tools {
|
|
1311
|
+
grid-row: 1;
|
|
1312
|
+
grid-column: 3;
|
|
1313
|
+
}
|
|
1314
|
+
.govbr-playground__studio-preview {
|
|
1315
|
+
display: flex;
|
|
1316
|
+
flex-direction: column;
|
|
1317
|
+
}
|
|
1318
|
+
.govbr-playground__studio-preview > .govbr-playground__preview-area {
|
|
1319
|
+
flex: 1;
|
|
1320
|
+
min-height: 240px;
|
|
1321
|
+
}
|
|
1322
|
+
.govbr-playground__workspace-modes button[aria-pressed='true'] {
|
|
1323
|
+
background: var(--gp-primary, #1351b4);
|
|
1324
|
+
}
|
|
1325
|
+
[data-library] .govbr-playground__workspace-modes button[aria-pressed='true'] {
|
|
1326
|
+
background: var(--gp-accent, #1351b4);
|
|
1327
|
+
color: #fff;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.govbr-playground__studio > [role='separator'] {
|
|
1331
|
+
grid-column: 1;
|
|
1332
|
+
grid-row: 2;
|
|
1333
|
+
align-self: stretch;
|
|
1334
|
+
justify-self: stretch;
|
|
1335
|
+
margin: 0;
|
|
1336
|
+
cursor: row-resize;
|
|
1337
|
+
}
|
|
1338
|
+
.govbr-playground__studio[data-horizontal='true'] > [role='separator'] {
|
|
1339
|
+
grid-column: 2;
|
|
1340
|
+
grid-row: 1;
|
|
1341
|
+
cursor: col-resize;
|
|
1342
|
+
}
|
|
1343
|
+
.govbr-playground__custom-viewport {
|
|
1344
|
+
min-inline-size: 0;
|
|
1345
|
+
margin: 0;
|
|
1346
|
+
padding: 0.5rem 0.75rem;
|
|
1347
|
+
border: 1px solid var(--gp-border);
|
|
1348
|
+
border-radius: 6px;
|
|
1349
|
+
background: var(--gp-surface);
|
|
1350
|
+
}
|
|
1351
|
+
.govbr-playground__custom-viewport legend {
|
|
1352
|
+
padding-inline: 0.25rem;
|
|
1353
|
+
font-size: 0.8rem;
|
|
1354
|
+
color: var(--gp-muted);
|
|
1355
|
+
}
|
|
1356
|
+
.govbr-playground__custom-size {
|
|
1357
|
+
display: flex;
|
|
1358
|
+
flex-wrap: wrap;
|
|
1359
|
+
gap: 0.75rem;
|
|
1360
|
+
align-items: end;
|
|
1361
|
+
}
|
|
1362
|
+
.govbr-playground__custom-size label {
|
|
1363
|
+
display: grid;
|
|
1364
|
+
grid-template-columns: minmax(4rem, 6rem) auto;
|
|
1365
|
+
align-items: center;
|
|
1366
|
+
gap: 0.25rem;
|
|
1367
|
+
font-size: 0.85rem;
|
|
1368
|
+
}
|
|
1369
|
+
.govbr-playground__custom-size input {
|
|
1370
|
+
grid-column: 1;
|
|
1371
|
+
width: 100%;
|
|
1372
|
+
box-sizing: border-box;
|
|
1373
|
+
padding: 0.5rem;
|
|
1374
|
+
border: 1px solid var(--gp-border);
|
|
1375
|
+
border-radius: 4px;
|
|
1376
|
+
font: inherit;
|
|
1377
|
+
color: var(--gp-text);
|
|
1378
|
+
background: var(--gp-surface);
|
|
1379
|
+
}
|
|
1380
|
+
.govbr-playground__custom-size button {
|
|
1381
|
+
padding: 0.5rem;
|
|
1382
|
+
border: 1px solid var(--gp-border);
|
|
1383
|
+
border-radius: 4px;
|
|
1384
|
+
color: var(--gp-accent);
|
|
1385
|
+
background: var(--gp-surface);
|
|
1386
|
+
font: inherit;
|
|
1387
|
+
cursor: pointer;
|
|
1388
|
+
}
|
|
1389
|
+
.govbr-playground__custom-size :focus-visible {
|
|
1390
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1391
|
+
outline-offset: 2px;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
.govbr-playground__viewport-popover {
|
|
1395
|
+
position: fixed;
|
|
1396
|
+
inset: auto;
|
|
1397
|
+
margin: 0;
|
|
1398
|
+
padding: 0.75rem;
|
|
1399
|
+
max-width: calc(100vw - 16px);
|
|
1400
|
+
max-height: calc(100vh - 16px);
|
|
1401
|
+
overflow: auto;
|
|
1402
|
+
border: 1px solid var(--gp-border);
|
|
1403
|
+
border-radius: 8px;
|
|
1404
|
+
background: var(--gp-surface);
|
|
1405
|
+
color: var(--gp-text);
|
|
1406
|
+
box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
|
|
1407
|
+
}
|
|
1408
|
+
.govbr-playground__preview-actions {
|
|
1409
|
+
display: flex;
|
|
1410
|
+
flex-wrap: wrap;
|
|
1411
|
+
gap: 0.5rem;
|
|
1412
|
+
align-items: center;
|
|
1413
|
+
}
|
|
1414
|
+
.govbr-playground__preview {
|
|
1415
|
+
position: relative;
|
|
1416
|
+
}
|
|
1417
|
+
.govbr-playground__viewport-size {
|
|
1418
|
+
position: absolute;
|
|
1419
|
+
inset-block-end: 0.25rem;
|
|
1420
|
+
inset-inline-end: 0.25rem;
|
|
1421
|
+
padding: 0.15rem 0.35rem;
|
|
1422
|
+
border-radius: 3px;
|
|
1423
|
+
background: var(--gp-surface, #fff);
|
|
1424
|
+
color: var(--gp-text, #333);
|
|
1425
|
+
font: 0.75rem monospace;
|
|
1426
|
+
pointer-events: none;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
.govbr-playground__environment-line,
|
|
1430
|
+
.govbr-playground__environment-fields {
|
|
1431
|
+
display: flex;
|
|
1432
|
+
flex-wrap: wrap;
|
|
1433
|
+
gap: 0.75rem;
|
|
1434
|
+
align-items: center;
|
|
1435
|
+
min-width: 0;
|
|
1436
|
+
}
|
|
1437
|
+
.govbr-playground__environment-field {
|
|
1438
|
+
display: flex;
|
|
1439
|
+
flex-wrap: wrap;
|
|
1440
|
+
gap: 0.5rem;
|
|
1441
|
+
align-items: center;
|
|
1442
|
+
}
|
|
1443
|
+
.govbr-playground__environment-line br-select {
|
|
1444
|
+
inline-size: 12rem;
|
|
1445
|
+
max-inline-size: 100%;
|
|
1446
|
+
}
|
|
1447
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__environment-line {
|
|
1448
|
+
display: none;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
/* A navegação de abas não participa da rolagem do conteúdo. */
|
|
1452
|
+
.govbr-playground__studio-tools {
|
|
1453
|
+
overflow: hidden;
|
|
1454
|
+
}
|
|
1455
|
+
.govbr-playground__studio-tools > [role='tablist'] {
|
|
1456
|
+
flex: 0 0 auto;
|
|
1457
|
+
}
|
|
1458
|
+
.govbr-playground__studio-tools > [role='tabpanel'] {
|
|
1459
|
+
display: flex;
|
|
1460
|
+
flex-direction: column;
|
|
1461
|
+
flex: 1 1 0;
|
|
2052
1462
|
min-height: 0;
|
|
2053
1463
|
overflow: auto;
|
|
2054
1464
|
}
|
|
2055
|
-
|
|
1465
|
+
.govbr-playground__controls {
|
|
1466
|
+
display: flex;
|
|
1467
|
+
flex-direction: column;
|
|
1468
|
+
min-height: 0;
|
|
1469
|
+
height: 100%;
|
|
1470
|
+
overflow: hidden;
|
|
1471
|
+
gap: 0.5rem;
|
|
1472
|
+
}
|
|
1473
|
+
.govbr-playground__controls > header {
|
|
2056
1474
|
flex: 0 0 auto;
|
|
2057
1475
|
}
|
|
2058
|
-
|
|
1476
|
+
.govbr-playground__props-scroll {
|
|
1477
|
+
flex: 1 1 0;
|
|
1478
|
+
min-height: 0;
|
|
1479
|
+
overflow: auto;
|
|
1480
|
+
}
|
|
1481
|
+
.govbr-playground__section-body {
|
|
1482
|
+
padding: 0.5rem;
|
|
1483
|
+
min-width: 0;
|
|
2059
1484
|
}
|
|
2060
|
-
.govbr-
|
|
2061
|
-
|
|
1485
|
+
.govbr-playground__tree-section .govbr-playground__section-body {
|
|
1486
|
+
max-height: 9rem;
|
|
1487
|
+
overflow: auto;
|
|
2062
1488
|
}
|
|
2063
|
-
.govbr-
|
|
2064
|
-
|
|
1489
|
+
.govbr-playground__inspector-footer .govbr-playground__section-body {
|
|
1490
|
+
max-height: 22vh;
|
|
1491
|
+
overflow: auto;
|
|
2065
1492
|
}
|
|
2066
|
-
|
|
1493
|
+
.govbr-playground__controls br-collapse {
|
|
1494
|
+
display: block;
|
|
1495
|
+
min-width: 0;
|
|
1496
|
+
border-block-end: 1px solid var(--gp-border);
|
|
2067
1497
|
}
|
|
2068
|
-
.govbr-
|
|
2069
|
-
|
|
1498
|
+
.govbr-playground__property-meta {
|
|
1499
|
+
display: grid;
|
|
1500
|
+
gap: 0.5rem;
|
|
1501
|
+
margin-block-start: 0.5rem;
|
|
1502
|
+
color: var(--gp-muted);
|
|
1503
|
+
font-size: 0.8rem;
|
|
1504
|
+
}
|
|
1505
|
+
.govbr-playground__property-summary {
|
|
1506
|
+
display: flex;
|
|
1507
|
+
align-items: baseline;
|
|
1508
|
+
flex-wrap: wrap;
|
|
1509
|
+
gap: 0.5rem 0.75rem;
|
|
2070
1510
|
}
|
|
2071
|
-
.govbr-
|
|
2072
|
-
|
|
1511
|
+
.govbr-playground__property-type {
|
|
1512
|
+
font-size: 0.75rem;
|
|
1513
|
+
overflow-wrap: anywhere;
|
|
1514
|
+
}
|
|
1515
|
+
.govbr-playground__property-default {
|
|
1516
|
+
overflow-wrap: anywhere;
|
|
1517
|
+
}
|
|
1518
|
+
.govbr-playground__property-default code {
|
|
1519
|
+
white-space: pre-wrap;
|
|
1520
|
+
}
|
|
1521
|
+
.govbr-playground__property-values summary {
|
|
1522
|
+
cursor: pointer;
|
|
1523
|
+
padding-block: 0.2rem;
|
|
1524
|
+
}
|
|
1525
|
+
.govbr-playground__property-values ul {
|
|
1526
|
+
display: flex;
|
|
1527
|
+
flex-wrap: wrap;
|
|
1528
|
+
gap: 0.4rem;
|
|
1529
|
+
padding: 0;
|
|
1530
|
+
margin: 0.5rem 0 0;
|
|
1531
|
+
list-style: none;
|
|
1532
|
+
}
|
|
1533
|
+
.govbr-playground__property-values code {
|
|
1534
|
+
white-space: nowrap;
|
|
1535
|
+
word-break: normal;
|
|
1536
|
+
}
|
|
1537
|
+
.govbr-playground__switch--unlabelled > span,
|
|
1538
|
+
.govbr-playground__property-field br-select::part(input-label) {
|
|
1539
|
+
position: absolute;
|
|
1540
|
+
inline-size: 1px;
|
|
1541
|
+
block-size: 1px;
|
|
1542
|
+
overflow: hidden;
|
|
1543
|
+
clip-path: inset(50%);
|
|
1544
|
+
white-space: nowrap;
|
|
1545
|
+
}
|
|
1546
|
+
.govbr-playground__color-editor {
|
|
1547
|
+
display: flex;
|
|
1548
|
+
align-items: center;
|
|
1549
|
+
flex-wrap: wrap;
|
|
1550
|
+
gap: 0.5rem;
|
|
1551
|
+
}
|
|
1552
|
+
.govbr-playground__color-editor > small,
|
|
1553
|
+
.govbr-playground__color-editor > p {
|
|
1554
|
+
flex-basis: 100%;
|
|
1555
|
+
}
|
|
1556
|
+
.govbr-playground__color-swatch {
|
|
1557
|
+
display: inline-block;
|
|
1558
|
+
width: 2rem;
|
|
1559
|
+
height: 2rem;
|
|
1560
|
+
border: 1px solid var(--gp-border);
|
|
1561
|
+
border-radius: 4px;
|
|
1562
|
+
}
|
|
1563
|
+
.govbr-playground__color-swatch input {
|
|
1564
|
+
width: 100%;
|
|
1565
|
+
height: 100%;
|
|
1566
|
+
cursor: pointer;
|
|
1567
|
+
opacity: 0;
|
|
1568
|
+
}
|
|
1569
|
+
.govbr-playground__color-swatch:focus-within {
|
|
1570
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1571
|
+
outline-offset: 2px;
|
|
1572
|
+
}
|
|
1573
|
+
.govbr-playground__native-switch {
|
|
1574
|
+
display: inline-flex;
|
|
1575
|
+
gap: 0.5rem;
|
|
1576
|
+
align-items: center;
|
|
1577
|
+
}
|
|
1578
|
+
.govbr-playground__parts-list dd {
|
|
1579
|
+
margin: 0.25rem 0 0.75rem;
|
|
1580
|
+
}
|
|
1581
|
+
.govbr-playground__viewport-controls > label {
|
|
1582
|
+
display: flex;
|
|
1583
|
+
align-items: center;
|
|
1584
|
+
gap: 0.5rem;
|
|
1585
|
+
}
|
|
1586
|
+
.govbr-playground__viewport-controls > label br-select {
|
|
1587
|
+
inline-size: 7rem;
|
|
1588
|
+
}
|
|
1589
|
+
.govbr-playground__viewport-controls > label br-select::part(input-label),
|
|
1590
|
+
.govbr-playground__workspace-modes br-select::part(input-label) {
|
|
1591
|
+
display: none;
|
|
1592
|
+
}
|
|
1593
|
+
.govbr-playground__controls {
|
|
1594
|
+
container-type: inline-size;
|
|
1595
|
+
container-name: inspector;
|
|
1596
|
+
}
|
|
1597
|
+
@container inspector (max-width: 650px) {
|
|
1598
|
+
.govbr-playground__controls table,
|
|
1599
|
+
.govbr-playground__controls tbody,
|
|
1600
|
+
.govbr-playground__controls tr,
|
|
1601
|
+
.govbr-playground__controls th,
|
|
1602
|
+
.govbr-playground__controls td {
|
|
1603
|
+
display: block;
|
|
1604
|
+
width: 100%;
|
|
1605
|
+
box-sizing: border-box;
|
|
1606
|
+
}
|
|
1607
|
+
.govbr-playground__controls thead {
|
|
1608
|
+
display: none;
|
|
1609
|
+
}
|
|
1610
|
+
.govbr-playground__controls tr {
|
|
1611
|
+
border-block-end: 1px solid var(--gp-border);
|
|
1612
|
+
padding-block: 0.5rem;
|
|
1613
|
+
}
|
|
1614
|
+
.govbr-playground__controls th,
|
|
1615
|
+
.govbr-playground__controls td {
|
|
1616
|
+
border: 0;
|
|
1617
|
+
padding: 0.35rem;
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
.govbr-playground__workspace-modes label {
|
|
1621
|
+
display: flex;
|
|
1622
|
+
align-items: center;
|
|
1623
|
+
gap: 0.5rem;
|
|
1624
|
+
}
|
|
1625
|
+
.govbr-playground__workspace-modes br-select {
|
|
1626
|
+
inline-size: 11rem;
|
|
1627
|
+
}
|
|
1628
|
+
.govbr-playground__studio[data-horizontal='false'][data-tools-open='true'] {
|
|
1629
|
+
grid-template-rows: minmax(240px, var(--studio-split)) 12px minmax(380px, var(--studio-rest));
|
|
1630
|
+
}
|
|
1631
|
+
.govbr-playground__inspector-footer {
|
|
1632
|
+
display: flex;
|
|
1633
|
+
flex-direction: column;
|
|
1634
|
+
max-height: 55%;
|
|
1635
|
+
flex: 0 1 auto;
|
|
1636
|
+
min-height: 6rem;
|
|
1637
|
+
}
|
|
1638
|
+
.govbr-playground__inspector-footer > br-collapse {
|
|
1639
|
+
min-height: 3rem;
|
|
1640
|
+
flex: 0 1 auto;
|
|
1641
|
+
overflow: auto;
|
|
1642
|
+
}
|
|
1643
|
+
.govbr-playground__inspector-footer br-collapse::part(trigger) {
|
|
1644
|
+
position: sticky;
|
|
1645
|
+
top: 0;
|
|
1646
|
+
background: var(--gp-surface);
|
|
1647
|
+
}
|
|
1648
|
+
.govbr-playground__native-switch input {
|
|
1649
|
+
appearance: none;
|
|
1650
|
+
display: inline-flex;
|
|
1651
|
+
align-items: center;
|
|
1652
|
+
inline-size: 2.4rem;
|
|
1653
|
+
block-size: 1.35rem;
|
|
1654
|
+
border: 1px solid var(--gp-border);
|
|
1655
|
+
border-radius: 1rem;
|
|
1656
|
+
background: var(--gp-muted);
|
|
1657
|
+
cursor: pointer;
|
|
1658
|
+
}
|
|
1659
|
+
.govbr-playground__native-switch input::before {
|
|
1660
|
+
content: '';
|
|
1661
|
+
inline-size: 1rem;
|
|
1662
|
+
block-size: 1rem;
|
|
1663
|
+
margin-inline-start: 0.12rem;
|
|
1664
|
+
border-radius: 50%;
|
|
1665
|
+
background: var(--gp-surface);
|
|
1666
|
+
}
|
|
1667
|
+
.govbr-playground__native-switch input:checked {
|
|
1668
|
+
background: var(--gp-accent);
|
|
1669
|
+
}
|
|
1670
|
+
.govbr-playground__native-switch input:checked::before {
|
|
1671
|
+
margin-inline-start: 1.1rem;
|
|
1672
|
+
}
|
|
1673
|
+
.govbr-playground__native-switch input:focus-visible {
|
|
1674
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1675
|
+
outline-offset: 2px;
|
|
1676
|
+
}
|
|
1677
|
+
.govbr-playground__native-switch input:disabled {
|
|
1678
|
+
opacity: 0.55;
|
|
1679
|
+
cursor: not-allowed;
|
|
1680
|
+
}
|
|
1681
|
+
.govbr-playground__preview-area [aria-label='Área de preview'][data-fill-height='true'] {
|
|
1682
|
+
min-height: 176px;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
/* Recolher Props libera o espaço; o rodapé só fica ancorado quando há conteúdo aberto. */
|
|
1686
|
+
.govbr-playground__props-scroll {
|
|
1687
|
+
flex: 0 1 auto;
|
|
1688
|
+
}
|
|
1689
|
+
.govbr-playground__props-scroll:has(> br-collapse[open]) {
|
|
1690
|
+
flex: 1 1 0;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
.govbr-playground__studio-preview {
|
|
1694
|
+
scrollbar-gutter: stable;
|
|
1695
|
+
overflow-anchor: none;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.govbr-playground__example-picker {
|
|
1699
|
+
position: relative;
|
|
1700
|
+
max-width: 24rem;
|
|
1701
|
+
}
|
|
1702
|
+
.govbr-playground__example-picker br-input {
|
|
1703
|
+
display: block;
|
|
1704
|
+
}
|
|
1705
|
+
.govbr-playground__example-results:not([hidden]) {
|
|
1706
|
+
position: absolute;
|
|
1707
|
+
inset-inline: 0;
|
|
1708
|
+
top: 100%;
|
|
1709
|
+
z-index: var(--z-index-layer-1, 1);
|
|
1710
|
+
display: grid;
|
|
1711
|
+
max-height: 18rem;
|
|
1712
|
+
overflow: auto;
|
|
1713
|
+
border: 1px solid var(--gp-border, #c8cdd3);
|
|
1714
|
+
border-radius: 4px;
|
|
1715
|
+
background: var(--gp-surface, #fff);
|
|
1716
|
+
color: var(--gp-text, #1b1b1b);
|
|
1717
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
|
|
1718
|
+
}
|
|
1719
|
+
.govbr-playground__example-results button {
|
|
1720
|
+
padding: 0.5rem 0.75rem;
|
|
1721
|
+
border: 0;
|
|
1722
|
+
background: transparent;
|
|
1723
|
+
color: inherit;
|
|
1724
|
+
font: inherit;
|
|
1725
|
+
text-align: start;
|
|
1726
|
+
cursor: pointer;
|
|
1727
|
+
}
|
|
1728
|
+
.govbr-playground__example-results button:hover,
|
|
1729
|
+
.govbr-playground__example-results button:focus-visible {
|
|
1730
|
+
background: var(--gp-accent-soft, #e8f0fe);
|
|
1731
|
+
outline: 2px solid var(--gp-accent, #1351b4);
|
|
1732
|
+
outline-offset: -2px;
|
|
1733
|
+
}
|
|
1734
|
+
.govbr-playground__example-results p {
|
|
1735
|
+
margin: 0;
|
|
1736
|
+
padding: 0.75rem;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
.govbr-playground__example-line > div {
|
|
1740
|
+
width: 24rem;
|
|
1741
|
+
max-width: 100%;
|
|
2073
1742
|
}
|