Search
Inline form in vertical tabs
https://www.drupalarchitect.info/admin/structure/entityqueue/add
Blocks
Block titles are h2 by default.
This makes sense when placed in the block layout.
But in some cases, we want it to be an h3 or below.
Pre content pushed down
The content layout has flex grow.
Admin Pages
libraries-override:
system/admin: mantra_starter/system_adminsystem/admin depends on system/base, which has a lot of css utilities.
system.admin.css contains layouts and styles for admin templates.
.layout container in page.html.twig is only used in…
Fences
Supports Fences module with a field template that has required values.
See Fences field template: https://git.drupalcode.org/project/fences/-/blob/3.x/templates/field.html.twig
Mantra Theme template
{%
set classes = [
'field',
'field--name-' ~…
Views header margin top
If there is a breadcrumb or messages, they have top/bottom margin to create space.
The views header could get the same treatment.
The point of avoiding margin top is so that if a background color is used, there is no gap with adjacent…
Dialog
Drupal dialog uses jquery UI.
How do you override the default css?
libraries-override:
core/internal.jquery_ui:
css:
theme:
assets/vendor/jquery.ui/themes/base/theme.css: css/jquery.ui.theme.csshttps://git.drupalcode.org/project/drupal…
Layout Builder
When layout builder is enabled for node displays, the output will use the node template as a wrapper.
Layout builder output will print inside {{ content }}.
The wrappers follow Section > Region > Block.
Disable default layouts to avoid confusion.
In…
Spacing
Tailwind's default spacing is 1rem, equivalent to 4 IE p-4.
Sticky Section Headers
This style is used for scrolling through grouped sections, with the header sticking to the top of the page as you scroll through the section.
https://www.andrewsclasses.com/courses
It is currently implemented as a utility class in theme…