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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mahmoud-zayed created an issue. See original summary.

aaronchristian’s picture

Title: Responsive » Responsive Plugins
Issue summary: View changes
aaronchristian’s picture

Issue summary: View changes
StatusFileSize
new1.79 MB
aaronchristian’s picture

Issue summary: View changes
mahmoud-zayed’s picture

Issue summary: View changes
mahmoud-zayed’s picture

mahmoud-zayed’s picture

Status: Active » Needs work

  • mahmoud-zayed committed 917790a on 1.0.x
    Issue #3195256: Responsive - Create the padding classes examples.
    
  • mahmoud-zayed committed b6e26af on 1.0.x
    Issue #3195256 by mahmoud-zayed: Responsive Plugins add disable live...
  • mahmoud-zayed committed bc3ae87 on 1.0.x
    Issue #3195256 by mahmoud-zayed: Responsive Plugins Create the sharable...
  • mahmoud-zayed committed f480501 on 1.0.x
    Issue #3195256: Responsive - Create the padding classes examples.
    
mahmoud-zayed’s picture

Status: Needs work » Fixed
mahmoud-zayed’s picture

Status: Fixed » Needs work

  • mahmoud-zayed committed 917790a on feature/#3195256-previewer-styling
    Issue #3195256: Responsive - Create the padding classes examples.
    
  • mahmoud-zayed committed b6e26af on feature/#3195256-previewer-styling
    Issue #3195256 by mahmoud-zayed: Responsive Plugins add disable live...
  • mahmoud-zayed committed bc3ae87 on feature/#3195256-previewer-styling
    Issue #3195256 by mahmoud-zayed: Responsive Plugins Create the sharable...
  • mahmoud-zayed committed f480501 on feature/#3195256-previewer-styling
    Issue #3195256: Responsive - Create the padding classes examples.
    

  • AaronChristian committed 0437c2f on feature/#3195256-previewer-styling
    #3195256: Updating responsive preview after rebase with 1x.
    

  • AaronChristian committed fab7cbf on feature/#3195256-previewer-styling
    #3195256: More theme work on the responsive display stuff.
    

sudesh.solaskar’s picture

I have created a patch to support padding & margin for different breakpoints.

sudesh.solaskar’s picture

StatusFileSize
new27.7 KB

I have created another patch that will work for responsive breakpoints for back-ground media i.e. image & video.

sudesh.solaskar’s picture

StatusFileSize
new27.22 KB

There 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.

sudesh.solaskar’s picture

StatusFileSize
new31.04 KB

On 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.

alokbhatt’s picture

Status: Needs work » Needs review
StatusFileSize
new30.48 KB

Recreated patch with some changes. Please review.

sudesh.solaskar’s picture

StatusFileSize
new31 KB

Recreated patch to consider proper media queries for devices.

sudesh.solaskar’s picture

StatusFileSize
new31.92 KB

Recreated 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.

sudesh.solaskar’s picture

StatusFileSize
new31.92 KB

Minor JS issue fixed.

sudesh.solaskar’s picture

StatusFileSize
new32.46 KB

Just a fix for properly setting the global styles and making it responsive based on breakpoints

unstatu’s picture

Used 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).

unstatu’s picture

I have made a mistake generating the patch. Uploading the right one.

mahmoud-zayed’s picture

Version: 1.0.x-dev » 2.0.x-dev
rajendar reddy’s picture

I have applied responsiveness to Margin and enhanced spacing preview function in js/spacing-preview.js

flyke’s picture

I was missing the responsive classes option for Spacing - Margins.
Thanks, patch #29 works great!

lalitkyttn’s picture

Assigned: mahmoud-zayed » lalitkyttn
Status: Needs review » Active

I am working on this

lalitkyttn’s picture

Assigned: lalitkyttn » Unassigned
Status: Active » Needs review
StatusFileSize
new1.35 KB
akalam’s picture

StatusFileSize
new47.83 KB

Rerolled #29 against latest 2.x release

akalam’s picture

StatusFileSize
new42.13 KB

Rerolled #29 against latest 1.0.x version

akalam’s picture

Patch 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