presi-slides 1.0.10 → 1.0.12
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/includes/slides.css
CHANGED
|
@@ -129,7 +129,8 @@ blockquote {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
p.center,
|
|
132
|
-
td.center
|
|
132
|
+
td.center,
|
|
133
|
+
code.center {
|
|
133
134
|
text-align: center;
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -668,7 +669,7 @@ slide-view:not(:has(h1[layout])) {
|
|
|
668
669
|
|
|
669
670
|
/* initial <aside> */
|
|
670
671
|
|
|
671
|
-
&:has(> aside:where(first-child, :is(h1, header):first-of-type + *)) {
|
|
672
|
+
&:has(> aside:where(:first-child, :is(h1, header):first-of-type + *)) {
|
|
672
673
|
--slide-body-template: var(--slide-aside-template);
|
|
673
674
|
--slide-aside-template: "b b b b b b b b a a a a";
|
|
674
675
|
|
|
@@ -682,15 +683,13 @@ slide-view:not(:has(h1[layout])) {
|
|
|
682
683
|
|
|
683
684
|
> aside {
|
|
684
685
|
grid-area: a;
|
|
685
|
-
&:has(> :only-child) {
|
|
686
|
+
&:has(> :only-child, > p:first-child > img:only-child) {
|
|
686
687
|
display: contents;
|
|
687
688
|
}
|
|
688
689
|
> :is(ul, ol, pre, blockquote, p:not(:has(> img:only-child))) {
|
|
689
690
|
grid-area: a;
|
|
690
691
|
}
|
|
691
|
-
|
|
692
|
-
grid-area: i;
|
|
693
|
-
}
|
|
692
|
+
|
|
694
693
|
}
|
|
695
694
|
|
|
696
695
|
> aside
|
|
@@ -708,13 +707,27 @@ slide-view:not(:has(h1[layout])) {
|
|
|
708
707
|
|
|
709
708
|
/* <aside> containing image */
|
|
710
709
|
&:has(aside > p > img:only-child) {
|
|
710
|
+
&:has(h1:first-child) {
|
|
711
|
+
--slide-header-template: "h h h h h h h h i i i i";
|
|
712
|
+
}
|
|
713
|
+
|
|
711
714
|
--slide-aside-template: "b b b b b b b b i i i i"
|
|
712
715
|
"b b b b b b b b a a a a";
|
|
716
|
+
--grid-content-rows: minmax() minmax(min-content, 1fr);
|
|
713
717
|
|
|
714
|
-
> aside:has(p:
|
|
718
|
+
> aside:has(p:first-child > img:only-child) {
|
|
715
719
|
display: contents;
|
|
720
|
+
|
|
721
|
+
> p:first-child {
|
|
722
|
+
display: contents;
|
|
723
|
+
}
|
|
724
|
+
> p > img:only-child {
|
|
725
|
+
grid-area: i;
|
|
726
|
+
}
|
|
727
|
+
|
|
716
728
|
}
|
|
717
729
|
|
|
730
|
+
|
|
718
731
|
&:has(
|
|
719
732
|
:is(h1, header):first-of-type
|
|
720
733
|
+ aside
|
|
@@ -904,6 +917,7 @@ slide-view:not(:has(h1[layout])) {
|
|
|
904
917
|
var(--slide-image-template);
|
|
905
918
|
--grid-content-rows: min-content minmax(20%, 1fr);
|
|
906
919
|
|
|
920
|
+
|
|
907
921
|
&:has(
|
|
908
922
|
> h3 + p > img:only-child:not(.full),
|
|
909
923
|
> h3 + :not(h3) + p > img:only-child:not(.full),
|
|
@@ -973,8 +987,13 @@ slide-view:not(:has(h1[layout])) {
|
|
|
973
987
|
|
|
974
988
|
/* code + side-by-side */
|
|
975
989
|
|
|
976
|
-
&:has(> :is(pre:first-child, h1:first-child + pre) + h3) {
|
|
990
|
+
&:has(> :is(pre:first-child, h1:first-child + pre) + h3:first-of-type) {
|
|
977
991
|
--slide-code-template: "c c c c c c c c c c c c";
|
|
992
|
+
--slide-body-template:
|
|
993
|
+
var(--slide-code-template)
|
|
994
|
+
var(--slide-titles-template)
|
|
995
|
+
var(--slide-list-template)
|
|
996
|
+
var(--slide-image-template);
|
|
978
997
|
--grid-content-rows: min-content min-content minmax(50%, 1fr);
|
|
979
998
|
}
|
|
980
999
|
|
|
@@ -985,6 +1004,8 @@ slide-view:not(:has(h1[layout])) {
|
|
|
985
1004
|
> img:only-child
|
|
986
1005
|
) {
|
|
987
1006
|
--slide-header-template: "h h h h i i i i i i i i";
|
|
1007
|
+
--slide-body-template: var(--slide-titles-template)
|
|
1008
|
+
var(--slide-code-template) var(--slide-list-template);
|
|
988
1009
|
}
|
|
989
1010
|
|
|
990
1011
|
/* extra stuff after side-by-side */
|
package/package.json
CHANGED
package/public/slides.css
CHANGED
|
@@ -669,7 +669,7 @@ slide-view:not(:has(h1[layout])) {
|
|
|
669
669
|
|
|
670
670
|
/* initial <aside> */
|
|
671
671
|
|
|
672
|
-
&:has(> aside:where(first-child, :is(h1, header):first-of-type + *)) {
|
|
672
|
+
&:has(> aside:where(:first-child, :is(h1, header):first-of-type + *)) {
|
|
673
673
|
--slide-body-template: var(--slide-aside-template);
|
|
674
674
|
--slide-aside-template: "b b b b b b b b a a a a";
|
|
675
675
|
|
|
@@ -683,15 +683,13 @@ slide-view:not(:has(h1[layout])) {
|
|
|
683
683
|
|
|
684
684
|
> aside {
|
|
685
685
|
grid-area: a;
|
|
686
|
-
&:has(> :only-child) {
|
|
686
|
+
&:has(> :only-child, > p:first-child > img:only-child) {
|
|
687
687
|
display: contents;
|
|
688
688
|
}
|
|
689
689
|
> :is(ul, ol, pre, blockquote, p:not(:has(> img:only-child))) {
|
|
690
690
|
grid-area: a;
|
|
691
691
|
}
|
|
692
|
-
|
|
693
|
-
grid-area: i;
|
|
694
|
-
}
|
|
692
|
+
|
|
695
693
|
}
|
|
696
694
|
|
|
697
695
|
> aside
|
|
@@ -709,13 +707,27 @@ slide-view:not(:has(h1[layout])) {
|
|
|
709
707
|
|
|
710
708
|
/* <aside> containing image */
|
|
711
709
|
&:has(aside > p > img:only-child) {
|
|
710
|
+
&:has(h1:first-child) {
|
|
711
|
+
--slide-header-template: "h h h h h h h h i i i i";
|
|
712
|
+
}
|
|
713
|
+
|
|
712
714
|
--slide-aside-template: "b b b b b b b b i i i i"
|
|
713
715
|
"b b b b b b b b a a a a";
|
|
716
|
+
--grid-content-rows: minmax() minmax(min-content, 1fr);
|
|
714
717
|
|
|
715
|
-
> aside:has(p:
|
|
718
|
+
> aside:has(p:first-child > img:only-child) {
|
|
716
719
|
display: contents;
|
|
720
|
+
|
|
721
|
+
> p:first-child {
|
|
722
|
+
display: contents;
|
|
723
|
+
}
|
|
724
|
+
> p > img:only-child {
|
|
725
|
+
grid-area: i;
|
|
726
|
+
}
|
|
727
|
+
|
|
717
728
|
}
|
|
718
729
|
|
|
730
|
+
|
|
719
731
|
&:has(
|
|
720
732
|
:is(h1, header):first-of-type
|
|
721
733
|
+ aside
|
|
@@ -905,6 +917,7 @@ slide-view:not(:has(h1[layout])) {
|
|
|
905
917
|
var(--slide-image-template);
|
|
906
918
|
--grid-content-rows: min-content minmax(20%, 1fr);
|
|
907
919
|
|
|
920
|
+
|
|
908
921
|
&:has(
|
|
909
922
|
> h3 + p > img:only-child:not(.full),
|
|
910
923
|
> h3 + :not(h3) + p > img:only-child:not(.full),
|
|
@@ -974,8 +987,13 @@ slide-view:not(:has(h1[layout])) {
|
|
|
974
987
|
|
|
975
988
|
/* code + side-by-side */
|
|
976
989
|
|
|
977
|
-
&:has(> :is(pre:first-child, h1:first-child + pre) + h3) {
|
|
990
|
+
&:has(> :is(pre:first-child, h1:first-child + pre) + h3:first-of-type) {
|
|
978
991
|
--slide-code-template: "c c c c c c c c c c c c";
|
|
992
|
+
--slide-body-template:
|
|
993
|
+
var(--slide-code-template)
|
|
994
|
+
var(--slide-titles-template)
|
|
995
|
+
var(--slide-list-template)
|
|
996
|
+
var(--slide-image-template);
|
|
979
997
|
--grid-content-rows: min-content min-content minmax(50%, 1fr);
|
|
980
998
|
}
|
|
981
999
|
|
|
@@ -986,6 +1004,8 @@ slide-view:not(:has(h1[layout])) {
|
|
|
986
1004
|
> img:only-child
|
|
987
1005
|
) {
|
|
988
1006
|
--slide-header-template: "h h h h i i i i i i i i";
|
|
1007
|
+
--slide-body-template: var(--slide-titles-template)
|
|
1008
|
+
var(--slide-code-template) var(--slide-list-template);
|
|
989
1009
|
}
|
|
990
1010
|
|
|
991
1011
|
/* extra stuff after side-by-side */
|
|
Binary file
|
|
@@ -79,7 +79,47 @@ title: Sample Presi
|
|
|
79
79
|
| Headers | `User-Agent: Mozilla/5.0…` | `Content-Type: application/json` |
|
|
80
80
|
| Body | `<!DOCTYPE html> <html lang="en"> … </html>` | `{"squadName": "SuperHeroSquad", …}` |
|
|
81
81
|
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# Slide 7
|
|
85
|
+
|
|
86
|
+
<aside>
|
|
87
|
+
|
|
88
|
+

|
|
89
|
+
|
|
90
|
+
> Cool URIs don't change {.full}
|
|
91
|
+
>
|
|
92
|
+
> —Tim Berners-Lee {.attribution}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
</aside>
|
|
97
|
+
|
|
98
|
+
- A resource's URL should never change
|
|
99
|
+
- Resource itself may change
|
|
100
|
+
- Physical storage location may change
|
|
101
|
+
- Client shouldn't care
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
# Slide 7
|
|
107
|
+
|
|
108
|
+
```HTML {.full}
|
|
109
|
+
<a href="http://example.com/other.html"/>Some other page</a>`
|
|
110
|
+
```
|
|
111
|
+
|
|
82
112
|
|
|
113
|
+
### Syntax
|
|
114
|
+
- `a` is for **A**nchor
|
|
115
|
+
- `href` attribute
|
|
116
|
+
- value is a URL (as defined by HTTP)
|
|
117
|
+
- Content model: mixed content
|
|
83
118
|
|
|
119
|
+
### Semantics
|
|
120
|
+
- creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address
|
|
121
|
+
- Default behavior:
|
|
122
|
+
- load the referenced resource
|
|
123
|
+
|
|
84
124
|
---
|
|
85
125
|
tags: #slides
|