Skip to content

Commit

Permalink
feat(components/topbar/user): adjust component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jordevo committed Jan 26, 2024
1 parent 6652a1f commit 1da38d6
Showing 1 changed file with 55 additions and 28 deletions.
83 changes: 55 additions & 28 deletions components/topbar/user/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ $bgc-topbar-user: $c-white !default;
$bgsz-topbar-user-brand: 100% !default;
$bxsh-topbar-user: $bxsh-base !default;
$fill-topbar-user-toggle-icon: $c-accent !default;
$h-topbar-user-brand-icon-large: $sz-icon-xl !default;
$h-topbar-user-brand-icon-small: $sz-icon-m !default;
$h-topbar-user-brand-large: 0 !default;
$h-topbar-user-brand-small: 0 !default;
$h-topbar-user-flow-button: 48px !default;
$maw-topbar-user-nav: 350px !default;
$size-topbar-user-toggle-icon: 24px !default;
$w-topbar-user-brand-icon-large: $sz-icon-xl !default;
$w-topbar-user-brand-icon-small: $sz-icon-m !default;
$w-topbar-user-brand-large: 0 !default;
$w-topbar-user-brand-small: 0 !default;
$w-topbar-user-nav: 90% !default;
Expand Down Expand Up @@ -45,34 +50,6 @@ $w-topbar-user-nav: 90% !default;
border-radius: $bdrs-topbar-user;
}

&-ctaButtonIcon {
fill: currentColor !important;
}

&-wrap {
display: flex;
flex: 1;
}

&-toggle {
@include reset-button;
@include media-breakpoint-up(m) {
display: none;
}
margin-left: -$m-h;
padding: $p-v $p-h;

&.has-notifications {
@include sui-badge-notification(true, 2px, 12px);
}

&Icon {
fill: $fill-topbar-user-toggle-icon !important;
height: $size-topbar-user-toggle-icon;
width: $size-topbar-user-toggle-icon;
}
}

&-brand {
@include reset-link;
align-self: center;
Expand All @@ -97,6 +74,20 @@ $w-topbar-user-nav: 90% !default;
}
padding: $p-v 0;
width: $w-topbar-user-brand-small;

&Icon {
align-items: center;
display: flex;
margin-right: $m-l;

@include media-breakpoint-up(m) {
margin-right: $m-xxl;
}
}
}

&-ctaButtonIcon {
fill: currentColor !important;
}

&-nav {
Expand Down Expand Up @@ -153,6 +144,7 @@ $w-topbar-user-nav: 90% !default;
order: 1;
}
}

@include media-breakpoint-up(m) {
display: flex;
justify-content: space-between;
Expand All @@ -173,4 +165,39 @@ $w-topbar-user-nav: 90% !default;
}
}
}

&-title {
display: flex;
align-items: center;
}

&-toggle {
@include reset-button;
@include media-breakpoint-up(m) {
display: none;
}
margin-left: -$m-h;
padding: $p-v $p-h;

&.has-notifications {
@include sui-badge-notification(true, 2px, 12px);
}

&Icon {
fill: $fill-topbar-user-toggle-icon !important;
height: $size-topbar-user-toggle-icon;
width: $size-topbar-user-toggle-icon;
}
}

&-nav-button {
align-items: center;
display: flex;
height: $h-topbar-user-flow-button;
}

&-wrap {
display: flex;
flex: 1;
}
}

0 comments on commit 1da38d6

Please sign in to comment.