Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAKING] 📦 Mise à jour des packages autour de SASS #745

Merged
merged 6 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion addon/styles/_pix-app-layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/breakpoints";

.pix-app-layout {
display: grid;
grid-template-areas:
Expand All @@ -21,7 +23,7 @@
grid-area: footer;
}

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
display: block
}

Expand Down
4 changes: 3 additions & 1 deletion addon/styles/_pix-background-header.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/colors";

.pix-background-header {
position: relative;
padding: 68px var(--pix-spacing-6x) 0;
Expand All @@ -10,7 +12,7 @@
width: 100%;
min-height: 270px;
color: var(--pix-neutral-0);
background: $pix-primary-app-gradient;
background: colors.$pix-primary-app-gradient;
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-block.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/shadows";

.pix-block {
position: relative;
background-color: var(--pix-neutral-0);
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-button-base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-button {
display: flex;
align-items: center;
Expand Down
5 changes: 4 additions & 1 deletion addon/styles/_pix-filter-banner.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/breakpoints";
@use "pix-design-tokens/shadows";

.pix-filter-banner {
@extend %pix-shadow-sm;

Expand Down Expand Up @@ -46,7 +49,7 @@
padding-right: var(--pix-spacing-1x);
}

@include device-is('tablet') {
@include breakpoints.device-is('tablet') {
.pix-filter-banner {
flex-direction: row;
gap: var(--pix-spacing-6x);
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-filterable-and-searchable-select.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "component-state/form";

.pix-filterable-and-searchable-select {
display: flex;
max-width: 100%;
Expand Down
3 changes: 3 additions & 0 deletions addon/styles/_pix-indicator-card.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/typography";
@use "pix-design-tokens/shadows";

.indicator-card {
@extend %pix-shadow-xs;

Expand Down
3 changes: 3 additions & 0 deletions addon/styles/_pix-input-code.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/typography";
@use "component-state/form";

.pix-input-code {
@extend %pix-monospace;

Expand Down
3 changes: 3 additions & 0 deletions addon/styles/_pix-input-password.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/typography";
@use "component-state/form";

.pix-input-password {
position: relative;
display: inline-flex;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-input.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "component-state/form";

.pix-input {
position: relative;
display: inline-flex;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-label.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-label {
display: block;
color: var(--pix-neutral-900);
Expand Down
8 changes: 6 additions & 2 deletions addon/styles/_pix-modal.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@use "pix-design-tokens/breakpoints";
@use "pix-design-tokens/typography";
@use "pix-design-tokens/shadows";

.pix-modal__overlay {
position: fixed;
top: 0;
Expand Down Expand Up @@ -58,7 +62,7 @@
flex-shrink: 0;
margin-top: -4px;

@include device-is('tablet') {
@include breakpoints.device-is('tablet') {
width: var(--pix-spacing-10x);
height: var(--pix-spacing-10x);
}
Expand All @@ -71,7 +75,7 @@
padding-right: var(--pix-spacing-8x) + var(--pix-spacing-2x);
color: var(--pix-neutral-900);

@include device-is('tablet') {
@include breakpoints.device-is('tablet') {
padding-right: var(--pix-spacing-10x) + var(--pix-spacing-2x);
}
}
Expand Down
4 changes: 4 additions & 0 deletions addon/styles/_pix-multi-select.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@use "pix-design-tokens/typography";
@use "component-state/form";
@use "pix-design-tokens/shadows";

.pix-multi-select {
position: relative;
display: inline-flex;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-navigation-button.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-navigation-button {
@extend %pix-body-s;

Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-navigation-separator.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-navigation-separator {
@extend %pix-body-l;

Expand Down
15 changes: 9 additions & 6 deletions addon/styles/_pix-navigation.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/breakpoints";
@use "pix-design-tokens/typography";

.pix-navigation {
--bg-color-focus: rgb(var(--pix-neutral-100-inline), 50%);
--bg-color-active: rgb(var(--pix-neutral-100-inline), 30%);
Expand All @@ -24,7 +27,7 @@
border-radius: var(--pix-spacing-6x);


@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
position: static;
flex-direction: column;
align-items: stretch;
Expand All @@ -51,7 +54,7 @@
margin:0 auto;
}

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
display:flex;
flex-direction: row;
align-items: center;
Expand All @@ -71,7 +74,7 @@
&__burger-menu {
display: none;

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
display: block;
margin-left:auto;

Expand Down Expand Up @@ -100,7 +103,7 @@
gap: var(--pix-spacing-2x);
align-self: stretch;

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
display: none;
padding: 0 var(--pix-spacing-6x);

Expand All @@ -126,7 +129,7 @@
word-break: break-word;
}

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
display: none;

.pix-navigation--opened & {
Expand All @@ -148,7 +151,7 @@
padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
white-space: unset;

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
width: auto;
}
}
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-notification-alert.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-notification-alert {
@extend %pix-body-s;

Expand Down
4 changes: 3 additions & 1 deletion addon/styles/_pix-pagination.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/breakpoints";

.pix-pagination,
.pix-pagination-condensed {
display: flex;
Expand Down Expand Up @@ -42,7 +44,7 @@
}
}

@include device-is('tablet') {
@include breakpoints.device-is('tablet') {
.pix-pagination {
gap:var(--pix-spacing-2x);
justify-content: space-between;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-progress-bar.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.progress-bar {
position: relative;
display: grid;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-return-to.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-return-to {
@extend %pix-body-l;

Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-search-input.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "component-state/form";

.pix-search-input {
position: relative;
display: inline-flex;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-select-list.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-select_list {
padding: var(--pix-spacing-2x);
border-top: 1px solid var(--pix-neutral-20);
Expand Down
4 changes: 4 additions & 0 deletions addon/styles/_pix-select.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@use "pix-design-tokens/typography";
@use "component-state/form";
@use "pix-design-tokens/shadows";

.pix-select {
position: relative;
display: inline-flex;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-selectable-tag.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

$checkmark-width: 0.625rem;
$checkmark-width-with-space: $checkmark-width + 0.438rem;

Expand Down
7 changes: 5 additions & 2 deletions addon/styles/_pix-sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/breakpoints";
@use "pix-design-tokens/typography";

.pix-sidebar__overlay {
position: fixed;
top: 0;
Expand Down Expand Up @@ -46,7 +49,7 @@
&__close-button {
flex-shrink: 0;

@include device-is('tablet') {
@include breakpoints.device-is('tablet') {
width: var(--tablet-close-button-size);
height: var(--tablet-close-button-size);
}
Expand All @@ -64,7 +67,7 @@
padding-right: var(--mobile-close-button-size) + var(--space-between-title-and-close-button);
color: var(--pix-neutral-900);

@include device-is('tablet') {
@include breakpoints.device-is('tablet') {
padding-right: var(--tablet-close-button-size) + var(--space-between-title-and-close-button);
}
}
Expand Down
7 changes: 5 additions & 2 deletions addon/styles/_pix-structure-switcher.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "pix-design-tokens/breakpoints";
@use "pix-design-tokens/shadows";

.pix-structure-switcher {
--pix-structure-bg-hover: var(--pix-primary-100);

Expand All @@ -9,7 +12,7 @@
--pix-structure-bg-hover: var(--pix-certif-50);
}

@include device-is("mobile") {
@include breakpoints.device-is("mobile") {
width: 100%;
}

Expand All @@ -33,7 +36,7 @@
overflow-y: auto;
border-radius: 8px;

@include device-is('mobile') {
@include breakpoints.device-is('mobile') {
position: static !important;
display: none;
width: 0; // force dropdown to resize to its parent
Expand Down
3 changes: 2 additions & 1 deletion addon/styles/_pix-table.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'pix-table-column';
@use "pix-design-tokens/breakpoints";
@use "pix-design-tokens/typography";

.pix-table {
width: 100%;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-tag.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-tag {
@extend %pix-body-s;

Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-textarea.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "component-state/form";

.pix-textarea {
display: flex;
flex-direction: column;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-toast.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-toast {
display: flex;
width: 400px;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-toggle-button.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/typography";

.pix-toggle-button {
display: inline-flex;
flex-direction: column;
Expand Down
2 changes: 2 additions & 0 deletions addon/styles/_pix-tooltip.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "pix-design-tokens/shadows";

.pix-tooltip {
position: relative;
display: flex;
Expand Down
Loading
Loading