outsource css to static files

This commit is contained in:
Erikas 2024-07-12 17:19:09 +03:00
parent e3e3ecb5d3
commit 1e78f4a071
2 changed files with 17 additions and 18 deletions

15
static/css/benchmarks.css Normal file
View File

@ -0,0 +1,15 @@
.list-group-item {
position: relative;
}
.stretched-link {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.username-link {
position: relative;
z-index: 2;
}

View File

@ -1,5 +1,7 @@
{{template "header.tmpl" .}}
<link rel="stylesheet" href="/static/css/benchmarks.css">
<div class="d-flex justify-content-between align-items-center">
<h2>Benchmarks</h2>
{{if .username}}
@ -34,24 +36,6 @@
{{- end -}}
</div>
<style>
.list-group-item {
position: relative;
}
.stretched-link {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.username-link {
position: relative;
z-index: 2;
}
</style>
<div class="d-flex justify-content-center mt-2">
<ul class="pagination">
<li class="page-item {{if le .page 1}}disabled{{end}}">