Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Make the form attach library be aware of overridden libraries from default active theme, if not load from module
Edit the form description as below:
LABEL: Available CSS styles (classes) for Varbase Bootstrap Paragraphs DESCRIPTION:
The list of CSS classes available as background styles for Varbase Bootstrap Pargaraphs. Enter one value per line, in the format key|label where key is the CSS class name (without the .), and label is the human readable name of the style in administration forms.
These styles are defined and can be customized in vbp-colors library that is defined in varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.libraries.yml.
To customize the styles to fit your brand with your own theme, do the following:
Copy the LESS (varbase_bootstrap_paragraphs/less/theme/vbp-colors.theme.less) and CSS (varbase_bootstrap_paragraphs/css/theme/vbp-colors.theme.css) files to your own theme.
Edit the LESS/CSS files in your own theme to customize the styles as you wish. You will notice that the admin form will load your styles in the available "Background color" options for Paragraphs.
Given I am a logged in user with a "site admin" user role When I go to "/admin/config/varbase/varbase-bootstrap-paragraphs" And I fill in "Available CSS styles (classes) for Varbase Bootstrap Paragraphs" with """
""" And I press "Save configuration" button Then I should see "The configuration options have been saved."
Given I am a logged in user with a "site admin" user role When I go to "/node/add/landing_page" And wait And I add 4 paragraphs Then I should see this in the back-end
And I should see this in the front-end
When the developer Uncomment """
# VARTHEME_SUBTHEME Varbase Bootstrap Paragraphs colors theme.
# Uncomment the following line to load vbp-colors with this theme colors.
# - vartheme/vbp-colors
""" in the YOURTHEME.yml file
When the developer Uncomment """
# VARTHEME_SUBTHEME Varbase Bootstrap Paragraphs colors theme.
# Uncomment the following line to override vbp-colors with this theme colors.
# varbase_bootstrap_paragraphs/vbp-colors: vartheme/vbp-colors
""" in the "css/theme/vbp-colors.theme.css" by updating "less/theme/vbp-colors.theme.less" to do the dynamic less pre-process And the developer Uncomment """
# VARTHEME_SUBTHEME Varbase Bootstrap Paragraphs colors theme.
# Uncommit the following to load your colors file.
#vbp-colors:
# css:
# theme:
# css/theme/vbp-colors.theme.css: {}
""" in the "YOUR_THEME/YOUR_THEME.libraries.yml" file Then I should see this in the back-end
Comments
Comment #2
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #3
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #4
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #5
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #7
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #10
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #12
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #14
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #15
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedAs requested by Razem
Comment #16
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #18
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedGiven I am a logged in user with a "site admin" user role
When I go to "/admin/config/varbase/varbase-bootstrap-paragraphs"
And I fill in "Available CSS styles (classes) for Varbase Bootstrap Paragraphs" with """
"""
And I press "Save configuration" button
Then I should see "The configuration options have been saved."
Given I am a logged in user with a "site admin" user role
When I go to "/node/add/landing_page"
And wait
And I add 4 paragraphs
Then I should see this in the back-end
And I should see this in the front-end
When the developer Uncomment """
""" in the YOURTHEME.yml file
When the developer Uncomment """
""" in the YOURTHEME.yml file
And add """
""" in the "css/theme/vbp-colors.theme.css" by updating "less/theme/vbp-colors.theme.less" to do the dynamic less pre-process
And the developer Uncomment """
""" in the "YOUR_THEME/YOUR_THEME.libraries.yml" file
Then I should see this in the back-end
And I should see this in the front-end
Comment #19
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #20
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #22
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #24
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #26
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #27
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #28
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commented