@moreonion/foundist 3.4.0-beta → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/package.json +19 -17
  2. package/src/html/basic-action-page-cover-1col-with-headline.html +14 -12
  3. package/src/html/basic-action-page-cover-1col.html +9 -7
  4. package/src/html/basic-action-page-cover-2col-reversed.html +9 -7
  5. package/src/html/basic-action-page-cover-2col-with-headline.html +13 -11
  6. package/src/html/basic-action-page-cover-2col.html +9 -7
  7. package/src/html/basic-action-page-cover-banner-with-headline.html +13 -11
  8. package/src/html/basic-action-page-cover-banner.html +9 -7
  9. package/src/html/basic-action-page-reversed.html +7 -5
  10. package/src/html/basic-action-page-with-banner-and-headline.html +13 -11
  11. package/src/html/basic-action-page-with-banner-reversed.html +9 -7
  12. package/src/html/basic-action-page-with-banner.html +9 -7
  13. package/src/html/basic-action-page-with-callouts.html +7 -5
  14. package/src/html/basic-action-page.html +7 -5
  15. package/src/html/donation-action-page.html +6 -4
  16. package/src/html/e2t-action-page.html +7 -5
  17. package/src/html/includes/language-switcher.html +1 -2
  18. package/src/html/includes/letter.html +1 -1
  19. package/src/html/includes/menu-responsive.html +17 -0
  20. package/src/html/includes/menu.html +7 -5
  21. package/src/html/includes/section-1col.html +1 -1
  22. package/src/html/includes/section-2col.html +1 -1
  23. package/src/html/includes/section-quote.html +1 -1
  24. package/src/html/includes/section-slideshow.html +3 -3
  25. package/src/html/includes/teasers.html +1 -1
  26. package/src/html/index.html +58 -0
  27. package/src/html/login-page.html +4 -2
  28. package/src/html/signup-action-page.html +6 -4
  29. package/src/html/snippets-demo.html +13 -7
  30. package/src/html/teaser-page.html +5 -3
  31. package/src/html/templates/action-page-cover-banner.html +1 -1
  32. package/src/html/templates/action-page-reversed.html +1 -1
  33. package/src/html/templates/action-page.html +2 -2
  34. package/src/html/templates/page.html +3 -0
  35. package/src/html/thank-you-page-cover-1col-with-headline.html +10 -8
  36. package/src/html/thank-you-page-cover-1col.html +6 -4
  37. package/src/html/thank-you-page-cover-2col-with-headline.html +11 -9
  38. package/src/html/thank-you-page-cover-2col.html +7 -5
  39. package/src/html/thank-you-page-cover-banner-with-headline.html +10 -8
  40. package/src/html/thank-you-page-cover-banner.html +6 -4
  41. package/src/html/thank-you-page-with-banner-and-headline.html +10 -8
  42. package/src/html/thank-you-page-with-banner.html +6 -4
  43. package/src/html/thank-you-page.html +6 -4
  44. package/src/html/typography-static-page.html +6 -4
  45. package/src/scss/components/_accordion.scss +2 -1
  46. package/src/scss/components/_headline.scss +1 -0
  47. package/src/scss/components/_menu.scss +19 -3
  48. package/src/scss/components/_mobile-menu.scss +153 -0
  49. package/src/scss/components/_quote.scss +23 -20
  50. package/src/scss/components/_settings.scss +4 -2
  51. package/src/scss/components/_sticky-button.scss +2 -1
  52. package/src/scss/components/_top-bar.scss +35 -0
  53. package/src/scss/form/_paymethod-select-button.scss +18 -13
  54. package/src/scss/layout/_backgrounds.scss +9 -3
  55. package/src/scss/layout/_cover-banner.scss +6 -0
  56. package/src/scss/layout/_cover.scss +6 -0
  57. package/src/scss/main.scss +2 -1
  58. package/src/scss/typography/_elements.scss +1 -0
  59. package/src/html/dev-index.html +0 -58
@@ -1,4 +1,6 @@
1
- {% extends "src/html/templates/share-page.html" %}
1
+ {% import "_globals.html" as settings %}
2
+
3
+ {% extends settings.html_path + "/templates/share-page.html" %}
2
4
 
3
5
  {% set layout = "banner" %}
4
6
 
@@ -7,7 +9,7 @@
7
9
  {% block page_title %}Thank you for taking action. You’re awesome!{% endblock %}
8
10
 
9
11
  {% block banner %}
10
- <img src="http://placekitten.com/1600/735" alt="test image with cats" crossorigin="">
12
+ <img src="https://loremflickr.com/1600/735/cat" alt="test image with cats" crossorigin="">
11
13
  {% endblock %}
12
14
 
13
15
  {% block headline %}
@@ -19,16 +21,16 @@
19
21
  {% endblock %}
20
22
 
21
23
  {% block content_bottom %}
22
- {% include "src/html/includes/share-buttons.html" %}
24
+ {% include settings.html_path + "/includes/share-buttons.html" %}
23
25
  {% endblock %}
24
26
 
25
27
  {% block bottom %}
26
- {% include "src/html/includes/section-2col.html" %}
27
- {% include "src/html/includes/section-2col.html" %}
28
- {% include "src/html/includes/section-quote.html" %}
29
- {% include "src/html/includes/section-1col.html" %}
28
+ {% include settings.html_path + "/includes/section-2col.html" %}
29
+ {% include settings.html_path + "/includes/section-2col.html" %}
30
+ {% include settings.html_path + "/includes/section-quote.html" %}
31
+ {% include settings.html_path + "/includes/section-1col.html" %}
30
32
  {% endblock %}
31
33
 
32
34
  {% block footer %}
33
- {% include "src/html/includes/menu.html" %}
35
+ {% include settings.html_path + "/includes/menu.html" %}
34
36
  {% endblock %}
@@ -1,11 +1,13 @@
1
- {% extends "src/html/templates/share-page.html" %}
1
+ {% import "_globals.html" as settings %}
2
+
3
+ {% extends settings.html_path + "/templates/share-page.html" %}
2
4
 
3
5
  {% set layout = "banner" %}
4
6
 
5
7
  {% block page_title %}Thank you for taking action. You’re awesome!{% endblock %}
6
8
 
7
9
  {% block banner %}
8
- <img src="http://placekitten.com/1600/735" alt="test image with cats" crossorigin="">
10
+ <img src="https://loremflickr.com/1600/735/cat" alt="test image with cats" crossorigin="">
9
11
  {% endblock %}
10
12
 
11
13
  {% block content %}
@@ -13,9 +15,9 @@
13
15
  {% endblock %}
14
16
 
15
17
  {% block content_bottom %}
16
- {% include "src/html/includes/share-buttons.html" %}
18
+ {% include settings.html_path + "/includes/share-buttons.html" %}
17
19
  {% endblock %}
18
20
 
19
21
  {% block footer %}
20
- {% include "src/html/includes/menu.html" %}
22
+ {% include settings.html_path + "/includes/menu.html" %}
21
23
  {% endblock %}
@@ -1,4 +1,6 @@
1
- {% extends "src/html/templates/page.html" %}
1
+ {% import "_globals.html" as settings %}
2
+
3
+ {% extends settings.html_path + "/templates/page.html" %}
2
4
 
3
5
  {% set layout = "default" %}
4
6
 
@@ -6,7 +8,7 @@
6
8
 
7
9
  {% block content_top %}
8
10
  <div class="media-stretch">
9
- <img src="http://placekitten.com/625/400" alt="test image with cats" crossorigin="">
11
+ <img src="https://loremflickr.com/625/400/cat" alt="test image with cats" crossorigin="">
10
12
  </div>
11
13
  {% endblock %}
12
14
 
@@ -16,9 +18,9 @@
16
18
  {% endblock %}
17
19
 
18
20
  {% block content_bottom %}
19
- {% include "src/html/includes/share-buttons.html" %}
21
+ {% include settings.html_path + "/includes/share-buttons.html" %}
20
22
  {% endblock %}
21
23
 
22
24
  {% block footer %}
23
- {% include "src/html/includes/overlay.html" %}
25
+ {% include settings.html_path + "/includes/overlay.html" %}
24
26
  {% endblock %}
@@ -1,14 +1,16 @@
1
- {% extends "src/html/templates/page.html" %}
1
+ {% import "_globals.html" as settings %}
2
+
3
+ {% extends settings.html_path + "/templates/page.html" %}
2
4
 
3
5
  {% block page_title %}This is the main headline{% endblock %}
4
6
 
5
7
  {% block top %}
6
- <p>Experiences short bursts of poo-phoria after going to the loo chirp at birds, destroy the blinds. Spend all night ensuring people don't sleep sleep all day climb leg, so i show my fluffy belly but it's a trap! if you pet it i will tear up your hand yet steal the warm chair right after you get up get video posted to internet for chasing red dot.</p><p>Texts have been generated on <a href="http://www.catipsum.com/">Cat Ipsum</a>, images provided by <a href="http://placekitten.com/">placekitten</a>.</p>
8
+ <p>Experiences short bursts of poo-phoria after going to the loo chirp at birds, destroy the blinds. Spend all night ensuring people don't sleep sleep all day climb leg, so i show my fluffy belly but it's a trap! if you pet it i will tear up your hand yet steal the warm chair right after you get up get video posted to internet for chasing red dot.</p><p>Texts have been generated on <a href="http://www.catipsum.com/">Cat Ipsum</a>, images provided by <a href="https://loremflickr.com/">LoremFlickr</a>.</p>
7
9
  {% endblock %}
8
10
 
9
11
  {% block content_top %}
10
12
  <div class="media-stretch">
11
- <img src="http://placekitten.com/800/400" alt="test image with cats" crossorigin="">
13
+ <img src="https://loremflickr.com/800/400/cat" alt="test image with cats" crossorigin="">
12
14
  </div>
13
15
  {% endblock %}
14
16
 
@@ -24,7 +26,7 @@
24
26
  <blockquote>
25
27
  <p>Mark territory peer out window, chatter at birds, lure them to mouth vommit food and eat it again. Crusty butthole need to chase tail licks paws sit in box make meme, make cute face.</p>
26
28
  <footer>
27
- <img src="http://placekitten.com/150/150" alt="test image with cats" crossorigin="">
29
+ <img src="https://loremflickr.com/150/150/cat" alt="test image with cats" crossorigin="">
28
30
  <div>
29
31
  <span class="blockquote-source">Famous Cat</span>
30
32
  <span>CEO of mysterious cat organisation</span>
@@ -17,7 +17,6 @@
17
17
 
18
18
  // Triangle to signal a dropdown
19
19
  &:before {
20
- @include background-triangle($accordion-triangle-color);
21
20
  width: $accordion-triangle-size;
22
21
  height: $accordion-triangle-size;
23
22
  background-size: $accordion-triangle-size;
@@ -30,6 +29,8 @@
30
29
  left: rem-calc(get-side($accordion-item-padding, left));
31
30
  // The triangle is vertically centered in the title
32
31
  top: calc(50% - #{$accordion-triangle-size * 0.5});
32
+
33
+ @include background-triangle($accordion-triangle-color);
33
34
  }
34
35
  .is-active & {
35
36
  &:before {
@@ -36,6 +36,7 @@ $headline-color: color-pick-contrast(
36
36
 
37
37
  #headline {
38
38
  color: $headline-color;
39
+ text-wrap: balance;
39
40
  align-self: end;
40
41
 
41
42
  #{$text-tags} {
@@ -2,6 +2,13 @@
2
2
  // - - - - - - - - - - - - - - -
3
3
  // Custom overrides for menu components
4
4
 
5
+ // Additional variables for fancy underlines
6
+ $menu-item-decoration-active: underline $secondary-color !default;
7
+ $menu-item-underline-position: under !default;
8
+ $menu-item-underline-offset: 0 !default;
9
+ // Including thickness in text-decoration shorthand is not yet supported by Safari.
10
+ $menu-item-decoration-thickness: 15% !default;
11
+
5
12
  // General menu styles
6
13
  // -------------------
7
14
 
@@ -15,13 +22,21 @@
15
22
  a {
16
23
  color: $menu-item-color;
17
24
  line-height: inherit;
25
+ text-underline-position: $menu-item-underline-position;
26
+ text-underline-offset: $menu-item-underline-offset;
18
27
 
19
28
  &:hover {
20
29
  color: $menu-item-color-hover;
21
30
  text-decoration: $menu-item-decoration-hover;
31
+ text-decoration-thickness: $menu-item-decoration-thickness;
22
32
  }
23
33
  }
24
34
 
35
+ .is-active > a {
36
+ text-decoration: $menu-item-decoration-active;
37
+ text-decoration-thickness: $menu-item-decoration-thickness;
38
+ }
39
+
25
40
  .menu-text {
26
41
  color: $menu-text-color;
27
42
  font-weight: $menu-text-font-weight;
@@ -62,9 +77,9 @@ $dropdown-menu-parent-border-radius: $select-radius !default;
62
77
  }
63
78
  }
64
79
 
65
- // Reduced padding on small screens
80
+ // Reduced padding on small screens if not in mobile-menu
66
81
  @include breakpoint(small down) {
67
- > li > a {
82
+ &:where(:not(.mobile-menu &)) > li > a {
68
83
  padding: {
69
84
  top: get-side($dropdownmenu-padding, top) * 0.5;
70
85
  right: get-side($dropdownmenu-padding, right) * 0.5;
@@ -137,7 +152,6 @@ $dropdown-menu-parent-border-radius: $select-radius !default;
137
152
  @if $dropdownmenu-arrows {
138
153
  // Replace CSS arrow with SVG arrow to match selects.
139
154
  > li.is-dropdown-submenu-parent > a:after {
140
- @include background-triangle($dropdownmenu-arrow-color);
141
155
  background-repeat: no-repeat;
142
156
  background-size: $dropdownmenu-arrow-size;
143
157
  background-position: center;
@@ -145,6 +159,8 @@ $dropdown-menu-parent-border-radius: $select-radius !default;
145
159
  width: $dropdownmenu-arrow-size;
146
160
  height: $dropdownmenu-arrow-size;
147
161
  #{$global-right}: get-side($dropdownmenu-padding, $global-right);
162
+
163
+ @include background-triangle($dropdownmenu-arrow-color);
148
164
  }
149
165
 
150
166
  @include breakpoint(small down) {
@@ -0,0 +1,153 @@
1
+ // Mobile menu
2
+ // - - - - - - - - - - - - - - -
3
+ // Turn a menu wrapper into a mobile menu at a certain breakpoint
4
+
5
+ @use "sass:color";
6
+ @use "sass:meta";
7
+
8
+ // Mobile menu
9
+ $mobile-menu-breakpoint: medium down !default;
10
+ $mobile-menu-background: $header-background !default;
11
+ $mobile-menu-padding: (3 * $global-margin) (1.5 * $global-margin) !default;
12
+ $mobile-menu-max-width: 22rem !default;
13
+ $mobile-menu-boxshadow: 0 0 rem-calc(3) color.scale($black, $alpha: -75%) !default;
14
+ $mobile-menu-align-content: flex-start !default;
15
+
16
+ // Mobile menu items
17
+ $mobile-menu-item-font-size: $large-font-size !default;
18
+ $mobile-menu-item-line-height: if(
19
+ $mobile-menu-item-font-size == $large-font-size,
20
+ $large-lineheight,
21
+ grid-lineheight($mobile-menu-item-font-size)
22
+ ) !default;
23
+ $mobile-menu-item-font-weight: $global-weight-bold !default;
24
+ $mobile-menu-item-color: $menu-item-color !default;
25
+ $mobile-menu-item-color-hover: if(
26
+ $mobile-menu-item-color == $menu-item-color,
27
+ $menu-item-color-hover,
28
+ $mobile-menu-item-color
29
+ ) !default;
30
+ $mobile-menu-item-decoration-hover: $menu-item-decoration-hover !default;
31
+ $mobile-menu-text-color: if(
32
+ $mobile-menu-item-color == $menu-item-color,
33
+ $menu-text-color,
34
+ $mobile-menu-text-color
35
+ ) !default;
36
+ $mobile-menu-text-font-weight: $mobile-menu-item-font-weight !default;
37
+
38
+ // Mobile menu icon
39
+ $mobile-menu-icon-color: color-pick-contrast(
40
+ get-background-color($header-background),
41
+ ($body-font-color, $body-font-color-alt)
42
+ ) !default;
43
+ $mobile-menu-icon-color-hover: $mobile-menu-icon-color !default;
44
+ $mobile-menu-icon-height: rem-calc($base-line-height) !default;
45
+ $mobile-menu-icon-width: 1.25 * $mobile-menu-icon-height !default;
46
+ $mobile-menu-icon-weight: rem-calc(0.125 * $base-line-height) !default;
47
+
48
+ .mobile-menu-toggle,
49
+ .mobile-menu .close-button {
50
+ display: none;
51
+ }
52
+
53
+ .mobile-menu-toggle {
54
+ text-align: #{$global-right};
55
+ padding-top: 0.5 * $global-padding;
56
+ padding-bottom: 0.5 * $global-padding;
57
+
58
+ .menu-icon {
59
+ @include hamburger(
60
+ $color: $mobile-menu-icon-color,
61
+ $color-hover: $mobile-menu-icon-color-hover,
62
+ $height: $mobile-menu-icon-height,
63
+ $width: $mobile-menu-icon-width,
64
+ $weight: $mobile-menu-icon-weight
65
+ );
66
+ }
67
+ }
68
+
69
+ .mobile-menu {
70
+ @extend .small-add-container-padding;
71
+ }
72
+
73
+ @include breakpoint($mobile-menu-breakpoint) {
74
+ .mobile-menu-toggle {
75
+ display: block;
76
+ }
77
+
78
+ .mobile-menu {
79
+ position: fixed;
80
+ top: 0;
81
+ bottom: 0;
82
+ #{$global-right}: 0;
83
+ width: 100%;
84
+ max-width: $mobile-menu-max-width;
85
+ background: $header-background;
86
+ padding: $mobile-menu-padding;
87
+ overflow: auto;
88
+ z-index: 10;
89
+
90
+ &:not(.open) {
91
+ transform: translateX(100%);
92
+ }
93
+
94
+ &.open,
95
+ &:not(.open):focus-within {
96
+ transition: 250ms transform ease-in-out;
97
+ box-shadow: $mobile-menu-boxshadow;
98
+ transform: none;
99
+ }
100
+
101
+ .menu {
102
+ flex-direction: column;
103
+ align-content: $mobile-menu-align-content;
104
+ margin-bottom: $global-margin;
105
+ }
106
+
107
+ .menu:not(.dropdown, .submenu) {
108
+ font-size: $mobile-menu-item-font-size;
109
+ line-height: $mobile-menu-item-line-height;
110
+ font-weight: $mobile-menu-item-font-weight;
111
+
112
+ a {
113
+ color: $mobile-menu-item-color;
114
+
115
+ &:hover {
116
+ color: $mobile-menu-item-color-hover;
117
+ text-decoration: $mobile-menu-item-decoration-hover;
118
+ text-decoration-thickness: $menu-item-decoration-thickness;
119
+ }
120
+ }
121
+
122
+ .is-active > a {
123
+ text-decoration: $menu-item-decoration-active;
124
+ text-decoration-thickness: $menu-item-decoration-thickness;
125
+ }
126
+
127
+ .menu-text {
128
+ color: $mobile-menu-text-color;
129
+ font-weight: $mobile-menu-text-font-weight;
130
+ }
131
+ }
132
+
133
+ // Align language switcher with menu items.
134
+ @if (meta.type-of($dropdown-menu-parent-border-width) == number) and
135
+ ($dropdown-menu-parent-border-width > 0)
136
+ {
137
+ .dropdown.menu {
138
+ &.vertical,
139
+ &:not(.vertical) {
140
+ .is-dropdown-submenu-parent {
141
+ margin-#{$global-left}: get-side($menu-items-padding, $global-left);
142
+ }
143
+ }
144
+ }
145
+ }
146
+
147
+ .close-button {
148
+ display: block;
149
+ top: $global-padding;
150
+ #{$global-right}: $global-padding;
151
+ }
152
+ }
153
+ }
@@ -9,31 +9,34 @@ $blockquote-section-line-height: grid-lineheight($blockquote-section-font-size)
9
9
  $blockquote-source-font-weight: $global-weight-bold !default;
10
10
 
11
11
  // Basic blockquote layout.
12
- blockquote p,
13
- blockquote img {
14
- padding: 0;
15
- }
12
+ blockquote {
13
+ text-wrap: balance;
16
14
 
17
- .blockquote-image img,
18
- blockquote img {
19
- border-radius: $blockquote-image-border-radius;
20
- }
15
+ p {
16
+ padding: 0;
17
+ }
21
18
 
22
- blockquote footer {
23
- @extend .cite-block;
24
- display: flex;
25
- align-items: center;
26
- }
19
+ footer {
20
+ @extend .cite-block;
21
+ display: flex;
22
+ align-items: center;
23
+ }
24
+
25
+ .blockquote-source {
26
+ font-weight: $blockquote-source-font-weight;
27
+ display: block;
28
+ }
27
29
 
28
- blockquote .blockquote-source {
29
- font-weight: $blockquote-source-font-weight;
30
- display: block;
30
+ // Give images in content quotes some breathing space.
31
+ img {
32
+ margin-#{$global-right}: $global-margin;
33
+ max-width: $blockquote-image-max-width;
34
+ }
31
35
  }
32
36
 
33
- // Give images in content quotes some breathing space.
34
- blockquote img {
35
- margin-#{$global-right}: $global-margin;
36
- max-width: $blockquote-image-max-width;
37
+ blockquote img,
38
+ .blockquote-image img {
39
+ border-radius: $blockquote-image-border-radius;
37
40
  }
38
41
 
39
42
  // Quote sections.
@@ -26,7 +26,7 @@ $recent-supporter-color: color-pick-contrast(
26
26
  ) !default;
27
27
  $recent-supporter-time-color: $muted-font-color !default;
28
28
  $recent-supporter-border-color: if(
29
- color.lightness(get-background-color($body-background)) < 50,
29
+ color.channel(get-background-color($body-background), "lightness", $space: hsl) < 50,
30
30
  $dark-gray,
31
31
  $light-gray
32
32
  ) !default;
@@ -84,8 +84,10 @@ $menu-item-font-weight: $global-weight-normal !default;
84
84
  $menu-item-color: inherit !default;
85
85
  $menu-item-color-hover: $menu-item-color !default;
86
86
  $menu-item-decoration-hover: underline !default;
87
+ $menu-item-background-active: rgba(get-background-color($header-background), 0) !default;
87
88
  $menu-text-color: $menu-item-color !default;
88
89
  $menu-text-font-weight: $menu-item-font-weight !default;
90
+ $menu-items-padding: rem-calc($base-line-height * 0.5 $base-line-height * 0.75) !default;
89
91
  $menu-state-back-compat: false !default;
90
92
 
91
93
  // Dropdown menu
@@ -149,7 +151,7 @@ $accordion-triangle-color: get-color(primary) !default;
149
151
  $accordion-triangle-size: rem-calc($base-font-size) !default;
150
152
 
151
153
  // Reveal
152
- $reveal-overlay-background: rgba($fallback-background, 0.9) !default;
154
+ $reveal-overlay-background: rgba(get-background-color($fallback-background), 0.9) !default;
153
155
  $reveal-background: $form-background !default;
154
156
  $reveal-padding: $form-padding !default;
155
157
  $reveal-border: $form-border !default;
@@ -10,13 +10,14 @@ $sticky-cta-boxshadow: 0 0 rem-calc(3) color.scale($black, $alpha: -75%) !defaul
10
10
  $sticky-button-max-width: $button-max-width !default;
11
11
 
12
12
  .sticky-cta {
13
- @include sticky-button;
14
13
  background: $sticky-cta-background;
15
14
  box-shadow: $sticky-cta-boxshadow;
16
15
  padding: $global-padding * 0.5;
17
16
  padding-left: get-side($form-padding, left);
18
17
  padding-right: get-side($form-padding, right);
19
18
 
19
+ @include sticky-button;
20
+
20
21
  .button {
21
22
  max-width: $sticky-button-max-width;
22
23
  margin-left: auto;
@@ -2,8 +2,43 @@
2
2
  // - - - - - - - - - - - - - - -
3
3
  // Custom overrides for the top-bar component
4
4
 
5
+ $topbar-inner-justify: space-between !default;
6
+
5
7
  // Display multiple items next to each other.
6
8
  .top-bar-left,
7
9
  .top-bar-right {
8
10
  display: flex;
11
+ column-gap: get-side($menu-items-padding, $global-left);
12
+ justify-content: $topbar-inner-justify;
13
+ align-items: center;
14
+ }
15
+
16
+ // Make sure a single menu aligns right with space-between.
17
+ @if $topbar-inner-justify == space-between {
18
+ .top-bar-right > nav:first-of-type:last-of-type {
19
+ margin-#{$global-left}: auto;
20
+ }
21
+ }
22
+
23
+ .top-bar {
24
+ // Switch sides for flex grow.
25
+ .top-bar-left {
26
+ flex-grow: 0;
27
+ }
28
+ .top-bar-right {
29
+ flex-grow: 1;
30
+ }
31
+
32
+ // Fixes for mobile menu.
33
+ .mobile-menu-toggle {
34
+ flex: 1 1 auto;
35
+ }
36
+ .mobile-menu {
37
+ @extend .top-bar-right;
38
+
39
+ @include breakpoint($mobile-menu-breakpoint) {
40
+ display: block;
41
+ max-width: $mobile-menu-max-width;
42
+ }
43
+ }
9
44
  }
@@ -7,6 +7,8 @@
7
7
  // These radio buttons do not have a checked state, only normal and hover.
8
8
  // They work only as selection menu, no need to highlight the checked button.
9
9
 
10
+ // stylelint-disable no-duplicate-selectors
11
+
10
12
  $paymethod-select-border-color: $input-border-color !default;
11
13
  $paymethod-select-border-color-hover: $input-border-color-focus !default;
12
14
  $paymethod-select-border-radius: $button-radius !default;
@@ -24,24 +26,25 @@ $paymethod-select-border-width: $input-border-width !default;
24
26
  @include button-base;
25
27
  @include button-expand;
26
28
 
27
- border-radius: $paymethod-select-border-radius;
28
- text-align: left;
29
- font-size: $form-label-font-size;
30
- line-height: $form-label-line-height;
31
- // The padding between text and triangle is increased by the triangle size
32
- // (see also the positioning of the triangle below)
33
- padding-left: rem-calc(get-side($button-padding, left)) + $select-triangle-size;
34
- margin-bottom: $form-spacing * 2;
29
+ & {
30
+ border-radius: $paymethod-select-border-radius;
31
+ text-align: left;
32
+ font-size: $form-label-font-size;
33
+ line-height: $form-label-line-height;
34
+ // The padding between text and triangle is increased by the triangle size
35
+ // (see also the positioning of the triangle below)
36
+ padding-left: rem-calc(get-side($button-padding, left)) + $select-triangle-size;
37
+ margin-bottom: $form-spacing * 2;
35
38
 
36
- // Default state
37
- border: $paymethod-select-border-width solid $paymethod-select-border-color;
38
- background-color: $paymethod-select-background-color;
39
- color: $paymethod-select-text-color;
39
+ // Default state
40
+ border: $paymethod-select-border-width solid $paymethod-select-border-color;
41
+ background-color: $paymethod-select-background-color;
42
+ color: $paymethod-select-text-color;
43
+ }
40
44
 
41
45
  // Triangle to signify a slide menu
42
46
  // This also override any mo-radio pseudo input (if there is one)
43
47
  &:before {
44
- @include background-triangle($paymethod-select-triangle-color);
45
48
  background-repeat: no-repeat;
46
49
  background-size: $select-triangle-size;
47
50
  background-position: center;
@@ -55,6 +58,8 @@ $paymethod-select-border-width: $input-border-width !default;
55
58
  transform: rotate(-90deg);
56
59
  position: relative;
57
60
  left: -$select-triangle-size;
61
+
62
+ @include background-triangle($paymethod-select-triangle-color);
58
63
  }
59
64
 
60
65
  // These buttons are a bit tighter together
@@ -1,10 +1,13 @@
1
1
  // Backgrounds
2
2
  // - - - - - - - - - - - - - - -
3
3
 
4
+ @use "sass:list";
5
+
4
6
  #header {
5
7
  background: $header-background;
6
8
 
7
- @if $body-background != $header-background and not index((transparent, none), $header-background)
9
+ @if ($body-background != $header-background) and not
10
+ list.index((transparent, none), $header-background)
8
11
  {
9
12
  @include match-colors($header-background);
10
13
  }
@@ -13,7 +16,9 @@
13
16
  #form-outer {
14
17
  background: $form-background;
15
18
 
16
- @if $body-background != $form-background and not index((transparent, none), $form-background) {
19
+ @if ($body-background != $form-background) and not
20
+ list.index((transparent, none), $form-background)
21
+ {
17
22
  @include match-colors($form-background);
18
23
  }
19
24
  }
@@ -21,7 +26,8 @@
21
26
  #footer {
22
27
  background: $footer-background;
23
28
 
24
- @if $body-background != $footer-background and not index((transparent, none), $footer-background)
29
+ @if ($body-background != $footer-background) and not
30
+ list.index((transparent, none), $footer-background)
25
31
  {
26
32
  @include match-colors($footer-background);
27
33
  }
@@ -69,6 +69,12 @@ $cover-banner-min-height: 66vh !default;
69
69
 
70
70
  // Displaying a big headline on small/medium screens.
71
71
  .cover-banner-layout.with-headline {
72
+ @include breakpoint(small down) {
73
+ #background img {
74
+ max-height: none;
75
+ mask-image: none;
76
+ }
77
+ }
72
78
  @include breakpoint(medium down) {
73
79
  #background ~ #banner-content {
74
80
  padding-top: 0;
@@ -65,6 +65,12 @@ $cover-2col-offset: min(55vh, 85vw) !default;
65
65
  width: 100%;
66
66
  height: 100%;
67
67
  object-fit: cover;
68
+
69
+ // Cut off image with a fade out on small screens.
70
+ @include breakpoint(small down) {
71
+ max-height: 150vw;
72
+ mask-image: linear-gradient(#000 70%, #000, transparent);
73
+ }
68
74
  }
69
75
 
70
76
  // Remove title padding
@@ -111,9 +111,10 @@
111
111
  @import "form/form-steps";
112
112
 
113
113
  @import "components/accordion";
114
- @import "components/top-bar";
115
114
  @import "components/footer";
116
115
  @import "components/menu";
116
+ @import "components/mobile-menu";
117
+ @import "components/top-bar";
117
118
  @import "components/callout";
118
119
  @import "components/headline";
119
120
  @import "components/share-button";
@@ -41,4 +41,5 @@ h6,
41
41
  #page-title {
42
42
  color: $title-color;
43
43
  padding-top: 0.75 * $global-padding;
44
+ text-wrap: balance;
44
45
  }