Skip to content

Commit 260392f

Browse files
committed
Improve layout of sponsors
1 parent 1998680 commit 260392f

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

css/main.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,21 @@ a.source:hover {
133133

134134
.sponsors {
135135
font-size: 1.21875em;
136+
margin: 0 0 1.25em;
136137
display: flex;
137138
flex-direction: row;
138139
align-items: center;
140+
justify-content: stretch;
141+
flex-wrap: wrap;
139142
}
140143

141-
.sponsors > ul {
144+
.sponsors li {
145+
list-style-type: none;
146+
white-space: nowrap;
147+
margin: 0 0.75em;
148+
flex-basis: 0;
142149
flex-grow: 1;
143-
align-self: center;
144-
}
145-
146-
.sponsors > ul > li {
147-
list-style: none;
150+
text-align: center;
148151
}
149152

150153
.post-list {

index.html

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,12 @@ <h2>Support</h2>
7171
<p>
7272
The following companies contributed significantly towards rust-analyzer development:
7373
</p>
74-
<div class="sponsors">
75-
<ul>
76-
<li><a href="https://ferrous-systems.com/">Ferrous Systems</a></li>
77-
<li><a href="https://www.mozilla.org/">Mozilla</a></li>
78-
</ul>
79-
<ul>
80-
<li><a href="https://embark-studios.com">Embark Studios</a></li>
81-
<li><a href="https://www.freiheit.com/">freiheit.com</a></li>
82-
</ul>
83-
</div>
74+
<ul class="sponsors">
75+
<li><a href="https://ferrous-systems.com/">Ferrous Systems</a></li>
76+
<li><a href="https://www.mozilla.org/">Mozilla</a></li>
77+
<li><a href="https://embark-studios.com">Embark Studios</a></li>
78+
<li><a href="https://www.freiheit.com/">freiheit.com</a></li>
79+
</ul>
8480

8581
</section>
8682

0 commit comments

Comments
 (0)