Skip to content

Commit

Permalink
Merge pull request #83 from alvaromontoro/78-reduce-number-of-root-de…
Browse files Browse the repository at this point in the history
…finitions

Remove unncessary :root rule
  • Loading branch information
alvaromontoro authored Feb 9, 2023
2 parents bee50a6 + 9371fa9 commit b6315aa
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions dist/almond.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
--error: #d00;
--warning: #ec0;
--info: #369;
--correct: #080; }

:root {
--correct: #080;
/* Calculated colors */
--primary: hsl(var(--primaryH), var(--primaryS), var(--primaryL));
--primary-bright: hsl(var(--primaryH), calc(var(--primaryS) * 1.25), 90%);
Expand Down
4 changes: 1 addition & 3 deletions dist/almond.lite.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
--error: #d00;
--warning: #ec0;
--info: #369;
--correct: #080; }

:root {
--correct: #080;
/* Calculated colors */
--primary: hsl(var(--primaryH), var(--primaryS), var(--primaryL));
--primary-bright: hsl(var(--primaryH), calc(var(--primaryS) * 1.25), 90%);
Expand Down
2 changes: 1 addition & 1 deletion dist/almond.lite.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/almond.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "almond.css",
"version": "1.2.1",
"version": "1.2.2",
"description": "Collection of CSS styles to make simple websites look nicer.",
"main": "dist/almond.css",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/general/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
--warning: #ec0;
--info: #369;
--correct: #080;
}

:root {
/* Calculated colors */
--primary: hsl(var(--primaryH), var(--primaryS), var(--primaryL));
--primary-bright: hsl(var(--primaryH), calc(var(--primaryS) * 1.25), 90%); // #7ef;
Expand Down

0 comments on commit b6315aa

Please sign in to comment.