Skip to content

Commit

Permalink
Update webform styles
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed Oct 24, 2022
1 parent a479807 commit c895900
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions css/drupal.webform.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@

}

/* adjust webform checkboxes / radios */

.webform-submission-form .checkboxes--wrapper legend,
.webform-submission-form .webform-checkboxes-other--wrapper legend,
.webform-submission-form .radios--wrapper legend,
Expand All @@ -198,6 +200,8 @@
margin-top: .5em;
}

/* fix prefix and suffix for fields */

.webform-has-field-prefix,
.webform-has-field-suffix {
display: flex;
Expand Down Expand Up @@ -229,4 +233,11 @@
.webform-has-field-prefix input,
.webform-has-field-suffix input {
flex: 1;
}

/* fix drag icon */

.webform-submission-form a.tabledrag-handle .handle {
width: auto;
height: auto;
}
2 changes: 1 addition & 1 deletion css/drupal.webform.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/css/drupal.webform.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@

}

/* adjust webform checkboxes / radios */
.webform-submission-form .checkboxes--wrapper legend,
.webform-submission-form .webform-checkboxes-other--wrapper legend,
.webform-submission-form .radios--wrapper legend,
Expand All @@ -109,6 +110,7 @@
margin-top: .5em;
}

/* fix prefix and suffix for fields */
.webform-has-field-prefix,
.webform-has-field-suffix {
display: flex;
Expand Down Expand Up @@ -140,4 +142,10 @@
.webform-has-field-prefix input,
.webform-has-field-suffix input {
flex: 1;
}

/* fix drag icon */
.webform-submission-form a.tabledrag-handle .handle {
width: auto;
height: auto;
}

0 comments on commit c895900

Please sign in to comment.