From 7d9bb5fee50561bdce8fe7440ae9d1b8aae48bd0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 14 Jun 2022 20:35:37 +0200 Subject: Update --- assets/css/components/_figure.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 assets/css/components/_figure.scss (limited to 'assets/css/components') diff --git a/assets/css/components/_figure.scss b/assets/css/components/_figure.scss new file mode 100644 index 0000000..78e13c0 --- /dev/null +++ b/assets/css/components/_figure.scss @@ -0,0 +1,21 @@ +@use 'iro-sass/src/index' as iro; +@use 'iro-design/src/functions' as fn; +@use 'iro-design/src/mixins' as mx; +@use '../functions' as fn2; + +@include iro.props-namespace('figure') { + @include iro.bem-component(iro.props-namespace()) { + margin: fn.global-dim(--paragraph --margin-top) 0 0; + padding: 0; + + @include iro.bem-elem('link') { + display: block; + } + + @include iro.bem-elem('image') { + display: block; + max-width: 100%; + max-height: 70vh; + } + } +} -- cgit v1.2.3-70-g09d2