Skip to content

Commit

Permalink
fix: node-sass durch dart-sass (sass) ersetzen
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenKowalzik committed Oct 21, 2021
1 parent bd8931c commit e87bba7
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 398 deletions.
4 changes: 3 additions & 1 deletion lib/embed/_video.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

@import '../element';
@import 'powered-by';

Expand All @@ -13,7 +15,7 @@
&::before {
content: '';
display: block;
padding-top: 100/16*9 * 1%;
padding-top: math.div(100, 16) * 9 * 1%;
}

img {
Expand Down
4 changes: 3 additions & 1 deletion lib/embed/tweet.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

@import '../element';
@import 'powered-by';

Expand All @@ -16,7 +18,7 @@ $quoteLineWidth: 4px;

article {
border-left: $quoteLineWidth solid #bbb;
margin-left: $profile-image-width / 2 - $quoteLineWidth / 2;
margin-left: math.div($profile-image-width, 2) - math.div($quoteLineWidth, 2);
padding-left: 2rem;
padding-bottom: 1rem;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
"karma-webpack": "^4.0.2",
"lint-staged": "^10.4.0",
"mocha": "^8.2.1",
"node-sass": "^4.7.2",
"postcss-loader": "^3.0.0",
"puppeteer": "^2.1.1",
"raw-loader": "^4.0.2",
"sass": "^1.43.2",
"sass-loader": "^8.0.0",
"semantic-release": "^17.4.3",
"webpack": "^4.44.2",
Expand Down
Loading

0 comments on commit e87bba7

Please sign in to comment.