1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-02 07:20:38 +02:00

Adapt css styles for Mantine

This commit is contained in:
Elias Schneider 2022-05-16 13:11:51 +02:00
parent 464406603a
commit 5f7e959a9c
No known key found for this signature in database
GPG Key ID: D5EC1C72D93244FD
5 changed files with 19 additions and 19 deletions

View File

@ -6,7 +6,7 @@ import {
import { ModalsProvider } from "@mantine/modals";
import { setCookies } from "cookies-next";
import { Dispatch, ReactNode, SetStateAction } from "react";
import mantineTheme from "../../styles/global.style";
import mantineTheme from "../../styles/mantine.style";
const ThemeProvider = ({
children,

View File

@ -11,11 +11,11 @@ import { getCookie } from "cookies-next";
import { GetServerSidePropsContext } from "next";
import type { AppProps } from "next/app";
import { useEffect, useState } from "react";
import "../../styles/globals.css";
import Footer from "../components/Footer";
import ThemeProvider from "../components/mantine/ThemeProvider";
import Header from "../components/navBar/NavBar";
import globalStyle from "../styles/global.style";
import GlobalStyle from "../styles/global.style";
import globalStyle from "../styles/mantine.style";
import aw from "../utils/appwrite.util";
import authUtil, { IsSignedInContext } from "../utils/auth.util";
import configUtil, { ConfigContext } from "../utils/config.util";
@ -49,6 +49,7 @@ function App(
return (
<MantineProvider withGlobalStyles withNormalizeCSS theme={globalStyle}>
<ThemeProvider colorScheme={colorScheme} setColorScheme={setColorScheme}>
<GlobalStyle />
<NotificationsProvider>
<ModalsProvider>
<GlobalLoadingContext.Provider value={{ isLoading, setIsLoading }}>

View File

@ -0,0 +1,15 @@
import { Global } from "@mantine/core";
const GlobalStyle = () => {
return (
<Global
styles={(theme) => ({
a: {
color: "inherit",
textDecoration: "none",
},
})}
/>
);
};
export default GlobalStyle;

View File

@ -1,16 +0,0 @@
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
}