style(tailwind.config.js): added dark theme for attribution
This commit is contained in:
parent
4a9d1c7c54
commit
6afebffe1f
1 changed files with 30 additions and 26 deletions
|
|
@ -1,10 +1,7 @@
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
import plugin from "tailwindcss/plugin";
|
import plugin from "tailwindcss/plugin";
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: [
|
content: ["./index.html", "./src/**/*.{js,ts,tsx,jsx}"],
|
||||||
"./index.html",
|
|
||||||
"./src/**/*.{js,ts,tsx,jsx}",
|
|
||||||
],
|
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
important: true,
|
important: true,
|
||||||
theme: {
|
theme: {
|
||||||
|
|
@ -55,32 +52,39 @@ module.exports = {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'.password':{
|
".password": {
|
||||||
"-webkit-text-security": "disc",
|
"-webkit-text-security": "disc",
|
||||||
"font-family": "text-security-disc"
|
"font-family": "text-security-disc",
|
||||||
|
|
||||||
},
|
},
|
||||||
'.stop': {
|
".stop": {
|
||||||
'-webkit-animation-play-state': 'paused',
|
"-webkit-animation-play-state": "paused",
|
||||||
'-moz-animation-play-state': 'paused',
|
"-moz-animation-play-state": "paused",
|
||||||
'animation-play-state': 'paused',
|
"animation-play-state": "paused",
|
||||||
},
|
},
|
||||||
'.custom-scroll':{
|
".custom-scroll": {
|
||||||
'&::-webkit-scrollbar': {
|
"&::-webkit-scrollbar": {
|
||||||
'width': '8px',
|
width: "8px",
|
||||||
},
|
},
|
||||||
'&::-webkit-scrollbar-track': {
|
"&::-webkit-scrollbar-track": {
|
||||||
'backgroundColor': '#f1f1f1',
|
backgroundColor: "#f1f1f1",
|
||||||
},
|
},
|
||||||
'&::-webkit-scrollbar-thumb': {
|
"&::-webkit-scrollbar-thumb": {
|
||||||
'backgroundColor': '#ccc',
|
backgroundColor: "#ccc",
|
||||||
'borderRadius': '999px',
|
borderRadius: "999px",
|
||||||
},
|
},
|
||||||
'&::-webkit-scrollbar-thumb:hover': {
|
"&::-webkit-scrollbar-thumb:hover": {
|
||||||
'backgroundColor': '#bbb'
|
backgroundColor: "#bbb",
|
||||||
}
|
|
||||||
},
|
},
|
||||||
})
|
},
|
||||||
}),require('@tailwindcss/line-clamp'),require('@tailwindcss/typography'),
|
".dark .theme-attribution .react-flow__attribution": {
|
||||||
|
backgroundColor: "rgba(255, 255, 255, 0.2)",
|
||||||
|
},
|
||||||
|
".dark .theme-attribution .react-flow__attribution a": {
|
||||||
|
color: "black",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
require("@tailwindcss/line-clamp"),
|
||||||
|
require("@tailwindcss/typography"),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue