Skip to content

Commit

Permalink
fix: tailwind preflight style pollution (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 authored Apr 22, 2024
1 parent 7213ec3 commit 3e5d442
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-ways-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rspress/theme-default": patch
---

fix: tailwind preflight style pollution
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
background-color: var(--rp-c-bg);
padding-left: 10px;
> button {
background-color: transparent;
padding: 12px;
transition: color 0.5s;
&:hover {
Expand Down
4 changes: 4 additions & 0 deletions packages/theme-default/src/components/Nav/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:global(.rspress-nav-menu-group-button) {
background-color: transparent;
}

.hidden {
transform: translate3d(0, calc(-100%), 0);
background: transparent;
Expand Down
3 changes: 2 additions & 1 deletion packages/theme-default/src/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@tailwind base;
@import url(./preflight.css);
@tailwind components;
@tailwind utilities;


*,
::before,
::after {
Expand Down
Loading

0 comments on commit 3e5d442

Please sign in to comment.