diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db439aee..8ddb2f04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: - name: Install dependencies run: yarn install --no-ignore-optional --frozen-lockfile - name: Audit dependencies - run: yarn audit + run: yarn audit || true continue-on-error: true - name: Lint run: yarn lint diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f3af54d..cb88406d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,10 +15,17 @@ "prettier.printWidth": 120, "prettier.requireConfig": true, "prettier.useEditorConfig": false, - "scss.lint.important": "ignore", - "scss.lint.universalSelector": "ignore", "[markdown]": { - "editor.wordWrap": "on", - "editor.quickSuggestions": false - } + "editor.quickSuggestions": false, + "editor.trimAutoWhitespace": false, + "editor.wordWrap": "on" + }, + "stylelint.packageManager": "yarn", + "stylelint.validate": [ + "css", + "html", + "postcss", + "sass", + "scss" + ] } diff --git a/assets/sass/abstracts/_themes.scss b/assets/sass/abstracts/_themes.scss index 3e6a0ffc..230b9263 100644 --- a/assets/sass/abstracts/_themes.scss +++ b/assets/sass/abstracts/_themes.scss @@ -185,7 +185,5 @@ $color-logo2: #ffb900; $color-logo3: #009cdf; // Icons (modified twemojis) -// lightbulb on $icon-bulb-on: "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjIgMzUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMjIgMTEuMDZjMCA2LjQ0LTUgNy40NC01IDEzLjQ0IDAgMy4xLTMuMTIgMy4zNi01LjUgMy4zNi0yLjA1IDAtNi41OS0uNzgtNi41OS0zLjM2IDAtNi00LjkxLTctNC45MS0xMy40NEMwIDUuMDMgNS4yOS4xNCAxMS4wOC4xNCAxNi44OC4xNCAyMiA1LjAzIDIyIDExLjA2eiIgZmlsbD0iI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i44OC4xNCAyMiA1LjAzIDIyIDExLjA2eiIgZmlsbD0iI0NDQ0JDQiIvPjxwYXRoIGQ9Ik0xNS4xNyAzMi41YzAgLjgzLTIuMjQgMi41LTQuMTcgMi41LTEuOTMgMC00LjE3LTEuNjctNC4xNy0yLjUgMC0uODMgMi4yNC0uNSA0LjE3LS41IDEuOTMgMCA0LjE3LS4zMyA0LjE3LjV6IiBmaWxsPSIjQ0NENkREIi8+PHBhdGggZD0iTTE1LjcgMTAuM2ExIDEgMCAwMC0xLjQgMEwxMSAxMy41OGwtMy4zLTMuM2ExIDEgMCAxMC0xLjQgMS40MmwzLjcgMy43VjI2YTEgMSAwIDEwMiAwVjE1LjQxbDMuNy0zLjdhMSAxIDAgMDAwLTEuNDJ6IiBmaWxsPSIjN0Q3QTcyIi8+PHBhdGggZD0iTTE3IDMxYTIgMiAwIDAxLTIgMkg3YTIgMiAwIDAxLTItMnYtNmgxMnY2eiIgZmlsbD0iIzk5QUFCNSIvPjxwYXRoIGQ9Ik01IDMyYTEgMSAwIDAxLS4xNi0xLjk5bDEyLTJhMSAxIDAgMTEuMzMgMS45N2wtMTIgMkEuOTMuOTMgMCAwMTUgMzJ6bTAtNGExIDEgMCAwMS0uMTYtMS45OWwxMi0yYTEgMSAwIDExLjMzIDEuOTdsLTEyIDJBLjkzLjkzIDAgMDE1IDI4eiIgZmlsbD0iI0NDRDZERCIvPjwvZz48L3N2Zz4K"; diff --git a/assets/sass/components/_global.scss b/assets/sass/components/_global.scss index 4059c385..be4aef11 100644 --- a/assets/sass/components/_global.scss +++ b/assets/sass/components/_global.scss @@ -67,7 +67,7 @@ a { } strong { - letter-spacing: 0.001em; + letter-spacing: 0.008em; // not sure why the discrepancy between weights } blockquote { diff --git a/content/notes/css-waving-hand-emoji/index.md b/content/notes/css-waving-hand-emoji/index.md index 91cd062d..6bd29402 100644 --- a/content/notes/css-waving-hand-emoji/index.md +++ b/content/notes/css-waving-hand-emoji/index.md @@ -18,38 +18,43 @@ If you examine [my homepage](/) long enough, you might notice the π hand emoj Below are the code snippets you can grab and customize to make your own ["waving hand" π](https://emojipedia.org/waving-hand-sign/) emojis **_actually wave_**, and a [CodePen playground](https://codepen.io/jakejarvis/pen/pBZWZw) for live testing. +## Demo + {{< codepen username="jakejarvis" id="pBZWZw" left-tab="css" right-tab="result" >}} -## CSS: +## CSS ```css -span.wave { - animation-name: wave-animation; /* Refers to the name of your @keyframes element below */ - animation-duration: 2.5s; /* Change to speed up or slow down */ - animation-iteration-count: infinite; /* Never stop waving :) */ - transform-origin: 70% 70%; /* Pivot around the bottom-left palm */ +.wave { + animation-name: wave-animation; /* Refers to the name of your @keyframes element below */ + animation-duration: 2.5s; /* Change to speed up or slow down */ + animation-iteration-count: infinite; /* Never stop waving :) */ + transform-origin: 70% 70%; /* Pivot around the bottom-left palm */ display: inline-block; } @keyframes wave-animation { - 0% { transform: rotate( 0.0deg) } - 10% { transform: rotate(-10.0deg) } /* The following four values can be played with to make the waving more or less extreme */ - 20% { transform: rotate( 12.0deg) } - 30% { transform: rotate(-10.0deg) } - 40% { transform: rotate( 9.0deg) } - 50% { transform: rotate( 0.0deg) } /* Reset for the last half to pause */ - 100% { transform: rotate( 0.0deg) } + 0% { transform: rotate( 0.0deg) } + 10% { transform: rotate(14.0deg) } /* The following five values can be played with to make the waving more or less extreme */ + 20% { transform: rotate(-8.0deg) } + 30% { transform: rotate(14.0deg) } + 40% { transform: rotate(-4.0deg) } + 50% { transform: rotate(10.0deg) } + 60% { transform: rotate( 0.0deg) } /* Reset for the last half to pause */ + 100% { transform: rotate( 0.0deg) } } ``` -## HTML: +## HTML ```html {linenos=false} -π +