@govbr-ds/playground 5.2.1 → 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 +35 -35
- 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 +13 -2
- 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 +26 -26
- package/dist/sources.d.ts +7 -0
- package/dist/sources.d.ts.map +1 -1
- package/dist/styles.css +496 -840
- package/docs/configuration.md +37 -8
- 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,39 +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: 5.5rem minmax(0, 1fr);
|
|
765
|
-
align-items: center;
|
|
766
|
-
gap: 0.75rem;
|
|
767
|
-
font-weight: 600;
|
|
768
|
-
}
|
|
769
|
-
.govbr-playground__setting-row br-select {
|
|
770
|
-
width: 100%;
|
|
771
|
-
min-width: 0;
|
|
772
|
-
}
|
|
773
|
-
.govbr-playground__settings hr {
|
|
774
|
-
grid-column: 1 / -1;
|
|
775
|
-
border: 0;
|
|
776
|
-
border-block-start: 1px solid var(--gp-border);
|
|
777
|
-
width: 100%;
|
|
778
|
-
margin: 0.25rem 0;
|
|
779
|
-
}
|
|
780
|
-
.govbr-playground__settings br-checkbox {
|
|
781
|
-
display: block;
|
|
782
|
-
width: 100%;
|
|
783
|
-
}
|
|
784
|
-
.govbr-playground__menu-behavior {
|
|
785
|
-
display: flex;
|
|
786
|
-
flex-direction: column;
|
|
787
|
-
gap: 0.5rem;
|
|
788
|
-
}
|
|
789
706
|
@media (max-width: 700px) {
|
|
790
707
|
.govbr-playground__appearance {
|
|
791
708
|
border: 0;
|
|
@@ -814,29 +731,6 @@ body.wbc-shared-playground-active #content > section[aria-label='Playground do c
|
|
|
814
731
|
inline-size: auto;
|
|
815
732
|
min-width: 0;
|
|
816
733
|
}
|
|
817
|
-
.govbr-playground__settings-trigger {
|
|
818
|
-
margin-inline-start: 0;
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
823
|
-
display: flex;
|
|
824
|
-
flex: 1;
|
|
825
|
-
min-height: 0;
|
|
826
|
-
width: 100%;
|
|
827
|
-
height: 100%;
|
|
828
|
-
}
|
|
829
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item {
|
|
830
|
-
flex: 1;
|
|
831
|
-
min-width: 0;
|
|
832
|
-
min-height: 0;
|
|
833
|
-
}
|
|
834
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item:not([hidden]) {
|
|
835
|
-
display: flex;
|
|
836
|
-
flex-direction: column;
|
|
837
|
-
height: 100%;
|
|
838
|
-
min-height: 0;
|
|
839
|
-
gap: 0.5rem;
|
|
840
734
|
}
|
|
841
735
|
|
|
842
736
|
@media (min-width: 701px) {
|
|
@@ -857,14 +751,6 @@ br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e fram
|
|
|
857
751
|
.govbr-playground__appearance br-select {
|
|
858
752
|
inline-size: clamp(9rem, 15vw, 13rem);
|
|
859
753
|
}
|
|
860
|
-
.govbr-playground__settings-trigger {
|
|
861
|
-
flex: 0 0 auto;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
866
|
-
--tab-container-padding: 0;
|
|
867
|
-
--tab-size: 2.5rem;
|
|
868
754
|
}
|
|
869
755
|
|
|
870
756
|
.govbr-playground__preview-toolbar {
|
|
@@ -875,37 +761,6 @@ br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e fram
|
|
|
875
761
|
.govbr-playground__preview-toolbar > br-select {
|
|
876
762
|
margin-inline-start: 0.35rem;
|
|
877
763
|
}
|
|
878
|
-
.govbr-playground__settings-trigger {
|
|
879
|
-
align-self: center;
|
|
880
|
-
margin-block: auto;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
@media (max-width: 480px) {
|
|
884
|
-
.govbr-playground__settings:popover-open {
|
|
885
|
-
grid-template-columns: minmax(0, 1fr);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
.govbr-playground__settings-trigger {
|
|
890
|
-
float: inline-end;
|
|
891
|
-
margin-inline-start: 2rem;
|
|
892
|
-
}
|
|
893
|
-
.govbr-playground__settings-line > .govbr-playground__settings-trigger {
|
|
894
|
-
float: none;
|
|
895
|
-
margin-inline-start: 0;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
899
|
-
display: flex;
|
|
900
|
-
height: 100%;
|
|
901
|
-
min-height: 0;
|
|
902
|
-
}
|
|
903
|
-
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item:not([hidden]) {
|
|
904
|
-
display: flex;
|
|
905
|
-
flex: 1 1 auto;
|
|
906
|
-
flex-direction: column;
|
|
907
|
-
min-height: 0;
|
|
908
|
-
}
|
|
909
764
|
|
|
910
765
|
.govbr-playground__tools {
|
|
911
766
|
display: flex;
|
|
@@ -918,53 +773,11 @@ br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e fram
|
|
|
918
773
|
display: flex;
|
|
919
774
|
flex-direction: column;
|
|
920
775
|
}
|
|
921
|
-
.govbr-playground__editor > br-tab {
|
|
922
|
-
display: flex;
|
|
923
|
-
flex: 1 1 0;
|
|
924
|
-
min-height: 0;
|
|
925
|
-
min-width: 0;
|
|
926
|
-
}
|
|
927
|
-
.govbr-playground__editor > br-tab > br-tab-item:not([hidden]) {
|
|
928
|
-
display: flex;
|
|
929
|
-
flex: 1 1 0;
|
|
930
|
-
flex-direction: column;
|
|
931
|
-
min-height: 0;
|
|
932
|
-
min-width: 0;
|
|
933
|
-
}
|
|
934
|
-
.govbr-playground__editor > br-tab > br-tab-item > .cm-theme {
|
|
935
|
-
flex: 1 1 0;
|
|
936
|
-
min-height: 0;
|
|
937
|
-
min-width: 0;
|
|
938
|
-
}
|
|
939
|
-
br-tab[aria-label='Arquivos e frameworks'] > br-tab-item:not([hidden]) {
|
|
940
|
-
display: flex;
|
|
941
|
-
flex-direction: column;
|
|
942
|
-
}
|
|
943
|
-
br-tab[aria-label='Arquivos e frameworks'] .cm-theme {
|
|
944
|
-
flex: 1;
|
|
945
|
-
min-height: 0;
|
|
946
|
-
}
|
|
947
776
|
|
|
948
777
|
.govbr-playground__preview-area,
|
|
949
778
|
.govbr-playground__tools {
|
|
950
779
|
position: relative;
|
|
951
780
|
}
|
|
952
|
-
br-tab[aria-label^='Arquivos '] {
|
|
953
|
-
display: flex;
|
|
954
|
-
flex: 1;
|
|
955
|
-
min-height: 0;
|
|
956
|
-
height: 100%;
|
|
957
|
-
}
|
|
958
|
-
br-tab[aria-label^='Arquivos '] > br-tab-item:not([hidden]) {
|
|
959
|
-
display: flex;
|
|
960
|
-
flex-direction: column;
|
|
961
|
-
flex: 1;
|
|
962
|
-
min-height: 0;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
966
|
-
position: relative;
|
|
967
|
-
}
|
|
968
781
|
|
|
969
782
|
/* Bancada: dimensões relativas ao espaço concedido pelo host. */
|
|
970
783
|
[data-library] {
|
|
@@ -990,59 +803,15 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
990
803
|
gap: 0.5rem;
|
|
991
804
|
flex: 0 0 auto;
|
|
992
805
|
}
|
|
993
|
-
.govbr-playground__bench-main {
|
|
994
|
-
display: grid;
|
|
995
|
-
flex: 1 1 auto;
|
|
996
|
-
min-height: 0;
|
|
997
|
-
min-width: 0;
|
|
998
|
-
grid-template-columns: minmax(0, 1fr);
|
|
999
|
-
grid-template-rows: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1000
|
-
}
|
|
1001
|
-
.govbr-playground__bench-preview {
|
|
1002
|
-
grid-area: 1 / 1;
|
|
1003
|
-
}
|
|
1004
806
|
.govbr-playground__bench-divider {
|
|
1005
807
|
grid-area: 2 / 1;
|
|
1006
808
|
}
|
|
1007
|
-
.govbr-playground__bench-code {
|
|
1008
|
-
grid-area: 3 / 1;
|
|
1009
|
-
}
|
|
1010
|
-
.govbr-playground__bench-preview,
|
|
1011
|
-
.govbr-playground__bench-code,
|
|
1012
|
-
.govbr-playground__bench-properties {
|
|
1013
|
-
min-height: 0;
|
|
1014
|
-
min-width: 0;
|
|
1015
|
-
overflow: auto;
|
|
1016
|
-
}
|
|
1017
|
-
.govbr-playground__bench-code {
|
|
1018
|
-
display: flex;
|
|
1019
|
-
flex-direction: column;
|
|
1020
|
-
}
|
|
1021
|
-
.govbr-playground__bench-properties {
|
|
1022
|
-
display: none;
|
|
1023
|
-
}
|
|
1024
809
|
.govbr-playground__bench-divider {
|
|
1025
810
|
touch-action: none;
|
|
1026
811
|
cursor: row-resize;
|
|
1027
812
|
background: var(--gp-surface-muted);
|
|
1028
813
|
border-radius: 0.25rem;
|
|
1029
814
|
}
|
|
1030
|
-
.govbr-playground__mobile-panels {
|
|
1031
|
-
display: none;
|
|
1032
|
-
}
|
|
1033
|
-
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1034
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1035
|
-
}
|
|
1036
|
-
.govbr-playground__diagnostics {
|
|
1037
|
-
flex: 0 0 auto;
|
|
1038
|
-
min-height: 0;
|
|
1039
|
-
height: 16rem;
|
|
1040
|
-
max-height: 40%;
|
|
1041
|
-
overflow: auto;
|
|
1042
|
-
}
|
|
1043
|
-
.govbr-playground__diagnostics br-tab[aria-label='Diagnóstico'] {
|
|
1044
|
-
height: auto;
|
|
1045
|
-
}
|
|
1046
815
|
.govbr-playground__tools {
|
|
1047
816
|
flex: 1;
|
|
1048
817
|
}
|
|
@@ -1079,16 +848,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1079
848
|
color: var(--gp-accent);
|
|
1080
849
|
font-weight: 600;
|
|
1081
850
|
}
|
|
1082
|
-
.govbr-playground__bench-properties .govbr-playground__controls table,
|
|
1083
|
-
.govbr-playground__bench-properties .govbr-playground__controls tbody,
|
|
1084
|
-
.govbr-playground__bench-properties .govbr-playground__controls tr,
|
|
1085
|
-
.govbr-playground__bench-properties .govbr-playground__controls td,
|
|
1086
|
-
.govbr-playground__bench-properties .govbr-playground__controls th {
|
|
1087
|
-
display: block;
|
|
1088
|
-
}
|
|
1089
|
-
.govbr-playground__bench-properties .govbr-playground__controls thead {
|
|
1090
|
-
display: none;
|
|
1091
|
-
}
|
|
1092
851
|
.govbr-playground__bench[data-maximized='true'] {
|
|
1093
852
|
position: fixed;
|
|
1094
853
|
inset: 0;
|
|
@@ -1096,91 +855,13 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1096
855
|
padding: 0.75rem;
|
|
1097
856
|
background: var(--gp-surface);
|
|
1098
857
|
}
|
|
1099
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-
|
|
1100
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-divider,
|
|
1101
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-properties {
|
|
858
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-divider {
|
|
1102
859
|
display: none;
|
|
1103
860
|
}
|
|
1104
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-main {
|
|
1105
|
-
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1106
|
-
}
|
|
1107
|
-
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-code {
|
|
1108
|
-
display: flex;
|
|
1109
|
-
grid-area: 1 / 1;
|
|
1110
|
-
}
|
|
1111
|
-
@container workbench (min-width: 700px) {
|
|
1112
|
-
.govbr-playground__bench-main[data-properties='true'] {
|
|
1113
|
-
grid-template-columns: minmax(0, 1fr) minmax(16rem, 30%);
|
|
1114
|
-
column-gap: 0.75rem;
|
|
1115
|
-
}
|
|
1116
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1117
|
-
display: block;
|
|
1118
|
-
grid-area: 1 / 2 / 4 / 3;
|
|
1119
|
-
}
|
|
1120
|
-
.govbr-playground__bench-main[data-layout='horizontal'] {
|
|
1121
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1122
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1123
|
-
}
|
|
1124
|
-
.govbr-playground__bench-main[data-layout='horizontal'] .govbr-playground__bench-code {
|
|
1125
|
-
grid-area: 1 / 3;
|
|
1126
|
-
}
|
|
1127
|
-
.govbr-playground__bench-main[data-layout='horizontal'] .govbr-playground__bench-divider {
|
|
1128
|
-
grid-area: 1 / 2;
|
|
1129
|
-
cursor: col-resize;
|
|
1130
|
-
}
|
|
1131
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1132
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) minmax(16rem, 25%);
|
|
1133
|
-
}
|
|
1134
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1135
|
-
grid-area: 1 / 4;
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
@container workbench (min-width: 1100px) {
|
|
1139
|
-
.govbr-playground__bench-main[data-layout='auto'] {
|
|
1140
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1141
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1142
|
-
}
|
|
1143
|
-
.govbr-playground__bench-main[data-layout='auto'] .govbr-playground__bench-code {
|
|
1144
|
-
grid-area: 1 / 3;
|
|
1145
|
-
}
|
|
1146
|
-
.govbr-playground__bench-main[data-layout='auto'] .govbr-playground__bench-divider {
|
|
1147
|
-
grid-area: 1 / 2;
|
|
1148
|
-
cursor: col-resize;
|
|
1149
|
-
}
|
|
1150
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1151
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) minmax(16rem, 25%);
|
|
1152
|
-
}
|
|
1153
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1154
|
-
grid-area: 1 / 4;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
861
|
@container workbench (width < 700px) {
|
|
1158
|
-
.govbr-playground__mobile-panels {
|
|
1159
|
-
display: flex;
|
|
1160
|
-
flex-wrap: wrap;
|
|
1161
|
-
}
|
|
1162
|
-
.govbr-playground__bench-main {
|
|
1163
|
-
display: flex;
|
|
1164
|
-
flex-direction: column;
|
|
1165
|
-
}
|
|
1166
|
-
.govbr-playground__bench-preview,
|
|
1167
|
-
.govbr-playground__bench-code,
|
|
1168
|
-
.govbr-playground__bench-properties,
|
|
1169
862
|
.govbr-playground__bench-divider {
|
|
1170
863
|
display: none;
|
|
1171
864
|
}
|
|
1172
|
-
.govbr-playground__bench-main[data-mobile-panel='preview'] .govbr-playground__bench-preview {
|
|
1173
|
-
display: block;
|
|
1174
|
-
flex: 1;
|
|
1175
|
-
}
|
|
1176
|
-
.govbr-playground__bench-main[data-mobile-panel='code'] .govbr-playground__bench-code {
|
|
1177
|
-
display: flex;
|
|
1178
|
-
flex: 1;
|
|
1179
|
-
}
|
|
1180
|
-
.govbr-playground__bench-main[data-mobile-panel='properties'] .govbr-playground__bench-properties {
|
|
1181
|
-
display: block;
|
|
1182
|
-
flex: 1;
|
|
1183
|
-
}
|
|
1184
865
|
.govbr-playground__bench-header > br-select {
|
|
1185
866
|
inline-size: 100%;
|
|
1186
867
|
}
|
|
@@ -1195,83 +876,13 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1195
876
|
display: none;
|
|
1196
877
|
}
|
|
1197
878
|
}
|
|
1198
|
-
|
|
1199
|
-
.govbr-playground__settings h3 {
|
|
1200
|
-
margin: 0.35rem 0 0;
|
|
1201
|
-
font-size: 0.875rem;
|
|
1202
|
-
grid-column: 1 / -1;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1206
|
-
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
@container workbench (min-width: 700px) {
|
|
1210
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1211
|
-
column-gap: 0;
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
@container workbench (min-width: 1100px) {
|
|
1215
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1216
|
-
column-gap: 0;
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1220
|
-
padding-inline-start: 0.75rem;
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1224
|
-
margin-inline-start: auto;
|
|
1225
|
-
float: none;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
@container workbench (700px <= width < 1600px) {
|
|
1229
|
-
.govbr-playground__bench-main[data-properties='true'] {
|
|
1230
|
-
grid-template-columns: minmax(0, 1fr);
|
|
1231
|
-
column-gap: 0;
|
|
1232
|
-
}
|
|
1233
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-code {
|
|
1234
|
-
display: none;
|
|
1235
|
-
}
|
|
1236
|
-
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1237
|
-
grid-area: 3 / 1;
|
|
1238
|
-
padding-inline-start: 0;
|
|
1239
|
-
}
|
|
1240
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1241
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1242
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1243
|
-
}
|
|
1244
|
-
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1245
|
-
grid-area: 1 / 3;
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
@container workbench (1100px <= width < 1600px) {
|
|
1249
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1250
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1251
|
-
grid-template-rows: minmax(0, 1fr);
|
|
1252
|
-
}
|
|
1253
|
-
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1254
|
-
grid-area: 1 / 3;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
879
|
@container workbench (width < 700px) {
|
|
1258
|
-
.govbr-playground__mobile-panels br-button,
|
|
1259
880
|
.govbr-playground__preview-header br-button,
|
|
1260
881
|
.govbr-playground__code-header br-button {
|
|
1261
882
|
min-inline-size: 44px;
|
|
1262
883
|
min-block-size: 44px;
|
|
1263
884
|
}
|
|
1264
885
|
}
|
|
1265
|
-
|
|
1266
|
-
.govbr-playground__workspace-actions > div {
|
|
1267
|
-
display: flex;
|
|
1268
|
-
flex-wrap: wrap;
|
|
1269
|
-
gap: 0.5rem;
|
|
1270
|
-
}
|
|
1271
|
-
.govbr-playground__workspace-actions summary {
|
|
1272
|
-
cursor: pointer;
|
|
1273
|
-
padding: 0.5rem;
|
|
1274
|
-
}
|
|
1275
886
|
.govbr-playground__bench-header > br-select {
|
|
1276
887
|
inline-size: 10rem;
|
|
1277
888
|
}
|
|
@@ -1284,17 +895,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1284
895
|
.govbr-playground__bench-header > label br-select {
|
|
1285
896
|
inline-size: 16rem;
|
|
1286
897
|
}
|
|
1287
|
-
@container workbench (min-width: 1100px) {
|
|
1288
|
-
.govbr-playground__workspace-actions {
|
|
1289
|
-
display: contents;
|
|
1290
|
-
}
|
|
1291
|
-
.govbr-playground__workspace-actions > summary {
|
|
1292
|
-
display: none;
|
|
1293
|
-
}
|
|
1294
|
-
.govbr-playground__workspace-actions > div {
|
|
1295
|
-
display: flex;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
898
|
@container workbench (width < 700px) {
|
|
1299
899
|
.govbr-playground__bench-header {
|
|
1300
900
|
gap: 0.25rem;
|
|
@@ -1311,9 +911,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1311
911
|
.govbr-playground__bench-header > br-select {
|
|
1312
912
|
inline-size: 8rem;
|
|
1313
913
|
}
|
|
1314
|
-
.govbr-playground__workspace-actions > div {
|
|
1315
|
-
padding-block: 0.5rem;
|
|
1316
|
-
}
|
|
1317
914
|
}
|
|
1318
915
|
|
|
1319
916
|
[data-library] [aria-label='Área de preview'] {
|
|
@@ -1337,31 +934,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1337
934
|
.govbr-playground__preview-header .govbr-playground__viewport-controls {
|
|
1338
935
|
flex: 1 1 auto;
|
|
1339
936
|
}
|
|
1340
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension {
|
|
1341
|
-
display: flex;
|
|
1342
|
-
align-items: center;
|
|
1343
|
-
flex: 0 0 auto;
|
|
1344
|
-
gap: 0.35rem;
|
|
1345
|
-
font-weight: 600;
|
|
1346
|
-
line-height: 1;
|
|
1347
|
-
white-space: nowrap;
|
|
1348
|
-
}
|
|
1349
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension > span {
|
|
1350
|
-
color: var(--gp-muted);
|
|
1351
|
-
font-size: 0.8rem;
|
|
1352
|
-
font-weight: 400;
|
|
1353
|
-
}
|
|
1354
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension br-input {
|
|
1355
|
-
flex: 0 0 7rem;
|
|
1356
|
-
inline-size: 7rem;
|
|
1357
|
-
min-inline-size: 7rem;
|
|
1358
|
-
margin-block-end: 0;
|
|
1359
|
-
}
|
|
1360
|
-
.govbr-playground__preview-header .govbr-playground__viewport-dimension br-input::part(input) {
|
|
1361
|
-
padding-inline: 0.5rem;
|
|
1362
|
-
text-align: center;
|
|
1363
|
-
font-variant-numeric: tabular-nums;
|
|
1364
|
-
}
|
|
1365
937
|
.govbr-playground__preview-header > br-tooltip {
|
|
1366
938
|
margin-block-end: 0.25rem;
|
|
1367
939
|
}
|
|
@@ -1371,18 +943,12 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1371
943
|
font-size: 1.25rem;
|
|
1372
944
|
line-height: 1.4;
|
|
1373
945
|
}
|
|
1374
|
-
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1375
|
-
order: 100;
|
|
1376
|
-
}
|
|
1377
946
|
@container workbench (width < 1100px) {
|
|
1378
947
|
.govbr-playground__bench-header > br-select[aria-label$='rápido'] {
|
|
1379
948
|
display: none;
|
|
1380
949
|
}
|
|
1381
950
|
}
|
|
1382
951
|
|
|
1383
|
-
@container workbench (width < 700px) {
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
952
|
.govbr-playground__preview-header > br-select {
|
|
1387
953
|
flex: 0 1 180px;
|
|
1388
954
|
width: 180px;
|
|
@@ -1393,19 +959,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1393
959
|
width: 100px;
|
|
1394
960
|
min-width: 0;
|
|
1395
961
|
}
|
|
1396
|
-
.govbr-playground__wide-behavior {
|
|
1397
|
-
display: none;
|
|
1398
|
-
}
|
|
1399
|
-
@container workbench (min-width: 1600px) {
|
|
1400
|
-
.govbr-playground__wide-behavior {
|
|
1401
|
-
display: inline-flex;
|
|
1402
|
-
align-items: center;
|
|
1403
|
-
gap: 0.75rem;
|
|
1404
|
-
}
|
|
1405
|
-
.govbr-playground__settings-behavior {
|
|
1406
|
-
display: none;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
962
|
@container workbench (min-width: 1600px) {
|
|
1410
963
|
.govbr-playground__viewport-buttons {
|
|
1411
964
|
flex-wrap: nowrap;
|
|
@@ -1413,11 +966,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1413
966
|
}
|
|
1414
967
|
|
|
1415
968
|
@container workbench (min-width: 1600px) {
|
|
1416
|
-
.govbr-playground__bench-properties {
|
|
1417
|
-
display: flex !important;
|
|
1418
|
-
flex-direction: column;
|
|
1419
|
-
gap: 0.75rem;
|
|
1420
|
-
}
|
|
1421
969
|
.govbr-playground__diagnostics--sidebar {
|
|
1422
970
|
display: block;
|
|
1423
971
|
flex: 1 1 40%;
|
|
@@ -1430,21 +978,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1430
978
|
display: none;
|
|
1431
979
|
}
|
|
1432
980
|
}
|
|
1433
|
-
@container workbench (min-width: 1600px) {
|
|
1434
|
-
.govbr-playground__bench-properties > br-tab,
|
|
1435
|
-
.govbr-playground__bench-properties > .govbr-playground__tool-tabs {
|
|
1436
|
-
display: flex;
|
|
1437
|
-
flex: 0 0 auto;
|
|
1438
|
-
flex-direction: row;
|
|
1439
|
-
width: 100%;
|
|
1440
|
-
min-height: 0;
|
|
1441
|
-
}
|
|
1442
|
-
.govbr-playground__bench-properties > [role='tabpanel'] {
|
|
1443
|
-
flex: 1 1 auto;
|
|
1444
|
-
min-height: 0;
|
|
1445
|
-
overflow: auto;
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
981
|
.govbr-playground__property-field {
|
|
1449
982
|
position: relative;
|
|
1450
983
|
min-width: 0;
|
|
@@ -1456,111 +989,16 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1456
989
|
}
|
|
1457
990
|
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1458
991
|
flex: 1 1 auto;
|
|
1459
|
-
min-height:
|
|
1460
|
-
}
|
|
1461
|
-
@container workbench (min-width: 1600px) {
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
@container workbench (min-width: 1600px) {
|
|
1465
|
-
.govbr-playground__bench-main[data-wide='true'] {
|
|
1466
|
-
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
|
|
1467
|
-
grid-template-rows: minmax(0, 1fr) !important;
|
|
1468
|
-
column-gap: 0.75rem !important;
|
|
1469
|
-
}
|
|
1470
|
-
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-preview {
|
|
1471
|
-
grid-area: 1 / 1;
|
|
1472
|
-
}
|
|
1473
|
-
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-divider {
|
|
1474
|
-
display: none !important;
|
|
1475
|
-
}
|
|
1476
|
-
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-properties {
|
|
1477
|
-
display: flex !important;
|
|
1478
|
-
grid-area: 1 / 2;
|
|
1479
|
-
min-height: 0;
|
|
1480
|
-
overflow: hidden;
|
|
1481
|
-
}
|
|
1482
|
-
.govbr-playground__bench-properties > br-tab {
|
|
1483
|
-
display: flex;
|
|
1484
|
-
flex: 1;
|
|
1485
|
-
flex-direction: column;
|
|
1486
|
-
min-height: 0;
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
@container workbench (min-width: 1600px) {
|
|
1491
|
-
.govbr-playground__bench > .govbr-playground__bench-code {
|
|
1492
|
-
flex: 0 1 18rem;
|
|
1493
|
-
min-height: 12rem;
|
|
1494
|
-
max-height: 35vh;
|
|
1495
|
-
}
|
|
992
|
+
min-height: 0;
|
|
1496
993
|
}
|
|
1497
994
|
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1498
995
|
align-self: stretch;
|
|
1499
996
|
}
|
|
1500
|
-
.govbr-playground__diagnostics ol {
|
|
1501
|
-
margin: 0;
|
|
1502
|
-
padding: 0;
|
|
1503
|
-
list-style: none;
|
|
1504
|
-
}
|
|
1505
|
-
.govbr-playground__diagnostics li {
|
|
1506
|
-
padding: 0.625rem 0.75rem;
|
|
1507
|
-
border-bottom: 1px solid var(--gp-border);
|
|
1508
|
-
overflow-wrap: anywhere;
|
|
1509
|
-
}
|
|
1510
|
-
.govbr-playground__diagnostics li time {
|
|
1511
|
-
display: inline-block;
|
|
1512
|
-
min-width: 5.5rem;
|
|
1513
|
-
color: var(--gp-muted);
|
|
1514
|
-
font-variant-numeric: tabular-nums;
|
|
1515
|
-
}
|
|
1516
|
-
.govbr-playground__diagnostics li[data-type='error'],
|
|
1517
|
-
.govbr-playground__diagnostics li[data-type='exception'],
|
|
1518
|
-
.govbr-playground__diagnostics li[data-type='unhandledrejection'] {
|
|
1519
|
-
border-inline-start: 3px solid var(--gp-danger);
|
|
1520
|
-
background: color-mix(in srgb, var(--gp-danger) 7%, transparent);
|
|
1521
|
-
}
|
|
1522
|
-
.govbr-playground__diagnostics pre {
|
|
1523
|
-
white-space: pre-wrap;
|
|
1524
|
-
overflow-wrap: anywhere;
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
.govbr-playground__diagnostics li[data-type='info'] {
|
|
1528
|
-
border-inline-start: 3px solid #1a73a8;
|
|
1529
|
-
background: color-mix(in srgb, #1a73a8 6%, transparent);
|
|
1530
|
-
}
|
|
1531
|
-
.govbr-playground__diagnostics li[data-type='warn'] {
|
|
1532
|
-
border-inline-start: 3px solid #b54708;
|
|
1533
|
-
background: color-mix(in srgb, #f79009 12%, transparent);
|
|
1534
|
-
}
|
|
1535
|
-
.govbr-playground__diagnostics li[data-type='log'] {
|
|
1536
|
-
border-inline-start: 3px solid #667085;
|
|
1537
|
-
}
|
|
1538
|
-
.govbr-playground__diagnostics li[data-type='error'],
|
|
1539
|
-
.govbr-playground__diagnostics li[data-type='exception'],
|
|
1540
|
-
.govbr-playground__diagnostics li[data-type='unhandledrejection'] {
|
|
1541
|
-
border-inline-start-color: #b42318;
|
|
1542
|
-
background: color-mix(in srgb, #d92d20 10%, transparent);
|
|
1543
|
-
}
|
|
1544
997
|
.govbr-playground__console-style {
|
|
1545
998
|
display: inline-block;
|
|
1546
999
|
margin-inline-end: 0.25rem;
|
|
1547
1000
|
font-family: var(--gp-font, inherit);
|
|
1548
1001
|
}
|
|
1549
|
-
.govbr-playground__diagnostics li strong {
|
|
1550
|
-
display: inline-block;
|
|
1551
|
-
min-width: 4.5rem;
|
|
1552
|
-
text-transform: uppercase;
|
|
1553
|
-
font-size: 0.75rem;
|
|
1554
|
-
letter-spacing: 0.04em;
|
|
1555
|
-
}
|
|
1556
|
-
.govbr-playground__diagnostics li[data-type='warn'] strong {
|
|
1557
|
-
color: #93370d;
|
|
1558
|
-
}
|
|
1559
|
-
.govbr-playground__diagnostics li[data-type='error'] strong,
|
|
1560
|
-
.govbr-playground__diagnostics li[data-type='exception'] strong,
|
|
1561
|
-
.govbr-playground__diagnostics li[data-type='unhandledrejection'] strong {
|
|
1562
|
-
color: #b42318;
|
|
1563
|
-
}
|
|
1564
1002
|
|
|
1565
1003
|
.govbr-playground__console-message,
|
|
1566
1004
|
.govbr-playground__console-details {
|
|
@@ -1593,65 +1031,9 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1593
1031
|
Consolas,
|
|
1594
1032
|
monospace;
|
|
1595
1033
|
}
|
|
1596
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar {
|
|
1597
|
-
display: flex;
|
|
1598
|
-
align-items: end;
|
|
1599
|
-
flex-wrap: wrap;
|
|
1600
|
-
gap: 0.5rem;
|
|
1601
|
-
padding: 0.5rem 0 0.75rem;
|
|
1602
|
-
}
|
|
1603
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label {
|
|
1604
|
-
display: flex;
|
|
1605
|
-
flex: 1 1 15rem;
|
|
1606
|
-
flex-direction: column;
|
|
1607
|
-
gap: 0.25rem;
|
|
1608
|
-
}
|
|
1609
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label br-input,
|
|
1610
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label br-select {
|
|
1611
|
-
width: 100%;
|
|
1612
|
-
}
|
|
1613
|
-
.govbr-playground__diagnostics li details {
|
|
1614
|
-
flex-basis: 100%;
|
|
1615
|
-
margin-block-start: 0.35rem;
|
|
1616
|
-
}
|
|
1617
|
-
.govbr-playground__diagnostics li details pre {
|
|
1618
|
-
max-height: 16rem;
|
|
1619
|
-
overflow: auto;
|
|
1620
|
-
padding: 0.75rem;
|
|
1621
|
-
border-radius: 0.35rem;
|
|
1622
|
-
background: var(--gp-surface-muted);
|
|
1623
|
-
}
|
|
1624
|
-
@container workbench (min-width: 1600px) {
|
|
1625
|
-
}
|
|
1626
1034
|
|
|
1627
1035
|
@container workbench (min-width: 1600px) {
|
|
1628
1036
|
/* Override the former three-panel placement: it created implicit empty columns. */
|
|
1629
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-preview {
|
|
1630
|
-
grid-area: 1 / 1 / 2 / 2 !important;
|
|
1631
|
-
}
|
|
1632
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-properties {
|
|
1633
|
-
grid-area: 1 / 2 / 2 / 3 !important;
|
|
1634
|
-
padding-inline-start: 0;
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
@container workbench (min-width: 1600px) {
|
|
1639
|
-
.govbr-playground__bench-main[data-wide='true'] {
|
|
1640
|
-
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) !important;
|
|
1641
|
-
column-gap: 0 !important;
|
|
1642
|
-
}
|
|
1643
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-divider {
|
|
1644
|
-
display: block !important;
|
|
1645
|
-
grid-area: 1 / 2 / 2 / 3 !important;
|
|
1646
|
-
cursor: col-resize;
|
|
1647
|
-
}
|
|
1648
|
-
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-properties {
|
|
1649
|
-
grid-area: 1 / 3 / 2 / 4 !important;
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
.govbr-playground__bench-preview {
|
|
1653
|
-
display: flex;
|
|
1654
|
-
flex-direction: column;
|
|
1655
1037
|
}
|
|
1656
1038
|
.govbr-playground__preview-area {
|
|
1657
1039
|
display: flex;
|
|
@@ -1669,26 +1051,10 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1669
1051
|
.govbr-playground__preview-area > [aria-label='Área de preview'][data-fill-height='false'] {
|
|
1670
1052
|
flex: 0 0 auto;
|
|
1671
1053
|
}
|
|
1672
|
-
|
|
1673
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar:has(.govbr-playground__event-filter) {
|
|
1674
|
-
align-items: center;
|
|
1675
|
-
}
|
|
1676
|
-
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > .govbr-playground__event-filter {
|
|
1677
|
-
flex-direction: row;
|
|
1678
|
-
align-items: center;
|
|
1679
|
-
gap: 0.75rem;
|
|
1680
|
-
min-width: 0;
|
|
1681
|
-
text-align: start;
|
|
1682
|
-
}
|
|
1683
1054
|
.govbr-playground__event-filter > span {
|
|
1684
1055
|
flex: 0 0 auto;
|
|
1685
1056
|
white-space: nowrap;
|
|
1686
1057
|
}
|
|
1687
|
-
.govbr-playground__diagnostics .govbr-playground__event-filter > br-input {
|
|
1688
|
-
flex: 1 1 auto;
|
|
1689
|
-
min-width: 0;
|
|
1690
|
-
width: auto;
|
|
1691
|
-
}
|
|
1692
1058
|
.govbr-playground__bench-header {
|
|
1693
1059
|
align-items: center;
|
|
1694
1060
|
}
|
|
@@ -1703,9 +1069,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1703
1069
|
align-self: center;
|
|
1704
1070
|
margin: 0;
|
|
1705
1071
|
}
|
|
1706
|
-
.govbr-playground__wide-behavior {
|
|
1707
|
-
align-self: center;
|
|
1708
|
-
}
|
|
1709
1072
|
|
|
1710
1073
|
.govbr-playground__component-tree ul {
|
|
1711
1074
|
list-style: none;
|
|
@@ -1776,16 +1139,8 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1776
1139
|
width: 0;
|
|
1777
1140
|
flex: 1 1 0;
|
|
1778
1141
|
}
|
|
1779
|
-
br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not([hidden]) {
|
|
1780
|
-
display: flex;
|
|
1781
|
-
flex-direction: column;
|
|
1782
|
-
flex: 1 1 auto;
|
|
1783
|
-
min-height: 0;
|
|
1784
|
-
height: 100%;
|
|
1785
|
-
}
|
|
1786
1142
|
|
|
1787
|
-
.govbr-playground__example-line
|
|
1788
|
-
.govbr-playground__settings-line {
|
|
1143
|
+
.govbr-playground__example-line {
|
|
1789
1144
|
display: flex;
|
|
1790
1145
|
flex: 0 0 100%;
|
|
1791
1146
|
min-width: 0;
|
|
@@ -1804,61 +1159,6 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1804
1159
|
max-inline-size: 100%;
|
|
1805
1160
|
margin: 0;
|
|
1806
1161
|
}
|
|
1807
|
-
.govbr-playground__settings-line {
|
|
1808
|
-
justify-content: flex-start;
|
|
1809
|
-
}
|
|
1810
|
-
.govbr-playground__settings-line > br-select {
|
|
1811
|
-
inline-size: 14rem;
|
|
1812
|
-
margin: 0;
|
|
1813
|
-
}
|
|
1814
|
-
@container workbench (min-width: 700px) {
|
|
1815
|
-
.govbr-playground__settings-line > .govbr-playground__settings-trigger {
|
|
1816
|
-
display: none;
|
|
1817
|
-
}
|
|
1818
|
-
.govbr-playground__settings-line > .govbr-playground__settings {
|
|
1819
|
-
display: flex !important;
|
|
1820
|
-
position: static !important;
|
|
1821
|
-
inset: auto !important;
|
|
1822
|
-
flex: 1 1 100%;
|
|
1823
|
-
align-items: center;
|
|
1824
|
-
gap: 1rem;
|
|
1825
|
-
width: 100%;
|
|
1826
|
-
max-width: none;
|
|
1827
|
-
max-height: none;
|
|
1828
|
-
margin: 0;
|
|
1829
|
-
padding: 0;
|
|
1830
|
-
overflow: visible;
|
|
1831
|
-
border: 0;
|
|
1832
|
-
background: transparent;
|
|
1833
|
-
color: inherit;
|
|
1834
|
-
box-shadow: none;
|
|
1835
|
-
}
|
|
1836
|
-
.govbr-playground__settings-line > .govbr-playground__settings h3 {
|
|
1837
|
-
display: none;
|
|
1838
|
-
}
|
|
1839
|
-
.govbr-playground__settings-line .govbr-playground__settings-behavior {
|
|
1840
|
-
display: flex;
|
|
1841
|
-
align-items: center;
|
|
1842
|
-
}
|
|
1843
|
-
.govbr-playground__settings-line .govbr-playground__menu-behavior {
|
|
1844
|
-
flex-direction: row;
|
|
1845
|
-
}
|
|
1846
|
-
}
|
|
1847
|
-
@container workbench (min-width: 1600px) {
|
|
1848
|
-
.govbr-playground__settings-line br-select,
|
|
1849
|
-
.govbr-playground__settings-line br-switch {
|
|
1850
|
-
align-self: center;
|
|
1851
|
-
margin: 0;
|
|
1852
|
-
}
|
|
1853
|
-
.govbr-playground__settings-line .govbr-playground__settings hr {
|
|
1854
|
-
display: none;
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
@container workbench (width < 1100px) {
|
|
1858
|
-
.govbr-playground__settings-line > br-select[aria-label$='rápido'] {
|
|
1859
|
-
display: none;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
1162
|
@container workbench (width < 700px) {
|
|
1863
1163
|
.govbr-playground__example-line > label {
|
|
1864
1164
|
width: 100%;
|
|
@@ -1869,89 +1169,7 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1869
1169
|
min-width: 0;
|
|
1870
1170
|
}
|
|
1871
1171
|
}
|
|
1872
|
-
@container workbench (width < 700px) {
|
|
1873
|
-
.govbr-playground__bench-main[data-mobile-panel='preview'] > .govbr-playground__bench-preview {
|
|
1874
|
-
display: flex;
|
|
1875
|
-
flex-direction: column;
|
|
1876
|
-
min-height: 0;
|
|
1877
|
-
}
|
|
1878
|
-
.govbr-playground__bench-main:not([data-mobile-panel='preview']) > .govbr-playground__bench-preview {
|
|
1879
|
-
display: none;
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
1172
|
/* The preview/tools divider shares the space granted by the host in either orientation. */
|
|
1883
|
-
.govbr-playground__workspace {
|
|
1884
|
-
display: flex;
|
|
1885
|
-
flex: 1 1 0;
|
|
1886
|
-
flex-direction: column;
|
|
1887
|
-
min-height: 0;
|
|
1888
|
-
min-width: 0;
|
|
1889
|
-
gap: 0.5rem;
|
|
1890
|
-
}
|
|
1891
|
-
.govbr-playground__workspace[data-stacked-tools='true'] {
|
|
1892
|
-
display: grid;
|
|
1893
|
-
grid-template-rows: minmax(160px, 1fr) auto;
|
|
1894
|
-
gap: 0;
|
|
1895
|
-
min-height: 400px;
|
|
1896
|
-
}
|
|
1897
|
-
.govbr-playground__workspace[data-stacked-tools='true'][data-tools-open='true'] {
|
|
1898
|
-
grid-template-rows: minmax(160px, var(--stacked-split)) 12px minmax(180px, var(--stacked-rest));
|
|
1899
|
-
}
|
|
1900
|
-
.govbr-playground__workspace[data-stacked-tools='true'] > .govbr-playground__bench-main {
|
|
1901
|
-
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1902
|
-
}
|
|
1903
|
-
.govbr-playground__workspace[data-stacked-tools='true'] > .govbr-playground__diagnostics {
|
|
1904
|
-
min-height: 0;
|
|
1905
|
-
max-height: none;
|
|
1906
|
-
height: auto;
|
|
1907
|
-
overflow: auto;
|
|
1908
|
-
}
|
|
1909
|
-
.govbr-playground__workspace[data-mobile-tabs='true'] {
|
|
1910
|
-
display: flex;
|
|
1911
|
-
flex-direction: column;
|
|
1912
|
-
min-height: 0;
|
|
1913
|
-
}
|
|
1914
|
-
.govbr-playground__workspace[data-mobile-tabs='true'] > .govbr-playground__diagnostics--mobile-tabs {
|
|
1915
|
-
display: flex;
|
|
1916
|
-
flex: 1 1 auto;
|
|
1917
|
-
flex-direction: column;
|
|
1918
|
-
min-height: 0;
|
|
1919
|
-
max-height: none;
|
|
1920
|
-
height: auto;
|
|
1921
|
-
overflow: hidden;
|
|
1922
|
-
}
|
|
1923
|
-
.govbr-playground__diagnostics--mobile-tabs > br-tab {
|
|
1924
|
-
display: flex;
|
|
1925
|
-
flex: 1 1 auto;
|
|
1926
|
-
flex-direction: column;
|
|
1927
|
-
min-height: 0;
|
|
1928
|
-
height: 100%;
|
|
1929
|
-
}
|
|
1930
|
-
.govbr-playground__diagnostics--mobile-tabs > .govbr-playground__tool-tabs {
|
|
1931
|
-
flex: 0 0 auto;
|
|
1932
|
-
flex-direction: row;
|
|
1933
|
-
width: 100%;
|
|
1934
|
-
}
|
|
1935
|
-
.govbr-playground__diagnostics--mobile-tabs > br-tab > br-tab-item:not([hidden]) {
|
|
1936
|
-
display: flex;
|
|
1937
|
-
flex: 1 1 auto;
|
|
1938
|
-
flex-direction: column;
|
|
1939
|
-
min-height: 0;
|
|
1940
|
-
}
|
|
1941
|
-
.govbr-playground__diagnostics--mobile-tabs > [role='tabpanel'] {
|
|
1942
|
-
display: flex;
|
|
1943
|
-
flex-direction: column;
|
|
1944
|
-
flex: 1 1 auto;
|
|
1945
|
-
min-height: 0;
|
|
1946
|
-
overflow: auto;
|
|
1947
|
-
}
|
|
1948
|
-
.govbr-playground__diagnostics--mobile-tabs .govbr-playground__bench-preview {
|
|
1949
|
-
display: flex;
|
|
1950
|
-
flex: 1 1 auto;
|
|
1951
|
-
flex-direction: column;
|
|
1952
|
-
min-height: 0;
|
|
1953
|
-
overflow: auto;
|
|
1954
|
-
}
|
|
1955
1173
|
.govbr-playground__stacked-divider,
|
|
1956
1174
|
.govbr-playground__bench-divider {
|
|
1957
1175
|
position: relative;
|
|
@@ -1987,50 +1205,15 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1987
1205
|
.govbr-playground__bench[data-resizing='true'] iframe {
|
|
1988
1206
|
pointer-events: none;
|
|
1989
1207
|
}
|
|
1990
|
-
@container workbench (min-width: 700px) {
|
|
1991
|
-
.govbr-playground__workspace > .govbr-playground__bench-main[data-inspector-tabs='true'] {
|
|
1992
|
-
grid-template-columns: minmax(240px, var(--bench-split)) 12px minmax(280px, var(--bench-rest)) !important;
|
|
1993
|
-
grid-template-rows: minmax(0, 1fr) !important;
|
|
1994
|
-
column-gap: 0 !important;
|
|
1995
|
-
}
|
|
1996
|
-
.govbr-playground__bench-main[data-inspector-tabs='true'] > .govbr-playground__bench-divider {
|
|
1997
|
-
display: block !important;
|
|
1998
|
-
grid-area: 1 / 2 !important;
|
|
1999
|
-
cursor: col-resize;
|
|
2000
|
-
}
|
|
2001
|
-
.govbr-playground__bench-main[data-inspector-tabs='true'] > .govbr-playground__bench-properties {
|
|
2002
|
-
grid-area: 1 / 3 !important;
|
|
2003
|
-
padding-inline-start: 0;
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
1208
|
|
|
2007
1209
|
/* Presentation changes visibility, preserving the live preview node. */
|
|
2008
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__settings-line,
|
|
2009
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__mobile-panels,
|
|
2010
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-properties,
|
|
2011
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-code,
|
|
2012
1210
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-divider,
|
|
2013
1211
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__stacked-divider,
|
|
2014
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer'])
|
|
2015
|
-
.govbr-playground__workspace
|
|
2016
|
-
> .govbr-playground__diagnostics,
|
|
2017
1212
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-description,
|
|
2018
1213
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-details,
|
|
2019
1214
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__component-title {
|
|
2020
1215
|
display: none !important;
|
|
2021
1216
|
}
|
|
2022
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__workspace,
|
|
2023
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-main {
|
|
2024
|
-
display: flex !important;
|
|
2025
|
-
flex: 1 1 0;
|
|
2026
|
-
flex-direction: column;
|
|
2027
|
-
min-height: 0;
|
|
2028
|
-
gap: 0;
|
|
2029
|
-
}
|
|
2030
|
-
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-preview {
|
|
2031
|
-
display: flex !important;
|
|
2032
|
-
flex: 1 1 0;
|
|
2033
|
-
}
|
|
2034
1217
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__preview-header,
|
|
2035
1218
|
.govbr-playground__bench[data-presentation='preview'] .govbr-playground__bench-header {
|
|
2036
1219
|
display: none !important;
|
|
@@ -2040,47 +1223,520 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
2040
1223
|
min-inline-size: 0;
|
|
2041
1224
|
flex: 1 1 12rem;
|
|
2042
1225
|
}
|
|
2043
|
-
.govbr-playground__settings-line > br-select,
|
|
2044
1226
|
.govbr-playground__example-line br-select {
|
|
2045
1227
|
max-inline-size: 100%;
|
|
2046
1228
|
}
|
|
2047
|
-
[data-library='wbc'] .govbr-playground__settings-line > br-select::part(input-label),
|
|
2048
1229
|
[data-library='wbc'] .govbr-playground__example-line br-select::part(input-label) {
|
|
2049
1230
|
display: none;
|
|
2050
1231
|
}
|
|
2051
|
-
[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 {
|
|
2052
1240
|
display: flex;
|
|
2053
|
-
flex:
|
|
2054
|
-
|
|
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;
|
|
2055
1278
|
min-height: 0;
|
|
2056
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;
|
|
2057
1294
|
}
|
|
2058
|
-
|
|
1295
|
+
.govbr-playground__studio-tools {
|
|
1296
|
+
display: flex;
|
|
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'] {
|
|
2059
1459
|
display: flex;
|
|
2060
|
-
flex: 1 1 0;
|
|
2061
1460
|
flex-direction: column;
|
|
1461
|
+
flex: 1 1 0;
|
|
2062
1462
|
min-height: 0;
|
|
2063
1463
|
overflow: auto;
|
|
2064
1464
|
}
|
|
2065
|
-
|
|
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 {
|
|
2066
1474
|
flex: 0 0 auto;
|
|
2067
1475
|
}
|
|
2068
|
-
.govbr-
|
|
2069
|
-
|
|
1476
|
+
.govbr-playground__props-scroll {
|
|
1477
|
+
flex: 1 1 0;
|
|
1478
|
+
min-height: 0;
|
|
1479
|
+
overflow: auto;
|
|
2070
1480
|
}
|
|
2071
|
-
|
|
1481
|
+
.govbr-playground__section-body {
|
|
1482
|
+
padding: 0.5rem;
|
|
1483
|
+
min-width: 0;
|
|
2072
1484
|
}
|
|
2073
|
-
.govbr-
|
|
2074
|
-
|
|
1485
|
+
.govbr-playground__tree-section .govbr-playground__section-body {
|
|
1486
|
+
max-height: 9rem;
|
|
1487
|
+
overflow: auto;
|
|
2075
1488
|
}
|
|
2076
|
-
.govbr-
|
|
2077
|
-
|
|
1489
|
+
.govbr-playground__inspector-footer .govbr-playground__section-body {
|
|
1490
|
+
max-height: 22vh;
|
|
1491
|
+
overflow: auto;
|
|
1492
|
+
}
|
|
1493
|
+
.govbr-playground__controls br-collapse {
|
|
1494
|
+
display: block;
|
|
1495
|
+
min-width: 0;
|
|
1496
|
+
border-block-end: 1px solid var(--gp-border);
|
|
1497
|
+
}
|
|
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;
|
|
1510
|
+
}
|
|
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;
|
|
2078
1520
|
}
|
|
2079
|
-
|
|
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);
|
|
2080
1669
|
}
|
|
2081
|
-
.govbr-
|
|
2082
|
-
|
|
1670
|
+
.govbr-playground__native-switch input:checked::before {
|
|
1671
|
+
margin-inline-start: 1.1rem;
|
|
2083
1672
|
}
|
|
2084
|
-
.govbr-
|
|
2085
|
-
|
|
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%;
|
|
2086
1742
|
}
|