-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: header styles to align with current design (#899)
- Loading branch information
Showing
16 changed files
with
347 additions
and
172 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
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 |
---|---|---|
@@ -1,13 +1,5 @@ | ||
@import "image.variables"; | ||
|
||
.elm-image { | ||
&.is-logo { | ||
height: auto; | ||
margin: 0.2rem #{to-rem($pxValue: 16)} 0.2rem 0; | ||
max-width: $image-logo--maxwidth; | ||
|
||
.cmp-brand & { | ||
width: $brand-image--width; // * TODO: possibly rework variable naming | ||
} | ||
} | ||
// We removed logo styles here | ||
} |
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 |
---|---|---|
@@ -1,39 +1,23 @@ | ||
@import "brand.variables"; | ||
|
||
.cmp-brand { | ||
.elm-image { | ||
&.is-logo { | ||
float: left; | ||
margin-top: -#{to-rem($pxValue: 2)}; | ||
} | ||
font-weight: bold; | ||
display: flex; | ||
align-items: center; | ||
gap: 1rem; | ||
|
||
a, | ||
img { | ||
height: 1.5rem; | ||
} | ||
|
||
img { | ||
width: auto; | ||
} | ||
|
||
a { | ||
color: inherit; | ||
// Deactivate underline on site name being made clickable by added to the link as well | ||
text-decoration: none; | ||
} | ||
|
||
.rea-header & { | ||
padding-top: to-rem($pxValue: 18); | ||
@media screen and (width > $db-break-the-header-max-width) { | ||
padding-top: $rea-header-cmp-brand-padding-top; // * TODO: possibly rework variable naming | ||
|
||
.is-site-name { | ||
&::before { | ||
// * TODO: introduce is-icon as a mixin and change the following declarations afterwards | ||
content: none !important; | ||
} | ||
} | ||
} | ||
} | ||
@media screen and (max-width: $db-break-the-header-max-width) { | ||
.cmp-mainnavigation ~ & { | ||
.rea-header & { | ||
.is-site-name { | ||
display: none; | ||
} | ||
} | ||
} | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
source/_patterns/02-components/language-switcher/_language-switcher.variables.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import "../../../css/helpers/functions"; | ||
@import "../../00-base/icons/icons.helpers"; | ||
@import "../../00-base/icons/icons.variables"; | ||
|
||
$db-language-switcher---direction: var(--db-language-switcher---direction, 1); |
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
Oops, something went wrong.