Skip to content

Commit

Permalink
refactor: css를 global style로 수정
Browse files Browse the repository at this point in the history
Co-authored-by: Pakxe <[email protected]>
  • Loading branch information
jinhokim98 and pakxe committed Jul 31, 2024
1 parent fcb1efd commit c19873e
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 156 deletions.
157 changes: 157 additions & 0 deletions client/src/GlobalStyle.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
import {css} from '@emotion/react';

// reset css -> index css
export const GlobalStyle = css`
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,
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 {
vertical-align: baseline;
margin: 0;
border: 0;
padding: 0;
font-size: 100%;
font: inherit;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
button {
cursor: pointer;
border: none;
background-color: transparent;
}
* {
box-sizing: border-box;
}
body {
max-width: 768px;
height: 100lvh;
margin: 0 auto;
overflow-y: scroll;
&::-webkit-scrollbar {
display: none;
}
}
section {
width: 100%;
}
#root {
display: flex;
flex-direction: column;
height: 100%;
}
`;
20 changes: 0 additions & 20 deletions client/src/index.css

This file was deleted.

136 changes: 0 additions & 136 deletions client/src/reset.css

This file was deleted.

0 comments on commit c19873e

Please sign in to comment.