Requested and provided by Razem
Problem/Motivation
- Section ONLY
- Name the fieldset: Alignment
- Horizontal alignment
- Vertical alignment
Proposed resolution
- Have a custom Bootstrap Style - Styling Group named "Alignment"
- Have 2 custom Bootstrap Style - Styling plugins:
- HorizontalAlignment
- VerticalAlignment
Other layout options could be aligned using this Bootstrap 4/5 way
#3210657: Add Boxed options ( Wide, Medium, Narrow, Tiny ) in Varbase Layout Builder ~10
Use some of the Bootstrap 5 icons
https://icons.getbootstrap.com/
Horizontal alignment
Align start
Align center
Align endMaybe more icons for more alignment options in Bootstrap 5.
Vertical alignment
Remaining tasks
- Add plugins
- Have it work with 1 column
- Have it work with 2 and more columns
- Integrate with #3210657: Add Boxed options ( Wide, Medium, Narrow, Tiny ) in Varbase Layout Builder ~10
- Test
- Review
- Automated testing
- Release
For manual update
- Run a basic
composer update- Go to "/admin/config/bootstrap-styles/settings"
- And fill in the following:
Horizontal alignment
justify-content-start|Align start justify-content-center|Align center justify-content-end|Align endVertical alignment
align-items-start|Align top align-items-center|Align middle align-items-end|Align bottom- And save the settings
User interface changes
- Have Alignment UI/UX styling options with VLB
Boxed VLB - No background - Align NONE
Boxed VLB - No background - Align start
Boxed VLB - No background - Align Center
Boxed VLB - No background - Align end

2 cols - Boxed VLB - No background - Align NONE
2 cols - Boxed VLB - No background - Align start
2 cols - Boxed VLB - No background - Align Center
2 cols - Boxed VLB - No background - Align end
Boxed VLB - BG Color - Edge to Edge BG - Align NONE
Boxed VLB - BG Color - Edge to Edge BG - Align start
Boxed VLB - BG Color - Edge to Edge BG - Align center
Boxed VLB - BG Color - Edge to Edge BG - Align end

2 cols - Boxed VLB - BG Color - Edge to Edge BG - Align NONE
2 cols - Boxed VLB - BG Color - Edge to Edge BG - Align start
2 cols - Boxed VLB - BG Color - Edge to Edge BG - Align center
2 cols - Boxed VLB - BG Color - Edge to Edge BG - Align end
Boxed VLB - BG Color - No Edge to Edge BG - Align NONE
Boxed VLB - BG Color - No Edge to Edge BG - Align start
Boxed VLB - BG Color - No Edge to Edge BG - Align center
Boxed VLB - BG Color - No Edge to Edge BG - Align end
2 cols - Boxed VLB - BG Color - No Edge to Edge BG - Align NONE
2 cols - Boxed VLB - BG Color - No Edge to Edge BG - Align start
2 cols - Boxed VLB - BG Color - No Edge to Edge BG - Align center
2 cols - Boxed VLB - BG Color - No Edge to Edge BG - Align end
RTL Support
API changes
- New plugins
Data model changes
- Section configuration will have 2 new saved values for alignment
horizontal_alignmentvertical_alignment

























Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahAfter having a look at
Implementing the following
Comment #8
rajab natshahHorizontal alignment
Vertical alignment
Comment #9
rajab natshahComment #10
rajab natshahComment #13
rajab natshahComment #15
rajab natshahComment #16
rajab natshahComment #19
rajab natshahComment #21
rajab natshahFeedback by Razem
Comment #25
rajab natshahComment #26
rajab natshahComment #27
rajab natshahComment #28
rajab natshahComment #29
rajab natshahComment #30
rajab natshahComment #31
rajab natshahComment #32
rajab natshahComment #33
rajab natshahComment #34
rajab natshahComment #36
rajab natshahAdded a hook update to import:
Horizontal alignment
Vertical alignment
into the bootstrap_styles.settings config