-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #16009 - Added styling to form templates to enable floating button groups #17523
base: develop
Are you sure you want to change the base?
Changes from 2 commits
8715f6f
7de5efd
30e6704
3b8a3dc
1e03eb4
0cf8264
1bfb6e6
6d5af67
3c36549
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ pre { | |
} | ||
|
||
// Altering background colors | ||
.page, .page-tabs .nav-tabs .nav-link.active { | ||
.page, .page-tabs .nav-tabs .nav-link.active, .btn-float-group { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We want to avoid declaring any custom classes here, as this module should be restricted to overrides for Tabler itself. Maybe we can inherit the background color from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has been moved to custom/_misc.scss. Inheriting from |
||
background-color: var(--#{$prefix}bg-surface-tertiary) !important; | ||
} | ||
.page-body .card .card-header { | ||
|
@@ -105,7 +105,7 @@ body[data-bs-theme=dark] { | |
.navbar, .page-header { | ||
background-color: $rich-black; | ||
} | ||
.page, .page-tabs .nav-tabs .nav-link.active { | ||
.page, .page-tabs .nav-tabs .nav-link.active, .btn-float-group { | ||
background-color: $rich-black-light !important; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
</div> | ||
{% endif %} | ||
</div> | ||
<div class="card-footer text-end d-print-none border-0"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is done |
||
<div class="card-footer text-end btn-float-group d-print-none border-0"> | ||
<button type="button" class="btn btn-outline-danger m-1" data-reset-select> | ||
<i class="mdi mdi-backspace"></i> {% trans "Reset" %} | ||
</button> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to add a bit more top padding. IMO vertical spacing should be the same above and below the buttons while floating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went a different direction here. Let me know what you think. Essentially I removed the button group
div
background altogether, which created truly 'floating' buttons and IMO added more real estate to the form by not covering it up.