|
1 | 1 | <script lang='ts'> |
2 | | - import App from '~App.svelte'; |
| 2 | + import './styles/global.scss'; |
3 | 3 | import './styles/app.scss'; |
| 4 | + import App from '~App.svelte'; |
4 | 5 | </script> |
5 | 6 |
|
6 | | -<style global lang='scss'> |
7 | | - *, |
8 | | - *::before, |
9 | | - *::after { |
10 | | - -webkit-touch-callout: none; |
11 | | - -webkit-user-select: none; |
12 | | - user-select: none; |
13 | | - padding: 0; |
14 | | - margin: 0; |
15 | | - box-sizing: border-box; |
16 | | - } |
17 | | -
|
18 | | - html, |
19 | | - body { |
20 | | - background: var(--bg, #263238); |
21 | | - transition: all .5s; |
22 | | - margin: 0; |
23 | | - height: 100%; |
24 | | - width: 100%; |
25 | | - min-width: 720px; |
26 | | - min-height: 600px; |
27 | | - font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; |
28 | | - font-size: 14px; |
29 | | - line-height: 1.5; |
30 | | - color: var(--fg); |
31 | | - } |
32 | | -
|
33 | | - h1, h2, h3, h4, h5, h6 { |
34 | | - margin: 0 0 0.5em 0; |
35 | | - font-weight: 400; |
36 | | - line-height: 1.2; |
37 | | - } |
38 | | -
|
39 | | - h1 { |
40 | | - font-size: 2em; |
41 | | - } |
42 | | -
|
43 | | - a { |
44 | | - color: var(--links); |
45 | | - } |
46 | | -
|
47 | | - code { |
48 | | - font-family: var(--font-family, menlo, inconsolata, monospace); |
49 | | - font-size: var(--font-size, calc(1em - 2px)); |
50 | | - } |
51 | | -
|
52 | | - @media (min-width: 400px) { |
53 | | - body { |
54 | | - font-size: 16px; |
55 | | - } |
56 | | - } |
57 | | -
|
58 | | - *::-webkit-scrollbar { |
59 | | - width: 6px; |
60 | | - } |
61 | | -
|
62 | | - /* Track */ |
63 | | - *::-webkit-scrollbar-track { |
64 | | - background: var(--bg); |
65 | | - border-radius: 10px; |
66 | | - } |
67 | | -
|
68 | | - /* Handle */ |
69 | | - *::-webkit-scrollbar-thumb { |
70 | | - background: var(--accent); |
71 | | - border-radius: 10px; |
72 | | - } |
73 | | -
|
74 | | - /* Handle on hover */ |
75 | | - *::-webkit-scrollbar-thumb:hover { |
76 | | - background: var(--accent); |
77 | | - } |
78 | | -
|
79 | | - input { |
80 | | - background-color: var(--contrast); |
81 | | - color: var(--text); |
82 | | - transition: all .5s; |
83 | | - } |
84 | | -
|
85 | | - .comment { |
86 | | - color: var(--comments); |
87 | | - transition: color .5s; |
88 | | - } |
89 | | -
|
90 | | - .keyword { |
91 | | - color: var(--keywords); |
92 | | - transition: color .5s; |
93 | | - } |
94 | | -
|
95 | | - .function { |
96 | | - color: var(--functions); |
97 | | - transition: color .5s; |
98 | | - } |
99 | | -
|
100 | | - .punctuation { |
101 | | - color: var(--operators); |
102 | | - transition: color .5s; |
103 | | - } |
104 | | -
|
105 | | - .string, |
106 | | - .attr-value { |
107 | | - color: var(--strings); |
108 | | - transition: color .5s; |
109 | | - } |
110 | | -
|
111 | | - .parameter { |
112 | | - color: var(--parameters); |
113 | | - transition: color .5s; |
114 | | - } |
115 | | -
|
116 | | - .number { |
117 | | - color: var(--numbers); |
118 | | - transition: color .5s; |
119 | | - } |
120 | | -
|
121 | | - .attr-name { |
122 | | - color: var(--attributes); |
123 | | - transition: color .5s; |
124 | | - } |
125 | | -
|
126 | | - .tag { |
127 | | - color: var(--tags); |
128 | | - transition: color .5s; |
129 | | - } |
130 | | -
|
131 | | - #__plasmo { |
132 | | - width: 100vw; |
133 | | - height: 100vh; |
134 | | - position: relative; |
135 | | - display: flex; |
136 | | - flex-direction: column; |
137 | | - justify-content: flex-start; |
138 | | - align-items: center; |
139 | | - overflow-x: hidden; |
140 | | - } |
141 | | -</style> |
142 | | - |
143 | 7 | <App /> |
0 commit comments