-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
D8CORE-7662: Created a single collayout to added the filtered paragra…
…ph into
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...yout_paragraphs/layouts/one_column_filters/layout-paragraphs-one-column-filters.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation to display one column layout. | ||
* | ||
* Available variables: | ||
* - content: The content for this layout. | ||
* - attributes: HTML attributes for the layout wrapper. | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
{% | ||
set classes = [ | ||
'layout', | ||
'layout--layout-paragraphs-one-column-filters', | ||
] | ||
%} | ||
|
||
{% if content %} | ||
<div{{ attributes.addClass(classes) }}> | ||
|
||
{% if content.main %} | ||
<div {{ region_attributes.main.addClass('layout__region', 'layout__region--main') }}> | ||
{{ content.main }} | ||
</div> | ||
{% endif %} | ||
|
||
</div> | ||
{% endif %} | ||
|
5 changes: 5 additions & 0 deletions
5
modules/stanford_layout_paragraphs/layouts/one_column_filters/one-column-filters.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.layout--layout-paragraphs-one-column-filters .layout__region { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 30px; | ||
} |
12 changes: 12 additions & 0 deletions
12
modules/stanford_layout_paragraphs/src/Layouts/OneColumnFilters.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Drupal\stanford_layout_paragraphs\Layouts; | ||
|
||
use Drupal\Core\Layout\LayoutDefault; | ||
|
||
/** | ||
* One column layout class. | ||
*/ | ||
class OneColumnFilters extends LayoutDefault { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters