diff options
author | WANG Chucheng <me@wangchucheng.com> | 2022-03-31 20:06:08 +0300 |
---|---|---|
committer | WANG Chucheng <me@wangchucheng.com> | 2022-03-31 20:06:08 +0300 |
commit | 04c91ff7eb3aed8b98715aa2435ba104182d1b2d (patch) | |
tree | 990c7e783b381174335516d3d173a7977bafb2c9 /assets | |
parent | 54009e0f91ea38f8d566636fc7b7488dd762a1e9 (diff) |
fix: fail to get default style
Closes #176
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/eureka.css | 12 | ||||
-rw-r--r-- | assets/css/highlightjs.css | 6 | ||||
-rw-r--r-- | assets/css/postcss.config.js | 27 |
3 files changed, 24 insertions, 21 deletions
diff --git a/assets/css/eureka.css b/assets/css/eureka.css index 832f013..81971e3 100644 --- a/assets/css/eureka.css +++ b/assets/css/eureka.css @@ -1,10 +1,10 @@ /* Tailwind base - put variables under: tailwind.config.js */ -@import "node_modules/tailwindcss/base"; -@import "assets/css/base"; +@tailwind base; +@import "base.css"; /* Tailwind component classes registered by plugins*/ -@import "node_modules/tailwindcss/components"; +@tailwind components; /* Site Specific */ -@import "assets/css/prose"; -@import "assets/css/site"; +@import "prose.css"; +@import "site.css"; /* Tailwind's utility classes - generated based on config file */ -@import "node_modules/tailwindcss/utilities"; +@tailwind utilities; diff --git a/assets/css/highlightjs.css b/assets/css/highlightjs.css new file mode 100644 index 0000000..64c0171 --- /dev/null +++ b/assets/css/highlightjs.css @@ -0,0 +1,6 @@ +/* highlight.js */ +.hljs { + background-color: transparent !important; + color: var(--color-tertiary-text) !important; + padding: 0 !important; +} diff --git a/assets/css/postcss.config.js b/assets/css/postcss.config.js index 9bbd93a..7f1e8d5 100644 --- a/assets/css/postcss.config.js +++ b/assets/css/postcss.config.js @@ -1,16 +1,13 @@ -const themeDir = __dirname + '/../../'; +const themeDir = __dirname + "/../../"; -module.exports = { - plugins: [ - require('postcss-import')({ - path: [themeDir] - }), - require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'), - require('autoprefixer')({ - path: [themeDir] - }), - require('cssnano')({ - preset: 'default', - }), - ] -} +module.exports = { + plugins: [ + require("tailwindcss")(themeDir + "assets/css/tailwind.config.js"), + require("autoprefixer")({ + path: [themeDir], + }), + require("cssnano")({ + preset: "default", + }), + ], +}; |