coveragebook_components 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/build/coco/app.css +252 -212
  3. data/app/assets/build/coco/app.js +19 -2
  4. data/app/assets/build/coco/book.css +466 -218
  5. data/app/assets/build/coco/icons/custom/eye-off-red.svg +17 -0
  6. data/app/assets/build/coco/icons/custom/google-sso.svg +9 -0
  7. data/app/assets/build/coco/icons/custom/layout-overlay.svg +7 -0
  8. data/app/assets/build/coco/icons/custom/layout-split.svg +8 -0
  9. data/app/assets/build/coco/icons/custom/layout-stacked.svg +7 -0
  10. data/app/assets/build/coco/icons/custom/microsoft-sso.svg +11 -0
  11. data/app/assets/build/coco/icons/custom/montage.svg +10 -0
  12. data/app/assets/css/base/utils/icons.css +6 -5
  13. data/app/assets/css/book.css +1 -0
  14. data/app/assets/custom_icons/other/eye-off-red.svg +17 -0
  15. data/app/assets/custom_icons/other/google-sso.svg +9 -0
  16. data/app/assets/custom_icons/other/layout-overlay.svg +7 -0
  17. data/app/assets/custom_icons/other/layout-split.svg +8 -0
  18. data/app/assets/custom_icons/other/layout-stacked.svg +7 -0
  19. data/app/assets/custom_icons/other/microsoft-sso.svg +11 -0
  20. data/app/assets/custom_icons/other/montage.svg +10 -0
  21. data/app/components/coco/app/blocks/slide_editor/slide_editor.css +27 -18
  22. data/app/components/coco/app/blocks/slide_editor/slide_editor.html.erb +5 -3
  23. data/app/components/coco/app/blocks/slide_editor/slide_editor.js +23 -0
  24. data/app/components/coco/app/elements/seamless_textarea/seamless_textarea.js +1 -1
  25. data/app/components/coco/base/icon/icon.css +6 -2
  26. data/app/components/coco/base/icon/icon.html.erb +1 -1
  27. data/app/components/coco/base/icon/icon.rb +32 -9
  28. data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.css +156 -140
  29. data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.html.erb +25 -21
  30. data/lib/coco.rb +1 -1
  31. metadata +16 -2
@@ -732,18 +732,268 @@ select {
732
732
  [data-coco] h6 {
733
733
  font-family: proxima-nova, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
734
734
  }
735
+ [data-coco].coco-button {
736
+ display: inline-flex;
737
+ width: auto;
738
+ flex: none;
739
+ -webkit-user-select: none;
740
+ -moz-user-select: none;
741
+ user-select: none;
742
+ border-width: 1px;
743
+ border-color: transparent;
744
+ background-color: transparent;
745
+ color: currentColor;
746
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
747
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
748
+ transition-duration: 150ms;
749
+ width: -moz-min-content;
750
+ width: min-content;
751
+ }
752
+ [data-coco].coco-button .button-element {
753
+ display: inline-flex;
754
+ width: 100%;
755
+ text-decoration-line: none;
756
+ outline: 2px solid transparent;
757
+ outline-offset: 2px;
758
+ }
759
+ [data-coco].coco-button .button-element:focus-visible {
760
+ outline-width: 0px;
761
+ }
762
+ [data-coco].coco-button .button-inner {
763
+ margin-left: auto;
764
+ margin-right: auto;
765
+ display: inline-flex;
766
+ align-items: center;
767
+ gap: 0.5rem;
768
+ text-align: center;
769
+ width: -moz-fit-content;
770
+ width: fit-content;
771
+ }
772
+ [data-coco].coco-button .button-content {
773
+ position: relative;
774
+ order: 2;
775
+ display: inline-flex;
776
+ align-items: center;
777
+ white-space: nowrap;
778
+ line-height: 1;
779
+ }
780
+ [data-coco].coco-button .button-state-content {
781
+ display: contents;
782
+ }
783
+ [data-coco].coco-button .button-icon {
784
+ order: 1;
785
+ display: inline-flex;
786
+ align-items: center;
787
+ }
788
+ [data-coco].coco-button .button-dropdown {
789
+ display: contents;
790
+ border-radius: 0.375rem;
791
+ }
792
+ [data-coco].coco-button .button-toggle {
793
+ order: 3;
794
+ }
795
+ /* disabled */
796
+ [data-coco].coco-button[data-disabled="true"] .button-element {
797
+ cursor: not-allowed;
798
+ }
799
+ /* loading */
800
+ @keyframes spin {
801
+
802
+ to {
803
+ transform: rotate(360deg);
804
+ }
805
+ }
806
+ [data-coco].coco-button[data-state="loading"] > .button-element .button-icon {
807
+ animation: spin 1.5s linear infinite;
808
+ }
809
+ /* Fit */
810
+ [data-coco].coco-button[data-fit="full"] {
811
+ width: 100%;
812
+ }
813
+ /* Icons */
814
+ [data-coco].coco-button[data-icon-position="end"] > .button-element .button-content {
815
+ order: 1;
816
+ }
817
+ [data-coco].coco-button[data-icon-position="end"] > .button-element .button-icon {
818
+ order: 2;
819
+ }
820
+ [data-coco].coco-button[data-icon-position="end"] > .button-element .button-toggle {
821
+ order: 3;
822
+ }
823
+ [data-coco].coco-button.with-icon[data-collapsed="true"] > .button-element .button-content {
824
+ display: none;
825
+ }
826
+ [data-coco][data-component="dropdown"] {
827
+ width: -moz-fit-content;
828
+ width: fit-content;
829
+ }
830
+ [data-coco][data-component="dropdown"] .dropdown-trigger {
831
+ cursor: pointer;
832
+ width: -moz-fit-content;
833
+ width: fit-content;
834
+ }
835
+ @supports (aspect-ratio: 1 / 1) {
836
+
837
+ [data-coco][data-component="youtube-embed"] {
838
+ aspect-ratio: 16/9;
839
+ }
840
+ }
841
+ @supports not (aspect-ratio: 1 / 1) {
842
+
843
+ [data-coco][data-component="youtube-embed"]::before {
844
+ content: "";
845
+ float: left;
846
+ padding-top: calc(100% / (16/9));
847
+ }
848
+
849
+ [data-coco][data-component="youtube-embed"]::after {
850
+ clear: left;
851
+ content: "";
852
+ display: block;
853
+ }
854
+ }
855
+ [data-coco][data-component="youtube-embed"] iframe {
856
+ height: 100%;
857
+ width: 100%;
858
+ }
859
+ [data-coco][data-component="icon"] {
860
+ display: inline-flex;
861
+ height: 1.5rem;
862
+ width: 1.5rem;
863
+ flex: none;
864
+ overflow: hidden;
865
+ color: currentColor;
866
+ }
867
+ [data-coco][data-component="icon"] svg {
868
+ height: 100%;
869
+ width: 100%;
870
+ }
871
+ /* Styles */
872
+ [data-coco][data-component="icon"][data-icon]:not([data-style="fill"]):not([data-style="custom"]) svg {
873
+ fill: none;
874
+ stroke: currentColor;
875
+ stroke-width: 2;
876
+ color: currentColor;
877
+ stroke-linecap: round;
878
+ stroke-linejoin: round;
879
+ }
880
+ [data-coco][data-component="icon"][data-icon][data-style="fill"] svg {
881
+ fill: currentColor;
882
+ color: currentColor;
883
+ stroke-linecap: round;
884
+ stroke-linejoin: round;
885
+ }
886
+ /* Sizes */
887
+ [data-coco][data-component="icon"][data-size="xs"] {
888
+ height: 0.75rem;
889
+ width: 0.75rem;
890
+ }
891
+ [data-coco][data-component="icon"][data-size="sm"] {
892
+ height: 1rem;
893
+ width: 1rem;
894
+ }
895
+ [data-coco][data-component="icon"][data-size="md"] {
896
+ height: 1.25rem;
897
+ width: 1.25rem;
898
+ }
899
+ [data-coco][data-component="icon"][data-size="lg"] {
900
+ height: 1.5rem;
901
+ width: 1.5rem;
902
+ }
903
+ [data-coco][data-component="icon"][data-size="xl"] {
904
+ height: 2.25rem;
905
+ width: 2.25rem;
906
+ }
907
+ [data-coco][data-component="icon"][data-size="xxl"] {
908
+ height: 3rem;
909
+ width: 3rem;
910
+ }
911
+ /* Motion */
912
+ @keyframes spin {
913
+
914
+ to {
915
+ transform: rotate(360deg);
916
+ }
917
+ }
918
+ [data-coco][data-component="icon"][data-spin="true"] svg {
919
+ animation: spin 1.5s linear infinite;
920
+ }
921
+ @keyframes spin {
922
+
923
+ to {
924
+ transform: rotate(360deg);
925
+ }
926
+ }
927
+ [data-coco][data-component="icon"][data-spin="reverse"] svg {
928
+ animation: spin 1.5s linear infinite reverse;
929
+ }
930
+ [data-coco][data-component="image"] {
931
+ display: block;
932
+ max-width: 100%;
933
+ }
934
+ [data-coco][data-component="image-uploader"] {
935
+ display: contents;
936
+ }
937
+ [data-coco][data-component="image-uploader"][data-click="true"] {
938
+ cursor: pointer;
939
+ }
940
+ [data-coco][data-component="image-uploader"] .uploader-input {
941
+ display: none;
942
+ }
943
+ [data-coco].coco-link {
944
+ display: inline-flex;
945
+ align-items: center;
946
+ }
947
+ [data-coco].coco-link[data-icon-position="start"] .link-text {
948
+ order: 2;
949
+ }
950
+ [data-coco].coco-link[data-icon-position="start"] [data-component="icon"] {
951
+ order: 1;
952
+ margin-right: 0.4em;
953
+ }
954
+ [data-coco].coco-link[data-icon-position="end"] .link-text {
955
+ order: 1;
956
+ margin-right: 0.4em;
957
+ }
958
+ [data-coco].coco-link[data-icon-position="end"] [data-component="icon"] {
959
+ order: 2;
960
+ }
961
+ [data-coco][data-component="placeholder"] {
962
+ border-width: 1px;
963
+ border-style: dashed;
964
+ --tw-border-opacity: 1;
965
+ border-color: rgb(156 163 175 / var(--tw-border-opacity));
966
+ --tw-bg-opacity: 1;
967
+ background-color: rgb(249 250 251 / var(--tw-bg-opacity));
968
+ padding: 1rem;
969
+ text-align: center;
970
+ }
971
+ [data-coco][data-component="placeholder"][data-size="full"] {
972
+ height: 100%;
973
+ width: 100%;
974
+ }
975
+ [data-coco][data-component="placeholder"][data-size="full"] .placeholder-inner {
976
+ display: flex;
977
+ height: 100%;
978
+ width: 100%;
979
+ align-items: center;
980
+ justify-content: center;
981
+ }
982
+ [data-coco][data-component="placeholder"][data-size="full"] .placeholder-content {
983
+ margin: auto;
984
+ }
735
985
  [data-coco][data-component="book-editable-slide"] {
736
986
  /*
737
- * slide-padding-md at max (1480px): 240px (16.2%)
738
- * slide-padding-md at min (320px): 16.2% x 320px = 52px
987
+ * slide-padding-lg at max (1480px): 240px (16.2%)
988
+ * slide-padding-lg at min (320px): 16.2% x 320px = 52px
739
989
  */
740
- --slide-padding-lg: max(38px, clamp(52px, 16.2cqw, 240px));
990
+ --slide-padding-lg: clamp(52px, 16.2cqw, 240px);
741
991
 
742
992
  /*
743
993
  * slide-padding-md at max (1480px): 120px (8.1%)
744
994
  * slide-padding-md at min (320px): 8.1% x 320px = 26px
745
995
  */
746
- --slide-padding-md: max(24px, clamp(26px, 8.1cqw, 120px));
996
+ --slide-padding-md: clamp(26px, 8.1cqw, 120px);
747
997
 
748
998
  /*
749
999
  * slide-padding-sm at max (1480px): 80px (5.4%)
@@ -751,6 +1001,9 @@ select {
751
1001
  */
752
1002
  --slide-padding-sm: max(24px, clamp(17px, 5.4cqw, 80px));
753
1003
 
1004
+ /* Visually-adjusted small padding size for grid gap and header spacing */
1005
+ --slide-padding-sm-internal: max(20px, clamp(16px, 4.9cqw, 72px));
1006
+
754
1007
  /*
755
1008
  * Small title font size at max (1480px): 64px (4.3%)
756
1009
  * Small title font size at min (320px): 4.3% x 320px = 13.8px
@@ -764,10 +1017,7 @@ select {
764
1017
  * Text font size at max (1480px): 24px / 1.62%
765
1018
  * Text font size at min (320px): 1.62% x 320px = 5.2px
766
1019
  */
767
- --text-font-size: max(
768
- 16px,
769
- clamp(5.2px, 1.62cqw, 24px)
770
- );
1020
+ --text-font-size: max(12px, clamp(6.1px, 1.86cqw, 28px));
771
1021
 
772
1022
  /* ------------- */
773
1023
 
@@ -838,11 +1088,23 @@ select {
838
1088
  @container (min-width: 700px) {
839
1089
 
840
1090
  [data-coco][data-component="book-editable-slide"] .slide-container {
841
- padding: var(--slide-padding-md);
1091
+ padding-left: var(--slide-padding-md);
1092
+ padding-right: var(--slide-padding-md);
1093
+ padding-top: var(--slide-padding-md);
1094
+ padding-bottom: var(--slide-padding-md);
842
1095
  }
843
1096
  }
844
- [data-coco][data-component="book-editable-slide"] [data-slide-region],
845
- [data-coco][data-component="book-editable-slide"] .slide-header,
1097
+ [data-coco][data-component="book-editable-slide"] .slide-layout {
1098
+ height: 100%;
1099
+ width: 100%;
1100
+ }
1101
+ @container (min-width: 700px) {
1102
+
1103
+ [data-coco][data-component="book-editable-slide"] .slide-layout {
1104
+ display: grid;
1105
+ }
1106
+ }
1107
+ [data-coco][data-component="book-editable-slide"] .slide-header,
846
1108
  [data-coco][data-component="book-editable-slide"] .slide-text,
847
1109
  [data-coco][data-component="book-editable-slide"] .slide-media {
848
1110
  display: none;
@@ -850,7 +1112,11 @@ select {
850
1112
  [data-coco][data-component="book-editable-slide"] .slide-group {
851
1113
  display: contents;
852
1114
  }
1115
+ [data-coco][data-component="book-editable-slide"] .slide-header {
1116
+ width: 100%;
1117
+ }
853
1118
  [data-coco][data-component="book-editable-slide"] .slide-title {
1119
+ width: 100%;
854
1120
  font-weight: 700;
855
1121
  color: currentColor;
856
1122
  overflow-wrap: anywhere;
@@ -858,20 +1124,39 @@ select {
858
1124
  font-size: var(--title-font-size);
859
1125
  }
860
1126
  [data-coco][data-component="book-editable-slide"] .slide-text {
1127
+ width: 100%;
1128
+ overflow: hidden;
1129
+ font-size: 1rem;
1130
+ line-height: 1.5rem;
861
1131
  color: currentColor;
862
1132
  line-height: 1.5;
863
- font-size: var(--text-font-size);
864
1133
  }
865
1134
  [data-coco][data-component="book-editable-slide"] .slide-media {
1135
+ position: relative;
866
1136
  width: 100%;
1137
+ font-size: 1rem;
1138
+ line-height: 1.5rem;
867
1139
  color: currentColor;
868
- font-size: var(--text-font-size);
869
1140
  }
870
- [data-coco][data-component="book-editable-slide"] .slide-media img {
1141
+ @container (min-width: 700px) {
1142
+ [data-coco][data-component="book-editable-slide"] .slide-text,
1143
+ [data-coco][data-component="book-editable-slide"] .slide-media {
1144
+ font-size: var(--text-font-size);
1145
+ }
1146
+ [data-coco][data-component="book-editable-slide"] .slide-media-wrapper {
1147
+ position: absolute;
1148
+ inset: 0px;
1149
+ height: 100%;
1150
+ width: 100%;
1151
+ }
1152
+ }
1153
+ [data-coco][data-component="book-editable-slide"] .slide-media-wrapper img {
871
1154
  height: 100%;
872
1155
  width: 100%;
873
1156
  -o-object-fit: contain;
874
1157
  object-fit: contain;
1158
+ -o-object-position: center;
1159
+ object-position: center;
875
1160
  }
876
1161
  /* layouts */
877
1162
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] {
@@ -880,7 +1165,7 @@ select {
880
1165
  * Title font size at min (320px): 5.4% x 320px = 17px
881
1166
  */
882
1167
  --title-font-size: max(
883
- 35px,
1168
+ 38px,
884
1169
  clamp(17px, 5.4cqw, 80px)
885
1170
  );
886
1171
 
@@ -889,64 +1174,59 @@ select {
889
1174
  * Text font size at min (320px): 2.16% x 320px = 7px
890
1175
  */
891
1176
  --text-font-size: max(
892
- 16px,
1177
+ 15px,
893
1178
  clamp(7px, 2.16cqw, 32px)
894
1179
  );
895
- text-align: center;
896
1180
  }
1181
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-container {
1182
+ padding-top: 3rem;
1183
+ padding-bottom: 3rem;
1184
+ }
897
1185
  @container (min-width: 700px) {
898
1186
 
899
1187
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-container {
900
1188
  padding-left: var(--slide-padding-lg);
901
1189
  padding-right: var(--slide-padding-lg);
1190
+ padding-top: var(--slide-padding-md);
1191
+ padding-bottom: var(--slide-padding-md);
902
1192
  }
903
1193
  }
904
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-slide-region="content-1"] {
905
- display: block;
1194
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-layout {
1195
+ margin-left: auto;
1196
+ margin-right: auto;
1197
+ max-width: 475px;
906
1198
  }
907
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-slide-region="content-1"] .slide-text {
908
- display: block;
1199
+ @container (min-width: 700px) {
1200
+
1201
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-layout {
1202
+ max-width: 100%;
1203
+ }
909
1204
  }
910
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"].with-title [data-slide-region="content-1"] .slide-text {
911
- margin-top: 0.875em;
912
- }
913
1205
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-layout {
1206
+ grid-template-areas: "content";
1207
+ }
1208
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-role="group-primary-text"] {
914
1209
  display: flex;
915
1210
  height: 100%;
916
- width: 100%;
917
1211
  flex-direction: column;
918
1212
  align-items: center;
919
1213
  justify-content: center;
920
1214
  text-align: center;
1215
+ grid-area: content;
921
1216
  }
922
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-header {
1217
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-role="header"],
1218
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-role="text-primary"] {
923
1219
  display: block;
924
- width: 100%;
925
- }
926
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-content {
927
- width: 100%;
928
- flex: none;
929
- }
930
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-header,
931
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-content {
932
- margin-left: auto;
933
- margin-right: auto;
934
- width: 100%;
935
- max-width: 360px;
936
- }
937
- @container (min-width: 700px) {
938
-
939
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-header,
940
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-content {
941
- max-width: 100%;
942
- }
943
1220
  }
944
1221
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-text {
945
1222
  line-height: 1.4;
946
1223
  }
1224
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-title"].with-title .slide-text {
1225
+ margin-top: 0.875em;
1226
+ }
947
1227
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-container {
948
- padding-top: 1.5rem;
949
- padding-bottom: 1.5rem;
1228
+ padding-top: 2.5rem;
1229
+ padding-bottom: 2.5rem;
950
1230
  }
951
1231
  @container (min-width: 700px) {
952
1232
 
@@ -954,51 +1234,42 @@ select {
954
1234
  padding-top: var(--slide-padding-sm);
955
1235
  padding-bottom: var(--slide-padding-sm);
956
1236
  }
957
- }
958
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-container {
959
- display: flex;
960
- align-items: center;
961
- }
962
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-layout {
963
- width: 100%;
964
- }
965
- @container (min-width: 700px) {
966
1237
 
967
1238
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-layout {
968
- display: grid;
1239
+ padding-top: 4.8cqw;
1240
+ padding-bottom: 4.8cqw;
969
1241
  }
970
1242
  }
971
1243
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-layout {
972
- height: -moz-min-content;
973
- height: min-content;
974
- grid-template-columns: 1fr;
1244
+ grid-template-areas: "content";
975
1245
  grid-template-rows: auto;
976
- grid-gap: var(--slide-padding-sm);
977
1246
  }
978
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"].with-title .slide-container {
979
- display: block;
980
- }
981
1247
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"].with-title .slide-layout {
982
- height: 100%;
983
- grid-template-rows: min-content auto;
984
- }
985
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-header {
1248
+ padding-top: 0px;
1249
+ padding-bottom: 0px;
1250
+ grid-template-areas:
1251
+ "header"
1252
+ "content";
1253
+ grid-template-rows: min-content auto;
1254
+ grid-gap: var(--slide-padding-sm-internal);
1255
+ }
1256
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-role="header"],
1257
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-role="text-primary"] {
986
1258
  display: block;
987
- width: 100%;
988
- margin-bottom: 1.5rem;
989
1259
  }
1260
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-role="header"] {
1261
+ grid-area: header;
1262
+ margin-bottom: 1.25rem;
1263
+ }
990
1264
  @container (min-width: 700px) {
991
1265
 
992
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-header {
1266
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-role="header"] {
993
1267
  margin-bottom: 0px;
994
1268
  }
995
1269
  }
996
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-slide-region="content-1"] {
997
- display: block;
998
- }
999
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-slide-region="content-1"] .slide-text {
1000
- display: block;
1001
- }
1270
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-role="text-primary"] {
1271
+ grid-area: content;
1272
+ }
1002
1273
  [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-container {
1003
1274
  padding: 1.5rem;
1004
1275
  }
@@ -1008,188 +1279,175 @@ select {
1008
1279
  padding: var(--slide-padding-sm);
1009
1280
  }
1010
1281
  }
1011
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-layout,
1012
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-content {
1013
- height: 100%;
1014
- }
1015
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-slide-region="content-1"] {
1016
- display: block;
1017
- }
1018
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-slide-region="content-1"] .slide-media {
1282
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-layout {
1283
+ grid-template-areas: "content";
1284
+ grid-template-rows: 100%;
1285
+ }
1286
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-role="media-primary"] {
1019
1287
  display: block;
1020
1288
  height: 100%;
1021
- width: 100%;
1289
+ grid-area: content;
1022
1290
  }
1023
- [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-slide-region="content-1"] .slide-media img {
1291
+ [data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-media-wrapper {
1024
1292
  height: 100%;
1025
- width: 100%;
1026
- -o-object-fit: contain;
1027
- object-fit: contain;
1028
- }
1029
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-container, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-container {
1030
- display: flex;
1031
- align-items: center;
1032
- padding-top: 1.5rem;
1033
- padding-bottom: 1.5rem;
1034
1293
  }
1035
- @container (min-width: 700px) {
1036
-
1037
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-container, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-container {
1038
- padding-top: var(--slide-padding-sm);
1039
- padding-bottom: var(--slide-padding-sm);
1040
- }
1041
- }
1042
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-layout, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout {
1043
- width: 100%;
1294
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-container {
1295
+ padding-top: 2.5rem;
1296
+ padding-bottom: 2.5rem;
1044
1297
  }
1045
1298
  @container (min-width: 700px) {
1046
1299
 
1047
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-layout, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout {
1048
- display: grid;
1300
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-container {
1301
+ padding: var(--slide-padding-md);
1049
1302
  }
1050
1303
  }
1051
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-layout, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout {
1052
- height: -moz-min-content;
1053
- height: min-content;
1304
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout {
1305
+ grid-template-areas: "text media";
1306
+ grid-template-rows: 100%;
1054
1307
  grid-template-columns: 1fr 1fr;
1055
- grid-template-rows: auto;
1056
- grid-gap: var(--slide-padding-sm);
1308
+ grid-gap: var(--slide-padding-sm-internal);
1057
1309
  }
1058
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"].with-title .slide-container, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"].with-title .slide-container {
1059
- display: block;
1060
- }
1061
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"].with-title .slide-layout, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"].with-title .slide-layout {
1062
- height: 100%;
1063
- grid-template-rows: min-content auto;
1064
- }
1065
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-header, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-header {
1310
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="header"],
1311
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="text-primary"],
1312
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="media-primary"],
1313
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="group-primary-text"] {
1066
1314
  display: block;
1067
- width: 100%;
1068
- margin-bottom: 2.5rem;
1069
1315
  }
1070
- @container (min-width: 700px) {
1071
-
1072
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-header, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-header {
1073
- margin-bottom: 0px;
1074
- }
1075
- }
1076
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-header, [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-header {
1077
- grid-column-start: 1;
1078
- grid-column-end: -1;
1316
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="group-primary-text"] {
1317
+ grid-area: text;
1079
1318
  }
1080
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-1"],
1081
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-2"],
1082
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-1"],
1083
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-2"] {
1084
- display: block;
1085
- }
1086
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-1"], [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-1"] {
1087
- margin-bottom: var(--slide-padding-sm);
1088
- }
1089
- @container (min-width: 700px) {
1090
-
1091
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-1"], [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-1"] {
1092
- margin-bottom: 0px;
1093
- }
1094
- }
1095
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-text {
1096
- display: block;
1097
- }
1098
1319
  @container (min-width: 700px) {
1099
1320
 
1100
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout {
1321
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="group-primary-text"] {
1322
+ display: flex;
1101
1323
  height: 100%;
1324
+ flex-direction: column;
1325
+ justify-content: center;
1102
1326
  }
1103
1327
  }
1104
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-content {
1105
- position: relative;
1328
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="media-primary"] {
1329
+ margin-top: 1.5rem;
1106
1330
  }
1107
1331
  @container (min-width: 700px) {
1108
1332
 
1109
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-content {
1110
- display: flex;
1111
- height: 100%;
1112
- align-items: center;
1333
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="media-primary"] {
1334
+ margin-top: 0px;
1113
1335
  }
1114
1336
  }
1115
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-media {
1116
- display: block;
1337
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-role="media-primary"] {
1338
+ grid-area: media;
1339
+ }
1340
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"].with-title .slide-text {
1341
+ margin-top: 0.875em;
1342
+ }
1343
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-container {
1344
+ padding-top: 2.5rem;
1345
+ padding-bottom: 2.5rem;
1117
1346
  }
1118
1347
  @container (min-width: 700px) {
1119
1348
 
1120
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-media {
1121
- position: absolute;
1122
- inset: 0px;
1349
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-container {
1350
+ padding: var(--slide-padding-sm);
1123
1351
  }
1124
- }
1125
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout {
1126
- height: 100%;
1127
- width: 100%;
1128
- }
1129
- @container (min-width: 700px) {
1130
1352
 
1131
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout {
1132
- display: grid;
1353
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-layout {
1354
+ padding-top: 4.8cqw;
1355
+ padding-bottom: 4.8cqw;
1133
1356
  }
1134
1357
  }
1135
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout {
1136
- grid-template-columns: 1fr 1fr;
1358
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-layout {
1359
+ grid-template-areas: "primary secondary";
1137
1360
  grid-template-rows: auto;
1138
- grid-gap: var(--slide-padding-sm);
1361
+ grid-template-columns: 1fr 1fr;
1362
+ grid-gap: var(--slide-padding-sm-internal);
1139
1363
  }
1140
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-group {
1141
- display: flex;
1142
- flex-direction: column;
1143
- justify-content: center;
1144
- margin-bottom: var(--slide-padding-sm);
1364
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"].with-title .slide-layout {
1365
+ padding-top: 0px;
1366
+ padding-bottom: 0px;
1367
+ grid-template-areas:
1368
+ "header header"
1369
+ "primary secondary";
1370
+ grid-template-rows: min-content auto;
1371
+ }
1372
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="header"],
1373
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="text-primary"],
1374
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="text-secondary"] {
1375
+ display: block;
1376
+ }
1377
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="header"] {
1378
+ grid-area: header;
1379
+ }
1380
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="text-primary"] {
1381
+ grid-area: primary;
1382
+ }
1383
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="text-secondary"] {
1384
+ grid-area: secondary;
1385
+ }
1386
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-header,
1387
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="text-primary"] {
1388
+ margin-bottom: 1.5rem;
1145
1389
  }
1146
1390
  @container (min-width: 700px) {
1147
1391
 
1148
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-group {
1392
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] .slide-header,
1393
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-role="text-primary"] {
1149
1394
  margin-bottom: 0px;
1150
1395
  }
1151
1396
  }
1152
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-header {
1153
- display: block;
1154
- width: 100%;
1155
- }
1156
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-title {
1157
- margin-bottom: 0.5em;
1158
- }
1159
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-1"] {
1160
- display: block;
1161
- }
1162
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-1"] .slide-text {
1163
- display: block;
1164
- }
1165
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] {
1166
- position: relative;
1167
- display: block;
1397
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-container {
1398
+ padding-top: 2.5rem;
1399
+ padding-bottom: 2.5rem;
1168
1400
  }
1169
1401
  @container (min-width: 700px) {
1170
1402
 
1171
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] {
1172
- display: flex;
1173
- height: 100%;
1174
- align-items: center;
1403
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-container {
1404
+ padding: var(--slide-padding-sm);
1405
+ }
1406
+
1407
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout {
1408
+ padding-top: 4.8cqw;
1409
+ padding-bottom: 4.8cqw;
1175
1410
  }
1176
1411
  }
1177
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] .slide-media {
1412
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout {
1413
+ grid-template-areas: "primary secondary";
1414
+ grid-template-rows: auto;
1415
+ grid-template-columns: 1fr 1fr;
1416
+ grid-gap: var(--slide-padding-sm-internal);
1417
+ }
1418
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"].with-title .slide-layout {
1419
+ padding-top: 0px;
1420
+ padding-bottom: 0px;
1421
+ grid-template-areas:
1422
+ "header header"
1423
+ "primary secondary";
1424
+ grid-template-rows: min-content auto;
1425
+ }
1426
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="header"],
1427
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="media-primary"],
1428
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="media-secondary"] {
1178
1429
  display: block;
1179
1430
  }
1431
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="header"] {
1432
+ grid-area: header;
1433
+ }
1434
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="media-primary"] {
1435
+ grid-area: primary;
1436
+ }
1437
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="media-secondary"] {
1438
+ grid-area: secondary;
1439
+ }
1440
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-header,
1441
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="media-primary"] {
1442
+ margin-bottom: 1.5rem;
1443
+ }
1180
1444
  @container (min-width: 700px) {
1181
1445
 
1182
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] .slide-media {
1183
- position: absolute;
1184
- inset: 0px;
1446
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-header,
1447
+ [data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-role="media-primary"] {
1448
+ margin-bottom: 0px;
1185
1449
  }
1186
1450
  }
1187
- [data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] .slide-media img {
1188
- height: 100%;
1189
- width: 100%;
1190
- -o-object-fit: contain;
1191
- object-fit: contain;
1192
- }
1193
1451
  [data-coco][data-component="book-media-slide"] img {
1194
1452
  height: 100%;
1195
1453
  width: 100%;
@@ -1242,18 +1500,8 @@ select {
1242
1500
  }
1243
1501
  /* Transparent gray blend-mode background utilities */
1244
1502
  .\!icon {
1245
- color: currentColor;
1246
- }
1247
- .icon {
1248
- color: currentColor;
1249
- }
1250
- .\!icon {
1251
- stroke-linecap: round !important;
1252
- stroke-linejoin: round !important;
1253
1503
  }
1254
1504
  .icon {
1255
- stroke-linecap: round;
1256
- stroke-linejoin: round;
1257
1505
  }
1258
1506
  .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}
1259
1507
  [data-tippy-root]{max-width:calc(100vw - 10px)}