From 0fffdafeb8219b6183be301cafae9aeb5b28b794 Mon Sep 17 00:00:00 2001 From: alifeee Date: Tue, 30 Jan 2024 13:06:10 +0000 Subject: [PATCH] center images in toki pages --- .eleventy.js | 2 +- public/stylesheet-toki-wan.css | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 019fd46..df22350 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -128,7 +128,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.addHandlebarsHelper( "sitelen", (file, alt) => - `${alt}` + `${alt}` ); // image shortcode - reduce filesize etc diff --git a/public/stylesheet-toki-wan.css b/public/stylesheet-toki-wan.css index 97033fa..5883c17 100644 --- a/public/stylesheet-toki-wan.css +++ b/public/stylesheet-toki-wan.css @@ -40,8 +40,10 @@ h1 { text-align: justify; } -.nimi img { +p:has(.image) { + align-self: center; +} +.nimi .image img { max-width: 100%; max-height: 20rem; - margin: 0 auto; }