Skip to content

Commit

Permalink
Merge pull request #20 from CuBoulder/issue/563
Browse files Browse the repository at this point in the history
Fixed Frame and Overlay
  • Loading branch information
jcsparks authored and web-flow committed Dec 11, 2023
2 parents 0ff9a8d + a023e14 commit 93dacf3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Fixed Frame and Overlay
Fixed framing for single column rows (the frame wasn't showing on single column rows)
- test this by adding a content frame

Added a new default for overlay classes. (caused css issues)
- This one is harder to actually see the results of because nothing should happen when you select overlays without images

Closes #21
---

- ### Update LayoutBase.php
Added an else statement to apply padding to section even when background images aren't used

Expand Down
4 changes: 3 additions & 1 deletion layouts/four-column/layout--four-column.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
{% if settings.background_image_styles %}
{% if settings.overlay_color == 'black' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-dark" %}
{% else %}
{% elseif settings.overlay_color == 'white' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-light" %}
{% else %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-none" %}
{% endif %}
{% else %}
{% set row_overlay_settings = "" %}
Expand Down
6 changes: 4 additions & 2 deletions layouts/one-column/layout--one-column.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
{% if settings.background_image_styles %}
{% if settings.overlay_color == 'black' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-dark" %}
{% else %}
{% elseif settings.overlay_color == 'white' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-light" %}
{% else %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-none" %}
{% endif %}
{% else %}
{% set row_overlay_settings = "" %}
Expand Down Expand Up @@ -73,7 +75,7 @@ jarallax(document.querySelectorAll('.jarallax'), {speed: 0.2});
{% else %}
<div class="ucb-edge-to-edge">
{% endif %}
<div{{attributes.addClass(row_classes,frame_classes|join(''))}}>
<div{{attributes.addClass(row_classes,frame_classes|join(' '))}}>
<div {{ region_attributes.first.addClass('column', 'column--first', 'col-12') }}>
{{ content.first }}
</div>
Expand Down
4 changes: 3 additions & 1 deletion layouts/three-column/layout--three-column.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
{% if settings.background_image_styles %}
{% if settings.overlay_color == 'black' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-dark" %}
{% else %}
{% elseif settings.overlay_color == 'white' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-light" %}
{% else %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-none" %}
{% endif %}
{% else %}
{% set row_overlay_settings = "" %}
Expand Down
4 changes: 3 additions & 1 deletion layouts/two-column/layout--two-column.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
{% if settings.background_image_styles %}
{% if settings.overlay_color == 'black' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-dark" %}
{% else %}
{% elseif settings.overlay_color == 'white' %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-light" %}
{% else %}
{% set row_overlay_settings = "ucb-bootstrap-layout-section-overlay-none" %}
{% endif %}
{% else %}
{% set row_overlay_settings = "" %}
Expand Down

0 comments on commit 93dacf3

Please sign in to comment.