Skip to content

Commit b97efcc

Browse files
authored
run prettier on html, css, and html files (#162)
1 parent 3c6bfc2 commit b97efcc

File tree

203 files changed

+2420
-2383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+2420
-2383
lines changed

Diff for: backdrop/index.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
controls
2121
src="https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4"
2222
poster="https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217"
23-
width="620"
24-
>
23+
width="620">
2524
Sorry, your browser doesn't support embedded videos. Time to upgrade!
2625
</video>
2726
</section>

Diff for: css-cookbook/list-group-badges.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
display: flex;
7373
justify-content: space-between;
7474
align-items: center;
75-
}</textarea>
75+
}</textarea
76+
>
7677

7778
<textarea class="playable playable-html" style="height: 270px">
7879
<ul class="list-group">

Diff for: css-text/hyphens.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
inline-size: 150px;
3838
overflow-wrap: break-word;
3939
hyphens: manual;
40-
}</textarea>
40+
}</textarea
41+
>
4142

4243
<textarea class="playable playable-html" style="height: 150px">
4344
<div class="box">

Diff for: css-text/inline-overflow-hidden.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
.box {
3636
inline-size: 150px;
3737
overflow: hidden;
38-
}</textarea>
38+
}</textarea
39+
>
3940

40-
<textarea class="playable playable-html" style="height: 150px;">
41+
<textarea class="playable playable-html" style="height: 150px">
4142
<div class="box">
4243
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
4344
</div>

Diff for: css-text/inline-overflow.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
<textarea class="playable playable-css" style="height: 100px">
3434
.box {
3535
inline-size: 150px;
36-
}</textarea>
36+
}</textarea
37+
>
3738

3839
<textarea class="playable playable-html" style="height: 150px">
3940
<div class="box">

Diff for: css-text/min-content.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
<textarea class="playable playable-css" style="height: 100px">
3434
.box {
3535
inline-size: min-content;
36-
}</textarea>
36+
}</textarea
37+
>
3738

3839
<textarea class="playable playable-html" style="height: 150px">
3940
<div class="box">

Diff for: css-text/overflow-wrap.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
.box {
3636
inline-size: 150px;
3737
overflow-wrap: break-word;
38-
}</textarea>
38+
}</textarea
39+
>
3940

4041
<textarea class="playable playable-html" style="height: 150px">
4142
<div class="box">

Diff for: css-text/wbr.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
<textarea class="playable playable-css" style="height: 100px">
3434
.box {
3535
inline-size: 150px;
36-
}</textarea>
36+
}</textarea
37+
>
3738

3839
<textarea class="playable playable-html" style="height: 150px">
3940
<div class="box">

Diff for: css-text/word-break-checkbox.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
<textarea class="playable playable-css" style="height: 100px">
4747
.field-br {
4848
word-break: break-all;
49-
}</textarea>
49+
}</textarea
50+
>
5051

5152
<textarea class="playable playable-html" style="height: 180px">
5253
<div class="field">

Diff for: css-text/word-break.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343

4444
.box2 {
4545
overflow-wrap: break-word;
46-
}</textarea>
46+
}</textarea
47+
>
4748

4849
<textarea class="playable playable-html" style="height: 180px">
4950
<div class="box box1">

Diff for: editable-samples-2/css/editable.css

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
body {
6-
background-color: #EAEFF2;
6+
background-color: #eaeff2;
77
padding: 0;
88
margin: 0;
99
}
@@ -13,7 +13,7 @@ body {
1313
height: 200px;
1414
background-color: white;
1515
padding: 1em 0;
16-
box-shadow: 0px 2px 5px -2px rgba(0,0,0,0.1);
16+
box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.1);
1717
}
1818

1919
#example-element {
@@ -29,12 +29,12 @@ body {
2929

3030
#example-element {
3131
display: block;
32-
color: #C13832;
32+
color: #c13832;
3333
}
3434

3535
.example-choice {
3636
font-size: 14px;
37-
transition: background-color .2s ease-out;
37+
transition: background-color 0.2s ease-out;
3838
cursor: pointer;
3939
padding: 0.25em;
4040
display: inline-block;
@@ -48,31 +48,31 @@ body {
4848

4949
.example-choice.selected {
5050
background-color: white;
51-
transition: background-color .2s ease-in;
52-
box-shadow: inset 0px 2px 2px -2px rgba(0,0,0,0.2);
51+
transition: background-color 0.2s ease-in;
52+
box-shadow: inset 0px 2px 2px -2px rgba(0, 0, 0, 0.2);
5353
cursor: text;
5454
}
5555

56-
.example-choice>code {
56+
.example-choice > code {
5757
width: 90%;
5858
display: inline-block;
5959
}
6060

6161
.reset {
6262
display: none;
6363
position: absolute;
64-
top: .75em;
64+
top: 0.75em;
6565
right: 1em;
6666
}
6767

68-
.example-choice.selected>.reset {
68+
.example-choice.selected > .reset {
6969
display: unset;
7070
}
7171

7272
.error {
7373
max-height: 1em;
7474
position: absolute;
75-
top: .75em;
75+
top: 0.75em;
7676
right: 5.5em;
7777
cursor: pointer;
7878
}

Diff for: editable-samples-2/css/prism.css

+41-41
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@
77

88
code[class*="language-"],
99
pre[class*="language-"] {
10-
color: black;
11-
background: none;
12-
text-shadow: 0 1px white;
13-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
14-
text-align: left;
15-
white-space: pre;
16-
word-spacing: normal;
17-
word-break: normal;
18-
word-wrap: normal;
19-
line-height: 1.5;
20-
21-
-moz-tab-size: 4;
22-
-o-tab-size: 4;
23-
tab-size: 4;
24-
25-
-webkit-hyphens: none;
26-
-moz-hyphens: none;
27-
-ms-hyphens: none;
28-
hyphens: none;
10+
color: black;
11+
background: none;
12+
text-shadow: 0 1px white;
13+
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
14+
text-align: left;
15+
white-space: pre;
16+
word-spacing: normal;
17+
word-break: normal;
18+
word-wrap: normal;
19+
line-height: 1.5;
20+
21+
-moz-tab-size: 4;
22+
-o-tab-size: 4;
23+
tab-size: 4;
24+
25+
-webkit-hyphens: none;
26+
-moz-hyphens: none;
27+
-ms-hyphens: none;
28+
hyphens: none;
2929
}
3030

3131
@media print {
32-
code[class*="language-"],
33-
pre[class*="language-"] {
34-
text-shadow: none;
35-
}
32+
code[class*="language-"],
33+
pre[class*="language-"] {
34+
text-shadow: none;
35+
}
3636
}
3737

3838
/* Code blocks */
3939
pre[class*="language-"] {
40-
padding: 1em;
41-
margin: .5em 0;
42-
overflow: auto;
40+
padding: 1em;
41+
margin: 0.5em 0;
42+
overflow: auto;
4343
}
4444

4545
:not(pre) > code[class*="language-"],
@@ -48,24 +48,24 @@ pre[class*="language-"] {
4848

4949
/* Inline code */
5050
:not(pre) > code[class*="language-"] {
51-
padding: .1em;
52-
border-radius: .3em;
53-
white-space: normal;
51+
padding: 0.1em;
52+
border-radius: 0.3em;
53+
white-space: normal;
5454
}
5555

5656
.token.comment,
5757
.token.prolog,
5858
.token.doctype,
5959
.token.cdata {
60-
color: slategray;
60+
color: slategray;
6161
}
6262

6363
.token.punctuation {
64-
color: #999;
64+
color: #999;
6565
}
6666

6767
.namespace {
68-
opacity: .7;
68+
opacity: 0.7;
6969
}
7070

7171
.token.property,
@@ -75,7 +75,7 @@ pre[class*="language-"] {
7575
.token.constant,
7676
.token.symbol,
7777
.token.deleted {
78-
color: #905;
78+
color: #905;
7979
}
8080

8181
.token.selector,
@@ -84,41 +84,41 @@ pre[class*="language-"] {
8484
.token.char,
8585
.token.builtin,
8686
.token.inserted {
87-
color: #690;
87+
color: #690;
8888
}
8989

9090
.token.operator,
9191
.token.entity,
9292
.token.url,
9393
.language-css .token.string,
9494
.style .token.string {
95-
color: #a67f59;
95+
color: #a67f59;
9696
}
9797

9898
.token.atrule,
9999
.token.attr-value,
100100
.token.keyword {
101-
color: #07a;
101+
color: #07a;
102102
}
103103

104104
.token.function {
105-
color: #DD4A68;
105+
color: #dd4a68;
106106
}
107107

108108
.token.regex,
109109
.token.important,
110110
.token.variable {
111-
color: #e90;
111+
color: #e90;
112112
}
113113

114114
.token.important,
115115
.token.bold {
116-
font-weight: bold;
116+
font-weight: bold;
117117
}
118118
.token.italic {
119-
font-style: italic;
119+
font-style: italic;
120120
}
121121

122122
.token.entity {
123-
cursor: help;
123+
cursor: help;
124124
}

Diff for: editable-samples-2/js/editable.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ function choose(choice) {
3434
function onChoose(e) {
3535
// highlght the code we are leaving
3636
var selected = document.querySelector(".selected");
37-
if (selected && (e.currentTarget != selected)) {
38-
var highlighted = Prism.highlight(selected.firstChild.textContent, Prism.languages.css);
37+
if (selected && e.currentTarget != selected) {
38+
var highlighted = Prism.highlight(
39+
selected.firstChild.textContent,
40+
Prism.languages.css,
41+
);
3942
selected.firstChild.innerHTML = highlighted;
4043
}
4144
if (selected) {
@@ -51,22 +54,21 @@ function onChoose(e) {
5154
}
5255

5356
function onEdit(e) {
54-
applyCode(e.currentTarget.textContent, e.currentTarget.parentNode);
57+
applyCode(e.currentTarget.textContent, e.currentTarget.parentNode);
5558
}
5659

57-
5860
function copyTextOnly(e) {
5961
var selection = window.getSelection();
6062
var range = selection.getRangeAt(0);
6163

62-
e.clipboardData.setData('text/plain', range.toString());
63-
e.clipboardData.setData('text/html', range.toString());
64+
e.clipboardData.setData("text/plain", range.toString());
65+
e.clipboardData.setData("text/html", range.toString());
6466
e.preventDefault();
6567
e.stopPropagation();
6668
}
6769

68-
document.addEventListener('cut', copyTextOnly);
69-
document.addEventListener('copy', copyTextOnly);
70+
document.addEventListener("cut", copyTextOnly);
71+
document.addEventListener("copy", copyTextOnly);
7072

7173
for (exampleChoice of exampleChoices) {
7274
originalChoices.push(exampleChoice.textContent);
@@ -75,7 +77,7 @@ for (exampleChoice of exampleChoices) {
7577
}
7678
exampleChoice.addEventListener("click", onChoose);
7779
exampleChoice.firstChild.addEventListener("keyup", onEdit);
78-
exampleChoice.querySelector(".reset").addEventListener("click", function(e) {
80+
exampleChoice.querySelector(".reset").addEventListener("click", function (e) {
7981
var choice = e.target.parentNode;
8082
var replacementText = originalChoices[indexOf(exampleChoices, choice)];
8183
var highlighted = Prism.highlight(replacementText, Prism.languages.css);

0 commit comments

Comments
 (0)