Skip to content

Commit

Permalink
chore: sass cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Nov 18, 2024
1 parent 5b6235c commit 0af2440
Show file tree
Hide file tree
Showing 40 changed files with 91 additions and 237 deletions.
11 changes: 5 additions & 6 deletions react/ai-label/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/ai-label/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/batch-actions/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
13 changes: 0 additions & 13 deletions react/batch-actions/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
padding: 0;
}

.example--link {
@include type.type-style('label-01');

display: flex;
align-items: center;
margin-right: 0.5rem;
}

.example--link__icon {
margin-right: 0.25rem;
}
12 changes: 6 additions & 6 deletions react/column-alignment/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
2 changes: 0 additions & 2 deletions react/column-alignment/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';

body {
margin: 0;
Expand Down
12 changes: 6 additions & 6 deletions react/customizeColumns/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
4 changes: 1 addition & 3 deletions react/customizeColumns/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/spacing' as *;

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/dynamic-nested-rows/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/dynamic-nested-rows/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/editableCells/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/editableCells/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
11 changes: 6 additions & 5 deletions react/filterFlyout/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';
@use '@carbon/type/scss/font-family';

.page-grid {
Expand Down
2 changes: 0 additions & 2 deletions react/filterFlyout/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';

body {
margin: 0;
Expand Down
11 changes: 6 additions & 5 deletions react/filterPanel/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';
@use '@carbon/type/scss/font-family';

.page-grid {
Expand Down
2 changes: 0 additions & 2 deletions react/filterPanel/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';

body {
margin: 0;
Expand Down
12 changes: 6 additions & 6 deletions react/globalFilter/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
2 changes: 0 additions & 2 deletions react/globalFilter/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/header/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

:root {
@include theme;
Expand Down
1 change: 0 additions & 1 deletion react/header/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/infiniteScroll/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/infiniteScroll/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
12 changes: 6 additions & 6 deletions react/mix-and-match/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
2 changes: 0 additions & 2 deletions react/mix-and-match/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/nestedRows/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/nestedRows/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
11 changes: 5 additions & 6 deletions react/pagination/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;
@use '@carbon/react/scss/utilities';
@use '@carbon/react/scss/colors';
@use '@carbon/react/scss/type';

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/pagination/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
8 changes: 2 additions & 6 deletions react/row-actions/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;

.page-grid {
margin-top: 4rem;
Expand Down
1 change: 0 additions & 1 deletion react/row-actions/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';

body {
margin: 0;
Expand Down
9 changes: 3 additions & 6 deletions react/row-click/src/Example/example.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities';
@use '@carbon/styles/scss/colors';
@use '@carbon/styles/scss/type';
@use '@carbon/type/scss/font-family';
@use '@carbon/ibm-products/css/index';
@use '@carbon/react/scss/theme' as *;
@use '@carbon/react/scss/spacing' as *;

.page-grid {
margin-top: 4rem;
Expand Down
2 changes: 0 additions & 2 deletions react/row-click/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@use '@carbon/react' with (
$font-path: '@ibm/plex'
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';

body {
margin: 0;
Expand Down
Loading

0 comments on commit 0af2440

Please sign in to comment.