From 92a04beb853d6eb96d57470af9623f6d38c14af1 Mon Sep 17 00:00:00 2001 From: WigglyKoala Date: Fri, 10 Nov 2023 13:14:48 +0000 Subject: [PATCH] Create fields.css Fix the bug for inline fields not being inline by stealing this from classy. --- css/fields.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 css/fields.css diff --git a/css/fields.css b/css/fields.css new file mode 100644 index 00000000..2b27a86c --- /dev/null +++ b/css/fields.css @@ -0,0 +1,22 @@ +/** + * @file + * Visual styles for fields. + */ + + .field__label { + font-weight: var(--heading-font-weight); + } + .field--label-inline .field__label, + .field--label-inline .field__items { + float: left; /* LTR */ + } + .field--label-inline .field__label, + .field--label-inline > .field__item, + .field--label-inline .field__items { + padding-right: var(--spacing-smaller); + } + [dir="rtl"] .field--label-inline .field__label, + [dir="rtl"] .field--label-inline .field__items { + padding-right: 0; + padding-left: var(--spacing-smaller); + }