Skip to content
Open
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: 2 additions & 2 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "./shared/scss/media";
@import "./shared/scss/theme_variables";
@use "./shared/scss/media" as *;
@use "./shared/scss/theme_variables" as *;

.body-cover {
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/footer/footer.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../shared/scss/media";
@import "../../shared/scss/theme_variables";
@use "../../shared/scss/media" as *;
@use "../../shared/scss/theme_variables" as *;

#footer {
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/header/header.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../shared/scss/media";
@import "../../shared/scss/theme_variables";
@use "../../shared/scss/media" as *;
@use "../../shared/scss/theme_variables" as *;

#header {
color: #fff;
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/settings/settings.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../shared/scss/media";
@import "../../shared/scss/theme_variables";
@use "../../shared/scss/media" as *;
@use "../../shared/scss/theme_variables" as *;

.overlay {
position: fixed;
Expand Down
4 changes: 2 additions & 2 deletions src/app/feeds/feed/feed.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../shared/scss/media";
@import "../../shared/scss/theme_variables";
@use "../../shared/scss/media" as *;
@use "../../shared/scss/theme_variables" as *;

a {
text-decoration: none;
Expand Down
4 changes: 2 additions & 2 deletions src/app/feeds/item/item.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../shared/scss/media";
@import "../../shared/scss/theme_variables";
@use "../../shared/scss/media" as *;
@use "../../shared/scss/theme_variables" as *;

p {
margin: 2px 0;
Expand Down
6 changes: 3 additions & 3 deletions src/app/item-details/comment/comment.component.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../../shared/scss/media";
@import "../../shared/scss/theme_variables";
@use "../../shared/scss/media" as *;
@use "../../shared/scss/theme_variables" as *;

:host >>> {
:host ::ng-deep {
a {
font-weight: bold;
text-decoration: none;
Expand Down
4 changes: 2 additions & 2 deletions src/app/item-details/item-details.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../shared/scss/media";
@import "../shared/scss/theme_variables";
@use "../shared/scss/media" as *;
@use "../shared/scss/theme_variables" as *;

.main-content {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "../../scss/media";
@import "../../scss/theme_variables";
@use "sass:math";
@use "../../scss/media" as *;
@use "../../scss/theme_variables" as *;

.error-section {
height: 300px;
Expand Down Expand Up @@ -65,9 +66,9 @@
content: "";
position: absolute;
top: 100%;
left: $skull-size / 15;
border-right: $skull-size / 20 solid transparent;
border-left: $skull-size / 40 solid transparent;
left: math.div($skull-size, 15);
border-right: math.div($skull-size, 20) solid transparent;
border-left: math.div($skull-size, 40) solid transparent;
}
}
}
Expand All @@ -77,7 +78,7 @@
position: absolute;
top: 75%;
left: 30%;
border-radius: 0 0 $skull-size / 10 $skull-size / 10;
border-radius: 0 0 math.div($skull-size, 10) math.div($skull-size, 10);
&:before {
content: "";
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions src/app/shared/components/loader/loader.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../scss/media";
@import "../../scss/theme_variables";
@use "../../scss/media" as *;
@use "../../scss/theme_variables" as *;

.loader {
-webkit-animation: load1 1s infinite ease-in-out;
Expand Down
12 changes: 7 additions & 5 deletions src/app/shared/scss/_themes.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import "./media";
@import "./theme_variables";
@use "sass:color";
@use "sass:math";
@use "./media" as *;
@use "./theme_variables" as *;

/* ----------------------------------

Expand Down Expand Up @@ -142,10 +144,10 @@
}

&:before {
border-top: $skull-size / 8 solid $wrapper-background-color;
border-top: math.div($skull-size, 8) solid $wrapper-background-color;

@media #{$mobile-only} {
border-top: $skull-size / 8 solid $wrapper-mobile-background-color;
border-top: math.div($skull-size, 8) solid $wrapper-mobile-background-color;
}
}
}
Expand Down Expand Up @@ -230,7 +232,7 @@
$theme-amoledblack-body-background-color,
$theme-amoledblack-text-color,
$theme-amoledblack-text-color,
darken($theme-amoledblack-text-color, 33%),
color.adjust($theme-amoledblack-text-color, $lightness: -33%),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: Sass darken() to color.adjust() conversion on an rgba color

The conversion from darken($theme-amoledblack-text-color, 33%) to color.adjust($theme-amoledblack-text-color, $lightness: -33%) at src/app/shared/scss/_themes.scss:235 is an exact behavioral equivalence per Sass documentation. However, the input color is rgba(255, 255, 255, 0.75) (defined at src/app/shared/scss/_theme_variables.scss:35), which is white at 75% opacity. Reducing lightness by 33 absolute percentage points (from 100% to 67%) produces a medium-gray at 75% opacity. The Sass team recommends color.scale() for perceptually smoother adjustments — this would produce a different (darker) result. Since this PR is a mechanical migration preserving existing behavior, color.adjust is the correct choice, but a future improvement could consider color.scale() for better perceptual consistency.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

$theme-amoledblack-body-background-color,
$theme-amoledblack-subtext-color,
$theme-amoledblack-secondary-color,
Expand Down
6 changes: 3 additions & 3 deletions src/app/user/user.component.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../shared/scss/media";
@import "../shared/scss/theme_variables";
@use "../shared/scss/media" as *;
@use "../shared/scss/theme_variables" as *;

:host >>> pre {
:host ::ng-deep pre {
white-space: pre-wrap;
}

Expand Down
2 changes: 1 addition & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "./app/shared/scss/themes";
@use "./app/shared/scss/themes";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: @use without as * for themes import emits CSS but provides no member access

In src/styles.scss:1, _themes.scss is imported via @use "./app/shared/scss/themes" (without as *), while all other files use as *. This is intentional and correct: _themes.scss only emits CSS via @include theme(...) calls and defines no variables/mixins that styles.scss needs to reference. Using @use without as * is cleaner here since it avoids polluting the namespace. Worth noting that if _themes.scss ever exports variables or mixins that styles.scss needs, the import would need to change to as * or use the themes. namespace prefix.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.


html {
height: 100%;
Expand Down