diff --git a/example/default.tpl b/example/default.tpl index 1af8ab4..65c60b5 100644 --- a/example/default.tpl +++ b/example/default.tpl @@ -1,51 +1,44 @@ - - + Microblog - + - -

A Microblog in Plain HTML

-
- -
+ - - -
- -
+
{timeline} -
- -
+ - diff --git a/example/settings.toml b/example/settings.toml index f9ffb64..3cb0030 100644 --- a/example/settings.toml +++ b/example/settings.toml @@ -19,10 +19,11 @@ inline_tags = ["i", "em", "b", "strong","u", "s", "a", "span"] date_format="%d %B %Y" format="""
-
""" @@ -55,17 +56,19 @@ short-bio= "Your self-description. Anything longer than 150 characters is trunca list= ["https://likho.neocities.org/microblog/meta.json"] date_format = "%Y %b %d" format=""" -
- Avatar - - -
Last Update: {__lastupdated__}
- Posts: {__post_count__} -
+
+
+ Avatar +
+
    +
  • {__handle__}
  • +
  • +
  • Posts: {__post_count__}
  • +
+
+

{__shortbio__}

-
+ """ # internally link avatars - avoids hotlinks diff --git a/example/timeline.css b/example/timeline.css index 1894d34..1aab43e 100644 --- a/example/timeline.css +++ b/example/timeline.css @@ -1,61 +1,76 @@ +body { + max-width:95%; + margin:auto; +} + @media only screen and (min-width: 768px) { .column { float: left; - width: 32%; + width: 30%; } .timeline { float: right; width: 67%; } } -.postcell { + +/* POSTING */ + +/* .postcell */ +.timeline article { border: 1px solid red; text-align: left; margin: 0.25em 0 } -.message { +.timeline article h4 { + text-align: right; + margin: 0.5em +} +.timeline article h4 ~ * { margin: 1em 1em 1em 3em; - white-space: pre-wrap; word-wrap: break-word; } .buttons { margin-left: 1em; margin-bottom:0.5em; } -.timestamp { - text-align: right; - margin: 0.5em -} .hashtag { color: green; font-weight: bold; } + +/* PROFILE */ +.column figure { + margin-left: 3%; +} .avatar { vertical-align: middle; width: 50px; height: 50px; } -.column .profile { - vertical-align: middle; +.column { + border:1px solid blue; padding-left: 10px; padding:1%; - border:1px solid blue; } -.column .profile .handle{ +.profile .handle{ font-size: 1.1em; font-weight: bold; } -.column .profile .email{ +.profile .email{ font-size: 0.8em; text-align:left; text-decoration:none; } -.column .profile .bio { +.profile .bio { font-size: 0.9em; vertical-align: middle; margin: 1em } + +/* IMAGES */ + .gallery { margin:auto; display: flex; @@ -74,31 +89,41 @@ border: 1px solid #777; filter: invert(100%); } -.postcell .avatar { + +/* WEBRING */ + +.timeline article figure img { margin-left:3%; margin-top:2%; height: 4em; width:auto; vertical-align:top; } -.postcell .wrapper { - margin-top:2%; +.timeline article figure { + display:flex; + margin-left:0; +} +.timeline article figcaption { + margin-left: 3%; display: inline-block; + font-size: 0.85em; } -.postcell .wrapper .last-updated, -.postcell .wrapper .post-count { - font-size: 1em; - color:grey; +.timeline article figcaption ul { + list-style-type:none; + padding-left:0; } -.postcell .short-bio{ +.timeline article figcaption p { + margin-top:0; + margin-bottom:0; +} +.timeline article .short-bio{ padding-left: 3%; padding-right: 2%; font-style: italic; word-wrap: break-word; } -/* Clear floats after the columns */ -.row:after { - content: ""; - display: table; - clear: both; + +footer { + text-align:center; } +