Skip to content

Commit 779d1c2

Browse files
Vertically centre the config bar links
1 parent deb94c7 commit 779d1c2

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎codespeed/static/css/main.css‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ div#sidebar { width: var(--sidebar-width); float: left; }
209209

210210
div#configbar {
211211
position: relative;
212+
display: flex;
213+
flex-wrap: wrap;
214+
align-items: center;
215+
row-gap: 0.3em;
212216
margin-left: calc(var(--sidebar-width) + 0.8em);
213217
margin-bottom: 0.8em;
214218
padding: 0.7em 1em;
@@ -446,7 +450,7 @@ tbody.commits tr td.date { padding: 0.3em; width: 5em; text-align: right; }
446450
}
447451

448452
a#permalink {
449-
float: right;
453+
margin-left: auto;
450454
display: inline-flex;
451455
align-items: center;
452456
gap: 0.25em;
@@ -573,5 +577,6 @@ div.footer a:hover { color: var(--accent); text-decoration: underline; }
573577

574578
/* speed.pypy.org additions */
575579
.envlinecolor { float: right; font-size: 12px; line-height: 18px; color: #555; }
576-
a#exportcsv { float: right; font-size: small; margin-right: 1em; }
580+
a#exportcsv { margin-left: auto; font-size: small; }
581+
a#exportcsv + a#permalink { margin-left: 1em; }
577582
a#exportcsv:hover { text-decoration: underline; }

‎codespeed/templates/codespeed/comparison.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
<label for="direction">Horizontal:</label>
7878
<input id="direction" type="checkbox" name="direction" value="horizontal"/>
7979
</span>
80-
{% include "codespeed/permalink.html" %}
8180
<a id="exportcsv" href="#">Export CSV</a>
81+
{% include "codespeed/permalink.html" %}
8282
</div>
8383
<div id="graph-title" style="text-align:center; padding:8px 0; font-size:15px;"></div>
8484
<div id="content" class="clearfix">

0 commit comments

Comments
 (0)