Skip to content

Commit

Permalink
Adds styling options for background-color-offset component (#414)
Browse files Browse the repository at this point in the history
* Adds styling options for background-color-offset component
  • Loading branch information
HeleenSG authored Nov 29, 2023
1 parent 94370b7 commit 6f00beb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2>Ontstaan van Manon</h2>
</div>
</section>

<section>
<section class="background-color-offset">
<div>
<h2>Wat is Manon</h2>
<p>
Expand Down
9 changes: 9 additions & 0 deletions docs/scss/themes/soft/background-color-offset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Backgroundcolor offset */

:root {
--background-color-offset-background-color: #f0f0f0;
--background-color-offset-margin-top: var(--content-padding-top);
--background-color-offset-margin-bottom: var(--content-padding-bottom);
--background-color-offset-padding-top: calc(var(--content-padding-top) * 2);
--background-color-offset-padding-bottom: calc(var(--content-padding-bottom) * 2);
}
4 changes: 2 additions & 2 deletions docs/scss/themes/soft/theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Theme: Soft based on manon components */

/* Base - Top level styling */
@use "application-base";
/* Styling on the highest level */
Expand All @@ -18,4 +17,5 @@
@use "breadcrumb-bar";
@use "tile";
@use "header-navigation";
@use "logo";
@use "logo";
@use "background-color-offset";
1 change: 0 additions & 1 deletion manon/background-color-offset-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
/*----------------------------------------------------------------------*/
:root {
--background-color-offset-background-color: #f0f0f0;
/* --background-color-offset-text-color: ; */
}
13 changes: 13 additions & 0 deletions manon/background-color-offset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@
.background-color-offset {
background-color: var(--background-color-offset-background-color);
color: var(--background-color-offset-text-color);
margin-top: var(--background-color-offset-margin-top);
margin-bottom: var(--background-color-offset-margin-bottom);
padding-top: var(--background-color-offset-padding-top);
padding-bottom: var(--background-color-offset-padding-bottom);

> div {
margin-top: var(--background-color-offset-content-wrapper-margin-top);
margin-bottom: var(--background-color-offset-content-wrapper-margin-bottom);
padding-top: var(--background-color-offset-content-wrapper-padding-top);
padding-bottom: var(
--background-color-offset-content-wrapper-padding-bottom
);
}
}

0 comments on commit 6f00beb

Please sign in to comment.