Skip to content

Commit 2676db9

Browse files
Fix styling of inlineTable forms inside other forms (#37)
1 parent 91c3b21 commit 2676db9

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

src/Lumi/Components/Form.purs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -949,17 +949,6 @@ styles = jss
949949
{ "&:first-child, &:last-child": { display: "none" }
950950
}
951951

952-
-- not InlineTable Form rules
953-
, "&:not(.inline-table)":
954-
{ "& .labeled-field":
955-
{ paddingBottom: "16px"
956-
957-
, "&[data-force-top-label=\"true\"] lumi-align-to-input":
958-
{ padding: "0 0 4px 0"
959-
}
960-
}
961-
}
962-
963952
, "&.readonly label.lumi":
964953
{ cursor: "auto"
965954
, userSelect: "auto"
@@ -972,10 +961,25 @@ styles = jss
972961
, "&:hover": { textDecoration: "underline" }
973962
}
974963

964+
-- not InlineTable Form rules
965+
, "& .labeled-field":
966+
{ paddingBottom: "16px"
967+
968+
, "&[data-force-top-label=\"true\"] lumi-align-to-input":
969+
{ padding: "0 0 4px 0"
970+
}
971+
}
972+
975973
, "&.inline-table":
976974
{ -- If necessary, override the not(.inline-table)
977975
-- rule above (for nested forms)
978-
"& .labeled-field": { paddingBottom: "0" }
976+
"& .labeled-field":
977+
{ paddingBottom: "0"
978+
979+
, "&[data-force-top-label=\"true\"] lumi-align-to-input":
980+
{ padding: "0"
981+
}
982+
}
979983

980984
, "& hr.lumi.field-divider":
981985
{ height: "0.1rem"

0 commit comments

Comments
 (0)