Skip to content

Commit

Permalink
style: global color
Browse files Browse the repository at this point in the history
  • Loading branch information
mz-dfhp committed Apr 12, 2024
1 parent ab7e44a commit d49fb2b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@
padding: 0;
}

html,body,#root {
html,
body,
#root {
width: 100%;
height: 100%;
}


html {
&.light {
color: #000;

}

&.dark {
color: rgba(255, 255, 255, 0.85);

}
}
4 changes: 2 additions & 2 deletions src/layout/AppMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ const AppMenu: React.FC<{ collapsed: boolean }> = ({ collapsed }) => {

return (
<div className="h-[100vh]">
<div className="logo h-[64px] w-full flex items-center justify-center text-white">
<div className="logo h-[64px] w-full flex items-center justify-center">
<img
src={Logo}
className="logo mx-[10px] h-[32px] w-[32px] animate-spin-slow rounded-full"
alt="React logo"
/>
{!collapsed && <span className="overflow-hidden text-center text-black/80 dark:text-white">React-Admin</span>}
{!collapsed && <span className="overflow-hidden text-center">React-Admin</span>}
</div>
<Menu
mode="inline"
Expand Down

0 comments on commit d49fb2b

Please sign in to comment.