-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathtailwind.config.cjs
69 lines (68 loc) · 1.79 KB
/
tailwind.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {
width: {
'calc-full': 'calc(100% - 0.5rem)'
}
}
},
plugins: [
require('@tailwindcss/typography'),
plugin(function ({ addUtilities }) {
addUtilities({
'.scrollbar-hide': {
/* IE and Edge */
'-ms-overflow-style': 'none',
/* Firefox */
'scrollbar-width': 'none',
/* Safari and Chrome */
'&::-webkit-scrollbar': {
display: 'none'
}
},
'.scrollbar-default': {
/* IE and Edge */
'-ms-overflow-style': 'auto',
/* Firefox */
'scrollbar-width': 'auto',
/* Safari and Chrome */
'&::-webkit-scrollbar': {
display: 'block'
}
},
'.btn': {
'align-items': 'center',
'border-color': 'transparent',
'border-radius': '0.25rem',
'border-width': '1px',
'display': 'inline-flex',
'font-size': '.875rem',
'line-height': '1.25rem',
'padding': '0.5rem 0.75rem',
'pointer-events': 'auto',
},
'.text-overflow-l4': {
overflow: 'hidden',
'text-overflow': 'ellipsis',
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': '4',
},
'.text-overflow-l2': {
overflow: 'hidden',
'text-overflow': 'ellipsis',
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': '2',
}
}, ['responsive'])
})
],
darkMode: 'class'
};