diff --git a/assets/css/src/article.css b/assets/css/src/article.css index 1b00098..e5d50bf 100644 --- a/assets/css/src/article.css +++ b/assets/css/src/article.css @@ -46,6 +46,10 @@ article ol { margin-left: var(--unit--horizontal); } +article figure { + margin: 4rem 0; +} + article figure img { max-width: 100%; } diff --git a/site/blueprints/blocks/image.yml b/site/blueprints/blocks/image.yml new file mode 100644 index 0000000..775ee6b --- /dev/null +++ b/site/blueprints/blocks/image.yml @@ -0,0 +1,27 @@ +name: field.blocks.image.name +icon: image +preview: image +fields: + image: + label: field.blocks.image.name + type: files + query: model.images + multiple: false + image: + back: black + uploads: + template: blocks/image + alt: + label: field.blocks.image.alt + type: text + icon: title + help: Lu par les robots d'indexation, par les lecteurs d'écran et affiché à la place de l'image si celle-ci ne charge pas. + caption: + label: field.blocks.image.caption + type: writer + icon: text + inline: true + link: + label: field.blocks.image.link + type: text + icon: url