From 575278aba99139635adc3b1f9385befe57102541 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 11 Jun 2022 09:44:04 +0200 Subject: Re-implemented design via iro-design --- assets/css/_base.scss | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 assets/css/_base.scss (limited to 'assets/css/_base.scss') diff --git a/assets/css/_base.scss b/assets/css/_base.scss new file mode 100644 index 0000000..dd24fed --- /dev/null +++ b/assets/css/_base.scss @@ -0,0 +1,36 @@ +@use 'iro-sass/src/index' as iro; +@use 'iro-design/src/functions' as fn; + +html, +pre, +code { + font-feature-settings: 'calt' 0, 'dlig' 1, 'ss09' 1; +} + +body { + box-sizing: border-box; + min-height: 100%; +} + +main { + @include iro.responsive-env((600px, 900px)) { + font-size: iro.responsive-set((1rem, iro.fn-px-to-rem(18px))); + } +} + +img { + display: block; + max-width: 100%; +} + +figure { + margin: fn.dim(--paragraph --margin-top) 0 0; + padding: 0; + + img { + display: block; + max-width: 100%; + max-height: 70vh; + object-fit: contain; + } +} -- cgit v1.2.3-54-g00ecf