Skip to content

Commit 6edabf2

Browse files
authored
IRSR24-32 | @jdwjdwjdw | Add padding-bottom none section variant (#17)
* Add padding-bottom none section variant * Fixup * Update version
1 parent 293bfc0 commit 6edabf2

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

dist/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ppo_irsr_subtheme.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: IRSR Subtheme
22
type: theme
33
description: 'IRSR Subtheme.'
44
package: Stanford
5-
version: 1.4.1
5+
version: 1.4.2
66
core_version_requirement: ^9 || ^10
77
base theme: stanford_basic
88
libraries:

ppo_irsr_subtheme.react_behaviors.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ layout_variant_info:
6666
options:
6767
irsr-section-color--foggy: Fog
6868
irsr-section-color--foggy-light: Light Fog
69+
padding_bottom:
70+
type: select
71+
title: Section padding bottom
72+
description: Choose the section padding bottom.
73+
empty_option: Default
74+
options:
75+
irsr-section-pb-none: None
6976

7077
lists_variant_info:
7178
id: lists_style

ppo_irsr_subtheme.theme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function ppo_irsr_subtheme_preprocess_paragraph__stanford_layout(array &$variabl
119119
$paragraph = &$variables['paragraph'];
120120
$existing_classes = $variables['attributes']['class'] ?? [];
121121
$extra_classes = [
122+
$paragraph->getBehaviorSetting('react_paragraphs:layout_variant_info', 'padding_bottom'),
122123
$paragraph->getBehaviorSetting('react_paragraphs:layout_variant_info', 'section_color'),
123124
];
124125
$variables['attributes']['class'] = array_merge($existing_classes, $extra_classes);

src/scss/components/layout/_layout.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
left: 100%;
3434
}
3535
}
36+
37+
&.irsr-section-pb-none {
38+
padding-bottom: 0;
39+
}
3640

3741
&.irsr-section-color--foggy {
3842
background-color: $su-color-foggy;

0 commit comments

Comments
 (0)