Skip to content

Commit 6b1df47

Browse files
committed
Clean global css, reformatting and indentation fixes
1 parent 9a39995 commit 6b1df47

File tree

5 files changed

+17
-65
lines changed

5 files changed

+17
-65
lines changed

ui-svelte-starter/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
.DS_Store
21
node_modules
3-
public/build/bundle.*
2+
dist/

ui-svelte-starter/plugin/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset='utf-8' />
5-
<meta name='viewport' content='width=device-width,initial-scale=1' />
6-
<meta name='description' content='Plugin created using Svelte and Webpack' />
7-
<title>UXP Svelte Starter Plugin</title>
8-
<script src='index.js'></script>
5+
<meta name='viewport' content='width=device-width,initial-scale=1' />
6+
<meta name='description' content='Plugin created using Svelte and Webpack' />
7+
<title>UXP Svelte Starter Plugin</title>
8+
<script src='index.js'></script>
99
</head>
1010
<body>
1111
</body>
12-
</html>
12+
</html>

ui-svelte-starter/src/App.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
<div>
1616
<sp-heading>Hello {name}!</sp-heading>
1717
<sp-heading>Plugin has been open for {count} seconds.</sp-heading>
18-
<sp-detail>
19-
Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn
20-
how to build Svelte apps.
21-
</sp-detail>
18+
<sp-detail>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</sp-detail>
2219
</div>
2320

2421
<style>

ui-svelte-starter/src/global.css

Lines changed: 8 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,19 @@
1-
html, body {
2-
position: relative;
3-
width: 100%;
4-
height: 100%;
5-
}
6-
71
body {
8-
color: #333;
9-
margin: 0;
10-
padding: 8px;
11-
box-sizing: border-box;
12-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2+
margin: 0;
3+
padding: 8px;
4+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
5+
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
136
}
147

158
a {
16-
color: rgb(0,100,200);
17-
text-decoration: none;
9+
color: rgb(0, 100, 200);
10+
text-decoration: none;
1811
}
1912

2013
a:hover {
21-
text-decoration: underline;
14+
text-decoration: underline;
2215
}
2316

2417
a:visited {
25-
color: rgb(0,80,160);
26-
}
27-
28-
label {
29-
display: block;
30-
}
31-
32-
input, button, select, textarea {
33-
font-family: inherit;
34-
font-size: inherit;
35-
-webkit-padding: 0.4em 0;
36-
padding: 0.4em;
37-
margin: 0 0 0.5em 0;
38-
box-sizing: border-box;
39-
border: 1px solid #ccc;
40-
border-radius: 2px;
41-
}
42-
43-
input:disabled {
44-
color: #ccc;
45-
}
46-
47-
button {
48-
color: #333;
49-
background-color: #f4f4f4;
50-
outline: none;
51-
}
52-
53-
button:disabled {
54-
color: #999;
55-
}
56-
57-
button:not(:disabled):active {
58-
background-color: #ddd;
59-
}
60-
61-
button:focus {
62-
border-color: #666;
18+
color: rgb(0, 80, 160);
6319
}

ui-svelte-starter/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ module.exports = {
3838
],
3939
},
4040
plugins: [
41-
new CopyPlugin({
41+
new CopyPlugin({
4242
patterns: ['plugin'],
43-
})
43+
})
4444
],
4545
};

0 commit comments

Comments
 (0)