Skip to content

Commit

Permalink
Styling fixes for icore open theme
Browse files Browse the repository at this point in the history
  • Loading branch information
HeleenSG committed Sep 17, 2024
1 parent 7733059 commit f868d26
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ See: https://kit.svelte.dev/docs/advanced-routing#advanced-layouts-breaking-out-
<header>
<a href="#main-content" class="button focus-only skip-to-content">Ga direct naar inhoud</a>
<a href="{base}/" class="logo">
<img src="$img/logo-white.svg" alt="Placeholder logo" />Manon
<img src="$img/logo.svg" alt="Placeholder logo" />Manon
</a>
<nav
data-open-label="Menu"
Expand Down Expand Up @@ -76,7 +76,7 @@ See: https://kit.svelte.dev/docs/advanced-routing#advanced-layouts-breaking-out-
<a href="#main-content" class="button focus-only skip-to-content">Ga direct naar inhoud</a>
<a href="./logo" class="logo">
<img src="/img/logo-white.svg" alt="Placeholder logo">Manon
<img src="/img/logo.svg" alt="Placeholder logo">Manon
</a>
<nav
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,13 @@ See: https://kit.svelte.dev/docs/advanced-routing#advanced-layouts-breaking-out-
/* Header */
--header-border-width: 0 0 1px 0;
--header-border-color: #ccc;
--header-padding-right: var(--page-whitespace-right);
--header-padding-left: var(--page-whitespace-left);
/* Content wrapper */
--header-content-wrapper-position: relative;
/* Header navigation */
--header-navigation-position: static;
--header-navigation-border-width: 0;
--header-navigation-padding-right: 0;
--header-navigation-padding-left: 0;
/* Collapsible menu */
--header-navigation-collapsible-menu-top: 4rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,13 @@ See: https://kit.svelte.dev/docs/advanced-routing#advanced-layouts-breaking-out-
/* Header */
--header-border-width: 0 0 1px 0;
--header-border-color: #ccc;
--header-padding-right: var(--page-whitespace-right);
--header-padding-left: var(--page-whitespace-left);
/* Content wrapper */
--header-content-wrapper-position: relative;
/* Header navigation */
--header-navigation-position: static;
--header-navigation-border-width: 0;
--header-navigation-padding-right: 0;
--header-navigation-padding-left: 0;
/* Header navigation content */
--header-navigation-content-wrapper-gap: 1rem;
Expand Down
4 changes: 4 additions & 0 deletions manon/header-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@ body > header,
}
}
}

input {
align-self: var(--header-navigation-input-algin-self);
}
}
}
1 change: 1 addition & 0 deletions manon/mixins/icon-only.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
&:hover {
background-color: var(--#{$prefix}hover-background-color);
border-width: var(--#{$prefix}hover-border-width);
font-size: var(--#{$prefix}hover-font-size);
}
}

Expand Down
9 changes: 9 additions & 0 deletions themes/icore-open/components/header-navigation-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
--header-navigation-button-font-weight
);

/* Icon only */
--header-navigation-button-icon-only-font-size: 0;
--header-navigation-button-hover-icon-font-size: var(
--header-navigation-button-icon-only-icon-font-size
);

/* Icon only hover */
--header-navigation-button-icon-only-hover-font-size: 0;

/* Active */
--header-navigation-button-active-background-color: var(
--header-navigation-button-hover-background-color
Expand Down
7 changes: 4 additions & 3 deletions themes/icore-open/components/header-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
--header-navigation-align-items: stretch;
--header-navigation-justify-content: space-between;

/* List */
--header-navigation-list-gap: 0;

/* Link*/
--header-navigation-link-background-color: transparent;
--header-navigation-link-padding-right: 1rem;
Expand All @@ -29,9 +26,13 @@
--header-navigation-link-text-decoration: none;

/* List */
--header-navigation-list-gap: 0;
--header-navigation-list-align-content: stretch;
--header-navigation-list-width: auto;

/* Input */
--header-navigation-input-algin-self: center;

/* Collapsed icon */
--navigation-collapsible-menu-icon-font-size: 2rem;
}

0 comments on commit f868d26

Please sign in to comment.