Skip to content

Commit acd8813

Browse files
committed
Mass Tabs -> Spaces conversion
1 parent 9caf2ce commit acd8813

31 files changed

+795
-795
lines changed

css/main.css

+26-26
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,31 @@ limitations under the License.
2121
@import url('open.css');
2222

2323
:root {
24-
--app-background: #f4f4f4;
25-
--background: #ffffff;
26-
--foreground: #000000;
27-
--font: #333333;
28-
--grey: #666666;
29-
--accent: #0098d4;
30-
--error: #d6001c;
31-
--link: #0098d4;
32-
--borders: #f4f4f4;
24+
--app-background: #f4f4f4;
25+
--background: #ffffff;
26+
--foreground: #000000;
27+
--font: #333333;
28+
--grey: #666666;
29+
--accent: #0098d4;
30+
--error: #d6001c;
31+
--link: #0098d4;
32+
--borders: #f4f4f4;
3333
--lightgrey: #E6E6E6;
3434
--spinner-stroke-size: 2px;
3535
}
3636

3737
html {
38-
margin: 0;
39-
padding: 0;
38+
margin: 0;
39+
padding: 0;
4040
}
4141

4242
body {
43-
background-color: var(--app-background);
44-
background-image: url('../images/background.svg');
43+
background-color: var(--app-background);
44+
background-image: url('../images/background.svg');
4545
background-attachment: fixed;
46-
background-repeat: no-repeat;
47-
background-size: auto;
48-
background-position: center -50px;
46+
background-repeat: no-repeat;
47+
background-size: auto;
48+
background-position: center -50px;
4949
height: 100%;
5050
width: 100%;
5151
font-size: 14px;
@@ -89,12 +89,12 @@ input[type="checkbox"], input[type="radio"] {
8989

9090
.RootView {
9191
margin: 0 auto;
92-
max-width: 480px;
93-
width: 100%;
92+
max-width: 480px;
93+
width: 100%;
9494
}
9595

9696
.card {
97-
background-color: var(--background);
97+
background-color: var(--background);
9898
border-radius: 16px;
9999
box-shadow: 0px 18px 24px rgba(0, 0, 0, 0.06);
100100
}
@@ -104,20 +104,20 @@ input[type="checkbox"], input[type="radio"] {
104104
}
105105

106106
.hidden {
107-
display: none !important;
107+
display: none !important;
108108
}
109109

110110

111111
@media screen and (max-width: 480px) {
112112
body {
113-
background-image: none;
114-
background-color: var(--background);
115-
padding: 0;
113+
background-image: none;
114+
background-color: var(--background);
115+
padding: 0;
116116
}
117117

118118
.card {
119-
border-radius: unset;
120-
box-shadow: unset;
119+
border-radius: unset;
120+
box-shadow: unset;
121121
}
122122
}
123123

@@ -141,7 +141,7 @@ input[type="checkbox"], input[type="radio"] {
141141
}
142142

143143
a, button.text {
144-
color: var(--link);
144+
color: var(--link);
145145
}
146146

147147
button.text {

images/client-icons/fluffychat.svg

+33-33
Loading

index.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<title>You're invited to talk on Matrix</title>
6-
<meta name="description" content="You're invited to talk on Matrix">
7-
<meta name="viewport" content="width=device-width, user-scalable=no">
8-
<link rel="stylesheet" type="text/css" href="css/main.css">
4+
<meta charset="utf-8">
5+
<title>You're invited to talk on Matrix</title>
6+
<meta name="description" content="You're invited to talk on Matrix">
7+
<meta name="viewport" content="width=device-width, user-scalable=no">
8+
<link rel="stylesheet" type="text/css" href="css/main.css">
99
</head>
1010
<body>
11-
<script id="main" type="module">
12-
import {main} from "./src/main.js";
13-
main(document.body);
14-
</script>
11+
<script id="main" type="module">
12+
import {main} from "./src/main.js";
13+
main(document.body);
14+
</script>
1515
<noscript>
1616
<h1>Please enable javascript</h1>
1717
<p>Matrix.to is a preview service from chat rooms, people and communities on <a href="https://matrix.org">Matrix</a>.</p>

scripts/serve-local.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ const projectDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".
2323

2424
// Serve up parent directory with cache disabled
2525
const serve = serveStatic(
26-
projectDir,
27-
{
28-
etag: false,
29-
setHeaders: res => {
30-
res.setHeader("Pragma", "no-cache");
31-
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
32-
res.setHeader("Expires", "Wed, 21 Oct 2015 07:28:00 GMT");
26+
projectDir,
27+
{
28+
etag: false,
29+
setHeaders: res => {
30+
res.setHeader("Pragma", "no-cache");
31+
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
32+
res.setHeader("Expires", "Wed, 21 Oct 2015 07:28:00 GMT");
3333
// same CSP as matrix.to server is using, so local testing happens under similar environment
3434
res.setHeader("Content-Security-Policy", "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src * data:; connect-src *; font-src 'self'; manifest-src 'self'; form-action 'self'; navigate-to *;");
35-
},
36-
index: ['index.html', 'index.htm']
37-
}
35+
},
36+
index: ['index.html', 'index.htm']
37+
}
3838
);
3939

4040
// Create server
4141
const server = http.createServer(function onRequest (req, res) {
4242
console.log(req.method, req.url);
43-
serve(req, res, finalhandler(req, res))
43+
serve(req, res, finalhandler(req, res))
4444
});
4545

4646
// Listen

0 commit comments

Comments
 (0)