From 811313fdeb6a2af85eeed89236578dc8ced5c47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 12 Dec 2018 23:48:19 -0500 Subject: [PATCH] Mildly improve form styling --- agaric/sass/agaric/_base.form.scss | 8 +++-- ...osed-filter-block--search-page-1.html.twig | 35 +++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 agaric/templates/block/block--views-exposed-filter-block--search-page-1.html.twig diff --git a/agaric/sass/agaric/_base.form.scss b/agaric/sass/agaric/_base.form.scss index 42e1465..1291cb7 100644 --- a/agaric/sass/agaric/_base.form.scss +++ b/agaric/sass/agaric/_base.form.scss @@ -21,6 +21,10 @@ } } -.form-label { - margin-top: 1em; +.form-item { + margin-bottom: .6rem; +} + +.form-label { + margin-top: .6rem; } diff --git a/agaric/templates/block/block--views-exposed-filter-block--search-page-1.html.twig b/agaric/templates/block/block--views-exposed-filter-block--search-page-1.html.twig new file mode 100644 index 0000000..e5a8291 --- /dev/null +++ b/agaric/templates/block/block--views-exposed-filter-block--search-page-1.html.twig @@ -0,0 +1,35 @@ +{# +/** + * @file + * Theme override to display a block. + * + * Available variables: + * - plugin_id: The ID of the block implementation. + * - label: The configured label of the block if visible. + * - configuration: A list of the block's configuration values. + * - label: The configured label for the block. + * - label_display: The display settings for the label. + * - provider: The module or other provider that provided this block plugin. + * - Block plugin specific settings will also be stored here. + * - content: The content of this block. + * - attributes: array of HTML attributes populated by modules, intended to + * be added to the main container tag of this template. + * - id: A valid HTML ID and guaranteed unique. + * - title_attributes: Same as attributes, except applied to the main title + * tag that appears in the template. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. + * + * @see template_preprocess_block() + */ +#} + + +