Skip to content

Commit a7fef07

Browse files
Some css improvements (#127)
1 parent 174c661 commit a7fef07

File tree

2 files changed

+34
-20
lines changed

2 files changed

+34
-20
lines changed

src/style.css

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
/* ---------------------------- Global Styles ------------------------------- */
22

3-
body {
4-
padding-top: 4.5rem;
5-
padding-left: 1rem;
6-
padding-right: 1rem;
7-
padding-bottom: 3rem;
8-
color: #5a5a5a;
9-
background-color: rgb(245, 245, 245);
3+
:root {
4+
--bg-color: rgb(245, 245, 245);
5+
--text-color: #15141A;
106
}
117

12-
a {
13-
color: #0d0d0d;
14-
}
15-
16-
a:hover {
17-
color: #1595fe;
8+
body {
9+
padding: 4.5rem 1rem 3rem;
10+
color: var(--text-color);
11+
background-color: var(--bg-color);
1812
}
1913

2014
/* -------------------------------- navbar ---------------------------------- */
2115

2216
.navbar {
23-
background-color: rgb(245, 245, 245, 0.6);
17+
background-color: rgb(var(--bg-color), 0.6);
2418
backdrop-filter: blur(10px);
2519
border-bottom: 0.25px solid #999;
2620
-webkit-backdrop-filter: blur(10px);
@@ -30,19 +24,24 @@ a:hover {
3024
transition: 0.3s background-color;
3125
text-align: center;
3226
background-color: transparent;
33-
padding: 0rem 1rem;
27+
padding: 0 1rem;
3428
text-decoration: none;
3529
border-radius: 0.3rem;
3630
}
3731

3832
.navbar li:hover {
39-
background-color: #d0cccd;
33+
background-color: #eacb4d;
4034
}
4135

4236
.navbar li .nav-link {
4337
color: #0d0d0d;
4438
}
4539

40+
.nav-link svg {
41+
vertical-align: middle;
42+
}
43+
44+
4645
/* ----------------------- Cards and card columns --------------------------- */
4746

4847
.row > [class^="col-"] {
@@ -128,4 +127,7 @@ td[data-label="warnings"], td[data-label="lint"] {
128127
left: 10px;
129128
position: absolute;
130129
}
130+
td[data-label="warnings"], td[data-label="lint"] {
131+
text-align: left;
132+
}
131133
}

templates/base.html.jinja

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
<div class="navbar-brand">
2020
<a href="./" style="all: unset; cursor: pointer;">
21-
<img src="logo.png" style="height: 2rem;" alt="">
22-
<span style="font-size: 1.25rem; font-weight: bold;">Translation Dashboard</span>
21+
<img src="logo.png" style="height: 2rem;" alt="Python logo">
22+
<span style="font-size: 1.25rem; font-weight: 700; color: #4a4a4a">Translation Dashboard</span>
2323
</a>
2424
</div>
2525

@@ -32,10 +32,22 @@
3232
<div class="collapse navbar-collapse" id="navbarNavDropdown">
3333
<ul class="navbar-nav mr-auto">
3434
<li class="nav-item">
35-
<a class="nav-link" href="build-details.html">🛠️ Build details</a>
35+
<a class="nav-link" href="build-details.html">
36+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-card-text" viewBox="0 0 16 16">
37+
<path d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2z"></path>
38+
<path d="M3 5.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5M3 8a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 8m0 2.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5"></path>
39+
</svg>
40+
Build details
41+
</a>
3642
</li>
3743
<li class="nav-item">
38-
<a class="nav-link" href="https://devguide.python.org/documentation/translations/translating/">🔗 Translating</a>
44+
<a class="nav-link" href="https://devguide.python.org/documentation/translations/translating/" target="_blank">
45+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
46+
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"></path>
47+
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"></path>
48+
</svg>
49+
Translating
50+
</a>
3951
</li>
4052
</ul>
4153
</div>

0 commit comments

Comments
 (0)