Skip to content

Commit 57e8a0b

Browse files
Fix css after #105 (#109)
Fixing css after unexpected last minute changes, that resulted in odd vertical spacing between content.
1 parent 03a5dde commit 57e8a0b

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

generate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import build_status
1616
import contribute
1717
from completion import branches_from_devguide, get_completion, TranslatorsData
18-
from counts import get_counts
1918
from repositories import Language, get_languages_and_repos
2019

2120
generation_time = datetime.now(timezone.utc)
@@ -101,7 +100,6 @@ class LanguageProjectData:
101100
Path('build').mkdir(parents=True, exist_ok=True)
102101

103102
completion_progress = list(get_completion_progress())
104-
counts = get_counts(Path('clones', 'cpython', 'Doc', 'build', 'gettext'))
105103

106104
env = Environment(loader=FileSystemLoader('templates'))
107105
index = env.get_template('index.html.jinja').render(

src/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ a:hover {
5353
flex: 1;
5454
}
5555

56+
.card-body p {
57+
margin-bottom: 0;
58+
margin-top: 0;
59+
}
60+
61+
.card-title {
62+
margin-bottom: 0.4rem;
63+
}
64+
5665
/* ------------------------------ Index ------------------------------------- */
5766

5867
.progress-bar-container {

templates/index.html.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<div class="col-12 col-sm-6 col-md-4 d-flex">
88
<div class="card shadow mb-3 w-100">
99
<div class="card-body">
10-
<h4 class="card-title">{{ project.language.name }}</h4>
11-
<h5 class="card-subtitle text-muted">{{ project.translated_name }}</h5>
12-
<p class="card-subtitle mb-2">Completion: <strong>{{ '{:.2f}%'.format(project.completion) }}</strong></p>
13-
<p class="card-subtitle mb-2 text-muted">30 days progress: {{ '{:.2f}%'.format(project.change) }}</p>
10+
<h3 class="card-title">{{ project.language.name }}</h3>
11+
<h5 class="card-subtitle mb-2 text-muted">{{ project.translated_name }}</h5>
12+
<p class="text-muted">Completion: <strong>{{ '{:.2f}%'.format(project.completion) }}</strong></p>
13+
<p class="text-muted">30-day progress: {{ '{:.2f}%'.format(project.change) }}</p>
1414
<p style="text-align: center;">
1515
{% if project.built %}
1616
<a href="https://docs.python.org/{{ project.language.code }}/3/" style="color: #1595fe;">View</a>

0 commit comments

Comments
 (0)