Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 57526e6

Browse files
committed
fix lodding
1 parent 3776c2e commit 57526e6

2 files changed

Lines changed: 130 additions & 3 deletions

File tree

src/components/Loading.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
background: var(--bg, #263238);
44
display: flex;
55
justify-content: center;
6-
align-items: flex-start;
6+
align-items: center;
77
text-align: center;
88
width: 100%;
9+
height: 100%;
910
margin: 0 auto;
1011
padding: 0 2rem;
1112
max-width: 40rem;

src/popup.svelte

Lines changed: 128 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,138 @@
33
</script>
44

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

0 commit comments

Comments
 (0)