Commit 3e3fda1
Changed files (4)
src
contents
_lib
components
styles
article
src/contents/_lib/components/fullwidth.typ
@@ -0,0 +1,10 @@
+#import "@preview/bullseye:0.1.0": target
+
+#let fullwidth(content) = context {
+ if target() == "html" {
+ return html.div(
+ class: "fullwidth",
+ content,
+ )
+ }
+}
src/contents/_lib/tybios.typ
@@ -1,3 +1,4 @@
+#import "components/fullwidth.typ": fullwidth
#import "components/marginnote.typ": marginnote
#let post-template(body) = {
src/styles/article/fullwidth.css
@@ -0,0 +1,6 @@
+.fullwidth {
+ @apply my-5;
+ @variant md {
+ @apply w-3/2 clear-both;
+ }
+}
src/styles/article/index.css
@@ -3,6 +3,10 @@ article,
@import "./figure.css";
}
article,
+.article-fullwidth {
+ @import "./fullwidth.css";
+}
+article,
.article-heading {
@import "./heading.css";
}