Skip to content

Commit 5cc4b5e

Browse files
committed
Convert html indentation to spaces
1 parent 6abcdf3 commit 5cc4b5e

File tree

2 files changed

+83
-80
lines changed

2 files changed

+83
-80
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ indent_size = 2
66
trim_trailing_whitespace = true
77
insert_final_newline = true
88

9+
[*.html]
10+
indent_style = space
11+
indent_size = 2
12+
913
[{.travis.yml,npm-shrinkwrap.json,package.json}]
1014
indent_style = space
1115
indent_size = 2

index.html

Lines changed: 79 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,92 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<title>HackMD</title>
5-
<meta charset="UTF-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<style>
8-
html, body {
9-
margin: 0;
10-
height: 100%;
11-
background-color: #f8f8f8;
12-
overflow: hidden;
13-
font-family: Arial, Helvetica, sans-serif;
14-
}
3+
<head>
4+
<title>HackMD</title>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<style>
8+
html, body {
9+
margin: 0;
10+
height: 100%;
11+
background-color: #f8f8f8;
12+
overflow: hidden;
13+
font-family: Arial, Helvetica, sans-serif;
14+
}
1515

16-
body {
17-
display: flex;
18-
flex-direction: column;
19-
}
16+
body {
17+
display: flex;
18+
flex-direction: column;
19+
}
2020

21-
webview {
22-
display: flex;
23-
flex: 1;
24-
}
21+
webview {
22+
flex: 1;
23+
}
2524

26-
navbar {
27-
height: 23px;
28-
align-items: center;
29-
width: 100%;
30-
display: flex;
31-
-webkit-app-region: drag;
32-
padding-left: 75px;
33-
background-color: #f8f8f8;
34-
color: #484848;
25+
navbar {
26+
height: 23px;
27+
align-items: center;
28+
width: 100%;
29+
display: flex;
30+
-webkit-app-region: drag;
31+
padding-left: 75px;
32+
background-color: #f8f8f8;
33+
color: #484848;
3534

36-
transition: color 0.5s, background-color 0.5s;
37-
}
35+
transition: color 0.5s, background-color 0.5s;
36+
}
3837

39-
#navbar-container {
40-
font-size: 0.9em;
41-
font-family: "Courier New", Courier, monospace;
42-
display: flex;
43-
flex: 1;
44-
justify-content: space-between;
45-
-webkit-user-select: none;
46-
user-select: none;
47-
}
38+
#navbar-container {
39+
font-size: 0.9em;
40+
font-family: "Courier New", Courier, monospace;
41+
display: flex;
42+
flex: 1;
43+
justify-content: space-between;
44+
-webkit-user-select: none;
45+
user-select: none;
46+
}
4847

49-
navbar.dark {
50-
background-color: #333333;
51-
color: white;
52-
}
48+
navbar.dark {
49+
background-color: #333333;
50+
color: white;
51+
}
5352

54-
navbar.dark .control-buttons > *:hover {
55-
color: white;
56-
}
53+
navbar.dark .control-buttons > *:hover {
54+
color: white;
55+
}
5756

58-
#navbar-container .control-buttons {
59-
flex: 1;
60-
display: flex;
61-
}
57+
#navbar-container .control-buttons {
58+
flex: 1;
59+
display: flex;
60+
}
6261

63-
#navbar-container .control-buttons > * {
64-
margin: 0 .3em;
65-
cursor: pointer;
66-
-webkit-user-select: none;
67-
height: 23px;
68-
display: flex;
69-
align-items: center;
70-
}
62+
#navbar-container .control-buttons > * {
63+
margin: 0 .3em;
64+
cursor: pointer;
65+
-webkit-user-select: none;
66+
height: 23px;
67+
display: flex;
68+
align-items: center;
69+
}
7170

72-
#navbar-container .control-buttons > *:hover {
73-
color: #c1c1c1;
74-
}
75-
</style>
76-
</head>
77-
<body>
78-
<navbar>
79-
<div id="navbar-container">
80-
<div class="control-buttons">
81-
<div class="home">HOME</div>
82-
<div class="refresh">REFRESH</div>
83-
<div class="navigate-back" style="margin: 0 1em;">&#x3C;</div>
84-
<div class="navigate-foward">&#x3E;</div>
85-
</div>
86-
<div class="control-buttons" style="flex: 2">
87-
<div class="title"></div>
88-
</div>
89-
</div>
90-
</navbar>
91-
<script src="renderer.js"></script>
92-
</body>
71+
#navbar-container .control-buttons > *:hover {
72+
color: #c1c1c1;
73+
}
74+
</style>
75+
</head>
76+
<body>
77+
<navbar>
78+
<div id="navbar-container">
79+
<div class="control-buttons">
80+
<div class="home">HOME</div>
81+
<div class="refresh">REFRESH</div>
82+
<div class="navigate-back" style="margin: 0 1em;">&#x3C;</div>
83+
<div class="navigate-foward">&#x3E;</div>
84+
</div>
85+
<div class="control-buttons" style="flex: 2">
86+
<div class="title"></div>
87+
</div>
88+
</div>
89+
</navbar>
90+
<script src="renderer.js"></script>
91+
</body>
9392
</html>

0 commit comments

Comments
 (0)