Skip to content

Commit

Permalink
fixup! feat: add PixNavigation component
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Nov 13, 2024
1 parent 1c06480 commit 9621563
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions addon/styles/_pix-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,28 @@
padding: var(--pix-spacing-6x) var(--pix-spacing-4x);
border-radius: var(--pix-spacing-6x);

--pix-navigation-button-bgcolor-hover: rgb(205, 209, 217, .3);
--pix-navigation-button-bgcolor-active: rgb(205, 209, 217, .5);

&--orga {
color: var(--pix-orga-50);
background-color: var(--pix-orga-500);
--pix-navigation-color: var(--pix-orga-500);
--pix-navigation-text-color: var(--pix-neutral-0);

--pix-navigation-button-bgcolor-hover: rgb(205, 209, 217, .3);
--pix-navigation-button-bgcolor-active: rgb(205, 209, 217, .5);
--pix-navigation-invert-color: var(--pix-orga-500);
--pix-navigation-invert-bgcolor: var(--pix-orga-50);
}

&--certif {
color: var(--pix-certif-50);
background-color: var(--pix-certif-500);

--pix-navigation-button-bgcolor-hover: rgb(205, 209, 217, .3);
--pix-navigation-button-bgcolor-active: rgb(205, 209, 217, .5);
--pix-navigation-invert-color: var(--pix-certif-500);
--pix-navigation-invert-bgcolor: var(--pix-certif-50);
--pix-navigation-color: var(--pix-certif-500);
--pix-navigation-text-color: var(--pix-neutral-0);
}

&--primary {
color: var(--pix-primary-10);
background-color: var(--pix-primary-700);

--pix-navigation-button-bgcolor-hover: rgb(205, 209, 217, .3);
--pix-navigation-button-bgcolor-active: rgb(205, 209, 217, .5);
--pix-navigation-invert-color: var(--pix-primary-700);
--pix-navigation-invert-bgcolor: var(--pix-primary-10);
--pix-navigation-color: var(--pix-primary-700);
--pix-navigation-text-color: var(--pix-neutral-0);
}

color: var(--pix-navigation-text-color);
background-color: var(--pix-navigation-color);

&__brand {
margin-bottom: 0;
padding:0;
Expand All @@ -70,8 +61,8 @@
@extend %pix-body-s;

& .pix-button--primary {
color: var(--pix-navigation-invert-color);
background-color:var(--pix-navigation-invert-bgcolor);
color: var(--pix-navigation-color);
background-color:var(--pix-navigation-text-color);

&:hover {
color: currentcolor;
Expand Down

0 comments on commit 9621563

Please sign in to comment.