@govbr-ds/playground 5.2.2 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +26 -33
- 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/core/index.js +1 -8
- 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 +24 -31
- package/dist/sources.d.ts +7 -0
- package/dist/sources.d.ts.map +1 -1
- package/dist/styles.css +521 -823
- 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,18 @@ 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-
|
|
993
|
-
|
|
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;
|
|
806
|
+
.govbr-playground__code-header {
|
|
807
|
+
padding-block-start: 0.4rem;
|
|
1002
808
|
}
|
|
1003
809
|
.govbr-playground__bench-divider {
|
|
1004
810
|
grid-area: 2 / 1;
|
|
1005
811
|
}
|
|
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
812
|
.govbr-playground__bench-divider {
|
|
1024
813
|
touch-action: none;
|
|
1025
814
|
cursor: row-resize;
|
|
1026
815
|
background: var(--gp-surface-muted);
|
|
1027
816
|
border-radius: 0.25rem;
|
|
1028
817
|
}
|
|
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
818
|
.govbr-playground__tools {
|
|
1043
819
|
flex: 1;
|
|
1044
820
|
}
|
|
@@ -1075,16 +851,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1075
851
|
color: var(--gp-accent);
|
|
1076
852
|
font-weight: 600;
|
|
1077
853
|
}
|
|
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
854
|
.govbr-playground__bench[data-maximized='true'] {
|
|
1089
855
|
position: fixed;
|
|
1090
856
|
inset: 0;
|
|
@@ -1092,87 +858,13 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1092
858
|
padding: 0.75rem;
|
|
1093
859
|
background: var(--gp-surface);
|
|
1094
860
|
}
|
|
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 {
|
|
861
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-divider {
|
|
1098
862
|
display: none;
|
|
1099
863
|
}
|
|
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
864
|
@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
865
|
.govbr-playground__bench-divider {
|
|
1162
866
|
display: none;
|
|
1163
867
|
}
|
|
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
868
|
.govbr-playground__bench-header > br-select {
|
|
1177
869
|
inline-size: 100%;
|
|
1178
870
|
}
|
|
@@ -1187,65 +879,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1187
879
|
display: none;
|
|
1188
880
|
}
|
|
1189
881
|
}
|
|
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
882
|
@container workbench (width < 700px) {
|
|
1250
883
|
.govbr-playground__preview-header br-button,
|
|
1251
884
|
.govbr-playground__code-header br-button {
|
|
@@ -1253,16 +886,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1253
886
|
min-block-size: 44px;
|
|
1254
887
|
}
|
|
1255
888
|
}
|
|
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
889
|
.govbr-playground__bench-header > br-select {
|
|
1267
890
|
inline-size: 10rem;
|
|
1268
891
|
}
|
|
@@ -1275,17 +898,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1275
898
|
.govbr-playground__bench-header > label br-select {
|
|
1276
899
|
inline-size: 16rem;
|
|
1277
900
|
}
|
|
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
901
|
@container workbench (width < 700px) {
|
|
1290
902
|
.govbr-playground__bench-header {
|
|
1291
903
|
gap: 0.25rem;
|
|
@@ -1302,9 +914,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1302
914
|
.govbr-playground__bench-header > br-select {
|
|
1303
915
|
inline-size: 8rem;
|
|
1304
916
|
}
|
|
1305
|
-
.govbr-playground__workspace-actions > div {
|
|
1306
|
-
padding-block: 0.5rem;
|
|
1307
|
-
}
|
|
1308
917
|
}
|
|
1309
918
|
|
|
1310
919
|
[data-library] [aria-label='Área de preview'] {
|
|
@@ -1328,31 +937,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1328
937
|
.govbr-playground__preview-header .govbr-playground__viewport-controls {
|
|
1329
938
|
flex: 1 1 auto;
|
|
1330
939
|
}
|
|
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
940
|
.govbr-playground__preview-header > br-tooltip {
|
|
1357
941
|
margin-block-end: 0.25rem;
|
|
1358
942
|
}
|
|
@@ -1362,18 +946,12 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1362
946
|
font-size: 1.25rem;
|
|
1363
947
|
line-height: 1.4;
|
|
1364
948
|
}
|
|
1365
|
-
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1366
|
-
order: 100;
|
|
1367
|
-
}
|
|
1368
949
|
@container workbench (width < 1100px) {
|
|
1369
950
|
.govbr-playground__bench-header > br-select[aria-label$='rápido'] {
|
|
1370
951
|
display: none;
|
|
1371
952
|
}
|
|
1372
953
|
}
|
|
1373
954
|
|
|
1374
|
-
@container workbench (width < 700px) {
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
955
|
.govbr-playground__preview-header > br-select {
|
|
1378
956
|
flex: 0 1 180px;
|
|
1379
957
|
width: 180px;
|
|
@@ -1384,19 +962,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1384
962
|
width: 100px;
|
|
1385
963
|
min-width: 0;
|
|
1386
964
|
}
|
|
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
965
|
@container workbench (min-width: 1600px) {
|
|
1401
966
|
.govbr-playground__viewport-buttons {
|
|
1402
967
|
flex-wrap: nowrap;
|
|
@@ -1404,11 +969,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1404
969
|
}
|
|
1405
970
|
|
|
1406
971
|
@container workbench (min-width: 1600px) {
|
|
1407
|
-
.govbr-playground__bench-properties {
|
|
1408
|
-
display: flex !important;
|
|
1409
|
-
flex-direction: column;
|
|
1410
|
-
gap: 0.75rem;
|
|
1411
|
-
}
|
|
1412
972
|
.govbr-playground__diagnostics--sidebar {
|
|
1413
973
|
display: block;
|
|
1414
974
|
flex: 1 1 40%;
|
|
@@ -1421,21 +981,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1421
981
|
display: none;
|
|
1422
982
|
}
|
|
1423
983
|
}
|
|
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
984
|
.govbr-playground__property-field {
|
|
1440
985
|
position: relative;
|
|
1441
986
|
min-width: 0;
|
|
@@ -1447,111 +992,16 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1447
992
|
}
|
|
1448
993
|
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1449
994
|
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
|
-
}
|
|
995
|
+
min-height: 0;
|
|
1487
996
|
}
|
|
1488
997
|
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1489
998
|
align-self: stretch;
|
|
1490
999
|
}
|
|
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
1000
|
.govbr-playground__console-style {
|
|
1536
1001
|
display: inline-block;
|
|
1537
1002
|
margin-inline-end: 0.25rem;
|
|
1538
1003
|
font-family: var(--gp-font, inherit);
|
|
1539
1004
|
}
|
|
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
1005
|
|
|
1556
1006
|
.govbr-playground__console-message,
|
|
1557
1007
|
.govbr-playground__console-details {
|
|
@@ -1584,65 +1034,9 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1584
1034
|
Consolas,
|
|
1585
1035
|
monospace;
|
|
1586
1036
|
}
|
|
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
1037
|
|
|
1618
1038
|
@container workbench (min-width: 1600px) {
|
|
1619
1039
|
/* 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
1040
|
}
|
|
1647
1041
|
.govbr-playground__preview-area {
|
|
1648
1042
|
display: flex;
|
|
@@ -1660,26 +1054,10 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1660
1054
|
.govbr-playground__preview-area > [aria-label='Área de preview'][data-fill-height='false'] {
|
|
1661
1055
|
flex: 0 0 auto;
|
|
1662
1056
|
}
|
|
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
1057
|
.govbr-playground__event-filter > span {
|
|
1675
1058
|
flex: 0 0 auto;
|
|
1676
1059
|
white-space: nowrap;
|
|
1677
1060
|
}
|
|
1678
|
-
.govbr-playground__diagnostics .govbr-playground__event-filter > br-input {
|
|
1679
|
-
flex: 1 1 auto;
|
|
1680
|
-
min-width: 0;
|
|
1681
|
-
width: auto;
|
|
1682
|
-
}
|
|
1683
1061
|
.govbr-playground__bench-header {
|
|
1684
1062
|
align-items: center;
|
|
1685
1063
|
}
|
|
@@ -1694,9 +1072,6 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1694
1072
|
align-self: center;
|
|
1695
1073
|
margin: 0;
|
|
1696
1074
|
}
|
|
1697
|
-
.govbr-playground__wide-behavior {
|
|
1698
|
-
align-self: center;
|
|
1699
|
-
}
|
|
1700
1075
|
|
|
1701
1076
|
.govbr-playground__component-tree ul {
|
|
1702
1077
|
list-style: none;
|
|
@@ -1767,16 +1142,8 @@ br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
|
1767
1142
|
width: 0;
|
|
1768
1143
|
flex: 1 1 0;
|
|
1769
1144
|
}
|
|
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
1145
|
|
|
1778
|
-
.govbr-playground__example-line
|
|
1779
|
-
.govbr-playground__settings-line {
|
|
1146
|
+
.govbr-playground__example-line {
|
|
1780
1147
|
display: flex;
|
|
1781
1148
|
flex: 0 0 100%;
|
|
1782
1149
|
min-width: 0;
|
|
@@ -1795,60 +1162,28 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1795
1162
|
max-inline-size: 100%;
|
|
1796
1163
|
margin: 0;
|
|
1797
1164
|
}
|
|
1798
|
-
.govbr-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
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
|
-
}
|
|
1165
|
+
.govbr-playground__example-picker {
|
|
1166
|
+
position: relative;
|
|
1167
|
+
inline-size: 19rem;
|
|
1168
|
+
max-inline-size: 100%;
|
|
1169
|
+
cursor: pointer;
|
|
1837
1170
|
}
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1171
|
+
.govbr-playground__example-picker::after {
|
|
1172
|
+
content: '';
|
|
1173
|
+
position: absolute;
|
|
1174
|
+
inset-block-start: 50%;
|
|
1175
|
+
inset-inline-end: 0.9rem;
|
|
1176
|
+
inline-size: 0.45rem;
|
|
1177
|
+
block-size: 0.45rem;
|
|
1178
|
+
border-inline-end: 2px solid currentColor;
|
|
1179
|
+
border-block-end: 2px solid currentColor;
|
|
1180
|
+
transform: translateY(-70%) rotate(45deg);
|
|
1181
|
+
pointer-events: none;
|
|
1847
1182
|
}
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1183
|
+
.govbr-playground__example-picker br-input {
|
|
1184
|
+
display: block;
|
|
1185
|
+
inline-size: 100%;
|
|
1186
|
+
cursor: pointer;
|
|
1852
1187
|
}
|
|
1853
1188
|
@container workbench (width < 700px) {
|
|
1854
1189
|
.govbr-playground__example-line > label {
|
|
@@ -1859,90 +1194,11 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1859
1194
|
width: 100%;
|
|
1860
1195
|
min-width: 0;
|
|
1861
1196
|
}
|
|
1862
|
-
|
|
1863
|
-
|
|
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;
|
|
1197
|
+
.govbr-playground__example-picker {
|
|
1198
|
+
width: 100%;
|
|
1871
1199
|
}
|
|
1872
1200
|
}
|
|
1873
1201
|
/* 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
1202
|
.govbr-playground__stacked-divider,
|
|
1947
1203
|
.govbr-playground__bench-divider {
|
|
1948
1204
|
position: relative;
|
|
@@ -1978,49 +1234,15 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
1978
1234
|
.govbr-playground__bench[data-resizing='true'] iframe {
|
|
1979
1235
|
pointer-events: none;
|
|
1980
1236
|
}
|
|
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
1237
|
|
|
1998
1238
|
/* 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
1239
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-divider,
|
|
2003
1240
|
.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
1241
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-description,
|
|
2008
1242
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-details,
|
|
2009
1243
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__component-title {
|
|
2010
1244
|
display: none !important;
|
|
2011
1245
|
}
|
|
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
1246
|
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__preview-header,
|
|
2025
1247
|
.govbr-playground__bench[data-presentation='preview'] .govbr-playground__bench-header {
|
|
2026
1248
|
display: none !important;
|
|
@@ -2030,44 +1252,520 @@ br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not
|
|
|
2030
1252
|
min-inline-size: 0;
|
|
2031
1253
|
flex: 1 1 12rem;
|
|
2032
1254
|
}
|
|
2033
|
-
.govbr-playground__settings-line > br-select,
|
|
2034
1255
|
.govbr-playground__example-line br-select {
|
|
2035
1256
|
max-inline-size: 100%;
|
|
2036
1257
|
}
|
|
2037
|
-
[data-library='wbc'] .govbr-playground__settings-line > br-select::part(input-label),
|
|
2038
1258
|
[data-library='wbc'] .govbr-playground__example-line br-select::part(input-label) {
|
|
2039
1259
|
display: none;
|
|
2040
1260
|
}
|
|
2041
|
-
[data-
|
|
1261
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__resize {
|
|
1262
|
+
display: none !important;
|
|
1263
|
+
}
|
|
1264
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) [aria-label='Área de preview'] {
|
|
1265
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
.govbr-playground__workspace-modes {
|
|
2042
1269
|
display: flex;
|
|
2043
|
-
flex:
|
|
2044
|
-
|
|
1270
|
+
flex-wrap: wrap;
|
|
1271
|
+
gap: 0.5rem;
|
|
1272
|
+
align-items: center;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
.govbr-playground__preview-area iframe {
|
|
1276
|
+
zoom: var(--preview-zoom, 1);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.govbr-playground__workspace-modes button,
|
|
1280
|
+
.govbr-playground__workspace-modes select {
|
|
1281
|
+
padding: 0.5rem 0.75rem;
|
|
1282
|
+
border: 1px solid var(--gp-border);
|
|
1283
|
+
border-radius: 4px;
|
|
1284
|
+
background: var(--gp-bg, #fff);
|
|
1285
|
+
color: var(--gp-text, #333);
|
|
1286
|
+
font: inherit;
|
|
1287
|
+
cursor: pointer;
|
|
1288
|
+
}
|
|
1289
|
+
.govbr-playground__workspace-modes button[aria-pressed='true'] {
|
|
1290
|
+
background: var(--interactive, #1351b4);
|
|
1291
|
+
color: #fff;
|
|
1292
|
+
}
|
|
1293
|
+
.govbr-playground__workspace-modes :focus-visible {
|
|
1294
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1295
|
+
outline-offset: 2px;
|
|
1296
|
+
}
|
|
1297
|
+
.govbr-playground__mode-help {
|
|
1298
|
+
margin: 0;
|
|
1299
|
+
color: var(--gp-muted);
|
|
1300
|
+
font-size: 0.875rem;
|
|
1301
|
+
}
|
|
1302
|
+
.govbr-playground__studio {
|
|
1303
|
+
display: grid;
|
|
1304
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1305
|
+
grid-template-rows: minmax(240px, 1fr);
|
|
1306
|
+
flex: 1;
|
|
2045
1307
|
min-height: 0;
|
|
2046
1308
|
min-width: 0;
|
|
1309
|
+
overflow: auto;
|
|
1310
|
+
}
|
|
1311
|
+
.govbr-playground__studio[data-tools-open='true'] {
|
|
1312
|
+
grid-template-rows: minmax(240px, var(--studio-split)) 12px minmax(280px, var(--studio-rest));
|
|
1313
|
+
}
|
|
1314
|
+
.govbr-playground__studio[data-horizontal='true'][data-tools-open='true'] {
|
|
1315
|
+
grid-template-columns: minmax(240px, var(--studio-split)) 12px minmax(280px, var(--studio-rest));
|
|
1316
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1317
|
+
}
|
|
1318
|
+
.govbr-playground__studio-preview,
|
|
1319
|
+
.govbr-playground__studio-tools {
|
|
1320
|
+
min-width: 0;
|
|
1321
|
+
min-height: 0;
|
|
1322
|
+
overflow: auto;
|
|
2047
1323
|
}
|
|
2048
|
-
|
|
1324
|
+
.govbr-playground__studio-tools {
|
|
2049
1325
|
display: flex;
|
|
2050
|
-
flex: 1 1 0;
|
|
2051
1326
|
flex-direction: column;
|
|
1327
|
+
}
|
|
1328
|
+
.govbr-playground__studio > [role='separator'] {
|
|
1329
|
+
display: block;
|
|
1330
|
+
width: auto;
|
|
1331
|
+
height: auto;
|
|
1332
|
+
min-height: 12px;
|
|
1333
|
+
min-width: 12px;
|
|
1334
|
+
}
|
|
1335
|
+
.govbr-playground__studio[data-tools-open='true'] > .govbr-playground__studio-tools {
|
|
1336
|
+
grid-row: 3;
|
|
1337
|
+
grid-column: 1;
|
|
1338
|
+
}
|
|
1339
|
+
.govbr-playground__studio[data-horizontal='true'][data-tools-open='true'] > .govbr-playground__studio-tools {
|
|
1340
|
+
grid-row: 1;
|
|
1341
|
+
grid-column: 3;
|
|
1342
|
+
}
|
|
1343
|
+
.govbr-playground__studio-preview {
|
|
1344
|
+
display: flex;
|
|
1345
|
+
flex-direction: column;
|
|
1346
|
+
}
|
|
1347
|
+
.govbr-playground__studio-preview > .govbr-playground__preview-area {
|
|
1348
|
+
flex: 1;
|
|
1349
|
+
min-height: 240px;
|
|
1350
|
+
}
|
|
1351
|
+
.govbr-playground__workspace-modes button[aria-pressed='true'] {
|
|
1352
|
+
background: var(--gp-primary, #1351b4);
|
|
1353
|
+
}
|
|
1354
|
+
[data-library] .govbr-playground__workspace-modes button[aria-pressed='true'] {
|
|
1355
|
+
background: var(--gp-accent, #1351b4);
|
|
1356
|
+
color: #fff;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.govbr-playground__studio > [role='separator'] {
|
|
1360
|
+
grid-column: 1;
|
|
1361
|
+
grid-row: 2;
|
|
1362
|
+
align-self: stretch;
|
|
1363
|
+
justify-self: stretch;
|
|
1364
|
+
margin: 0;
|
|
1365
|
+
cursor: row-resize;
|
|
1366
|
+
}
|
|
1367
|
+
.govbr-playground__studio[data-horizontal='true'] > [role='separator'] {
|
|
1368
|
+
grid-column: 2;
|
|
1369
|
+
grid-row: 1;
|
|
1370
|
+
cursor: col-resize;
|
|
1371
|
+
}
|
|
1372
|
+
.govbr-playground__custom-viewport {
|
|
1373
|
+
min-inline-size: 0;
|
|
1374
|
+
margin: 0;
|
|
1375
|
+
padding: 0.5rem 0.75rem;
|
|
1376
|
+
border: 1px solid var(--gp-border);
|
|
1377
|
+
border-radius: 6px;
|
|
1378
|
+
background: var(--gp-surface);
|
|
1379
|
+
}
|
|
1380
|
+
.govbr-playground__custom-viewport legend {
|
|
1381
|
+
padding-inline: 0.25rem;
|
|
1382
|
+
font-size: 0.8rem;
|
|
1383
|
+
color: var(--gp-muted);
|
|
1384
|
+
}
|
|
1385
|
+
.govbr-playground__custom-size {
|
|
1386
|
+
display: flex;
|
|
1387
|
+
flex-wrap: wrap;
|
|
1388
|
+
gap: 0.75rem;
|
|
1389
|
+
align-items: end;
|
|
1390
|
+
}
|
|
1391
|
+
.govbr-playground__custom-size label {
|
|
1392
|
+
display: grid;
|
|
1393
|
+
grid-template-columns: minmax(4rem, 6rem) auto;
|
|
1394
|
+
align-items: center;
|
|
1395
|
+
gap: 0.25rem;
|
|
1396
|
+
font-size: 0.85rem;
|
|
1397
|
+
}
|
|
1398
|
+
.govbr-playground__custom-size input {
|
|
1399
|
+
grid-column: 1;
|
|
1400
|
+
width: 100%;
|
|
1401
|
+
box-sizing: border-box;
|
|
1402
|
+
padding: 0.5rem;
|
|
1403
|
+
border: 1px solid var(--gp-border);
|
|
1404
|
+
border-radius: 4px;
|
|
1405
|
+
font: inherit;
|
|
1406
|
+
color: var(--gp-text);
|
|
1407
|
+
background: var(--gp-surface);
|
|
1408
|
+
}
|
|
1409
|
+
.govbr-playground__custom-size button {
|
|
1410
|
+
padding: 0.5rem;
|
|
1411
|
+
border: 1px solid var(--gp-border);
|
|
1412
|
+
border-radius: 4px;
|
|
1413
|
+
color: var(--gp-accent);
|
|
1414
|
+
background: var(--gp-surface);
|
|
1415
|
+
font: inherit;
|
|
1416
|
+
cursor: pointer;
|
|
1417
|
+
}
|
|
1418
|
+
.govbr-playground__custom-size :focus-visible {
|
|
1419
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1420
|
+
outline-offset: 2px;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.govbr-playground__viewport-popover {
|
|
1424
|
+
position: fixed;
|
|
1425
|
+
inset: auto;
|
|
1426
|
+
margin: 0;
|
|
1427
|
+
padding: 0.75rem;
|
|
1428
|
+
max-width: calc(100vw - 16px);
|
|
1429
|
+
max-height: calc(100vh - 16px);
|
|
1430
|
+
overflow: auto;
|
|
1431
|
+
border: 1px solid var(--gp-border);
|
|
1432
|
+
border-radius: 8px;
|
|
1433
|
+
background: var(--gp-surface);
|
|
1434
|
+
color: var(--gp-text);
|
|
1435
|
+
box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
|
|
1436
|
+
}
|
|
1437
|
+
.govbr-playground__preview-actions {
|
|
1438
|
+
display: flex;
|
|
1439
|
+
flex-wrap: wrap;
|
|
1440
|
+
gap: 0.5rem;
|
|
1441
|
+
align-items: center;
|
|
1442
|
+
}
|
|
1443
|
+
.govbr-playground__preview {
|
|
1444
|
+
position: relative;
|
|
1445
|
+
}
|
|
1446
|
+
.govbr-playground__viewport-size {
|
|
1447
|
+
position: absolute;
|
|
1448
|
+
inset-block-end: 0.25rem;
|
|
1449
|
+
inset-inline-end: 0.25rem;
|
|
1450
|
+
padding: 0.15rem 0.35rem;
|
|
1451
|
+
border-radius: 3px;
|
|
1452
|
+
background: var(--gp-surface, #fff);
|
|
1453
|
+
color: var(--gp-text, #333);
|
|
1454
|
+
font: 0.75rem monospace;
|
|
1455
|
+
pointer-events: none;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.govbr-playground__environment-line,
|
|
1459
|
+
.govbr-playground__environment-fields {
|
|
1460
|
+
display: flex;
|
|
1461
|
+
flex-wrap: wrap;
|
|
1462
|
+
gap: 0.75rem;
|
|
1463
|
+
align-items: center;
|
|
1464
|
+
min-width: 0;
|
|
1465
|
+
}
|
|
1466
|
+
.govbr-playground__environment-field {
|
|
1467
|
+
display: flex;
|
|
1468
|
+
flex-wrap: wrap;
|
|
1469
|
+
gap: 0.5rem;
|
|
1470
|
+
align-items: center;
|
|
1471
|
+
}
|
|
1472
|
+
.govbr-playground__environment-line br-select {
|
|
1473
|
+
inline-size: 12rem;
|
|
1474
|
+
max-inline-size: 100%;
|
|
1475
|
+
}
|
|
1476
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__environment-line {
|
|
1477
|
+
display: none;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
/* A navegação de abas não participa da rolagem do conteúdo. */
|
|
1481
|
+
.govbr-playground__studio-tools {
|
|
1482
|
+
overflow: hidden;
|
|
1483
|
+
}
|
|
1484
|
+
.govbr-playground__studio-tools > [role='tablist'] {
|
|
1485
|
+
flex: 0 0 auto;
|
|
1486
|
+
}
|
|
1487
|
+
.govbr-playground__studio-tools > [role='tabpanel'] {
|
|
1488
|
+
display: flex;
|
|
1489
|
+
flex-direction: column;
|
|
1490
|
+
flex: 1 1 0;
|
|
2052
1491
|
min-height: 0;
|
|
2053
1492
|
overflow: auto;
|
|
2054
1493
|
}
|
|
2055
|
-
|
|
1494
|
+
.govbr-playground__controls {
|
|
1495
|
+
display: flex;
|
|
1496
|
+
flex-direction: column;
|
|
1497
|
+
min-height: 0;
|
|
1498
|
+
height: 100%;
|
|
1499
|
+
overflow: hidden;
|
|
1500
|
+
gap: 0.5rem;
|
|
1501
|
+
}
|
|
1502
|
+
.govbr-playground__controls > header {
|
|
2056
1503
|
flex: 0 0 auto;
|
|
2057
1504
|
}
|
|
2058
|
-
|
|
1505
|
+
.govbr-playground__props-scroll {
|
|
1506
|
+
flex: 1 1 0;
|
|
1507
|
+
min-height: 0;
|
|
1508
|
+
overflow: auto;
|
|
2059
1509
|
}
|
|
2060
|
-
.govbr-
|
|
2061
|
-
|
|
1510
|
+
.govbr-playground__section-body {
|
|
1511
|
+
padding: 0.5rem;
|
|
1512
|
+
min-width: 0;
|
|
2062
1513
|
}
|
|
2063
|
-
.govbr-
|
|
2064
|
-
|
|
1514
|
+
.govbr-playground__tree-section .govbr-playground__section-body {
|
|
1515
|
+
max-height: 9rem;
|
|
1516
|
+
overflow: auto;
|
|
1517
|
+
}
|
|
1518
|
+
.govbr-playground__inspector-footer .govbr-playground__section-body {
|
|
1519
|
+
max-height: 22vh;
|
|
1520
|
+
overflow: auto;
|
|
1521
|
+
}
|
|
1522
|
+
.govbr-playground__controls br-collapse {
|
|
1523
|
+
display: block;
|
|
1524
|
+
min-width: 0;
|
|
1525
|
+
border-block-end: 1px solid var(--gp-border);
|
|
1526
|
+
}
|
|
1527
|
+
.govbr-playground__property-meta {
|
|
1528
|
+
display: grid;
|
|
1529
|
+
gap: 0.5rem;
|
|
1530
|
+
margin-block-start: 0.5rem;
|
|
1531
|
+
color: var(--gp-muted);
|
|
1532
|
+
font-size: 0.8rem;
|
|
1533
|
+
}
|
|
1534
|
+
.govbr-playground__property-summary {
|
|
1535
|
+
display: flex;
|
|
1536
|
+
align-items: baseline;
|
|
1537
|
+
flex-wrap: wrap;
|
|
1538
|
+
gap: 0.5rem 0.75rem;
|
|
1539
|
+
}
|
|
1540
|
+
.govbr-playground__property-type {
|
|
1541
|
+
font-size: 0.75rem;
|
|
1542
|
+
overflow-wrap: anywhere;
|
|
1543
|
+
}
|
|
1544
|
+
.govbr-playground__property-default {
|
|
1545
|
+
overflow-wrap: anywhere;
|
|
1546
|
+
}
|
|
1547
|
+
.govbr-playground__property-default code {
|
|
1548
|
+
white-space: pre-wrap;
|
|
2065
1549
|
}
|
|
2066
|
-
|
|
1550
|
+
.govbr-playground__property-values summary {
|
|
1551
|
+
cursor: pointer;
|
|
1552
|
+
padding-block: 0.2rem;
|
|
1553
|
+
}
|
|
1554
|
+
.govbr-playground__property-values ul {
|
|
1555
|
+
display: flex;
|
|
1556
|
+
flex-wrap: wrap;
|
|
1557
|
+
gap: 0.4rem;
|
|
1558
|
+
padding: 0;
|
|
1559
|
+
margin: 0.5rem 0 0;
|
|
1560
|
+
list-style: none;
|
|
1561
|
+
}
|
|
1562
|
+
.govbr-playground__property-values code {
|
|
1563
|
+
white-space: nowrap;
|
|
1564
|
+
word-break: normal;
|
|
1565
|
+
}
|
|
1566
|
+
.govbr-playground__switch--unlabelled > span,
|
|
1567
|
+
.govbr-playground__property-field br-select::part(input-label) {
|
|
1568
|
+
position: absolute;
|
|
1569
|
+
inline-size: 1px;
|
|
1570
|
+
block-size: 1px;
|
|
1571
|
+
overflow: hidden;
|
|
1572
|
+
clip-path: inset(50%);
|
|
1573
|
+
white-space: nowrap;
|
|
1574
|
+
}
|
|
1575
|
+
.govbr-playground__color-editor {
|
|
1576
|
+
display: flex;
|
|
1577
|
+
align-items: center;
|
|
1578
|
+
flex-wrap: wrap;
|
|
1579
|
+
gap: 0.5rem;
|
|
1580
|
+
}
|
|
1581
|
+
.govbr-playground__color-editor > small,
|
|
1582
|
+
.govbr-playground__color-editor > p {
|
|
1583
|
+
flex-basis: 100%;
|
|
1584
|
+
}
|
|
1585
|
+
.govbr-playground__color-swatch {
|
|
1586
|
+
display: inline-block;
|
|
1587
|
+
width: 2rem;
|
|
1588
|
+
height: 2rem;
|
|
1589
|
+
border: 1px solid var(--gp-border);
|
|
1590
|
+
border-radius: 4px;
|
|
1591
|
+
}
|
|
1592
|
+
.govbr-playground__color-swatch input {
|
|
1593
|
+
width: 100%;
|
|
1594
|
+
height: 100%;
|
|
1595
|
+
cursor: pointer;
|
|
1596
|
+
opacity: 0;
|
|
1597
|
+
}
|
|
1598
|
+
.govbr-playground__color-swatch:focus-within {
|
|
1599
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1600
|
+
outline-offset: 2px;
|
|
1601
|
+
}
|
|
1602
|
+
.govbr-playground__native-switch {
|
|
1603
|
+
display: inline-flex;
|
|
1604
|
+
gap: 0.5rem;
|
|
1605
|
+
align-items: center;
|
|
1606
|
+
}
|
|
1607
|
+
.govbr-playground__parts-list dd {
|
|
1608
|
+
margin: 0.25rem 0 0.75rem;
|
|
1609
|
+
}
|
|
1610
|
+
.govbr-playground__viewport-controls > label {
|
|
1611
|
+
display: flex;
|
|
1612
|
+
align-items: center;
|
|
1613
|
+
gap: 0.5rem;
|
|
1614
|
+
}
|
|
1615
|
+
.govbr-playground__viewport-controls > label br-select {
|
|
1616
|
+
inline-size: 7rem;
|
|
1617
|
+
}
|
|
1618
|
+
.govbr-playground__viewport-controls > label br-select::part(input-label),
|
|
1619
|
+
.govbr-playground__workspace-modes br-select::part(input-label) {
|
|
1620
|
+
display: none;
|
|
1621
|
+
}
|
|
1622
|
+
.govbr-playground__controls {
|
|
1623
|
+
container-type: inline-size;
|
|
1624
|
+
container-name: inspector;
|
|
1625
|
+
}
|
|
1626
|
+
@container inspector (max-width: 650px) {
|
|
1627
|
+
.govbr-playground__controls table,
|
|
1628
|
+
.govbr-playground__controls tbody,
|
|
1629
|
+
.govbr-playground__controls tr,
|
|
1630
|
+
.govbr-playground__controls th,
|
|
1631
|
+
.govbr-playground__controls td {
|
|
1632
|
+
display: block;
|
|
1633
|
+
width: 100%;
|
|
1634
|
+
box-sizing: border-box;
|
|
1635
|
+
}
|
|
1636
|
+
.govbr-playground__controls thead {
|
|
1637
|
+
display: none;
|
|
1638
|
+
}
|
|
1639
|
+
.govbr-playground__controls tr {
|
|
1640
|
+
border-block-end: 1px solid var(--gp-border);
|
|
1641
|
+
padding-block: 0.5rem;
|
|
1642
|
+
}
|
|
1643
|
+
.govbr-playground__controls th,
|
|
1644
|
+
.govbr-playground__controls td {
|
|
1645
|
+
border: 0;
|
|
1646
|
+
padding: 0.35rem;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
.govbr-playground__workspace-modes label {
|
|
1650
|
+
display: flex;
|
|
1651
|
+
align-items: center;
|
|
1652
|
+
gap: 0.5rem;
|
|
1653
|
+
}
|
|
1654
|
+
.govbr-playground__workspace-modes br-select {
|
|
1655
|
+
inline-size: 11rem;
|
|
1656
|
+
}
|
|
1657
|
+
.govbr-playground__studio[data-horizontal='false'][data-tools-open='true'] {
|
|
1658
|
+
grid-template-rows: minmax(240px, var(--studio-split)) 12px minmax(380px, var(--studio-rest));
|
|
1659
|
+
}
|
|
1660
|
+
.govbr-playground__inspector-footer {
|
|
1661
|
+
display: flex;
|
|
1662
|
+
flex-direction: column;
|
|
1663
|
+
max-height: 55%;
|
|
1664
|
+
flex: 0 1 auto;
|
|
1665
|
+
min-height: 6rem;
|
|
1666
|
+
}
|
|
1667
|
+
.govbr-playground__inspector-footer > br-collapse {
|
|
1668
|
+
min-height: 3rem;
|
|
1669
|
+
flex: 0 1 auto;
|
|
1670
|
+
overflow: auto;
|
|
1671
|
+
}
|
|
1672
|
+
.govbr-playground__inspector-footer br-collapse::part(trigger) {
|
|
1673
|
+
position: sticky;
|
|
1674
|
+
top: 0;
|
|
1675
|
+
background: var(--gp-surface);
|
|
1676
|
+
}
|
|
1677
|
+
.govbr-playground__native-switch input {
|
|
1678
|
+
appearance: none;
|
|
1679
|
+
display: inline-flex;
|
|
1680
|
+
align-items: center;
|
|
1681
|
+
inline-size: 2.4rem;
|
|
1682
|
+
block-size: 1.35rem;
|
|
1683
|
+
border: 1px solid var(--gp-border);
|
|
1684
|
+
border-radius: 1rem;
|
|
1685
|
+
background: var(--gp-muted);
|
|
1686
|
+
cursor: pointer;
|
|
1687
|
+
}
|
|
1688
|
+
.govbr-playground__native-switch input::before {
|
|
1689
|
+
content: '';
|
|
1690
|
+
inline-size: 1rem;
|
|
1691
|
+
block-size: 1rem;
|
|
1692
|
+
margin-inline-start: 0.12rem;
|
|
1693
|
+
border-radius: 50%;
|
|
1694
|
+
background: var(--gp-surface);
|
|
1695
|
+
}
|
|
1696
|
+
.govbr-playground__native-switch input:checked {
|
|
1697
|
+
background: var(--gp-accent);
|
|
2067
1698
|
}
|
|
2068
|
-
.govbr-
|
|
2069
|
-
|
|
1699
|
+
.govbr-playground__native-switch input:checked::before {
|
|
1700
|
+
margin-inline-start: 1.1rem;
|
|
2070
1701
|
}
|
|
2071
|
-
.govbr-
|
|
2072
|
-
|
|
1702
|
+
.govbr-playground__native-switch input:focus-visible {
|
|
1703
|
+
outline: 3px solid var(--focus, #c2850c);
|
|
1704
|
+
outline-offset: 2px;
|
|
1705
|
+
}
|
|
1706
|
+
.govbr-playground__native-switch input:disabled {
|
|
1707
|
+
opacity: 0.55;
|
|
1708
|
+
cursor: not-allowed;
|
|
1709
|
+
}
|
|
1710
|
+
.govbr-playground__preview-area [aria-label='Área de preview'][data-fill-height='true'] {
|
|
1711
|
+
min-height: 176px;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/* Recolher Props libera o espaço; o rodapé só fica ancorado quando há conteúdo aberto. */
|
|
1715
|
+
.govbr-playground__props-scroll {
|
|
1716
|
+
flex: 0 1 auto;
|
|
1717
|
+
}
|
|
1718
|
+
.govbr-playground__props-scroll:has(> br-collapse[open]) {
|
|
1719
|
+
flex: 1 1 0;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.govbr-playground__studio-preview {
|
|
1723
|
+
scrollbar-gutter: stable;
|
|
1724
|
+
overflow-anchor: none;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
.govbr-playground__example-picker {
|
|
1728
|
+
position: relative;
|
|
1729
|
+
max-width: 24rem;
|
|
1730
|
+
}
|
|
1731
|
+
.govbr-playground__example-picker br-input {
|
|
1732
|
+
display: block;
|
|
1733
|
+
}
|
|
1734
|
+
.govbr-playground__example-results:not([hidden]) {
|
|
1735
|
+
position: absolute;
|
|
1736
|
+
inset-inline: 0;
|
|
1737
|
+
top: 100%;
|
|
1738
|
+
z-index: var(--z-index-layer-1, 1);
|
|
1739
|
+
display: grid;
|
|
1740
|
+
max-height: 18rem;
|
|
1741
|
+
overflow: auto;
|
|
1742
|
+
border: 1px solid var(--gp-border, #c8cdd3);
|
|
1743
|
+
border-radius: 4px;
|
|
1744
|
+
background: var(--gp-surface, #fff);
|
|
1745
|
+
color: var(--gp-text, #1b1b1b);
|
|
1746
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
|
|
1747
|
+
}
|
|
1748
|
+
.govbr-playground__example-results button {
|
|
1749
|
+
padding: 0.5rem 0.75rem;
|
|
1750
|
+
border: 0;
|
|
1751
|
+
background: transparent;
|
|
1752
|
+
color: inherit;
|
|
1753
|
+
font: inherit;
|
|
1754
|
+
text-align: start;
|
|
1755
|
+
cursor: pointer;
|
|
1756
|
+
}
|
|
1757
|
+
.govbr-playground__example-results button:hover,
|
|
1758
|
+
.govbr-playground__example-results button:focus-visible {
|
|
1759
|
+
background: var(--gp-accent-soft, #e8f0fe);
|
|
1760
|
+
outline: 2px solid var(--gp-accent, #1351b4);
|
|
1761
|
+
outline-offset: -2px;
|
|
1762
|
+
}
|
|
1763
|
+
.govbr-playground__example-results p {
|
|
1764
|
+
margin: 0;
|
|
1765
|
+
padding: 0.75rem;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
.govbr-playground__example-line > div {
|
|
1769
|
+
width: 24rem;
|
|
1770
|
+
max-width: 100%;
|
|
2073
1771
|
}
|