Commit e00c7272 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3180829: Change Varbase Bootstrap Paragraphs to only support Bootstrap...

Issue #3180829: Change Varbase Bootstrap Paragraphs to only support Bootstrap 4 classes and drop legacy support for Bootstrap 3
parent 70138963
......@@ -42,12 +42,12 @@ background color options.
**Widths:**
* Tiny : col-md-4 col-md-offset-4 col-sm-8 col-sm-offset-2
* Narrow : col-md-6 col-md-offset-3 col-sm-10 col-sm-offset-1
* Medium : col-md-8 col-md-offset-2
* Wide : col-md-10 col-md-offset-1
* Full : col-xs-12
* Edge to Edge : bg-edge2edge col-xs-12
* Tiny : col-md-4 offset-md-4 col-sm-8 offset-sm-2
* Narrow : col-md-6 offset-md-3 col-sm-10 offset-sm-1
* Medium : col-md-8 offset-md-2
* Wide : col-md-10 offset-md-1
* Full : col-12
* Edge to Edge : bg-edge2edge col-12 p-0
**Installation:**
......
......@@ -60,15 +60,15 @@ function varbase_bootstrap_paragraphs_preprocess_paragraph(&$variables) {
}
$width_map = [
'paragraph--width--tiny' => 'col-md-4 col-md-offset-4 col-sm-8 col-sm-offset-2',
'paragraph--width--narrow' => 'col-md-6 col-md-offset-3 col-sm-10 col-sm-offset-1',
'paragraph--width--medium' => 'col-md-8 col-md-offset-2',
'paragraph--width--wide' => 'col-md-10 col-md-offset-1',
'paragraph--width--full' => 'col-xs-12',
'bg-edge2edge' => 'bg-edge2edge col-xs-12 no-padding',
'paragraph--width--tiny' => 'col-md-4 offset-md-4 col-sm-8 offset-sm-2',
'paragraph--width--narrow' => 'col-md-6 offset-md-3 col-sm-10 offset-sm-1',
'paragraph--width--medium' => 'col-md-8 offset-md-2',
'paragraph--width--wide' => 'col-md-10 offset-md-1',
'paragraph--width--full' => 'col-12',
'bg-edge2edge' => 'bg-edge2edge col-12 p-0',
];
$width = 'col-xs-12';
$width = 'col-12';
if (isset($width_map[$width_value])) {
$width = $width_map[$width_value];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment