Skip to content

Commit 8e71a79

Browse files
committed
use outline in additon to box-shadow
1 parent 68d748f commit 8e71a79

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-question-mark",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "A plugin that provides a helpful `?` dev time utilit",
55
"main": "src/index.js",
66
"license": "MIT",

src/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ const plugin = require('tailwindcss/plugin')
33
module.exports = plugin(function({ addUtilities, e }) {
44
addUtilities({
55
[`.${e('?')}`]: {
6-
'animation': `${e('?')}wobble 0.5s ease-in-out alternate infinite`
6+
'outline-style': 'solid',
7+
'animation': `${e('?')}wobble 0.6s ease-in-out alternate infinite`
78
},
89
[`@keyframes ${e('?')}wobble`]: {
910
'0%': {
10-
'box-shadow': 'inset 4px 4px rgb(236, 15, 170), inset -4px -4px rgb(236, 15, 170)'
11+
'outline-width': '4px',
12+
'outline-color': '#f16bc9',
13+
'box-shadow': 'inset 4px 4px #f16bc9, inset -4px -4px #f16bc9'
1114
},
1215
'100%': {
13-
'box-shadow': 'inset 8px 8px rgb(236, 15, 170), inset -8px -8px rgb(236, 15, 170)'
16+
'outline-width': '6px',
17+
'outline-color': '#f71fb6',
18+
'box-shadow': 'inset 6px 6px #f71fb6, inset -6px -6px #f71fb6'
1419
},
1520
}
1621
});

0 commit comments

Comments
 (0)