Problem/Motivation
Right now the differnt styles per breakpoint can be done through css class without any option for site builder to change it.
For example;
On desktop it is nice to have a looping background video, however, performance is a huge issue when we get down to mobile devices. The user would like to select a still background image to display instead.
Proposed resolution
Add the ability to choose different styles for pre-configured breakpoints.
Remaining tasks
- Make it configurable per plugins group.
- Any module that utilize Bootstrap styles must have the option to turn the responsive on or off
User interface changes
Add the breakpoints devices icons at the top of each plugins group, if that group support responsive.
Comments
Comment #2
aaronchristian commentedComment #3
aaronchristian commentedComment #4
aaronchristian commentedComment #5
mahmoud-zayed commentedComment #6
mahmoud-zayed commentedComment #7
mahmoud-zayed commentedComment #9
mahmoud-zayed commentedComment #10
mahmoud-zayed commentedComment #17
sudesh.solaskarI have created a patch to support padding & margin for different breakpoints.
Comment #18
sudesh.solaskarI have created another patch that will work for responsive breakpoints for back-ground media i.e. image & video.
Comment #19
sudesh.solaskarThere was an issue with the patch from #18. The issue was related to break points, that particular patch only considers global background media if we have couple of elements to style. I have recreated the patch with some code modification to overcome this issue.
Comment #20
sudesh.solaskarOn the patch no #19 there was an issue with background video, it used to show background video irrespective of viewport size. I have resolved the same issue in this patch.
Comment #21
alokbhatt commentedRecreated patch with some changes. Please review.
Comment #22
sudesh.solaskarRecreated patch to consider proper media queries for devices.
Comment #23
sudesh.solaskarRecreated patch to resolve the video not getting rendered on front end and on edit layout section contextual links missing for the blocks to which background video is being attached.
Comment #24
sudesh.solaskarMinor JS issue fixed.
Comment #25
sudesh.solaskarJust a fix for properly setting the global styles and making it responsive based on breakpoints
Comment #26
unstatu commentedUsed Drupal\Component\Utility\NestedArray to set/get the nested array values. This will avoid errors like
Notice: Undefined index: background_media in Drupal\bootstrap_styles\BootstrapStyles\Style\BackgroundMedia->createBreakpointStyleFormField() (line 209 of modules/contrib/bootstrap_styles/src/ResponsiveTrait.php).Comment #27
unstatu commentedI have made a mistake generating the patch. Uploading the right one.
Comment #28
mahmoud-zayed commentedComment #29
rajendar reddy commentedI have applied responsiveness to Margin and enhanced spacing preview function in
js/spacing-preview.jsComment #30
flyke commentedI was missing the responsive classes option for Spacing - Margins.
Thanks, patch #29 works great!
Comment #31
lalitkyttn commentedI am working on this
Comment #32
lalitkyttn commentedComment #33
akalam commentedRerolled #29 against latest 2.x release
Comment #34
akalam commentedRerolled #29 against latest 1.0.x version
Comment #35
akalam commentedPatch on #34 doesn't work on bootstrap_styles 1.x because the code depends on ResponsiveTrait which is only available on the 2.0.x branch