чување 40f313838cc4401e13538737b735e846fedf9ecd
родитељ b16dc976c46d51cecdaf0cd2bea34339ea4fc441
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Mon, 28 Dec 2020 20:42:11 +0100
Updated some examples to better illustrate slweb features
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 7, додавања: 58(+), брисања: 2(-)
diff --git a/.gitignore b/.gitignore
@@ -1,5 +1,7 @@
.cache
.redo
+.do_built
+.do_built.dir
*~
*.bak
*.orig
diff --git a/default.gz.do b/default.gz.do
@@ -1,3 +1,3 @@
redo-ifchange $2
-gzip -cf $2
+gzip -cf $2 >$3
diff --git a/examples/blockquote/index.slw b/examples/blockquote/index.slw
@@ -1,3 +1,6 @@
+---
+stylesheet: style.css
+---
This is a document demonstrating quoting:
> A quoted text
> which is multiline.
diff --git a/examples/blockquote/style.css b/examples/blockquote/style.css
@@ -0,0 +1,15 @@
+html,
+body
+{
+ line-height: 1.5em;
+}
+
+blockquote
+{
+ background: #fee;
+ border-left: 1em solid #aaa;
+ padding: 0;
+ margin: 0;
+ padding: .5em;
+}
+
diff --git a/examples/links/index.slw b/examples/links/index.slw
@@ -1,9 +1,19 @@
---
+stylesheet: style.css
site-name: Links test
---
+{=icon}<svg style="width:24px;height:24px" viewBox="0 0 24 24">
+ <path fill="currentColor"
+d="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z"
+/>
+</svg>{/=icon}
+
Links [Test][1].
Another [link, inline](https://suckless.org).
+You can also create and style a [=icon (link with icon)][2]
+
[1]: https://strahinja.org
+[2]: https://materialdesignicons.com
diff --git a/examples/links/style.css b/examples/links/style.css
@@ -0,0 +1,26 @@
+html, body
+{
+ line-height: 2em;
+ font-size: 12pt;
+}
+
+a
+{
+ line-height: 1em;
+ padding: .5em 1em;
+ border-radius: 10pt;
+ background: #00f;
+ color: #fff;
+ text-decoration: none;
+}
+
+a:hover
+{
+ background: rgba(0,0,255,.75);
+}
+
+a>svg
+{
+ vertical-align: middle;
+}
+
diff --git a/index.html b/index.html
@@ -114,7 +114,7 @@ this program. If not, see <<a href="https://www.gnu.org/licenses">https://www
<div id="git-log">
Previous commit:
-index.slw ff27c92 2020-12-28 17:38:45 +0100 (Страхиња Радић) (HEAD -> redo-instead-of-make, origin/redo-instead-of-make)
+index.slw b16dc97 2020-12-28 19:12:52 +0100 (Страхиња Радић) (HEAD -> redo-instead-of-make, origin/redo-instead-of-make)
</div><!--git-log-->