-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathglobalStyle.ts
More file actions
93 lines (77 loc) Β· 2.05 KB
/
globalStyle.ts
File metadata and controls
93 lines (77 loc) Β· 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { createGlobalStyle } from 'styled-components'
import reset from 'styled-reset'
const GlobalStyle = createGlobalStyle`
${reset}
@font-face {
font-family: 'Pretendard';
src: url('/fonts/PretendardVariable.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
line-height: 1.5;
}
button, input, textarea, select, a {
font-family: inherit;
}
button {
background: none;
border: none;
padding: 0;
cursor: pointer;
color: inherit;
}
a {
color: inherit;
text-decoration: none;
-webkit-text-fill-color: inherit;
-webkit-text-highlight-color: transparent;
cursor: pointer;
}
textarea {
all: unset;
}
/* λͺ¨λ ν
μ€νΈ μμμ white-space μ μ© */
p, span, div, h1, h2, h3, h4, h5, h6, a, li {
white-space: pre-line;
}
input {
background: transparent;
border: none;
outline: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
-webkit-appearance: none;
}
input[type="search"] {
-webkit-appearance: textfield;
appearance: textfield;
}
/* IOS/Safari κ²μ μ·¨μ λ²νΌ λ―Έλ
ΈμΆ */
input[type="search"]::-webkit-search-cancel-button {
display: none;
}
/* μ€ν¬λ‘€λ° λ―Έλ
ΈμΆ */
html {
scrollbar-width: none;
-ms-overflow-style: none;
}
::-webkit-scrollbar {
display: none;
}
/* μ νλ²νΈ, μ΄λ©μΌ λ±μ μλμΌλ‘ λ§ν¬ννμ§ μκ² ν¨ */
meta[name="format-detection"] {
content: "telephone=no, email=no, address=no";
}
`
export default GlobalStyle