Skip to content

Commit

Permalink
Fix color issue in light theme (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp3rflow authored Jun 13, 2022
1 parent 8114400 commit 53ccd68
Show file tree
Hide file tree
Showing 5 changed files with 971 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/pages/_app.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import type { AppProps } from "next/app";
import "normalize.css/normalize.css";
import "open-color/open-color.css";
import "./_app.scss";
import "flexlayout-react/style/dark.scss";
import "../styles/flexlayout-light.scss";
import "../styles/flexlayout-dark.scss";

const App: React.FC<AppProps> = ({ Component, pageProps }) => {
return <Component {...pageProps} />;
Expand Down
9 changes: 7 additions & 2 deletions src/pages/_app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ button {

input {
border: 0;
color: var(--oc-gray-5);
background-color: var(--oc-gray-9);
padding: 0.25em;
margin: 3px 0px;
color: var(--oc-gray-9);
background-color: var(--oc-gray-5);

@media (prefers-color-scheme: dark) {
color: var(--oc-gray-5);
background-color: var(--oc-gray-9);
}

&:hover {
box-shadow: 0 0 0 1px var(--pb-sep);
Expand Down
Loading

0 comments on commit 53ccd68

Please sign in to comment.