Skip to content

Commit 7786be8

Browse files
committed
css: Align ponts in a row to the same height
This makes the page a bit more beautiful on large screens.
1 parent a6f7ae6 commit 7786be8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

static/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ section.point {
4848
padding-right: 1rem;
4949
padding-bottom: 0;
5050
position: relative;
51+
align-self: stretch;
52+
display: flex;
53+
flex-direction: column;
5154
}
5255
section.point div.point-logo {
5356
text-align: center;
@@ -86,6 +89,9 @@ section.point p+p {
8689
margin-top: 1rem;
8790
margin-bottom: 1rem;
8891
}
92+
section.point div.point-content {
93+
flex-grow: 1;
94+
}
8995
section.point div.link a {
9096
color: #ffffff;
9197
text-decoration: none;

templates/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ <h1>Fedora Loves Python</h1>
2222
</div>
2323
{% endif %}
2424
<h2>{{ point.name }}</h2>
25-
{{ point.content | markdown }}
25+
<div class="point-content">
26+
{{ point.content | markdown }}
27+
</div>
2628
<div class="link">
2729
<a href="{{ point.link.href }}">{{ point.link.caption }}</a>
2830
</div>

0 commit comments

Comments
 (0)