Fix search button styling, page title width, and sticky content rendering
Add blue background/hover styles to the search button matching Angular's .color.blue button pattern. Fix page title width to calc(100% - 120px) matching Angular layout. Conditionally render sticky-content wrapper to avoid empty DOM nodes.
This commit is contained in:
@@ -150,10 +150,21 @@
|
||||
margin-top: vars.$space-xl;
|
||||
width: 100%;
|
||||
height: vars.$standard-button-height;
|
||||
background-color: colors.$blue;
|
||||
color: colors.$white;
|
||||
border: none;
|
||||
border-radius: vars.$border-radius;
|
||||
cursor: pointer;
|
||||
transition-duration: 0.2s;
|
||||
|
||||
&:hover {
|
||||
background-color: colors.$blue--hover;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: fonts.$font-bold;
|
||||
font-size: fonts.$font-size-m;
|
||||
color: colors.$white;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,6 +87,10 @@
|
||||
}
|
||||
|
||||
&__title {
|
||||
width: calc(100% - 120px);
|
||||
}
|
||||
|
||||
&__title--fullwidth {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,9 +45,11 @@ export const PageLayout: FC<PageLayoutProps> = ({
|
||||
{contentLeft}
|
||||
</aside>
|
||||
<main className="page-layout__column-right">
|
||||
<div className="page-layout__sticky-content">
|
||||
{stickyContent}
|
||||
</div>
|
||||
{stickyContent && (
|
||||
<div className="page-layout__sticky-content">
|
||||
{stickyContent}
|
||||
</div>
|
||||
)}
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user