Skip to content

Commit 8b7dafb

Browse files
authored
chore: Fix sass warnings (#47)
1 parent 00041cd commit 8b7dafb

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/compile-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import { buildStyles } from "@cloudscape-design/theming-build/internal";
44

5-
await buildStyles("src", "lib/components");
5+
await buildStyles("src", "lib/components", [], { failOnDeprecations: true });

src/code-view/styles.scss

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,6 @@ $color-background-code-view-dark: #282c34;
1717
}
1818

1919
.code {
20-
:global(.awsui-dark-mode) &,
21-
:global(.awsui-polaris-dark-mode) & {
22-
background-color: $color-background-code-view-dark;
23-
}
24-
&-with-line-numbers {
25-
border-start-start-radius: 0;
26-
border-end-start-radius: 0;
27-
flex: 1;
28-
}
29-
&-with-actions {
30-
min-block-size: cs.$space-scaled-xxl;
31-
padding-inline-end: calc(2 * cs.$space-static-xxxl);
32-
align-items: center;
33-
}
3420
background-color: $color-background-code-view-light;
3521
display: flex;
3622
border-start-start-radius: cs.$border-radius-tiles;
@@ -42,16 +28,23 @@ $color-background-code-view-dark: #282c34;
4228
margin-block: 0;
4329
margin-inline: 0;
4430
overflow: auto;
45-
}
46-
47-
.line-numbers {
4831
:global(.awsui-dark-mode) &,
4932
:global(.awsui-polaris-dark-mode) & {
5033
background-color: $color-background-code-view-dark;
5134
}
35+
&-with-line-numbers {
36+
border-start-start-radius: 0;
37+
border-end-start-radius: 0;
38+
flex: 1;
39+
}
5240
&-with-actions {
5341
min-block-size: cs.$space-scaled-xxl;
42+
padding-inline-end: calc(2 * cs.$space-static-xxxl);
43+
align-items: center;
5444
}
45+
}
46+
47+
.line-numbers {
5548
border-start-start-radius: cs.$border-radius-tiles;
5649
border-end-start-radius: cs.$border-radius-tiles;
5750
background-color: $color-background-code-view-light;
@@ -64,6 +57,13 @@ $color-background-code-view-dark: #282c34;
6457
border-inline-end-style: solid;
6558
border-inline-end-color: cs.$color-border-divider-default;
6659
justify-content: center;
60+
:global(.awsui-dark-mode) &,
61+
:global(.awsui-polaris-dark-mode) & {
62+
background-color: $color-background-code-view-dark;
63+
}
64+
&-with-actions {
65+
min-block-size: cs.$space-scaled-xxl;
66+
}
6767
}
6868

6969
.actions {

0 commit comments

Comments
 (0)