Labels |
Added:
?
|
That's the module not the com_user login view
Sorry I missed that in the title. The comment about multiple buttons is still valid though.
Label J4 Frontend Template
?
Labels |
Added:
?
|
Can't we just add a class for control-group?
diff --git a/templates/cassiopeia/scss/blocks/_form.scss b/templates/cassiopeia/scss/blocks/_form.scss
index ae587bc..adf4870 100644
--- a/templates/cassiopeia/scss/blocks/_form.scss
+++ b/templates/cassiopeia/scss/blocks/_form.scss
@@ -22,4 +22,8 @@
}
+.control-group {
+ margin-top: .5rem;
+}
+
.custom-select {
max-width: $input-max-width;
Or apply Lobotomized Owl selector
* + * {
margin-top: .5em;
}
Here is the history of this class.
Bootstrap 2: .control-group
Bootstrap 3/4: .form-group
Bootstrap 5: .mb-3
So instead of top margin it should be bottom margin to be consistent with Bootstrap?
But we could use another css for these com_users buttons:
diff --git a/templates/cassiopeia/scss/blocks/_form.scss b/templates/cassiopeia/scss/blocks/_form.scss
index ae587bc..4c26844 100644
--- a/templates/cassiopeia/scss/blocks/_form.scss
+++ b/templates/cassiopeia/scss/blocks/_form.scss
@@ -113,2 +113,7 @@
bottom: auto;
}
+
+// com_users submit buttons
+[class^=com-users-] {
+ margin-top: .5rem;
+}
@infograf768 There is a PR under the cassiopeia repo: joomla/cassiopeia#99
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-11-29 15:05:53 |
Closed_By | ⇒ | Quy |