@obukata/tailwind-plugin-utility 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +16 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const plugin = require('tailwindcss/plugin');
2
2
 
3
3
  module.exports = plugin(function ({ addUtilities }) {
4
+
4
5
  addUtilities({
5
6
  // ✅ 1. text-yakuhan
6
7
  '.text-yakuhan': {
@@ -9,20 +10,30 @@ module.exports = plugin(function ({ addUtilities }) {
9
10
 
10
11
  // ✅ 2. text-link
11
12
  '.text-link': {
12
- '@apply': 'text-blue-500 underline hover:no-underline',
13
+ color: theme('colors.blue.500'),
14
+ 'text-decoration-line': 'underline',
15
+ '&:hover': {
16
+ 'text-decoration-line': 'none',
17
+ },
13
18
  },
14
19
 
15
20
  // ✅ 3. link-anchor
16
21
  '.link-anchor': {
17
- '@apply': '-mt-[calc(var(--header-height,0)+var(--header-contents-gutter,0))] pt-[calc(var(--header-height,0)+var(--header-contents-gutter,0))] pointer-events-none',
22
+ 'margin-top': 'calc(var(--header-height, 0) * -1 - var(--header-contents-gutter, 0))',
23
+ 'padding-top': 'calc(var(--header-height, 0) + var(--header-contents-gutter, 0))',
24
+ 'pointer-events': 'none',
18
25
  },
19
26
 
20
27
  // ✅ 4. ページの高さが画面以下でも100vhで表示出来る
21
28
  '.page-wrapper': {
22
- '@apply': 'flex flex-col min-h-screen overflow-hidden',
29
+ display: 'flex',
30
+ 'flex-direction': 'column',
31
+ 'min-height': '100vh',
32
+ overflow: 'hidden',
23
33
  },
24
34
  '.main': {
25
- '@apply': 'flex-1',
35
+ flex: '1 1 0%',
26
36
  },
27
37
  });
28
- });
38
+
39
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obukata/tailwind-plugin-utility",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "repository": {