@moreonion/foundist 3.0.0 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moreonion/foundist",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Foundation based default theme for Impact Stack landing pages.",
5
5
  "author": "More Onion <kontakt@more-onion.at>",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "prepare": "husky install"
27
27
  },
28
28
  "dependencies": {
29
- "@moreonion/foundation-base": "^3.0.0",
29
+ "@moreonion/foundation-base": "^3.0.1",
30
30
  "vite-plugin-nunjucks": "^0.1.10"
31
31
  },
32
32
  "lint-staged": {
@@ -0,0 +1,54 @@
1
+ {% extends "src/html/templates/action-page-cover-1col.html" %}
2
+
3
+ {% set layout = "cover-1col" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Take action now!{% endblock %}
8
+
9
+ {% block background %}
10
+ <img src="http://placekitten.com/1280/588" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>Cats love huge display headlines<br>Meouw!</p>
15
+ {% endblock %}
16
+
17
+ {% block top %}
18
+ <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
19
+ {% endblock %}
20
+
21
+ {% block form_intro %}
22
+ <h2>Signup now!</h2>
23
+ <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
24
+ {% endblock %}
25
+
26
+ {% block progress_bar %}
27
+ {% include "src/html/includes/pgbar.html" %}
28
+ {% endblock %}
29
+
30
+ {% block form %}
31
+ {% include "src/html/includes/basic-form.html" %}
32
+ {% endblock %}
33
+
34
+ {% block recent_supporters %}
35
+ {% include "src/html/includes/recent-supporters.html" %}
36
+ {% endblock %}
37
+
38
+ {% block content_top %}
39
+ <div class="media-stretch">
40
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
41
+ </div>
42
+ {% endblock %}
43
+
44
+ {% block content %}
45
+ <h2>Cougar British shorthair turkish angora</h2>
46
+ <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
47
+ <p>A very wise cat once said:</p>
48
+ <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
49
+ <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
50
+ {% endblock %}
51
+
52
+ {% block footer %}
53
+ {% include "src/html/includes/menu.html" %}
54
+ {% endblock %}
@@ -0,0 +1,54 @@
1
+ {% extends "src/html/templates/action-page.html" %}
2
+
3
+ {% set layout = "cover-2col" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Take action now!{% endblock %}
8
+
9
+ {% block background %}
10
+ <img src="http://placekitten.com/1600/1000" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>Cats love huge display headlines<br>Meouw!</p>
15
+ {% endblock %}
16
+
17
+ {% block top %}
18
+ <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
19
+ {% endblock %}
20
+
21
+ {% block form_intro %}
22
+ <h2>Signup now!</h2>
23
+ <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
24
+ {% endblock %}
25
+
26
+ {% block progress_bar %}
27
+ {% include "src/html/includes/pgbar.html" %}
28
+ {% endblock %}
29
+
30
+ {% block form %}
31
+ {% include "src/html/includes/basic-form.html" %}
32
+ {% endblock %}
33
+
34
+ {% block recent_supporters %}
35
+ {% include "src/html/includes/recent-supporters.html" %}
36
+ {% endblock %}
37
+
38
+ {% block content_top %}
39
+ <div class="media-stretch">
40
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
41
+ </div>
42
+ {% endblock %}
43
+
44
+ {% block content %}
45
+ <h2>Cougar British shorthair turkish angora</h2>
46
+ <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
47
+ <p>A very wise cat once said:</p>
48
+ <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
49
+ <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
50
+ {% endblock %}
51
+
52
+ {% block footer %}
53
+ {% include "src/html/includes/menu.html" %}
54
+ {% endblock %}
@@ -0,0 +1,54 @@
1
+ {% extends "src/html/templates/action-page-cover-banner.html" %}
2
+
3
+ {% set layout = "cover-banner" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Take action now!{% endblock %}
8
+
9
+ {% block background %}
10
+ <img src="http://placekitten.com/1280/588" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>Cats love huge display headlines<br>Meouw!</p>
15
+ {% endblock %}
16
+
17
+ {% block top %}
18
+ <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
19
+ {% endblock %}
20
+
21
+ {% block form_intro %}
22
+ <h2>Signup now!</h2>
23
+ <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
24
+ {% endblock %}
25
+
26
+ {% block progress_bar %}
27
+ {% include "src/html/includes/pgbar.html" %}
28
+ {% endblock %}
29
+
30
+ {% block form %}
31
+ {% include "src/html/includes/basic-form.html" %}
32
+ {% endblock %}
33
+
34
+ {% block recent_supporters %}
35
+ {% include "src/html/includes/recent-supporters.html" %}
36
+ {% endblock %}
37
+
38
+ {% block content_top %}
39
+ <div class="media-stretch">
40
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
41
+ </div>
42
+ {% endblock %}
43
+
44
+ {% block content %}
45
+ <h2>Cougar British shorthair turkish angora</h2>
46
+ <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
47
+ <p>A very wise cat once said:</p>
48
+ <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
49
+ <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
50
+ {% endblock %}
51
+
52
+ {% block footer %}
53
+ {% include "src/html/includes/menu.html" %}
54
+ {% endblock %}
@@ -0,0 +1,54 @@
1
+ {% extends "src/html/templates/action-page.html" %}
2
+
3
+ {% set layout = "banner" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Take action now!{% endblock %}
8
+
9
+ {% block banner %}
10
+ <img src="http://placekitten.com/1280/588" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block top %}
14
+ <p>Reward the chosen human with a slow blink. Scratch stand in front of the computer screen run off table persian cat jump eat fish. Roll on the floor purring your whiskers off cat dog hate mouse eat string barf pillow no baths hate everything.</p>
15
+ {% endblock %}
16
+
17
+ {% block headline %}
18
+ <p>Cats love huge display headlines<br>Meouw!</p>
19
+ {% endblock %}
20
+
21
+ {% block form_intro %}
22
+ <h2>Signup now!</h2>
23
+ <p>Abyssinian tiger american shorthair british shorthair puma and maine coon.</p>
24
+ {% endblock %}
25
+
26
+ {% block progress_bar %}
27
+ {% include "src/html/includes/pgbar.html" %}
28
+ {% endblock %}
29
+
30
+ {% block form %}
31
+ {% include "src/html/includes/basic-form.html" %}
32
+ {% endblock %}
33
+
34
+ {% block recent_supporters %}
35
+ {% include "src/html/includes/recent-supporters.html" %}
36
+ {% endblock %}
37
+
38
+ {% block content_top %}
39
+ <div class="media-stretch">
40
+ <img src="http://placekitten.com/860/455" alt="test image with cats" crossorigin="">
41
+ </div>
42
+ {% endblock %}
43
+
44
+ {% block content %}
45
+ <h2>Cougar British shorthair turkish angora</h2>
46
+ <p>Twitch tail in permanent irritation attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? Get my claw stuck in the dog's ear. Lick plastic bags ask to go outside and ask to come inside and ask to go outside and ask to come inside hell is other people, ignore the squirrels, you'll never catch them anyway or walk on car leaving trail of paw prints on hood and windshield.</p>
47
+ <p>A very wise cat once said:</p>
48
+ <blockquote><p>Always ensure to lay down in such a manner that tail can lightly brush human's nose sleep in the bathroom sink. Scratch catasstrophe and lick the curtain just to be annoying so your pillow is now my pet bed nya nya nyan so run up and down stairs curl up and sleep on the freshly laundered towels.</p></blockquote>
49
+ <p>Need to check on human, have not seen in an hour might be dead oh look, human is alive, hiss at human.</p>
50
+ {% endblock %}
51
+
52
+ {% block footer %}
53
+ {% include "src/html/includes/menu.html" %}
54
+ {% endblock %}
@@ -27,23 +27,31 @@
27
27
  <h4 class="h6">B: Banner image (2 columns) &ensp;<small>banner</small></h4>
28
28
  <ul class="no-bullet">
29
29
  <li><a href="src/html/basic-action-page-with-banner.html">Basic action page</a></li>
30
+ <li><a href="src/html/basic-action-page-with-banner-and-headline.html">Basic action page with headline</a></li>
30
31
  <li><a href="src/html/basic-action-page-with-banner-reversed.html">Basic action page reversed</a></li>
31
32
  <li><a href="src/html/thank-you-page-with-banner.html">Thank you page</a></li>
33
+ <li><a href="src/html/thank-you-page-with-banner-and-headline.html">Thank you page with headline</a></li>
32
34
  </ul>
33
35
  <h4 class="h6">C: Fixed background image (2 columns) &ensp;<small>cover-2col</small></h4>
34
36
  <ul class="no-bullet">
35
37
  <li><a href="src/html/basic-action-page-cover-2col.html">Basic action page</a></li>
38
+ <li><a href="src/html/basic-action-page-cover-2col-with-headline.html">Basic action page with headline</a></li>
36
39
  <li><a href="src/html/basic-action-page-cover-2col-reversed.html">Basic action page reversed</a></li>
37
40
  <li><a href="src/html/thank-you-page-cover-2col.html">Thank you page</a></li>
41
+ <li><a href="src/html/thank-you-page-cover-2col-with-headline.html">Thank you page with headline</a></li>
38
42
  </ul>
39
43
  <h4 class="h6">D: Fixed banner image (2 columns) &ensp;<small>cover-banner</small></h4>
40
44
  <ul class="no-bullet">
41
45
  <li><a href="src/html/basic-action-page-cover-banner.html">Basic action page</a></li>
46
+ <li><a href="src/html/basic-action-page-cover-banner-with-headline.html">Basic action page with headline</a></li>
42
47
  <li><a href="src/html/thank-you-page-cover-banner.html">Thank you page</a></li>
48
+ <li><a href="src/html/thank-you-page-cover-banner-with-headline.html">Thank you page with headline</a></li>
43
49
  </ul>
44
50
  <h4 class="h6">E: Fixed background image (1 column) &ensp;<small>cover-1col</small></h4>
45
51
  <ul class="no-bullet">
46
52
  <li><a href="src/html/basic-action-page-cover-1col.html">Basic action page</a></li>
53
+ <li><a href="src/html/basic-action-page-cover-1col-with-headline.html">Basic action page with headline</a></li>
47
54
  <li><a href="src/html/thank-you-page-cover-1col.html">Thank you page</a></li>
55
+ <li><a href="src/html/thank-you-page-cover-1col-with-headline.html">Thank you page with headline</a></li>
48
56
  </ul>
49
57
  {% endblock %}
@@ -2,6 +2,6 @@
2
2
 
3
3
  <form method="post" accept-charset="UTF-8" novalidate="novalidate">
4
4
  {{ input("Email address", {type: "email", id: "email", size: 60, required: "required"}) }}
5
- {{ input("Password", {type: "password", size: 60, maxlength=128, required: "required"}, "The password field is case sensitive.") }}
5
+ {{ input("Password", {type: "password", size: 60, maxlength: 128, required: "required"}, "The password field is case sensitive.") }}
6
6
  {{ button("Log in", class="expanded primary button large") }}
7
7
  </form>
@@ -6,7 +6,7 @@
6
6
 
7
7
  {% block sidebar %}
8
8
  <div id="form-outer">
9
- {% block form_intro %}{% endblock %}
9
+ <div class="intro">{% block form_intro %}{% endblock %}</div>
10
10
  {% block progress_bar %}{% endblock %}
11
11
  {% block form %}{% endblock %}
12
12
  </div>
@@ -5,10 +5,11 @@
5
5
  {% block main_container_class %}with-sidebar{% endblock %}
6
6
 
7
7
  {% block banner_content %}
8
- <div class="grid-container with sidebar">
8
+ <div class="grid-container with-sidebar">
9
+ <header id="headline">{% block headline %}{% endblock %}</header>
9
10
  <div id=form-wrapper class="flex-container align-middle">
10
11
  <div id="form-outer">
11
- {% block form_intro %}{% endblock %}
12
+ <div class="intro">{% block form_intro %}{% endblock %}</div>
12
13
  {% block progress_bar %}{% endblock %}
13
14
  {% block form %}{% endblock %}
14
15
  </div>
@@ -16,7 +17,7 @@
16
17
  </div>
17
18
  {% endblock %}
18
19
 
19
- {% block sidebar %}
20
+ {% block sidebar_bottom %}
20
21
  <div id="sidebar">
21
22
  {% block recent_supporters %}{% endblock %}
22
23
  </div>
@@ -8,7 +8,7 @@
8
8
  <div id="sidebar">
9
9
  <div id=form-wrapper class="flex-container align-middle">
10
10
  <div id="form-outer">
11
- {% block form_intro %}{% endblock %}
11
+ <div class="intro">{% block form_intro %}{% endblock %}</div>
12
12
  {% block progress_bar %}{% endblock %}
13
13
  {% block form %}{% endblock %}
14
14
  </div>
@@ -12,7 +12,7 @@
12
12
  <div id="sidebar">
13
13
  <div id=form-wrapper class="flex-container align-middle">
14
14
  <div id="form-outer">
15
- {% block form_intro %}{% endblock %}
15
+ <div class="intro">{% block form_intro %}{% endblock %}</div>
16
16
  {% block progress_bar %}{% endblock %}
17
17
  {% block form %}{% endblock %}
18
18
  </div>
@@ -20,15 +20,11 @@
20
20
  </div>
21
21
  </section>
22
22
 
23
- <section id="bottom">
23
+ <section id="highlighted">
24
24
  {% block highlighted %}{% endblock %}
25
25
  </section>
26
26
 
27
- {% if layout == "banner" %}
28
- <section id="banner">
29
- {% block banner %}{% endblock %}
30
- </section>
31
- {% elif layout and layout != "default" %}
27
+ {% if layout|truncate(5, true, '') == "cover" %}
32
28
  <section id="background">
33
29
  {% block background %}{% endblock %}
34
30
  </section>
@@ -46,9 +42,19 @@
46
42
  </section>
47
43
  {% endif %}
48
44
 
45
+ {% if layout == "banner" %}
46
+ <section id="banner">
47
+ {% block banner %}{% endblock %}
48
+ </section>
49
+ {% endif %}
50
+
49
51
  <section id="main">
50
52
  <div class="grid-container {% block main_container_class %}narrow{% endblock %}">
51
53
 
54
+ {% if layout in ["banner", "cover-1col", "cover-2col"] %}
55
+ <header id="headline">{% block headline %}{% endblock %}</header>
56
+ {% endif %}
57
+
52
58
  {% if layout == "cover-1col" %}<div class="inner-wrapper">{% endif %}
53
59
 
54
60
  <div id="top">
@@ -1,3 +1,9 @@
1
1
  {% extends "./page.html" %}
2
2
 
3
3
  {% block page_class %}{{ layout }}-layout{% endblock %}
4
+
5
+ {% block banner_content %}
6
+ <div class="grid-container narrow">
7
+ <header id="headline">{% block headline %}{% endblock %}</header>
8
+ </div>
9
+ {% endblock %}
@@ -0,0 +1,27 @@
1
+ {% extends "src/html/templates/share-page.html" %}
2
+
3
+ {% set layout = "cover-1col" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Thank you for taking action. You’re awesome!{% endblock %}
8
+
9
+ {% block background %}
10
+ <img src="http://placekitten.com/1600/735" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>A huge thank you!</p>
15
+ {% endblock %}
16
+
17
+ {% block content %}
18
+ <p>Cat ipsum dolor sit amet, mewl for food at 4am. Meeeeouw spill litter box, scratch at owner, destroy all furniture, especially couch. Sleep on dog bed, force dog to sleep on floor stinky cat spend all night ensuring people don't sleep sleep all day yet spread kitty litter all over house.</p>
19
+ {% endblock %}
20
+
21
+ {% block content_bottom %}
22
+ {% include "src/html/includes/share-buttons.html" %}
23
+ {% endblock %}
24
+
25
+ {% block footer %}
26
+ {% include "src/html/includes/menu.html" %}
27
+ {% endblock %}
@@ -0,0 +1,31 @@
1
+ {% extends "src/html/templates/action-page.html" %}
2
+
3
+ {% set layout = "cover-2col" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Thank you for taking action. You’re awesome!{% endblock %}
8
+
9
+ {% block background %}
10
+ <img src="http://placekitten.com/1600/800" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>A huge thank you!</p>
15
+ {% endblock %}
16
+
17
+ {% block content %}
18
+ <p>Cat ipsum dolor sit amet, mewl for food at 4am. Meeeeouw spill litter box, scratch at owner, destroy all furniture, especially couch. Sleep on dog bed, force dog to sleep on floor stinky cat spend all night ensuring people don't sleep sleep all day yet spread kitty litter all over house.</p>
19
+ {% endblock %}
20
+
21
+ {% block form %}
22
+ {% include "src/html/includes/share-buttons.html" %}
23
+ {% endblock %}
24
+
25
+ {% block recent_supporters %}
26
+ {% include "src/html/includes/recent-supporters.html" %}
27
+ {% endblock %}
28
+
29
+ {% block footer %}
30
+ {% include "src/html/includes/menu.html" %}
31
+ {% endblock %}
@@ -0,0 +1,27 @@
1
+ {% extends "src/html/templates/share-page.html" %}
2
+
3
+ {% set layout = "cover-banner" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Thank you for taking action. You’re awesome!{% endblock %}
8
+
9
+ {% block background %}
10
+ <img src="http://placekitten.com/1600/735" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>A huge thank you!</p>
15
+ {% endblock %}
16
+
17
+ {% block content %}
18
+ <p>Cat ipsum dolor sit amet, mewl for food at 4am. Meeeeouw spill litter box, scratch at owner, destroy all furniture, especially couch. Sleep on dog bed, force dog to sleep on floor stinky cat spend all night ensuring people don't sleep sleep all day yet spread kitty litter all over house.</p>
19
+ {% endblock %}
20
+
21
+ {% block content_bottom %}
22
+ {% include "src/html/includes/share-buttons.html" %}
23
+ {% endblock %}
24
+
25
+ {% block footer %}
26
+ {% include "src/html/includes/menu.html" %}
27
+ {% endblock %}
@@ -0,0 +1,27 @@
1
+ {% extends "src/html/templates/share-page.html" %}
2
+
3
+ {% set layout = "banner" %}
4
+
5
+ {% block page_class %}{{ super() }} with-headline{% endblock %}
6
+
7
+ {% block page_title %}Thank you for taking action. You’re awesome!{% endblock %}
8
+
9
+ {% block banner %}
10
+ <img src="http://placekitten.com/1600/735" alt="test image with cats" crossorigin="">
11
+ {% endblock %}
12
+
13
+ {% block headline %}
14
+ <p>A huge thank you!</p>
15
+ {% endblock %}
16
+
17
+ {% block content %}
18
+ <p>Cat ipsum dolor sit amet, mewl for food at 4am. Meeeeouw spill litter box, scratch at owner, destroy all furniture, especially couch. Sleep on dog bed, force dog to sleep on floor stinky cat spend all night ensuring people don't sleep sleep all day yet spread kitty litter all over house.</p>
19
+ {% endblock %}
20
+
21
+ {% block content_bottom %}
22
+ {% include "src/html/includes/share-buttons.html" %}
23
+ {% endblock %}
24
+
25
+ {% block footer %}
26
+ {% include "src/html/includes/menu.html" %}
27
+ {% endblock %}
@@ -1,4 +1,4 @@
1
- {% extends "src/html/templates/cdpage.html" %}
1
+ {% extends "src/html/templates/page.html" %}
2
2
 
3
3
  {% set layout = "default" %}
4
4
 
@@ -95,10 +95,17 @@ export function stickyButton (options = {}) {
95
95
  if (!$cta.length) {
96
96
  return
97
97
  }
98
+ const defaults = {
99
+ topOverlap: 0.3
100
+ }
101
+ // Find blocking element
102
+ const target = $cta.find('a').attr('href')
103
+ if (target && !target.includes('/')) {
104
+ defaults.blocker = target
105
+ }
98
106
  // Put button(s) in right position.
99
107
  // Depending on the layout, the button should be on the bottom of the page,
100
108
  // the sidebar or the main wrapper for large screen sizes.
101
- const target = $cta.find('a').attr('href')
102
109
  const $newParent = $('#sidebar, #main > .grid-container > .inner-wrapper')
103
110
  if ($newParent.length) {
104
111
  const $clone = $cta.clone().appendTo($newParent).addClass('bottom show-for-large')
@@ -112,8 +119,7 @@ export function stickyButton (options = {}) {
112
119
  // Initialize plugin
113
120
  return $cta.map((i, el) => {
114
121
  return new Foundation.StickyButton($(el), {
115
- blocker: target,
116
- topOverlap: 0.3,
122
+ ...defaults,
117
123
  ...options
118
124
  })
119
125
  })
@@ -60,12 +60,10 @@
60
60
  }
61
61
  }
62
62
 
63
- .accordion-content {
64
- // Assuming accordions contain either text or paragraphs or a list.
65
- #{$text-tags} {
66
- > &:last-child {
67
- margin-bottom: 0;
68
- }
63
+ // Assuming accordions contain either text or paragraphs or a list.
64
+ #{$text-tags} {
65
+ .accordion-content > &:last-child {
66
+ margin-bottom: 0;
69
67
  }
70
68
  }
71
69
 
@@ -0,0 +1,118 @@
1
+ // Headline
2
+ // - - - - - - - - - - - - - - -
3
+ // Displays a huge headline on a background image or banner
4
+
5
+ /// Highlighting background of the headline.
6
+ /// @type Color
7
+ $headline-background: none !default;
8
+
9
+ /// Font family of the headline.
10
+ /// @type String | List
11
+ $headline-font-family: $header-font-family !default;
12
+
13
+ /// Font weight of the headline.
14
+ /// @type Number | String
15
+ $headline-font-weight: $header-font-weight !default;
16
+
17
+ /// Font style of the headline.
18
+ /// @type String
19
+ $headline-font-style: $header-font-style !default;
20
+
21
+ /// Font size of the headline.
22
+ /// @type Number
23
+ $headline-font-size: 2 * $large-font-size !default;
24
+
25
+ /// Font color of the headline.
26
+ /// @type Color
27
+ $headline-color: color-pick-contrast(
28
+ if(
29
+ $headline-background and $headline-background != none,
30
+ $headline-background,
31
+ $fallback-background
32
+ ),
33
+ ($body-font-color-alt, $body-font-color)
34
+ ) !default;
35
+
36
+ #headline {
37
+ color: $headline-color;
38
+ align-self: end;
39
+
40
+ #{$text-tags} {
41
+ font-family: $headline-font-family;
42
+ font-weight: $headline-font-weight;
43
+ font-style: $headline-font-style;
44
+ font-size: $headline-font-size;
45
+ line-height: grid-lineheight($headline-font-size);
46
+
47
+ @include breakpoint(small down) {
48
+ font-size: $headline-font-size * 0.75;
49
+ line-height: grid-lineheight(0.75 * $headline-font-size);
50
+ }
51
+
52
+ @include breakpoint(xxlarge) {
53
+ font-size: $headline-font-size * 1.25;
54
+ line-height: grid-lineheight(1.25 * $headline-font-size);
55
+ }
56
+
57
+ #page.banner-layout & {
58
+ // Reduce font-size because there is less space for the headline.
59
+ @include breakpoint(25em down) {
60
+ font-size: $headline-font-size * 0.5;
61
+ line-height: grid-lineheight(0.5 * $headline-font-size);
62
+ }
63
+ @include breakpoint(medium) {
64
+ font-size: $headline-font-size * 0.75;
65
+ line-height: grid-lineheight(0.75 * $headline-font-size);
66
+ }
67
+ @include breakpoint(xlarge) {
68
+ font-size: $headline-font-size;
69
+ line-height: grid-lineheight($headline-font-size);
70
+ }
71
+ @include breakpoint(xxlarge) {
72
+ font-size: $headline-font-size * 1.25;
73
+ line-height: grid-lineheight(1.25 * $headline-font-size);
74
+ }
75
+ }
76
+ }
77
+
78
+ @if $headline-background and $headline-background != none {
79
+ #{$text-tags} {
80
+ background: $headline-background;
81
+ display: inline;
82
+ box-decoration-break: clone;
83
+ padding: 0.05em 0.25em;
84
+ // Adjust line-height for 0.5em of vertical padding.
85
+ line-height: 1.5 * grid-lineheight(1.5 * $headline-font-size);
86
+
87
+ @include breakpoint(small down) {
88
+ line-height: 1.5 * grid-lineheight(1.5 * 0.75 * $headline-font-size);
89
+ }
90
+
91
+ @include breakpoint(xxlarge) {
92
+ line-height: 1.5 * grid-lineheight(1.5 * 1.25 * $headline-font-size);
93
+ }
94
+
95
+ #page.banner-layout & {
96
+ @include breakpoint(25em down, medium) {
97
+ line-height: 1.5 * grid-lineheight(1.5 * 0.5 * $headline-font-size);
98
+ }
99
+ @include breakpoint(medium) {
100
+ line-height: 1.5 * grid-lineheight(1.5 * 0.75 * $headline-font-size);
101
+ }
102
+ @include breakpoint(xlarge) {
103
+ line-height: 1.5 * grid-lineheight(1.5 * $headline-font-size);
104
+ }
105
+ @include breakpoint(xxlarge) {
106
+ line-height: 1.5 * grid-lineheight(1.5 * 1.25 * $headline-font-size);
107
+ }
108
+ }
109
+ }
110
+
111
+ // Fake the usual margin (missing because of display: inline)
112
+ &:after {
113
+ content: "";
114
+ display: block;
115
+ height: $global-margin;
116
+ }
117
+ }
118
+ }
@@ -6,6 +6,7 @@ $banner-height: 46vw !default;
6
6
  $banner-background: $fallback-background !default;
7
7
 
8
8
  #banner {
9
+ position: absolute;
9
10
  width: 100%;
10
11
  height: $banner-height;
11
12
  background: $banner-background;
@@ -16,28 +17,64 @@ $banner-background: $fallback-background !default;
16
17
  height: 100%;
17
18
  object-fit: cover;
18
19
  }
19
- }
20
20
 
21
- #banner ~ #main {
22
- #page-title {
23
- padding-top: 0;
24
- }
25
- }
21
+ ~ #main {
22
+ #page-title {
23
+ padding-top: 0;
24
+ }
26
25
 
27
- @include breakpoint(large) {
28
- #banner {
29
- position: absolute;
26
+ .grid-container {
27
+ grid-template-rows: minmax($banner-height, auto) auto;
30
28
 
31
- ~ #main {
32
- @include clearfix;
29
+ // Ensure the first row is blocked when there is no #headline.
30
+ #page:not(.with-headline) &:before {
31
+ content: "";
32
+ }
33
+ }
33
34
 
34
- #top {
35
- margin-top: $banner-height;
35
+ @include breakpoint(large) {
36
+ .grid-container.with-sidebar {
37
+ grid-template-rows: minmax($banner-height, auto) auto 1fr auto;
36
38
  }
37
39
 
38
40
  #form-wrapper {
39
41
  min-height: $banner-height;
40
42
  }
41
43
  }
44
+
45
+ #page.with-headline & #headline {
46
+ // Same as #main padding-top
47
+ margin-bottom: 1.5 * $global-padding;
48
+
49
+ @include breakpoint(large) {
50
+ margin-bottom: 2 * $global-padding;
51
+ }
52
+
53
+ // Extra padding for headlines on larger screens.
54
+ @include breakpoint(xlarge) {
55
+ padding-bottom: $global-padding;
56
+ }
57
+
58
+ @include breakpoint(xxlarge) {
59
+ padding-bottom: 2 * $global-padding;
60
+ }
61
+ }
62
+ }
63
+
64
+ // On small screens when there is a headline double the banner height
65
+ // to increase the chance that the headline will fit on the banner.
66
+ @include breakpoint(small down) {
67
+ #page.with-headline & {
68
+ height: 2 * $banner-height;
69
+
70
+ ~ #main .grid-container {
71
+ grid-template-rows: minmax(2 * $banner-height, auto) auto;
72
+ }
73
+ }
42
74
  }
43
75
  }
76
+
77
+ // Give callouts some margin (assuming #messages are placed before #banner)
78
+ #page.banner-layout #messages .callout {
79
+ margin-bottom: $global-margin;
80
+ }
@@ -3,22 +3,28 @@
3
3
  // Displays the form above the main content with a fixed image as background.
4
4
 
5
5
  $cover-banner-background: $fallback-background !default;
6
- $cover-banner-min-height: 75vh !default;
6
+ $cover-banner-min-height: 66vh !default;
7
7
 
8
8
  // For the background image, the #background styles from cover.scss are used.
9
9
 
10
10
  #banner-content {
11
- @include breakpoint(medium) {
12
- #form-wrapper {
13
- padding-top: 2 * $global-padding;
11
+ ~ #main {
12
+ background: $body-background;
13
+
14
+ // Displaying the #sidebar below the #content on small/medium screens.
15
+ @include breakpoint(medium down) {
16
+ #content + #sidebar {
17
+ margin-top: 2 * $global-margin;
18
+ }
14
19
  }
15
20
  }
16
21
 
17
- @include breakpoint(medium only) {
18
- // Overlap the image a bit.
19
- #background ~ & {
20
- margin-top: -25vw;
21
- min-height: 25vw;
22
+ @include breakpoint(medium) {
23
+ padding-top: 2 * $global-padding;
24
+ padding-bottom: 2 * $global-padding;
25
+
26
+ #form-outer {
27
+ margin-bottom: 0;
22
28
  }
23
29
  }
24
30
 
@@ -27,37 +33,77 @@ $cover-banner-min-height: 75vh !default;
27
33
  grid-column: 6 / -1;
28
34
  }
29
35
 
30
- ~ #main {
31
- background: $body-background;
32
- // Use padding instead of margins to cover the gaps.
33
- padding-top: 2 * $global-margin;
34
- padding-bottom: 3 * $global-margin;
35
- margin: 0;
36
+ #headline {
37
+ position: sticky;
38
+ bottom: 2 * $global-margin;
36
39
  }
40
+ }
37
41
 
38
- // When there is a #background, make sure it’s visible.
39
- #background ~ &,
40
- #background ~ & #form-wrapper {
41
- min-height: $cover-banner-min-height;
42
+ // When there is a #background, make sure it’s visible.
43
+ #background ~ & {
44
+ @include breakpoint(medium down) {
45
+ padding-top: 50vh;
42
46
  }
43
-
44
- // Fallback background when there is no #background.
45
- &:before {
46
- content: "";
47
- position: fixed;
48
- top: 0;
49
- right: 0;
50
- bottom: 0;
51
- left: 0;
52
- background: $cover-banner-background;
53
- z-index: -2;
47
+ @include breakpoint(large) {
48
+ &,
49
+ .grid-container,
50
+ #form-wrapper {
51
+ min-height: $cover-banner-min-height;
52
+ }
54
53
  }
55
54
  }
55
+
56
+ // Fallback background when there is no #background.
57
+ &:before {
58
+ content: "";
59
+ display: block;
60
+ position: fixed;
61
+ top: 0;
62
+ right: 0;
63
+ bottom: 0;
64
+ left: 0;
65
+ background: $cover-banner-background;
66
+ z-index: -2;
67
+ }
56
68
  }
57
69
 
58
- // Displaying the #sidebar below the #content on small/medium screens.
59
- @include breakpoint(medium down) {
60
- #content + #sidebar {
61
- margin-top: 2 * $global-margin;
70
+ // Displaying a big headline on small/medium screens.
71
+ .cover-banner-layout.with-headline {
72
+ @include breakpoint(medium down) {
73
+ #background ~ #banner-content {
74
+ padding-top: 0;
75
+
76
+ .grid-container {
77
+ grid-template-rows: minmax(min(100vh, 100vw), auto) auto;
78
+ padding-top: 0;
79
+
80
+ @include breakpoint(small down) {
81
+ grid-template-rows: minmax(100vh, auto) auto;
82
+ }
83
+ }
84
+
85
+ #headline {
86
+ // A bit more than approximate sticky button height.
87
+ padding-bottom: 3 * $global-padding;
88
+
89
+ // Padding similar to large screens when not at the edge of the screen.
90
+ @include breakpoint(medium) {
91
+ @include breakpoint(portrait) {
92
+ padding-bottom: 2 * $global-padding;
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ #header {
99
+ // #banner-content’s 100vh should start at the top of the page.
100
+ position: absolute;
101
+ width: 100%;
102
+
103
+ ~ #banner-content #headline {
104
+ // A bit more than approximate header height.
105
+ padding-top: $global-padding * 5;
106
+ }
107
+ }
62
108
  }
63
109
  }
@@ -8,10 +8,15 @@
8
8
 
9
9
  $cover-background: $fallback-background !default;
10
10
  $cover-content-box-shadow: none !default;
11
- /// A value to subtract from the screen height to place the bottom edge of #top.
12
- $cover-2col-offset: $global-margin * 5 !default;
11
+ /// Minimum distance of #top from #main top when there is a background image.
12
+ $cover-1col-offset: min(66vh, $global-margin * 10) !default;
13
+ $cover-2col-offset: min(55vh, 85vw) !default;
13
14
 
14
15
  @mixin -content-padding {
16
+ @include breakpoint(medium) {
17
+ padding-left: 6vw;
18
+ padding-right: 6vw;
19
+ }
15
20
  @include breakpoint(large) {
16
21
  padding-left: $global-padding * 1.5;
17
22
  padding-right: $global-padding * 1.5;
@@ -23,6 +28,10 @@ $cover-2col-offset: $global-margin * 5 !default;
23
28
  }
24
29
 
25
30
  @mixin -reverse-content-padding {
31
+ @include breakpoint(medium) {
32
+ margin-left: -6vw;
33
+ margin-right: -6vw;
34
+ }
26
35
  @include breakpoint(large) {
27
36
  margin-left: $global-padding * -1.5;
28
37
  margin-right: $global-padding * -1.5;
@@ -33,10 +42,22 @@ $cover-2col-offset: $global-margin * 5 !default;
33
42
  }
34
43
  }
35
44
 
45
+ .inner-wrapper {
46
+ @extend .small-reverse-container-padding;
47
+ @extend .small-add-container-padding;
48
+ }
49
+
36
50
  // Fixed background image.
37
51
  #background {
52
+ position: fixed;
53
+ top: 0;
54
+ right: 0;
55
+ bottom: 0;
56
+ left: 0;
57
+ // Required to keep a constant height in mobile browsers with (dis)appearing menus
58
+ height: 100vh;
59
+
38
60
  width: 100%;
39
- height: 75vw;
40
61
  background: $cover-background;
41
62
  z-index: -1;
42
63
 
@@ -46,21 +67,28 @@ $cover-2col-offset: $global-margin * 5 !default;
46
67
  object-fit: cover;
47
68
  }
48
69
 
49
- @include breakpoint(large) {
50
- position: fixed;
51
- top: 0;
52
- right: 0;
53
- bottom: 0;
54
- left: 0;
55
- // Required to keep a constant height in mobile browsers with (dis)appearing menus
56
- height: 100vh;
57
- }
58
-
59
70
  // Remove title padding
60
71
  ~ #main #page-title {
61
72
  padding-top: 0;
62
73
  }
63
74
 
75
+ // Remove gaps on small screens.
76
+ @include breakpoint(small down) {
77
+ ~ #main {
78
+ padding-bottom: 0;
79
+ }
80
+ @if $cover-1col-offset == 0 {
81
+ #page.cover-1col-layout:not(.with-headline) & {
82
+ display: none;
83
+ }
84
+ }
85
+ @if $cover-2col-offset == 0 {
86
+ #page.cover-2col-layout:not(.with-headline) & {
87
+ display: none;
88
+ }
89
+ }
90
+ }
91
+
64
92
  // Make .narrow smaller a little earlier, halfway between large and xlarge.
65
93
  @include breakpoint((map.get($breakpoints, large) + map.get($breakpoints, xlarge)) * 0.5) {
66
94
  ~ section .grid-container.narrow {
@@ -74,18 +102,16 @@ $cover-2col-offset: $global-margin * 5 !default;
74
102
  // Make sure no sections are transparent.
75
103
  #page.cover-1col-layout,
76
104
  #page.cover-2col-layout {
77
- @include breakpoint(large) {
78
- #highlighted,
79
- #main .inner-wrapper,
80
- #bottom {
81
- background: $body-background;
82
- }
105
+ #highlighted,
106
+ #main .inner-wrapper,
107
+ #bottom {
108
+ background: $body-background;
83
109
  }
84
110
  }
85
111
 
86
112
  // 1 column layout specific.
87
113
  #page.cover-1col-layout {
88
- @include breakpoint(large) {
114
+ @include breakpoint(medium) {
89
115
  // Adjust vertical paddings and margins.
90
116
  #top {
91
117
  padding-bottom: $global-padding * 0.5;
@@ -106,6 +132,9 @@ $cover-2col-offset: $global-margin * 5 !default;
106
132
 
107
133
  // Additional page styles when there is a #background.
108
134
  #background ~ #main {
135
+ // Leave extra space on top.
136
+ margin-top: $cover-1col-offset;
137
+
109
138
  // Add padding.
110
139
  .inner-wrapper,
111
140
  #form-outer,
@@ -116,20 +145,17 @@ $cover-2col-offset: $global-margin * 5 !default;
116
145
  .sticky-cta {
117
146
  @include -reverse-content-padding;
118
147
  }
148
+ #top:first-child {
149
+ padding-top: $global-padding * 1.5;
150
+ }
119
151
 
120
- @include breakpoint(large) {
121
- // Leave extra space on top.
122
- margin-top: $global-margin * 12;
123
-
152
+ @include breakpoint(medium) {
124
153
  // Add box-shadow.
125
154
  .inner-wrapper {
126
155
  box-shadow: $cover-content-box-shadow;
127
156
  }
128
157
 
129
158
  // Add vertical padding.
130
- #top:first-child {
131
- padding-top: $global-padding * 1.5;
132
- }
133
159
  #content:last-child {
134
160
  padding-bottom: $global-padding * 1.5;
135
161
  }
@@ -144,6 +170,12 @@ $cover-2col-offset: $global-margin * 5 !default;
144
170
  }
145
171
 
146
172
  // Adjust form container width to negative margin.
173
+ #form-outer {
174
+ min-width: calc(100% + 12vw);
175
+ }
176
+ }
177
+
178
+ @include breakpoint(large) {
147
179
  #form-outer {
148
180
  min-width: calc(100% + #{$global-padding * 3});
149
181
  }
@@ -155,6 +187,17 @@ $cover-2col-offset: $global-margin * 5 !default;
155
187
  }
156
188
  }
157
189
  }
190
+
191
+ // Additional page styles when there is a #headline.
192
+ &.with-headline {
193
+ #background ~ #main {
194
+ margin-top: 0;
195
+
196
+ .grid-container {
197
+ grid-template-rows: minmax($cover-1col-offset, auto) auto;
198
+ }
199
+ }
200
+ }
158
201
  }
159
202
 
160
203
  // 2 column layout specific.
@@ -170,14 +213,26 @@ $cover-2col-offset: $global-margin * 5 !default;
170
213
  }
171
214
  }
172
215
 
173
- @include breakpoint(large) {
174
- // Adjust grid.
175
- .grid-container.with-sidebar {
176
- grid-template-areas:
177
- "top top top top top sidebar sidebar sidebar sidebar"
178
- "content content content content content sidebar sidebar sidebar sidebar"
179
- "sidebar2 sidebar2 sidebar2 sidebar2 sidebar2 sidebar sidebar sidebar sidebar";
216
+ @include breakpoint(small down) {
217
+ #background ~ #main {
218
+ .inner-wrapper {
219
+ @include clearfix;
220
+ }
221
+ #top .inner-wrapper {
222
+ padding-top: $global-padding * 1.5;
223
+ }
224
+ #sidebar + #sidebar2,
225
+ #content + #sidebar2 {
226
+ margin-top: 0;
227
+
228
+ .inner-wrapper {
229
+ padding-top: 2 * $global-margin;
230
+ }
231
+ }
180
232
  }
233
+ }
234
+
235
+ @include breakpoint(medium) {
181
236
  #main .inner-wrapper {
182
237
  // Vertical padding and margins.
183
238
  padding-top: $global-padding * 1.5;
@@ -210,6 +265,11 @@ $cover-2col-offset: $global-margin * 5 !default;
210
265
  }
211
266
  }
212
267
 
268
+ // Remove gap after form.
269
+ #form-outer {
270
+ margin-bottom: 0;
271
+ }
272
+
213
273
  // Add a gap and optional shadow between content section parts.
214
274
  #content .inner-wrapper,
215
275
  #sidebar .sticky-cta {
@@ -220,6 +280,7 @@ $cover-2col-offset: $global-margin * 5 !default;
220
280
  // Fallback background when there is no #background.
221
281
  #main:before {
222
282
  content: "";
283
+ display: block;
223
284
  position: fixed;
224
285
  top: 0;
225
286
  right: 0;
@@ -228,19 +289,20 @@ $cover-2col-offset: $global-margin * 5 !default;
228
289
  background: $cover-background;
229
290
  z-index: -2;
230
291
  }
292
+ }
231
293
 
232
- // Additional page styles when there is a #background.
233
- #background ~ #main > .grid-container {
234
- // Make the first grid row almost as large as the screen
235
- // (we don’t know how large the #header is, whether there are messages,…).
236
- // ATM stylelint does not recognise pure CSS functions:
237
- // https://github.com/stylelint-scss/stylelint-scss/issues/486
238
- // stylelint-disable scss/no-global-function-names
239
- grid-template-rows: min(calc(100vh - #{$cover-2col-offset}), 125vw) 1fr;
240
- // stylelint-enable scss/no-global-function-names
241
- // Show the top section at the bottom of this row.
242
- #top {
243
- margin-top: auto;
294
+ @include breakpoint(large) {
295
+ // Adjust grid.
296
+ .grid-container.with-sidebar {
297
+ grid-template-areas:
298
+ "head head head head head sidebar sidebar sidebar sidebar"
299
+ "top top top top top sidebar sidebar sidebar sidebar"
300
+ "content content content content content sidebar sidebar sidebar sidebar"
301
+ "sidebar2 sidebar2 sidebar2 sidebar2 sidebar2 sidebar sidebar sidebar sidebar";
302
+ }
303
+ &.with-headline {
304
+ #headline {
305
+ padding-bottom: $global-padding;
244
306
  }
245
307
  }
246
308
  }
@@ -251,4 +313,23 @@ $cover-2col-offset: $global-margin * 5 !default;
251
313
  margin-bottom: $global-margin * 2;
252
314
  }
253
315
  }
316
+
317
+ // Move content down when there is a #background.
318
+ @include breakpoint(medium down) {
319
+ #background ~ #main {
320
+ margin-top: $cover-2col-offset;
321
+ }
322
+ &.with-headline #background ~ #main {
323
+ margin-top: 0;
324
+
325
+ .grid-container {
326
+ grid-template-rows: minmax($cover-2col-offset, auto) auto;
327
+ }
328
+ }
329
+ }
330
+ @include breakpoint(large) {
331
+ #background ~ #main > .grid-container {
332
+ grid-template-rows: minmax($cover-2col-offset, auto) auto 1fr auto;
333
+ }
334
+ }
254
335
  }
@@ -34,8 +34,10 @@ section > .grid-container {
34
34
 
35
35
  // Use a 9 column grid.
36
36
  .grid-container {
37
+ display: grid;
38
+ grid-template-rows: auto;
39
+
37
40
  @include breakpoint(large) {
38
- display: grid;
39
41
  column-gap: $global-margin;
40
42
  grid-template-columns: repeat(9, 1fr);
41
43
 
@@ -64,15 +66,19 @@ section > .grid-container {
64
66
  }
65
67
 
66
68
  // CSS grid for two column layout.
67
- // Assuming #top, #main (left column) and #sidebar (second column).
69
+ // Assuming #headline (optional), #top, #main (left column) and #sidebar (second column).
68
70
  .grid-container.with-sidebar {
69
71
  @include breakpoint(large) {
70
72
  grid-template-areas:
73
+ "head head head head head sidebar sidebar sidebar sidebar"
71
74
  "top top top top top sidebar sidebar sidebar sidebar"
72
75
  "content content content content content sidebar sidebar sidebar sidebar"
73
76
  "content content content content content sidebar2 sidebar2 sidebar2 sidebar2";
74
- grid-template-rows: auto 1fr auto;
77
+ grid-template-rows: auto auto 1fr auto;
75
78
 
79
+ #headline {
80
+ grid-area: head;
81
+ }
76
82
  #top {
77
83
  grid-area: top;
78
84
  }
@@ -9,6 +9,10 @@ body {
9
9
  min-height: 100vh;
10
10
  }
11
11
 
12
+ section {
13
+ @include clearfix;
14
+ }
15
+
12
16
  #header {
13
17
  border-bottom: $header-border;
14
18
  }
@@ -20,11 +24,11 @@ body {
20
24
  }
21
25
 
22
26
  #main {
23
- margin-top: 1.5 * $global-margin;
24
- margin-bottom: 3 * $global-margin;
27
+ padding-top: 1.5 * $global-padding;
28
+ padding-bottom: 3 * $global-padding;
25
29
 
26
30
  @include breakpoint(large) {
27
- margin-top: 2 * $global-margin;
31
+ padding-top: 2 * $global-padding;
28
32
  }
29
33
 
30
34
  @include breakpoint(medium down) {
@@ -106,6 +106,7 @@
106
106
  @import "components/footer";
107
107
  @import "components/menu";
108
108
  @import "components/callout";
109
+ @import "components/headline";
109
110
  @import "components/share-button";
110
111
  @import "components/sticky-button";
111
112
  @import "components/progressbar";