diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-12 01:37:18 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-12 01:37:18 +0200 |
commit | f5ce181aa89d295e108bd25cb7c6914cf020d565 (patch) | |
tree | 8f498f457d57f467c255829667cb6afb2f7b9425 /theme/admin/rsrc/css/main.scss | |
parent | 4c3fc4ab3f012afc48be15193595c6b945496288 (diff) | |
download | blog-f5ce181aa89d295e108bd25cb7c6914cf020d565.tar.gz blog-f5ce181aa89d295e108bd25cb7c6914cf020d565.tar.xz blog-f5ce181aa89d295e108bd25cb7c6914cf020d565.zip |
Show first image from items content
If a item has at least one Markdown image embedded in its content, show
this image within the <blockquote> tag in the item.php template files.
Diffstat (limited to 'theme/admin/rsrc/css/main.scss')
-rw-r--r-- | theme/admin/rsrc/css/main.scss | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/theme/admin/rsrc/css/main.scss b/theme/admin/rsrc/css/main.scss index e5fdf5a..275013b 100644 --- a/theme/admin/rsrc/css/main.scss +++ b/theme/admin/rsrc/css/main.scss @@ -471,17 +471,29 @@ table, td { blockquote { margin: 0; padding: 0.75rem; + overflow: hidden; font-family: inherit; p { margin-bottom: 0; } } -} -.item-id { - float: right; - color: #666; + &-id { + float: right; + color: #666; + } + + &-image { + float: left; + display: block; + margin-right: 0.75rem; + width: 10rem; + height: 7rem; + object-fit: cover; + background: #EEE; + border: 0.05rem solid #AAA; + } } /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |