Skip to content

Commit

Permalink
Create fields.css
Browse files Browse the repository at this point in the history
Fix the bug for inline fields not being inline by stealing this from classy.
  • Loading branch information
justinepocock authored Nov 10, 2023
1 parent abb8068 commit 92a04be
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions css/fields.css
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 92a04be

Please sign in to comment.