Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): reset.css.ts 생성 및 적용, 기존 css 파일 제거 #39

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions apps/web/src/App.css

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { RouterProvider } from 'react-router-dom';
import './App.css';
import { router } from './routes';
import '@/styles/reset.css';

export default function App() {
const queryClient = new QueryClient({
Expand Down
68 changes: 0 additions & 68 deletions apps/web/src/index.css

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';

async function enableMocking() {
if (process.env.NODE_ENV !== 'development') {
Expand Down
42 changes: 42 additions & 0 deletions apps/web/src/styles/reset.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { globalStyle } from '@vanilla-extract/css';

globalStyle(
'html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video',
{
margin: 0,
padding: 0,
border: 0,
fontSize: '100%',
font: 'inherit',
verticalAlign: 'baseline',
},
);

/* HTML5 display-role reset for older browsers */
globalStyle(
`article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section`,
{
display: 'block',
},
);

globalStyle(`body`, {
lineHeight: 1,
});

globalStyle('ol, ul', {
listStyle: 'none',
});

globalStyle('blockquote, q', {
quotes: 'none',
});

globalStyle('blockquote:before, blockquote:after, q:before, q:after', {
content: 'none',
});

globalStyle('table', {
borderCollapse: 'collapse',
borderSpacing: 0,
});
Loading