-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
refactor: box shadow color #143
Conversation
faf0a0c
to
251519b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 🎉
Could you use the default color here? 🤔
NES.css/scss/elements/balloons.scss
Lines 10 to 22 in 73b3616
box-shadow: | |
0 -4px $background-color, | |
0 -8px $base-color, | |
4px 0 $background-color, | |
4px -4px $base-color, | |
8px 0 $base-color, | |
0 4px $background-color, | |
0 8px $base-color, | |
-4px 0 $background-color, | |
-4px 4px $base-color, | |
-8px 0 $base-color, | |
-4px -4px $base-color, | |
4px 4px $base-color; |
You could but I wouldn't. Because the default color is the |
68b0d36
to
a202f15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎊
$ret: ""; | ||
$moz: ""; | ||
@if ($default-color == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really clever. Well done, @jjspace! 😉
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
ref #60
Redo box-shadows on pseudo elements to use default color to reduce size. Added functionality to detect the most used color in icons based off this sass function
count-values
Size Before:
npm run build
time: 16.190sSize After:
npm run build
time: 14.910s