fix: 左侧边栏未固定的问题

This commit is contained in:
Ivan Li
2021-07-25 21:47:25 +08:00
parent a1282c43b4
commit 0935456906
3 changed files with 308 additions and 3 deletions

View File

@@ -1,13 +1,13 @@
.wrapper {
@apply bg-green-400 text-white min-h-screen;
@apply absolute top-0 left-0 right-0 bottom-0 sm:static;
@apply -translate-x-full transform transition-transform sm:transition-none sm:translate-x-0;
@apply fixed top-0 sm:left-0 right-0 bottom-0 sm:static -left-full;
@apply transition-all;
:global(.dark) & {
@apply bg-gray-800 text-gray-400;
}
&.focusOpen {
@apply translate-x-0;
@apply left-0;
}
}
.sidebar {