From 8588e9096e5bd2986bd6aa254b706d1331855dbc Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 13 Feb 2024 23:12:22 -0700 Subject: [style] Tweak design mockups --- design/cards.html | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 75 insertions(+), 5 deletions(-) (limited to 'design/cards.html') diff --git a/design/cards.html b/design/cards.html index ec2873b..d6d2a7c 100644 --- a/design/cards.html +++ b/design/cards.html @@ -34,13 +34,16 @@ color: rgba(0,0,0,.87); } h2 { - margin: 16px 24px 0; + margin: 0 24px 0; font-size: 24px; line-height: 36px; font-weight: normal; } + h2:first-child { + margin-top: 18px; + } h3 { - margin: 1px 24px 0; + margin: 22px 24px 0; font-size: 14px; line-height: 16px; font-weight: 500; @@ -57,6 +60,22 @@ line-height: 24px; letter-spacing: 0.5px; } + pre { + margin: 16px 0 0; + padding: 16px 24px; + font: 14px/1.3em "Hack", monospace; + background: rgba(0,0,0,.04); + } + pre:first-child { + margin: 0; + padding-top: 18px; + } + pre:last-child { + padding-bottom: 18px; + } + pre:has(+.tags) { + margin-bottom: 16px; + } .tags { margin: 8px 20px 6px 24px; text-align: right; @@ -82,19 +101,33 @@ width: 100%; margin: 16px 0; } + .card img:first-child { + margin-top: 0; + } + .card img:last-child { + margin-bottom: 0; + } + .card:has(pre:last-child), + .card:has(img:last-child) { + padding-bottom: 0; + }
edit
-

Example Note

Parent, Other Parent push_pin public

+

Example Note

Meh bold italic meh whatever lorem ipsum dolor sit amet adispicing elit

Foobar lipsum yeet

-

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

+

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

+
function test() {
+  return 42;
+}
+

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

#hash #tag more_vert
@@ -105,14 +138,51 @@
-

Note with a picture

+

Parentless Note

+

Content, words, et cetera.

+
+ more_vert +
+
+ +
+

+ push_pin +

+

Pinned Note

+

More content? Huh, weird.

+
+ more_vert +
+
+ +
+
function codeCard() {
+  return "Yay!";
+}
+
+ +
+
codeCard2();
+

Intermission 1

+
secondAct(omg);
+

Intermission 2

+
finale(applause);
+
+ +

Photography public

+

Note with a picture

Meh
#nature more_vert
+ +
+ Meh +
-- cgit v1.2.3-70-g09d2