Skip to content

Commit 9e2a2b1

Browse files
committed
Vertically center version text
1 parent a14a8a0 commit 9e2a2b1

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

docs/source/_static/hackrtd.css

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,16 @@ pre {
5454
color: #306998 !important;
5555
}
5656

57-
.wy-side-nav-search > a.logo {
58-
display: block !important;
59-
padding-bottom: 0.809em !important;
57+
/* vertically center version text */
58+
.wy-side-nav-search > a {
59+
display: flex;
60+
align-items: center;
61+
justify-self: center;
6062
}
6163

6264
.wy-side-nav-search > a img.logo {
63-
display: inline !important;
64-
padding: 0 !important;
65-
}
66-
67-
.trio-version {
68-
display: inline;
69-
/* I *cannot* figure out how to get the version text vertically centered
70-
on the logo. Oh well...
71-
height: 32px;
72-
line-height: 32px;
73-
*/
74-
}
75-
76-
.wy-side-nav-search > a {
77-
/* Mostly this is just to simplify things, so we don't have margin/padding
78-
* on both the <a> and the <img> inside it */
79-
margin: 0 !important;
80-
padding: 0 !important;
65+
margin-left: 0;
66+
margin-right: 5px;
8167
}
8268

8369
/* Get rid of the weird super dark "Contents" label that wastes vertical space

0 commit comments

Comments
 (0)