coveragebook_components 0.8.4 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/build/coco/app.css +135 -6
  3. data/app/assets/build/coco/app.js +801 -574
  4. data/app/assets/build/coco/book.css +63 -0
  5. data/app/assets/build/coco/book.js +770 -554
  6. data/app/assets/build/coco/icons/cake.svg +1 -1
  7. data/app/assets/build/coco/icons/check-circle-2.svg +1 -1
  8. data/app/assets/build/coco/icons/check-circle.svg +1 -1
  9. data/app/assets/build/coco/icons/check-square-2.svg +1 -0
  10. data/app/assets/build/coco/icons/check-square.svg +1 -1
  11. data/app/assets/build/coco/icons/check.svg +1 -1
  12. data/app/assets/build/coco/icons/radiation.svg +1 -1
  13. data/app/assets/build/coco/icons/ribbon.svg +1 -0
  14. data/app/assets/build/coco/icons/tree-deciduous.svg +1 -1
  15. data/app/assets/js/libs/alpine/directives/options.js +0 -1
  16. data/app/components/coco/app/blocks/sidebar_nav/item/item.css +2 -2
  17. data/app/components/coco/app/blocks/sidebar_nav/menu/menu.css +2 -2
  18. data/app/components/coco/app/blocks/sidebar_nav/navbar/navbar.css +2 -2
  19. data/app/components/coco/app/blocks/slide_editor/slide_editor.html.erb +3 -2
  20. data/app/components/coco/app/blocks/slide_editor/slide_editor.js +9 -10
  21. data/app/components/coco/app/elements/image_picker_button/image_picker_button.js +8 -2
  22. data/app/components/coco/app/elements/menu_items/user_profile/user_profile.css +1 -1
  23. data/app/components/coco/app/layouts/application/application.css +13 -0
  24. data/app/components/coco/app/layouts/application/application.rb +0 -2
  25. data/app/components/coco/app/layouts/page/page.css +23 -0
  26. data/app/components/coco/app/layouts/page/page.html.erb +27 -0
  27. data/app/components/coco/app/layouts/page/page.js +5 -0
  28. data/app/components/coco/app/layouts/page/page.rb +40 -0
  29. data/app/components/coco/base/image_uploader/image_uploader.js +1 -0
  30. data/app/components/coco/base/pager_link/pager_link.css +26 -0
  31. data/app/components/coco/base/pager_link/pager_link.html.erb +3 -0
  32. data/app/components/coco/base/pager_link/pager_link.rb +32 -0
  33. data/app/components/coco/base/poll_controller/poll_controller.css +5 -0
  34. data/app/components/coco/base/poll_controller/poll_controller.html.erb +15 -0
  35. data/app/components/coco/base/poll_controller/poll_controller.js +67 -0
  36. data/app/components/coco/base/poll_controller/poll_controller.rb +9 -0
  37. data/app/helpers/coco/app_helper.rb +4 -0
  38. data/config/icons.json +2 -0
  39. data/lib/coco.rb +1 -1
  40. data/lib/tasks/coco_tasks.rake +0 -8
  41. metadata +15 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 508a993fb567c529408bb057f16179a9fbf828747ddb6f270446d1d5275334bc
4
- data.tar.gz: c8924774c240bc42987e533d23bf2b9bd6670e80745a60ca9c794437aa964d46
3
+ metadata.gz: c2355b0d5f6f2de3e816d804188e4b799a35f96b4a68f071b7049bf1766d6ddd
4
+ data.tar.gz: c0386b7d1915074c91ac5bc4d1c4527277fb6313fa11d00a973e27783ad11cd0
5
5
  SHA512:
6
- metadata.gz: de8a58ef368b4fec0a73a475d6a7f3163679404d4b4ef14eb7ec673c80ce798c2771f9ca24b5386c1168af95893313a8522770f400fb7344e8de272cfffe2649
7
- data.tar.gz: b16acb12b4e6a54ac897fa3ea65fc86adcd5d21208be8e3ec010a2921aa01b07df7c22637a566b411fbc098ecc3b7240555bb814ceb5aad2ce32d7833a0f8474
6
+ metadata.gz: 598fd2d0f022230a26d9159c06a630f80a1be1ac8ba33a19fe2e0e2bdc2356046954b7940d2a98c23acd865b38945d4a3f3bccb86c33f4032dcd23b3e5d1cee8
7
+ data.tar.gz: b8a33f8a2779d06e8b6befa1e82590daa2570246e0fee02bec50b63936248dc77ea5a0b46ce53eb61413413e65b582ebdbac55744b9a878a4228509f0d087bae
@@ -1176,6 +1176,56 @@ select{
1176
1176
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
1177
1177
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
1178
1178
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}
1179
+ [data-coco][data-component="pager-link"]{
1180
+ display: block;
1181
+ --tw-scale-x: .75;
1182
+ --tw-scale-y: .75;
1183
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1184
+ background-color: rgb(55 65 81 / var(--tw-bg-opacity));
1185
+ --tw-bg-opacity: 0.4;
1186
+ padding-top: 0.625rem;
1187
+ padding-bottom: 0.625rem;
1188
+ padding-left: 0.25rem;
1189
+ padding-right: 0.25rem;
1190
+ transition-property: all;
1191
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1192
+ transition-duration: 150ms}
1193
+ [data-coco][data-component="pager-link"]:hover{
1194
+ --tw-scale-x: 1;
1195
+ --tw-scale-y: 1;
1196
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1197
+ --tw-bg-opacity: 0.6}
1198
+ @media (min-width: 992px){
1199
+
1200
+ [data-coco][data-component="pager-link"]{
1201
+ --tw-scale-x: 1;
1202
+ --tw-scale-y: 1;
1203
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
1204
+
1205
+ [data-coco][data-component="pager-link"]:hover{
1206
+ --tw-scale-x: 1.25;
1207
+ --tw-scale-y: 1.25;
1208
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}
1209
+ [data-coco][data-component="pager-link"] {
1210
+ width: -moz-min-content;
1211
+ width: min-content;
1212
+ }
1213
+ [data-coco][data-component="pager-link"] .coco-icon{
1214
+ position: relative;
1215
+ --tw-text-opacity: 1;
1216
+ color: rgb(255 255 255 / var(--tw-text-opacity))}
1217
+ [data-coco][data-component="pager-link"][data-direction="previous"]{
1218
+ transform-origin: left;
1219
+ border-top-right-radius: 0.375rem;
1220
+ border-bottom-right-radius: 0.375rem}
1221
+ [data-coco][data-component="pager-link"][data-direction="previous"] .coco-icon{
1222
+ margin-left: -0.25rem}
1223
+ [data-coco][data-component="pager-link"][data-direction="next"]{
1224
+ transform-origin: right;
1225
+ border-top-left-radius: 0.375rem;
1226
+ border-bottom-left-radius: 0.375rem}
1227
+ [data-coco][data-component="pager-link"][data-direction="next"] .coco-icon{
1228
+ margin-right: -0.25rem}
1179
1229
  [data-coco][data-component="placeholder"]{
1180
1230
  padding: 1rem}
1181
1231
  [data-coco][data-component="placeholder"][data-boxed="true"]{
@@ -1202,6 +1252,8 @@ select{
1202
1252
  justify-content: center}
1203
1253
  [data-coco][data-component="placeholder"][data-size="full"] .placeholder-content{
1204
1254
  margin: auto}
1255
+ [data-coco][data-component="poll-controller"]{
1256
+ display: contents}
1205
1257
  [data-coco][data-component="app-header"]{
1206
1258
  container-type: inline-size}
1207
1259
  [data-coco][data-component="app-header"] .header-content{
@@ -1464,7 +1516,7 @@ select{
1464
1516
  height: 1.5rem;
1465
1517
  width: 1.5rem}
1466
1518
  }
1467
- @media (min-width: 576px) and (max-width: 768px) {
1519
+ @media (min-width: 576px) and (max-width: 1200px) {
1468
1520
  [data-coco][data-component="app-sidebar-nav-item"] .nav-item-action-button:hover {
1469
1521
  transform: scale(1.05);
1470
1522
  }
@@ -1506,7 +1558,7 @@ select{
1506
1558
  height: 1.5rem;
1507
1559
  width: 1.5rem}
1508
1560
  }
1509
- @media (min-width: 768px) {
1561
+ @media (min-width: 1200px) {
1510
1562
  [data-coco][data-component="app-sidebar-nav-item"] .nav-item-action-button:hover {
1511
1563
  transform: scale(1.05);
1512
1564
  }
@@ -1726,7 +1778,7 @@ select{
1726
1778
  padding-top: 1rem;
1727
1779
  padding-bottom: 1rem}
1728
1780
  }
1729
- @media (min-width: 576px) and (max-width: 768px) {
1781
+ @media (min-width: 576px) and (max-width: 1200px) {
1730
1782
  [data-coco][data-component="app-sidebar-nav-menu"] .menu-item {
1731
1783
  width: 240px;
1732
1784
  }
@@ -1752,7 +1804,7 @@ select{
1752
1804
  padding-top: 1rem;
1753
1805
  padding-bottom: 1rem}
1754
1806
  }
1755
- @media (min-width: 768px) {
1807
+ @media (min-width: 1200px) {
1756
1808
  [data-coco][data-component="app-sidebar-nav-menu"] .menu-item {
1757
1809
  width: 280px;
1758
1810
  }
@@ -1826,7 +1878,7 @@ select{
1826
1878
  [data-coco][data-component="app-sidebar-nav"] .nav-item-action .nav-item-label{
1827
1879
  display: none}
1828
1880
  }
1829
- @media (min-width: 576px) and (max-width: 768px) {
1881
+ @media (min-width: 576px) and (max-width: 1200px) {
1830
1882
 
1831
1883
  [data-coco][data-component="app-sidebar-nav"]{
1832
1884
  height: 100%}
@@ -1839,7 +1891,7 @@ select{
1839
1891
  [data-coco][data-component="app-sidebar-nav"] .nav-item-action [data-component="app-sidebar-nav-item"]{
1840
1892
  padding-bottom: 0.625rem}
1841
1893
  }
1842
- @media (min-width: 768px) {
1894
+ @media (min-width: 1200px) {
1843
1895
 
1844
1896
  [data-coco][data-component="app-sidebar-nav"]{
1845
1897
  height: 100%}
@@ -4176,10 +4228,16 @@ select{
4176
4228
  [data-coco][data-component="app-user-profile"] .user-profile-avatar{
4177
4229
  display: flex;
4178
4230
  align-items: center}
4231
+ [data-coco][data-component="app-user-profile"] .user-profile-details{
4232
+ display: flex;
4233
+ flex-direction: column;
4234
+ justify-content: center}
4179
4235
  [data-coco][data-component="app-user-profile"] .user-profile-details > :not([hidden]) ~ :not([hidden]){
4180
4236
  --tw-space-y-reverse: 0;
4181
4237
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
4182
4238
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))}
4239
+ [data-coco][data-component="app-user-profile"] .user-profile-details{
4240
+ overflow: hidden}
4183
4241
  [data-coco][data-component="app-user-profile"] .user-profile-name{
4184
4242
  overflow: hidden;
4185
4243
  text-overflow: ellipsis;
@@ -4430,6 +4488,7 @@ select{
4430
4488
  width: 100vw;
4431
4489
  overflow: hidden;
4432
4490
  height: var(--app-height);
4491
+ --sidebar-nav-width: 0;
4433
4492
 
4434
4493
  grid-template-areas: "body";
4435
4494
  grid-template-rows: 1fr;
@@ -4520,6 +4579,76 @@ select{
4520
4579
  grid-template-columns: min-content 1fr;
4521
4580
  }
4522
4581
  }
4582
+ @media (min-width: 576px) and (max-width: 768px) {
4583
+ [data-coco][data-component="application-layout"] {
4584
+ --sidebar-nav-width: 4rem
4585
+ }
4586
+ }
4587
+ @media (min-width: 768px) {
4588
+ [data-coco][data-component="application-layout"] {
4589
+ --sidebar-nav-width: 6rem
4590
+ }
4591
+ }
4592
+ @media (max-height: 760px) and (min-width: 576px) {
4593
+ [data-coco][data-component="application-layout"] {
4594
+ --sidebar-nav-width: 4rem
4595
+ }
4596
+ }
4597
+ [data-coco][data-component="page-layout"] .page-body{
4598
+ width: 100%;
4599
+ padding-top: 3rem;
4600
+ padding-bottom: 3rem;
4601
+ padding-left: 0.75rem}
4602
+ @media (min-width: 576px){
4603
+
4604
+ [data-coco][data-component="page-layout"] .page-body{
4605
+ padding-left: 1.5rem}}
4606
+ @media (min-width: 768px){
4607
+
4608
+ [data-coco][data-component="page-layout"] .page-body{
4609
+ padding-left: 2rem}}
4610
+ @media (min-width: 992px){
4611
+
4612
+ [data-coco][data-component="page-layout"] .page-body{
4613
+ padding-left: 2.5rem}}
4614
+ @media (min-width: 1200px){
4615
+
4616
+ [data-coco][data-component="page-layout"] .page-body{
4617
+ padding-left: 2.75rem}}
4618
+ [data-coco][data-component="page-layout"] .page-body{
4619
+ padding-right: 0.75rem}
4620
+ @media (min-width: 576px){
4621
+
4622
+ [data-coco][data-component="page-layout"] .page-body{
4623
+ padding-right: 1.5rem}}
4624
+ @media (min-width: 768px){
4625
+
4626
+ [data-coco][data-component="page-layout"] .page-body{
4627
+ padding-right: 2rem}}
4628
+ @media (min-width: 992px){
4629
+
4630
+ [data-coco][data-component="page-layout"] .page-body{
4631
+ padding-right: 2.5rem}}
4632
+ @media (min-width: 1200px){
4633
+
4634
+ [data-coco][data-component="page-layout"] .page-body{
4635
+ padding-right: 2.75rem}}
4636
+ [data-coco][data-component="page-layout"] .page-controls{
4637
+ position: fixed;
4638
+ top: 50%;
4639
+ right: 0px;
4640
+ display: flex;
4641
+ --tw-translate-y: -50%;
4642
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
4643
+ justify-content: space-between;
4644
+
4645
+ left: var(--sidebar-nav-width, 0)}
4646
+ [data-coco][data-component="page-layout"] .page-controls .page-control-next{
4647
+ margin-left: auto}
4648
+ [data-coco][data-component="page-layout"][data-width="constrained"] .page-body{
4649
+ margin-left: auto;
4650
+ margin-right: auto;
4651
+ max-width: 1400px}
4523
4652
  [data-coco][data-component="book-editable-slide"] {
4524
4653
  /*
4525
4654
  * slide-padding-lg at max (1480px): 240px (16.2%)