From 650b6a25a88cbd248c22cfad8aeafb75e84310d0 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Mon, 4 Feb 2019 15:24:06 -0500 Subject: [PATCH] Tweak figures for brutstrap --- brutaldon/static/css/brutstrap-tweaks.css | 43 +++++++++++----------- brutaldon/templates/main/toot_partial.html | 15 +++++--- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/brutaldon/static/css/brutstrap-tweaks.css b/brutaldon/static/css/brutstrap-tweaks.css index 8ee131d..bbc8310 100644 --- a/brutaldon/static/css/brutstrap-tweaks.css +++ b/brutaldon/static/css/brutstrap-tweaks.css @@ -33,6 +33,7 @@ article + hr /* Now redundant */ display: none; } + /* Bulma styles re-implemented for compatibility */ img.is-32x32 { @@ -164,8 +165,23 @@ img.emoji .level { align-items: center; justify-content: space-between; + display:flex; + flex-wrap: wrap; } +.level.is-mobile { + display: flex; +} + +.level.is-mobile .level-left, +.level.is-mobile .level-right { + display: flex; +} +.level.is-mobile .level-item { + margin-right: 0.75rem; +} + + .level code { border-radius: 4px; } @@ -175,27 +191,6 @@ img.emoji vertical-align: top; } -.level.is-mobile { - display: flex; -} - -.level.is-mobile .level-left, -.level.is-mobile .level-right { - display: flex; -} - -.level.is-mobile .level-left + .level-right { - margin-top: 0; -} - -.level.is-mobile .level-item { - margin-right: 0.75rem; -} - -.level.is-mobile .level-item:not(:last-child) { - margin-bottom: 0; -} - .level-item { align-items: center; display: flex; @@ -284,3 +279,9 @@ img.fav-avatar { { height: 0; } + +.attachments figure { + border: 0.2ex solid #444; + max-width: 256px; + padding: 1em; +} diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index fb31b9a..f733dbe 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -83,8 +83,9 @@
{% for media in toot.media_attachments %} - {% if media.type == "image" %} - + {% if media.type == "image" %} +
+ {% if toot.sensitive %} - - {% else %} -
{% endif %}