Skip to content

Commit 41509b1

Browse files
Merge pull request #32 from yuran1811/ui/viewScriptSource
style: 🪄 beautify ui for viewScriptSource
2 parents 1f5ed9f + e4ba2de commit 41509b1

File tree

3 files changed

+53
-21
lines changed

3 files changed

+53
-21
lines changed
Binary file not shown.
Binary file not shown.

pages/viewScriptSource/style.css

Lines changed: 53 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,69 @@
1+
@font-face {
2+
font-family: JetBrainsMono;
3+
src: url(fonts/JetBrainsMono-Regular.woff2);
4+
}
5+
6+
@font-face {
7+
font-family: JetBrainsMono;
8+
src: url(fonts/JetBrainsMono-Bold.woff2);
9+
font-weight: bold;
10+
}
11+
12+
* {
13+
font-family: JetBrainsMono, 'Courier New', Courier, monospace;
14+
}
15+
*::-webkit-scrollbar {
16+
height: 10px;
17+
width: 10px;
18+
}
19+
*::-webkit-scrollbar-track,
20+
*::-webkit-scrollbar-track-piece {
21+
background-color: #23241f;
22+
}
23+
*::-webkit-scrollbar-thumb {
24+
background-color: #e6db74;
25+
border-radius: 10px;
26+
}
27+
128
body,
229
pre,
330
code {
4-
margin: 0;
5-
padding: 0;
31+
margin: 0;
32+
padding: 0;
633
}
734

835
body {
9-
overflow: auto;
10-
width: 100vw;
11-
height: 100vh;
36+
overflow: auto;
37+
width: 100vw;
38+
height: 100vh;
39+
}
40+
41+
pre {
42+
background-color: #23241f;
43+
width: max-content;
44+
height: max-content;
1245
}
1346

1447
code {
15-
font-family: 'Courier New', Courier, monospace;
16-
font-size: 14px;
17-
font-style: normal;
18-
font-variant: normal;
19-
font-weight: 400;
20-
line-height: 20px;
21-
margin-top: 30px;
48+
font-size: 14px;
49+
font-style: normal;
50+
font-variant: normal;
51+
font-weight: 400;
52+
line-height: 20px;
2253
}
2354

2455
button {
25-
position: fixed;
26-
top: 0px;
27-
left: 0px;
28-
padding: 5px 10px;
29-
border: none;
30-
cursor: pointer;
31-
color: #eee;
32-
background-color: #555;
56+
position: fixed;
57+
top: 0px;
58+
left: 0px;
59+
padding: 5px 10px;
60+
border: none;
61+
cursor: pointer;
62+
color: #eee;
63+
background-color: #555;
64+
transition: background-color ease-in-out 0.2s;
3365
}
3466

3567
button:hover {
36-
background-color: #999;
68+
background-color: #828282;
3769
}

0 commit comments

Comments
 (0)