diff --git a/addon/styles/components/es-page-header.css b/addon/styles/components/es-page-header.css index 2ad25ad4..894272b8 100644 --- a/addon/styles/components/es-page-header.css +++ b/addon/styles/components/es-page-header.css @@ -1,6 +1,9 @@ .es-page-header { padding-top: 4.5rem; padding-bottom: 4.5rem; + background-image: url('/images/pattern-1.svg'); + background-repeat: no-repeat; + background-position: bottom right; } .es-page-header__title { diff --git a/addon/styles/global.css b/addon/styles/global.css index 009c089e..89683b86 100644 --- a/addon/styles/global.css +++ b/addon/styles/global.css @@ -67,6 +67,10 @@ h6 { .dark { background-color: var(--color-dark); color: var(--color-light); + + & a { + color: var(--color-light); + } } .bg-muted { diff --git a/addon/styles/helpers.css b/addon/styles/helpers.css index a952e133..5fb3a766 100644 --- a/addon/styles/helpers.css +++ b/addon/styles/helpers.css @@ -5,3 +5,7 @@ .margin-bottom-small { margin-bottom: 2rem; } + +.margin-left-small { + margin-left: 2rem; +} diff --git a/addon/templates/components/es-page-header.hbs b/addon/templates/components/es-page-header.hbs index 6320949e..904c1ea8 100644 --- a/addon/templates/components/es-page-header.hbs +++ b/addon/templates/components/es-page-header.hbs @@ -1,8 +1,8 @@
-

{{@headline}}

+

{{@headline}}

-

{{@detail}}

+

{{@detail}}

{{yield}}
diff --git a/docs/css/helpers.md b/docs/css/helpers.md index f212745f..56cddcf9 100644 --- a/docs/css/helpers.md +++ b/docs/css/helpers.md @@ -9,3 +9,21 @@ if you would like a section or a div to use the dark style then you need to add hello there
``` + +## margins + +If you would like to add a bit of margin to the bottom or left of something (for example in a vertical or horizontal list) there are two simple helpers to add a small amount of margin: `margin-bottom-small` and `margin-left-small`. + +```html + +``` + +```html + + + +``` diff --git a/public/images/pattern-1.svg b/public/images/pattern-1.svg new file mode 100644 index 00000000..451f0565 --- /dev/null +++ b/public/images/pattern-1.svg @@ -0,0 +1,20 @@ + + + + PAtttern + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/dummy/app/styles/app.css b/tests/dummy/app/styles/app.css index d507b4cc..397c61be 100644 --- a/tests/dummy/app/styles/app.css +++ b/tests/dummy/app/styles/app.css @@ -1 +1,5 @@ @import "color-pallet"; + +.self-executing-code-block { + margin-bottom: 2rem; +}