Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: icore open component styling #584

Merged
merged 3 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manon/form-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ form {
padding-bottom: var(--form-button-padding-bottom);
padding-left: var(--form-button-padding-left);

margin-top: var(--form-button-margin-top, inherit);

background-color: var(--form-button-background-color);
color: var(--form-button-color);

Expand Down
4 changes: 4 additions & 0 deletions manon/form-fieldset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ form {
box-sizing: border-box;
margin: 0;
}

label {
margin-bottom: var(--form-fieldset-label-margin-bottom, inherit);
}
}

/* Notifications */
Expand Down
4 changes: 4 additions & 0 deletions manon/layout-authentication.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ form {
margin: 0 auto;
background-color: var(--layout-authentication-background-color);
color: var(--layout-authentication-text-color);
padding-top: var(--layout-authentication-padding-top, inherit);
padding-right: var(--layout-authentication-padding-right, inherit);
padding-bottom: var(--layout-authentication-padding-bottom, inherit);
padding-left: var(--layout-authentication-padding-left, inherit);
}
}
8 changes: 8 additions & 0 deletions themes/icore-open/components/article-content-wrapper.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* Article content wrapper */

:root {
--article-content-wrapper-padding-top: 0;
--article-content-wrapper-padding-right: 0;
--article-content-wrapper-padding-bottom: 0;
--article-content-wrapper-padding-left: 0;
}
7 changes: 7 additions & 0 deletions themes/icore-open/components/article.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Article */

:root {
--article-padding-left: 0;
--article-gap: var(--spacing-125);
--article-max-width: 50rem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Footer navigation link active */

@use "../color-scheme";

:root {
--footer-navigation-link-active-text-color: #{color-scheme.$oc-blue-9};
}
10 changes: 10 additions & 0 deletions themes/icore-open/components/footer-navigation-link-focus.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Footer navigation link focus */

@use "../color-scheme";

:root {
--footer-navigation-link-focus-text-color: #{color-scheme.$oc-blue-8};
--footer-navigation-link-focus-text-decoration: #{color-scheme.$oc-blue-8};
--footer-navigation-link-focus-outline: 1px solid #{color-scheme.$oc-blue-8};
--footer-navigation-link-focus-outline-offset: 0.25rem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* footer navigation link hover */

@use "../color-scheme";

:root {
--footer-navigation-link-hover-text-color: #{color-scheme.$oc-blue-9};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Footer navigation link Visited */

@use "../color-scheme";

:root {
--footer-navigation-link-visited-text-color: #{color-scheme.$oc-grape-8};
}
9 changes: 9 additions & 0 deletions themes/icore-open/components/footer-navigation-link.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Footer navigation Link */

@use "../color-scheme";

:root {
--footer-navigation-link-text-color: var(--link-text-color);
--footer-navigation-link-font-weight: var(--link-font-weight);
--footer-navigation-link-text-decoration: var(--link-text-decoration);
}
2 changes: 2 additions & 0 deletions themes/icore-open/components/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

:root {
--footer-background-color: #{color-scheme.$oc-white};
--footer-navigation-list-item-list-style: none;
--footer-align-items: flex-end;
}
6 changes: 5 additions & 1 deletion themes/icore-open/components/form-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
--form-base-text-color: #{color-scheme.$oc-gray-9};
--form-base-font-size: 1rem;
--form-base-font-weight: bold;
--form-base-gap: var(--spacing-025);
--form-base-gap: var(--spacing-100);
--form-base-background-color: #{color-scheme.$oc-white};
--form-base-padding-top: 0;
--form-base-padding-right: 0;
--form-base-padding-bottom: 0;
--form-base-padding-left: 0;
}
11 changes: 1 addition & 10 deletions themes/icore-open/components/form-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,5 @@

:root {
--form-button-font-size: 1rem;
}

form {
button,
a.button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
margin-top: var(--spacing-100);
}
--form-button-margin-top: var(--spacing-050);
}
7 changes: 7 additions & 0 deletions themes/icore-open/components/form-fieldset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Form fieldset */

:root {
--form-fieldset-legend-margin-bottom: var(--spacing-0);
--form-fieldset-legend-margin-bottom: var(--form-group-gap);
--form-fieldset-label-margin-bottom: var(--form-group-gap);
}
9 changes: 9 additions & 0 deletions themes/icore-open/components/layout-authentication.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Layout authentication */

:root {
--layout-authentication-background-color: #fff;
--layout-authentication-padding-top: var(--spacing-150);
--layout-authentication-padding-right: var(--spacing-150);
--layout-authentication-padding-bottom: var(--spacing-150);
--layout-authentication-padding-left: var(--spacing-150);
}
6 changes: 6 additions & 0 deletions themes/icore-open/components/main-content-wrapper.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* Main content wrapper */

:root {
--main-content-wrapper-justify-content: center;
--main-content-wrapper-max-width: 50rem;
}
2 changes: 2 additions & 0 deletions themes/icore-open/components/section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

:root {
--section-padding-left: 0;
--section-gap: var(--spacing-125);
--section-max-width: 50rem;
}
24 changes: 17 additions & 7 deletions themes/icore-open/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,26 @@
@use "fundamentals/spacing";

/* Layout */
@use "components/layout-authentication";

/* Link */
@use "components/link";
@use "components/link-hover";
@use "components/link-visited";
@use "components/link-visited-hover";
@use "components/link-focus";
@use "components/footer-navigation-link";
@use "components/footer-navigation-link-visited";
@use "components/footer-navigation-link-hover";
@use "components/footer-navigation-link-active";
@use "components/footer-navigation-link-focus.scss";

/* Components */
@use "components/breadcrumb-bar";
@use "components/button-base";
@use "components/code";
@use "components/footer";
@use "components/form-fieldset";
@use "components/form-accent-color";
@use "components/form-base";
@use "components/form-button";
Expand All @@ -40,17 +54,13 @@
@use "components/table";
@use "components/table-caption";

/* Link */
@use "components/link";
@use "components/link-hover";
@use "components/link-visited";
@use "components/link-visited-hover";
@use "components/link-focus";

/* Layout */
@use "components/main";
@use "components/main-content-wrapper";
@use "components/section";
@use "components/section-content-wrapper";
@use "components/article";
@use "components/article-content-wrapper";

/* Notifications */
@use "components/notification-block-element";
Expand Down