Skip to content

Commit 1f11c77

Browse files
committed
Switch backers from js onload animation to having a default background and pop in the loaded image on top of it
1 parent 418d517 commit 1f11c77

File tree

4 files changed

+39
-30
lines changed

4 files changed

+39
-30
lines changed

docs/_layouts/default.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
{% include header.html %}
99

10-
<section id="content">
10+
<main id="content">
1111
{{ content }}
12-
</section>
12+
</main>
1313

1414
{% include footer.html %}
1515
</body>

docs/css/style.css

+24-28
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,36 @@ header {
5757
font-style: normal
5858
}
5959

60-
#_backers a, #_sponsors a {
60+
#_backers {
61+
display: flex;
62+
flex-wrap: wrap;
63+
}
64+
65+
#_backers a {
66+
margin: 3px;
67+
}
68+
69+
#_backers a img {
70+
display: block;
71+
width: 64px;
72+
height: 64px;
73+
74+
margin: 0;
75+
box-shadow: none;
76+
77+
background: url(/images/backer-background.svg?inline) center center no-repeat;
78+
}
79+
80+
#_sponsors a {
6181
opacity: 0;
62-
-webkit-transition: opacity .3s;
63-
-moz-transition: opacity .3s;
64-
-o-transition: opacity .3s;
6582
transition: opacity .3s;
6683
}
6784

68-
#_backers a img, #_sponsors a img {
85+
#_sponsors a img {
6986
max-height: 64px;
7087
}
7188

72-
.onload h1, #_backers.onload a, #_sponsors.onload a {
89+
#_sponsors.onload a {
7390
opacity: 1;
7491
}
7592

@@ -112,11 +129,7 @@ ul {
112129
margin-top: 20px;
113130
padding: 0 15px;
114131
width: 100%;
115-
-webkit-column-count: 2;
116-
-moz-column-count: 2;
117132
column-count: 2;
118-
-webkit-box-sizing: content-box;
119-
-moz-box-sizing: content-box;
120133
box-sizing: content-box;
121134
}
122135

@@ -126,8 +139,6 @@ ul li {
126139
list-style: none;
127140
border-bottom: 1px solid #eee;
128141
padding: 5px 0;
129-
-webkit-column-break-inside: avoid;
130-
-moz-column-break-inside: avoid;
131142
column-break-inside: avoid;
132143
}
133144

@@ -150,34 +161,19 @@ pre {
150161
border: 1px solid #ddd;
151162
border-bottom-color: #ccc;
152163
background-color: #f3f3f3;
153-
-webkit-border-radius: 3px;
154-
-moz-border-radius: 3px;
155-
-o-border-radius: 3px;
156164
border-radius: 3px;
157-
-webkit-box-shadow: inset 0 0 10px #ddd;
158-
-moz-box-shadow: inset 0 0 10px #ddd;
159165
box-shadow: inset 0 0 10px #ddd;
160166
overflow-x: auto;
161167
}
162168

163-
img {
169+
main img:not([src*=avatar]):not([src*=badges]):not([src*=".svg"]) {
164170
margin: 30px;
165171
padding: 1px;
166-
-webkit-border-radius: 3px;
167-
-moz-border-radius: 3px;
168-
-o-border-radius: 3px;
169172
border-radius: 3px;
170-
-webkit-box-shadow: 0 3px 10px #dedede, 0 1px 5px #888;
171-
-moz-box-shadow: 0 3px 10px #dedede, 0 1px 5px #888;
172173
box-shadow: 0 3px 10px #dedede, 0 1px 5px #888;
173174
max-width: 100%;
174175
}
175176

176-
img[src*="opencollective.com/mochajs"], img[src*=badges], img[src*=".svg"] {
177-
margin: 0;
178-
box-shadow: none;
179-
}
180-
181177
footer {
182178
background-color: #eee;
183179
width: 100%;

docs/images/backer-background.svg

+12
Loading

docs/images/join-chat.svg

+1
Loading

0 commit comments

Comments
 (0)