coveragebook_components 0.5.5 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/build/coco/app.css +400 -70
- data/app/assets/build/coco/app.js +24 -5
- data/app/assets/build/coco/book.css +347 -62
- data/app/assets/build/coco/book.js +3 -2
- data/app/assets/build/coco/img/slides/one-col-media-layout.svg +3 -0
- data/app/assets/build/coco/img/slides/one-col-text-layout.svg +3 -0
- data/app/assets/build/coco/img/slides/one-col-title-layout.svg +4 -0
- data/app/assets/build/coco/img/slides/two-col-media-layout.svg +3 -0
- data/app/assets/build/coco/img/slides/two-col-mixed-layout.svg +5 -0
- data/app/assets/build/coco/img/slides/two-col-text-layout.svg +3 -0
- data/app/assets/build/coco/img/test/cb-logo.svg +8 -0
- data/app/assets/build/coco/img/test/slides/slide-bg.jpg +0 -0
- data/app/assets/build/coco/img/test/slides/slide-foreground-landscape.jpg +0 -0
- data/app/assets/build/coco/img/test/slides/slide-foreground-portrait.jpg +0 -0
- data/app/assets/img/slides/one-col-media-layout.svg +3 -0
- data/app/assets/img/slides/one-col-text-layout.svg +3 -0
- data/app/assets/img/slides/one-col-title-layout.svg +4 -0
- data/app/assets/img/slides/two-col-media-layout.svg +3 -0
- data/app/assets/img/slides/two-col-mixed-layout.svg +5 -0
- data/app/assets/img/slides/two-col-text-layout.svg +3 -0
- data/app/assets/img/test/cb-logo.svg +8 -0
- data/app/assets/img/test/slides/slide-bg.jpg +0 -0
- data/app/assets/img/test/slides/slide-foreground-landscape.jpg +0 -0
- data/app/assets/img/test/slides/slide-foreground-portrait.jpg +0 -0
- data/app/assets/js/libs/alpine/plugins/dropdown.js +1 -0
- data/app/components/coco/app/elements/button/button.css +10 -1
- data/app/components/coco/app/elements/button/button.rb +4 -0
- data/app/components/coco/app/elements/button_group/button_group.css +19 -0
- data/app/components/coco/app/elements/button_group/button_group.rb +10 -0
- data/app/components/coco/app/elements/image_picker_button/image_picker_button.rb +0 -20
- data/app/components/coco/app/elements/layout_picker_button/layout_picker_button.css +74 -0
- data/app/components/coco/app/elements/layout_picker_button/layout_picker_button.html.erb +31 -0
- data/app/components/coco/app/elements/layout_picker_button/layout_picker_button.js +17 -0
- data/app/components/coco/app/elements/layout_picker_button/layout_picker_button.rb +37 -0
- data/app/components/coco/base/button/button.rb +0 -5
- data/app/components/coco/base/svg/svg.html.erb +1 -0
- data/app/components/coco/base/svg/svg.rb +29 -0
- data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.css +243 -37
- data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.html.erb +30 -12
- data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.rb +28 -1
- data/app/components/coco/concerns/acts_as_button_group.rb +5 -0
- data/app/helpers/coco/app_helper.rb +4 -0
- data/app/helpers/coco/base_helper.rb +4 -0
- data/lib/coco/options/group.rb +1 -34
- data/lib/coco/options/option.rb +0 -13
- data/lib/coco.rb +1 -1
- metadata +29 -7
- data/app/assets/build/coco/img/slide-bg.jpg +0 -0
- data/app/assets/img/slide-bg.jpg +0 -0
- data/config/credentials/production.key +0 -1
- data/config/credentials/production.yml.enc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 659228f5bee7137d83a98ee0c7b1391a492a7c2a90533ec428d4be4771eac5be
|
4
|
+
data.tar.gz: cd05d30bfb21b8bbe169615f5d061cac481de84ce6dc9f2080d8a5c40be77f96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f13bcbb0021c35bfa9b5eca89471a718e8b17e0cadf78572266da7567865ebd2ee1501188976ce45fb788598cc54f5c7f7a36ea6855bd8f41abce29d73451bf2
|
7
|
+
data.tar.gz: b84c1b8db37c0584d6e922325bdc65c883b2f8d764b95bbe457ceaaab82f08b880955be4088432688bf812ab8e20510d5e24e071a6bb2b1e6af570131958893d
|
@@ -1461,30 +1461,47 @@ select{
|
|
1461
1461
|
background-color: transparent;
|
1462
1462
|
opacity: 0.3}
|
1463
1463
|
[data-coco][data-component="app-button"][data-theme="secondary"],
|
1464
|
-
[data-coco][data-component="app-button"][data-theme="toolbar"]
|
1464
|
+
[data-coco][data-component="app-button"][data-theme="toolbar"],
|
1465
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"]{
|
1465
1466
|
border-color: rgba(0, 12, 39, 0.18);
|
1466
1467
|
background-color: transparent;
|
1467
1468
|
--tw-text-opacity: 1;
|
1468
1469
|
color: rgb(17 24 39 / var(--tw-text-opacity))}
|
1469
1470
|
[data-coco][data-component="app-button"][data-theme="secondary"]:hover,
|
1470
|
-
[data-coco][data-component="app-button"][data-theme="toolbar"]:hover
|
1471
|
+
[data-coco][data-component="app-button"][data-theme="toolbar"]:hover,
|
1472
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"]:hover{
|
1471
1473
|
background-color: rgba(0, 12, 39, 0.06);
|
1472
1474
|
background-blend-mode: hard-light}
|
1473
1475
|
[data-coco][data-component="app-button"][data-theme="secondary"]:active,
|
1474
|
-
[data-coco][data-component="app-button"][data-theme="toolbar"]:active
|
1476
|
+
[data-coco][data-component="app-button"][data-theme="toolbar"]:active,
|
1477
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"]:active{
|
1475
1478
|
background-color: rgba(0, 12, 39, 0.1);
|
1476
1479
|
background-blend-mode: hard-light}
|
1477
|
-
[data-coco][data-component="app-button"][data-theme="secondary"][data-state="loading"], [data-coco][data-component="app-button"][data-theme="toolbar"][data-state="loading"]{
|
1480
|
+
[data-coco][data-component="app-button"][data-theme="secondary"][data-state="loading"], [data-coco][data-component="app-button"][data-theme="toolbar"][data-state="loading"], [data-coco][data-component="app-button"][data-theme="toolbar-floating"][data-state="loading"]{
|
1478
1481
|
background-color: transparent}
|
1479
|
-
[data-coco][data-component="app-button"][data-theme="secondary"][data-state="active"], [data-coco][data-component="app-button"][data-theme="toolbar"][data-state="active"]{
|
1482
|
+
[data-coco][data-component="app-button"][data-theme="secondary"][data-state="active"], [data-coco][data-component="app-button"][data-theme="toolbar"][data-state="active"], [data-coco][data-component="app-button"][data-theme="toolbar-floating"][data-state="active"]{
|
1480
1483
|
background-color: rgba(0, 12, 39, 0.1);
|
1481
1484
|
background-blend-mode: hard-light}
|
1482
|
-
[data-coco][data-component="app-button"][data-theme="secondary"][data-state="loading"] > .button-element .button-icon, [data-coco][data-component="app-button"][data-theme="toolbar"][data-state="loading"] > .button-element .button-icon{
|
1485
|
+
[data-coco][data-component="app-button"][data-theme="secondary"][data-state="loading"] > .button-element .button-icon, [data-coco][data-component="app-button"][data-theme="toolbar"][data-state="loading"] > .button-element .button-icon, [data-coco][data-component="app-button"][data-theme="toolbar-floating"][data-state="loading"] > .button-element .button-icon{
|
1483
1486
|
--tw-text-opacity: 1;
|
1484
1487
|
color: rgb(118 184 170 / var(--tw-text-opacity))}
|
1485
|
-
[data-coco][data-component="app-button"][data-theme="secondary"][data-disabled="true"], [data-coco][data-component="app-button"][data-theme="toolbar"][data-disabled="true"]{
|
1488
|
+
[data-coco][data-component="app-button"][data-theme="secondary"][data-disabled="true"], [data-coco][data-component="app-button"][data-theme="toolbar"][data-disabled="true"], [data-coco][data-component="app-button"][data-theme="toolbar-floating"][data-disabled="true"]{
|
1486
1489
|
background-color: transparent;
|
1487
1490
|
opacity: 0.3}
|
1491
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"]{
|
1492
|
+
--tw-border-opacity: 1;
|
1493
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
1494
|
+
--tw-bg-opacity: 1;
|
1495
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity))}
|
1496
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"]:hover{
|
1497
|
+
--tw-bg-opacity: 1;
|
1498
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity))}
|
1499
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"]:active{
|
1500
|
+
--tw-bg-opacity: 1;
|
1501
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity))}
|
1502
|
+
[data-coco][data-component="app-button"][data-theme="toolbar-floating"][data-state="active"]{
|
1503
|
+
--tw-bg-opacity: 1;
|
1504
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity))}
|
1488
1505
|
[data-coco][data-component="app-button"][data-theme="text-secondary"],
|
1489
1506
|
[data-coco][data-component="app-button"][data-theme="text-toolbar"]{
|
1490
1507
|
background-color: transparent;
|
@@ -2129,6 +2146,7 @@ select{
|
|
2129
2146
|
[data-coco][data-component="app-button-group"] {
|
2130
2147
|
width: -moz-fit-content;
|
2131
2148
|
width: fit-content;
|
2149
|
+
border-radius: 44px;
|
2132
2150
|
}
|
2133
2151
|
[data-coco][data-component="app-button-group"] .button-group-buttons{
|
2134
2152
|
display: flex;
|
@@ -2145,6 +2163,20 @@ select{
|
|
2145
2163
|
border-color: rgb(209 213 219 / var(--tw-border-opacity))}
|
2146
2164
|
[data-coco][data-component="app-button-group"][data-align="end"] .button-group-buttons{
|
2147
2165
|
margin-left: auto}
|
2166
|
+
[data-coco][data-component="app-button-group"][data-segmented="true"] .button-group-buttons{
|
2167
|
+
-moz-column-gap: 0px;
|
2168
|
+
column-gap: 0px}
|
2169
|
+
[data-coco][data-component="app-button-group"][data-segmented="true"] .coco-button:not(:first-child){
|
2170
|
+
border-top-left-radius: 0px;
|
2171
|
+
border-bottom-left-radius: 0px;
|
2172
|
+
border-left-width: 0px}
|
2173
|
+
[data-coco][data-component="app-button-group"][data-segmented="true"] .coco-button:not(:last-child){
|
2174
|
+
border-top-right-radius: 0px;
|
2175
|
+
border-bottom-right-radius: 0px}
|
2176
|
+
[data-coco][data-component="app-button-group"][data-segmented="true"][data-floating="true"]{
|
2177
|
+
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
2178
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
2179
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}
|
2148
2180
|
[data-coco][data-component="app-color-picker"]{
|
2149
2181
|
--tw-bg-opacity: 1;
|
2150
2182
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity))}
|
@@ -2660,8 +2692,81 @@ select{
|
|
2660
2692
|
width: max-content}
|
2661
2693
|
[data-coco][data-component="app-image-picker-button"] [data-component="app-image-picker"]{
|
2662
2694
|
border-radius: 0.375rem}
|
2663
|
-
[data-coco][data-component="app-
|
2664
|
-
display:
|
2695
|
+
[data-coco][data-component="app-layout-picker-button"]{
|
2696
|
+
display: inline-flex;
|
2697
|
+
width: -moz-max-content;
|
2698
|
+
width: max-content}
|
2699
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker{
|
2700
|
+
display: grid;
|
2701
|
+
grid-template-columns: repeat(2, minmax(0, 1fr))}
|
2702
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker-option{
|
2703
|
+
overflow: hidden;
|
2704
|
+
border-radius: 0.5rem;
|
2705
|
+
border-width: 1px;
|
2706
|
+
border-color: rgba(0, 12, 39, 0.1);
|
2707
|
+
transition-property: all;
|
2708
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
2709
|
+
transition-duration: 150ms}
|
2710
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker-option:hover{
|
2711
|
+
border-color: rgba(0, 12, 39, 0.18)}
|
2712
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker-option svg{
|
2713
|
+
width: 100%}
|
2714
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker-option-current{
|
2715
|
+
--tw-border-opacity: 1;
|
2716
|
+
border-color: rgb(26 136 113 / var(--tw-border-opacity))}
|
2717
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker-option-current:hover{
|
2718
|
+
--tw-border-opacity: 1;
|
2719
|
+
border-color: rgb(26 136 113 / var(--tw-border-opacity))}
|
2720
|
+
/* Sizes */
|
2721
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size="sm"] {
|
2722
|
+
width: 284px;
|
2723
|
+
gap: 1rem;
|
2724
|
+
padding: 1rem;
|
2725
|
+
}
|
2726
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size="md"] {
|
2727
|
+
width: 380px;
|
2728
|
+
gap: 1.5rem;
|
2729
|
+
padding: 1.5rem;
|
2730
|
+
}
|
2731
|
+
@media (min-width: 768px) {
|
2732
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size-md="sm"] {
|
2733
|
+
width: 284px;
|
2734
|
+
gap: 1rem;
|
2735
|
+
padding: 1rem;
|
2736
|
+
}
|
2737
|
+
|
2738
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size-md="md"] {
|
2739
|
+
width: 380px;
|
2740
|
+
gap: 1.5rem;
|
2741
|
+
padding: 1.5rem;
|
2742
|
+
}
|
2743
|
+
}
|
2744
|
+
@media (min-width: 992px) {
|
2745
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size-lg="sm"] {
|
2746
|
+
width: 284px;
|
2747
|
+
gap: 1rem;
|
2748
|
+
padding: 1rem;
|
2749
|
+
}
|
2750
|
+
|
2751
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size-lg="md"] {
|
2752
|
+
width: 380px;
|
2753
|
+
gap: 1.5rem;
|
2754
|
+
padding: 1.5rem;
|
2755
|
+
}
|
2756
|
+
}
|
2757
|
+
@media (min-width: 1200px) {
|
2758
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size-xl="sm"] {
|
2759
|
+
width: 284px;
|
2760
|
+
gap: 1rem;
|
2761
|
+
padding: 1rem;
|
2762
|
+
}
|
2763
|
+
|
2764
|
+
[data-coco][data-component="app-layout-picker-button"] .layout-picker[data-size-xl="md"] {
|
2765
|
+
width: 380px;
|
2766
|
+
gap: 1.5rem;
|
2767
|
+
padding: 1.5rem;
|
2768
|
+
}
|
2769
|
+
}
|
2665
2770
|
[data-coco][data-component="app-link"]{
|
2666
2771
|
text-decoration-line: none}
|
2667
2772
|
[data-coco][data-component="app-link"]:hover{
|
@@ -3010,35 +3115,39 @@ select{
|
|
3010
3115
|
overflow: auto}
|
3011
3116
|
[data-coco][data-component="book-editable-slide"] {
|
3012
3117
|
/*
|
3013
|
-
*
|
3014
|
-
*
|
3118
|
+
* slide-padding-md at max (1480px): 240px (16.2%)
|
3119
|
+
* slide-padding-md at min (320px): 16.2% x 320px = 52px
|
3015
3120
|
*/
|
3016
|
-
--
|
3121
|
+
--slide-padding-lg: max(38px, clamp(52px, 16.2cqw, 240px));
|
3017
3122
|
|
3018
3123
|
/*
|
3019
|
-
*
|
3020
|
-
*
|
3124
|
+
* slide-padding-md at max (1480px): 120px (8.1%)
|
3125
|
+
* slide-padding-md at min (320px): 8.1% x 320px = 26px
|
3021
3126
|
*/
|
3022
|
-
--
|
3127
|
+
--slide-padding-md: max(24px, clamp(26px, 8.1cqw, 120px));
|
3023
3128
|
|
3024
3129
|
/*
|
3025
|
-
*
|
3026
|
-
*
|
3027
|
-
|
3130
|
+
* slide-padding-sm at max (1480px): 80px (5.4%)
|
3131
|
+
* slide-padding-sm at min (320px): 5.4% x 320px = 17px
|
3132
|
+
*/
|
3133
|
+
--slide-padding-sm: max(24px, clamp(17px, 5.4cqw, 80px));
|
3134
|
+
|
3135
|
+
/*
|
3136
|
+
* Small title font size at max (1480px): 64px (4.3%)
|
3137
|
+
* Small title font size at min (320px): 4.3% x 320px = 13.8px
|
3028
3138
|
*/
|
3029
3139
|
--title-font-size: max(
|
3030
|
-
|
3031
|
-
clamp(
|
3140
|
+
32px,
|
3141
|
+
clamp(13.8px, 4.3cqw, 64px)
|
3032
3142
|
);
|
3033
3143
|
|
3034
3144
|
/*
|
3035
|
-
* Text font size at max (1480px):
|
3036
|
-
* Text font size at min (320px):
|
3037
|
-
* Text font size at reflow (700px): 14px
|
3145
|
+
* Text font size at max (1480px): 24px / 1.62%
|
3146
|
+
* Text font size at min (320px): 1.62% x 320px = 5.2px
|
3038
3147
|
*/
|
3039
3148
|
--text-font-size: max(
|
3040
|
-
|
3041
|
-
clamp(
|
3149
|
+
16px,
|
3150
|
+
clamp(5.2px, 1.62cqw, 24px)
|
3042
3151
|
);
|
3043
3152
|
|
3044
3153
|
/* ------------- */
|
@@ -3047,11 +3156,16 @@ select{
|
|
3047
3156
|
|
3048
3157
|
border-radius: 0.375rem;
|
3049
3158
|
|
3159
|
+
container-type: inline-size;
|
3160
|
+
|
3050
3161
|
--tw-bg-opacity: 1;
|
3051
3162
|
|
3052
3163
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
3053
3164
|
|
3054
|
-
|
3165
|
+
background-size: cover;
|
3166
|
+
|
3167
|
+
background-repeat: no-repeat;
|
3168
|
+
|
3055
3169
|
min-width: 320px;
|
3056
3170
|
}
|
3057
3171
|
[data-coco][data-component="book-editable-slide"] .slide-aspect{
|
@@ -3076,74 +3190,290 @@ select{
|
|
3076
3190
|
[data-coco][data-component="book-editable-slide"] .slide-aspect::after{
|
3077
3191
|
clear: left;
|
3078
3192
|
content: "";
|
3079
|
-
display: block}}
|
3193
|
+
display: block}}}
|
3194
|
+
[data-coco][data-component="book-editable-slide"] .slide-container{
|
3195
|
+
overflow: hidden}
|
3196
|
+
@container (min-width: 700px){
|
3080
3197
|
|
3081
3198
|
[data-coco][data-component="book-editable-slide"] .slide-container{
|
3082
3199
|
position: absolute;
|
3083
3200
|
inset: 0px}}
|
3084
3201
|
[data-coco][data-component="book-editable-slide"] .slide-container{
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3202
|
+
padding-left: 1.5rem;
|
3203
|
+
padding-right: 1.5rem;
|
3204
|
+
padding-top: 2.5rem;
|
3205
|
+
padding-bottom: 2.5rem}
|
3206
|
+
@container (min-width: 700px){
|
3207
|
+
|
3208
|
+
[data-coco][data-component="book-editable-slide"] .slide-container{
|
3209
|
+
padding: var(--slide-padding-md)}}
|
3093
3210
|
[data-coco][data-component="book-editable-slide"] [data-slide-region],
|
3211
|
+
[data-coco][data-component="book-editable-slide"] .slide-header,
|
3094
3212
|
[data-coco][data-component="book-editable-slide"] .slide-text,
|
3095
|
-
[data-coco][data-component="book-editable-slide"] .slide-
|
3213
|
+
[data-coco][data-component="book-editable-slide"] .slide-image{
|
3096
3214
|
display: none}
|
3097
3215
|
[data-coco][data-component="book-editable-slide"] .slide-group{
|
3098
3216
|
display: contents}
|
3217
|
+
[data-coco][data-component="book-editable-slide"] .slide-title{
|
3218
|
+
font-weight: 700;
|
3219
|
+
color: currentColor;
|
3220
|
+
overflow-wrap: anywhere;
|
3221
|
+
line-height: 1.1;
|
3222
|
+
font-size: var(--title-font-size)}
|
3223
|
+
[data-coco][data-component="book-editable-slide"] .slide-text{
|
3224
|
+
color: currentColor;
|
3225
|
+
line-height: 1.5;
|
3226
|
+
font-size: var(--text-font-size)}
|
3227
|
+
[data-coco][data-component="book-editable-slide"] .slide-media{
|
3228
|
+
width: 100%}
|
3229
|
+
[data-coco][data-component="book-editable-slide"] .slide-media img{
|
3230
|
+
height: 100%;
|
3231
|
+
width: 100%;
|
3232
|
+
-o-object-fit: contain;
|
3233
|
+
object-fit: contain}
|
3099
3234
|
/* layouts */
|
3100
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3101
|
-
|
3102
|
-
|
3103
|
-
|
3104
|
-
|
3105
|
-
|
3106
|
-
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3235
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] {
|
3236
|
+
/*
|
3237
|
+
* Title font size at max (1480px): 80px (5.4%)
|
3238
|
+
* Title font size at min (320px): 5.4% x 320px = 17px
|
3239
|
+
*/
|
3240
|
+
--title-font-size: max(
|
3241
|
+
35px,
|
3242
|
+
clamp(17px, 5.4cqw, 80px)
|
3243
|
+
);
|
3244
|
+
|
3245
|
+
/*
|
3246
|
+
* Text font size at max (1480px): 32px / 2.16%
|
3247
|
+
* Text font size at min (320px): 2.16% x 320px = 7px
|
3248
|
+
*/
|
3249
|
+
--text-font-size: max(
|
3250
|
+
16px,
|
3251
|
+
clamp(7px, 2.16cqw, 32px)
|
3252
|
+
);
|
3253
|
+
text-align: center;
|
3254
|
+
}
|
3114
3255
|
@container (min-width: 700px){
|
3115
3256
|
|
3116
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3117
|
-
padding-left: var(--
|
3118
|
-
padding-right: var(--
|
3119
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3257
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-container{
|
3258
|
+
padding-left: var(--slide-padding-lg);
|
3259
|
+
padding-right: var(--slide-padding-lg)}}
|
3260
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-slide-region="content-1"]{
|
3261
|
+
display: block}
|
3262
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] [data-slide-region="content-1"] .slide-text{
|
3263
|
+
display: block}
|
3264
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"].with-title [data-slide-region="content-1"] .slide-text {
|
3265
|
+
margin-top: 0.875em;
|
3266
|
+
}
|
3267
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-layout{
|
3268
|
+
display: flex;
|
3269
|
+
height: 100%;
|
3120
3270
|
width: 100%;
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3124
|
-
|
3271
|
+
flex-direction: column;
|
3272
|
+
align-items: center;
|
3273
|
+
justify-content: center;
|
3274
|
+
text-align: center}
|
3275
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-header{
|
3276
|
+
display: block;
|
3277
|
+
width: 100%}
|
3278
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-content{
|
3125
3279
|
width: 100%;
|
3126
3280
|
flex: none}
|
3127
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3128
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3281
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-header,
|
3282
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-content{
|
3129
3283
|
margin-left: auto;
|
3130
3284
|
margin-right: auto;
|
3131
3285
|
width: 100%;
|
3132
3286
|
max-width: 360px}
|
3133
3287
|
@container (min-width: 700px){
|
3134
3288
|
|
3135
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3136
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3289
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-header,
|
3290
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-content{
|
3137
3291
|
max-width: 100%}}
|
3138
|
-
[data-coco][data-component="book-editable-slide"][data-layout="
|
3139
|
-
font-weight: 700;
|
3140
|
-
color: currentColor;
|
3141
|
-
overflow-wrap: anywhere;
|
3142
|
-
line-height: 1.1}
|
3143
|
-
[data-coco][data-component="book-editable-slide"][data-layout="basic"] .slide-text{
|
3144
|
-
color: currentColor;
|
3292
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-title"] .slide-text {
|
3145
3293
|
line-height: 1.4;
|
3146
|
-
|
3294
|
+
}
|
3295
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-container{
|
3296
|
+
display: flex;
|
3297
|
+
align-items: center}
|
3298
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-layout{
|
3299
|
+
width: 100%}
|
3300
|
+
@container (min-width: 700px){
|
3301
|
+
|
3302
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-layout{
|
3303
|
+
display: grid}}
|
3304
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-layout {
|
3305
|
+
height: -moz-min-content;
|
3306
|
+
height: min-content;
|
3307
|
+
grid-template-columns: 1fr;
|
3308
|
+
grid-template-rows: auto;
|
3309
|
+
grid-gap: var(--slide-padding-sm);
|
3310
|
+
}
|
3311
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"].with-title .slide-container{
|
3312
|
+
display: block}
|
3313
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"].with-title .slide-layout{
|
3314
|
+
height: 100%;
|
3315
|
+
grid-template-rows: min-content auto}
|
3316
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-header{
|
3317
|
+
display: block;
|
3318
|
+
width: 100%;
|
3319
|
+
margin-bottom: 1.5rem}
|
3320
|
+
@container (min-width: 700px){
|
3321
|
+
|
3322
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] .slide-header{
|
3323
|
+
margin-bottom: 0px}}
|
3324
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-slide-region="content-1"]{
|
3325
|
+
display: block}
|
3326
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-text"] [data-slide-region="content-1"] .slide-text{
|
3327
|
+
display: block}
|
3328
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-container{
|
3329
|
+
padding-top: 1.5rem;
|
3330
|
+
padding-bottom: 1.5rem}
|
3331
|
+
@container (min-width: 700px){
|
3332
|
+
|
3333
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-container{
|
3334
|
+
padding-top: var(--slide-padding-sm);
|
3335
|
+
padding-bottom: var(--slide-padding-sm)}}
|
3336
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-layout,
|
3337
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] .slide-content{
|
3338
|
+
height: 100%}
|
3339
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-slide-region="content-1"]{
|
3340
|
+
display: block}
|
3341
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-slide-region="content-1"] .slide-media{
|
3342
|
+
display: block;
|
3343
|
+
height: 100%;
|
3344
|
+
width: 100%}
|
3345
|
+
[data-coco][data-component="book-editable-slide"][data-layout="one-col-media"] [data-slide-region="content-1"] .slide-media img{
|
3346
|
+
height: 100%;
|
3347
|
+
width: 100%;
|
3348
|
+
-o-object-fit: contain;
|
3349
|
+
object-fit: contain}
|
3350
|
+
[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{
|
3351
|
+
display: flex;
|
3352
|
+
align-items: center;
|
3353
|
+
padding-top: 1.5rem;
|
3354
|
+
padding-bottom: 1.5rem}
|
3355
|
+
@container (min-width: 700px){
|
3356
|
+
|
3357
|
+
[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{
|
3358
|
+
padding-top: var(--slide-padding-sm);
|
3359
|
+
padding-bottom: var(--slide-padding-sm)}}
|
3360
|
+
[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{
|
3361
|
+
width: 100%}
|
3362
|
+
@container (min-width: 700px){
|
3363
|
+
|
3364
|
+
[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{
|
3365
|
+
display: grid}}
|
3366
|
+
[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 {
|
3367
|
+
height: -moz-min-content;
|
3368
|
+
height: min-content;
|
3369
|
+
grid-template-columns: 1fr 1fr;
|
3370
|
+
grid-template-rows: auto;
|
3371
|
+
grid-gap: var(--slide-padding-sm);
|
3372
|
+
}
|
3373
|
+
[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{
|
3374
|
+
display: block}
|
3375
|
+
[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{
|
3376
|
+
height: 100%;
|
3377
|
+
grid-template-rows: min-content auto}
|
3378
|
+
[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{
|
3379
|
+
display: block;
|
3380
|
+
width: 100%;
|
3381
|
+
margin-bottom: 2.5rem}
|
3382
|
+
@container (min-width: 700px){
|
3383
|
+
|
3384
|
+
[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{
|
3385
|
+
margin-bottom: 0px}}
|
3386
|
+
[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 {
|
3387
|
+
grid-column-start: 1;
|
3388
|
+
grid-column-end: -1;
|
3389
|
+
}
|
3390
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-1"],
|
3391
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-2"],
|
3392
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-1"],
|
3393
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-2"]{
|
3394
|
+
display: block}
|
3395
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-1"] .slide-text,
|
3396
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-1"] .slide-media,
|
3397
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-2"] .slide-text,
|
3398
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-text"] [data-slide-region="content-2"] .slide-media,
|
3399
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-1"] .slide-text,
|
3400
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-1"] .slide-media,
|
3401
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-2"] .slide-text,
|
3402
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] [data-slide-region="content-2"] .slide-media{
|
3403
|
+
display: block}
|
3404
|
+
[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"]{
|
3405
|
+
margin-bottom: var(--slide-padding-sm)}
|
3406
|
+
@container (min-width: 700px){
|
3407
|
+
|
3408
|
+
[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"]{
|
3409
|
+
margin-bottom: 0px}
|
3410
|
+
|
3411
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-layout{
|
3412
|
+
height: 100%}}
|
3413
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-content{
|
3414
|
+
position: relative}
|
3415
|
+
@container (min-width: 700px){
|
3416
|
+
|
3417
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-content{
|
3418
|
+
display: flex;
|
3419
|
+
height: 100%;
|
3420
|
+
align-items: center}
|
3421
|
+
|
3422
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-media"] .slide-media{
|
3423
|
+
position: absolute;
|
3424
|
+
inset: 0px}}
|
3425
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout{
|
3426
|
+
height: 100%;
|
3427
|
+
width: 100%}
|
3428
|
+
@container (min-width: 700px){
|
3429
|
+
|
3430
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout{
|
3431
|
+
display: grid}}
|
3432
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-layout {
|
3433
|
+
grid-template-columns: 1fr 1fr;
|
3434
|
+
grid-template-rows: auto;
|
3435
|
+
grid-gap: var(--slide-padding-sm);
|
3436
|
+
}
|
3437
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-group{
|
3438
|
+
display: flex;
|
3439
|
+
flex-direction: column;
|
3440
|
+
justify-content: center;
|
3441
|
+
margin-bottom: var(--slide-padding-sm)}
|
3442
|
+
@container (min-width: 700px){
|
3443
|
+
|
3444
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-group{
|
3445
|
+
margin-bottom: 0px}}
|
3446
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-header{
|
3447
|
+
display: block;
|
3448
|
+
width: 100%}
|
3449
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] .slide-title {
|
3450
|
+
margin-bottom: 0.5em;
|
3451
|
+
}
|
3452
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-1"]{
|
3453
|
+
display: block}
|
3454
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-1"] .slide-text{
|
3455
|
+
display: block}
|
3456
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"]{
|
3457
|
+
position: relative;
|
3458
|
+
display: block}
|
3459
|
+
@container (min-width: 700px){
|
3460
|
+
|
3461
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"]{
|
3462
|
+
display: flex;
|
3463
|
+
height: 100%;
|
3464
|
+
align-items: center}}
|
3465
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] .slide-media{
|
3466
|
+
display: block}
|
3467
|
+
@container (min-width: 700px){
|
3468
|
+
|
3469
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] .slide-media{
|
3470
|
+
position: absolute;
|
3471
|
+
inset: 0px}}
|
3472
|
+
[data-coco][data-component="book-editable-slide"][data-layout="two-col-mixed"] [data-slide-region="content-2"] .slide-media img{
|
3473
|
+
height: 100%;
|
3474
|
+
width: 100%;
|
3475
|
+
-o-object-fit: contain;
|
3476
|
+
object-fit: contain}
|
3147
3477
|
[data-coco][data-component="book-media-slide"] img{
|
3148
3478
|
height: 100%;
|
3149
3479
|
width: 100%;
|
@@ -14604,7 +14604,7 @@
|
|
14604
14604
|
var package_default = {
|
14605
14605
|
name: "coveragebook-components",
|
14606
14606
|
type: "module",
|
14607
|
-
version: "0.5.
|
14607
|
+
version: "0.5.7",
|
14608
14608
|
main: "index.js",
|
14609
14609
|
repository: "git@github.com:coveragebook/coco.git",
|
14610
14610
|
author: "Mark Perkins <mark@coveragebook.com>",
|
@@ -28847,6 +28847,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
28847
28847
|
trigger: "click",
|
28848
28848
|
interactive: true,
|
28849
28849
|
animation: false,
|
28850
|
+
maxWidth: 380,
|
28850
28851
|
triggerTarget,
|
28851
28852
|
content,
|
28852
28853
|
onShow: (...args) => {
|
@@ -29511,14 +29512,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
29511
29512
|
};
|
29512
29513
|
});
|
29513
29514
|
|
29514
|
-
// import-glob:/Users/mark/
|
29515
|
+
// import-glob:/Users/mark/Code/coveragebook/coco/app/assets/js/base|@baseComponents/**/*.js
|
29515
29516
|
var modules = [button_exports, dropdown_exports, icon_exports, image_uploader_exports];
|
29516
29517
|
var __default = modules;
|
29517
29518
|
|
29518
29519
|
// base/components.js
|
29519
29520
|
var components_default = registerComponents(__default);
|
29520
29521
|
|
29521
|
-
// import-glob:/Users/mark/
|
29522
|
+
// import-glob:/Users/mark/Code/coveragebook/coco/app/assets/js/book|@bookComponents/**/*.js
|
29522
29523
|
var modules2 = [];
|
29523
29524
|
var __default2 = modules2;
|
29524
29525
|
|
@@ -31869,6 +31870,24 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
31869
31870
|
};
|
31870
31871
|
});
|
31871
31872
|
|
31873
|
+
// ../../components/coco/app/elements/layout_picker_button/layout_picker_button.js
|
31874
|
+
var layout_picker_button_exports = {};
|
31875
|
+
__export(layout_picker_button_exports, {
|
31876
|
+
default: () => layout_picker_button_default
|
31877
|
+
});
|
31878
|
+
var layout_picker_button_default = CocoComponent("appLayoutPickerButton", ({ selected }) => {
|
31879
|
+
return {
|
31880
|
+
selectedLayout: selected,
|
31881
|
+
getPicker() {
|
31882
|
+
return getData(
|
31883
|
+
this.$root.querySelector("[data-role='layout-picker']").firstElementChild
|
31884
|
+
);
|
31885
|
+
},
|
31886
|
+
onDropdownMount() {
|
31887
|
+
}
|
31888
|
+
};
|
31889
|
+
});
|
31890
|
+
|
31872
31891
|
// ../../components/coco/app/elements/menu_button/menu_button.js
|
31873
31892
|
var menu_button_exports = {};
|
31874
31893
|
__export(menu_button_exports, {
|
@@ -32032,8 +32051,8 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
32032
32051
|
};
|
32033
32052
|
});
|
32034
32053
|
|
32035
|
-
// import-glob:/Users/mark/
|
32036
|
-
var modules3 = [nav_bar_exports, nav_drawer_exports, slide_editor_exports, alert_exports, button_group_exports, color_picker_exports, color_picker_button_exports, confirm_panel_exports, image_picker_exports, image_picker_button_exports, menu_button_exports, notice_exports, seamless_textarea_exports, snackbar_exports, system_banner_exports, toast_exports, toolbar_exports];
|
32054
|
+
// import-glob:/Users/mark/Code/coveragebook/coco/app/assets/js/app|@appComponents/**/*.js
|
32055
|
+
var modules3 = [nav_bar_exports, nav_drawer_exports, slide_editor_exports, alert_exports, button_group_exports, color_picker_exports, color_picker_button_exports, confirm_panel_exports, image_picker_exports, image_picker_button_exports, layout_picker_button_exports, menu_button_exports, notice_exports, seamless_textarea_exports, snackbar_exports, system_banner_exports, toast_exports, toolbar_exports];
|
32037
32056
|
var __default3 = modules3;
|
32038
32057
|
|
32039
32058
|
// app/components.js
|