-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 3645-utilities-borders
- Loading branch information
Showing
53 changed files
with
1,348 additions
and
1,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': patch | ||
--- | ||
|
||
Fixed issue where the focus ring was not appearing on inactive chips. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': major | ||
--- | ||
|
||
Removed the deprecated `.pi-*` classes, which were previously used to display icons. The `post-icon` component should now be used instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@swisspost/design-system-styles': minor | ||
--- | ||
|
||
Added custom styles for the ordered lists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@swisspost/design-system-components': minor | ||
'@swisspost/design-system-components-angular': minor | ||
'@swisspost/design-system-components-react': minor | ||
--- | ||
|
||
Added a provisional post-header component with some basic functionality in place. This component is not finished in this state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
packages/components/src/components/post-header/post-header.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
@use '@swisspost/design-system-styles/mixins/media'; | ||
|
||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
:host { | ||
--global-header-height: 72px; | ||
--main-header-height: 56px; | ||
--header-height: calc(var(--global-header-height) + var(--main-header-height)); | ||
|
||
@include media.max(lg) { | ||
--global-header-height: 64px; | ||
} | ||
} | ||
|
||
.d-flex { | ||
display: flex; | ||
} | ||
|
||
.space-between { | ||
justify-content: space-between; | ||
} | ||
|
||
.global-header { | ||
background-color: #ffcc00; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
position: sticky; | ||
padding-inline-start: 4px; | ||
padding-inline-end: 12px; | ||
|
||
height: var(--global-header-height); | ||
|
||
@include media.max(lg) { | ||
top: 0; | ||
} | ||
|
||
@include media.min(lg) { | ||
top: calc((var(--global-header-height) - 24px) * -1); | ||
} | ||
} | ||
|
||
slot[name='post-logo'] { | ||
align-self: flex-end; | ||
} | ||
|
||
.global-sub { | ||
display: flex; | ||
align-items: center; | ||
gap: 2rem; | ||
height: var(--global-header-height); | ||
} | ||
|
||
.align-end { | ||
align-items: flex-end; | ||
} | ||
|
||
.logo { | ||
flex: 1 0 auto; | ||
height: var(--global-header-height); | ||
width: var(--global-header-height); | ||
min-height: 24px; | ||
align-self: flex-end; | ||
|
||
@include media.min(lg) { | ||
height: calc(var(--global-header-height) - var(--header-scroll-top)); | ||
} | ||
} | ||
|
||
::slotted(ul) { | ||
margin-block: 0; | ||
list-style: none; | ||
display: flex; | ||
padding-left: 0; | ||
gap: 1rem; | ||
} | ||
|
||
.title-header, | ||
.main-navigation { | ||
display: flex; | ||
align-items: center; | ||
padding-inline: 12px; | ||
background: white; | ||
} | ||
|
||
.title-header { | ||
height: var(--main-header-height); | ||
display: flex; | ||
align-items: center; | ||
|
||
@include media.max(lg) { | ||
border-bottom: 1px solid black; | ||
} | ||
} | ||
:host(:not(:has([slot='title']))) .title-header { | ||
display: none; | ||
} | ||
|
||
::slotted(h1) { | ||
margin: 0 !important; | ||
font-size: 28px !important; | ||
} | ||
|
||
.main-navigation { | ||
position: sticky; | ||
top: 24px; | ||
height: var(--main-header-height); | ||
|
||
@include media.min(lg) { | ||
border-bottom: 1px solid black; | ||
} | ||
|
||
@include media.max(lg) { | ||
display: none; | ||
position: absolute; | ||
top: var(--header-height); | ||
bottom: 0; | ||
width: 100%; | ||
background-color: white; | ||
height: auto; | ||
|
||
&.extended { | ||
display: block; | ||
} | ||
} | ||
} | ||
|
||
.mobile-toggle { | ||
@include media.min(lg) { | ||
display: none; | ||
} | ||
} |
Oops, something went wrong.