Minor CSS Fixes (#104)
This commit is contained in:
1 parent
e8fcc6a787
commit
8f41ab6836
9 files changed
+87
-86
No files matched your search
@@ -2,13 +2,15 @@ html, body, header {
|
||||
height: 100%;
|
||||
line-height: 1.5rem;
|
||||
font-weight: 400;
|
||||
font-size: 1.0rem;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
|
||||
#content .statblock {
|
||||
color: black;
|
||||
background-color: #CCCCCC;
|
||||
font-family: Courier, serif;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
#content .green {
|
||||
@@ -21,6 +23,23 @@ html, body, header {
|
||||
|
||||
}
|
||||
|
||||
|
||||
.w-10{
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.w-5{
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
.w-12{
|
||||
width: 12%;
|
||||
}
|
||||
|
||||
.mw-30{
|
||||
min-width: 30%;
|
||||
}
|
||||
|
||||
#content .red {
|
||||
/*background: linear-gradient(to bottom, #FA8E8E 0%, #da7474 100%);*/
|
||||
background-color: #FA8E8E
|
||||
|
||||
@@ -1,29 +1,45 @@
|
||||
{#<tr class="my-0 py-0">#}
|
||||
{# <th class="px-3" style="width:10%;" scope="col"></th>#}
|
||||
{# <th class="px-3" style="width:10%;" scope="col"></th>#}
|
||||
{# <th class="px-3" scope="col"></th>#}
|
||||
{# <th class="px-3 text-center" style="width: 5%;" scope="col"></th>#}
|
||||
{# <th class="px-3 text-center" style="width:12%;" scope="col"></th>#}
|
||||
{# <th class="px-3" scope="col"></th>#}
|
||||
{# </tr>#}
|
||||
|
||||
|
||||
{% load mytags %}
|
||||
<tr class="w-100" onclick="location.href='/test/{{ test.id }}'">
|
||||
<td>
|
||||
<a class="text-left btn btn-primary-outline btn-block btn-link text-decoration-none " href="/user/{{ test.author }}" role="button">
|
||||
<tr class="w-100 text-light" onclick="location.href='/test/{{ test.id }}'">
|
||||
<td class="w-10">
|
||||
<a class="text-left btn btn-primary-outline btn-block btn-link text-decoration-none" href="/user/{{ test.author }}" role="button">
|
||||
{{ test.author|capfirst|slice:":6" }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-left text-truncate"><a class="text-left btn btn-primary-outline btn-block"
|
||||
role="button">{{ test.engine }}</a></td>
|
||||
<td class="text-left text-truncate w-10">
|
||||
<a class="text-left btn btn-primary-outline btn-block" role="button">{{ test.engine }}</a>
|
||||
</td>
|
||||
{% if test.error %}
|
||||
<td class="text-left text-truncate"><a class="text-left btn btn-outline-danger btn-block text-danger"
|
||||
href="/test/{{ test.id }}"
|
||||
role="button"><span>[x]</span> {{ test|prettyDevName }}</a></td>
|
||||
<td class="text-left text-truncate mw-30">
|
||||
<a class="text-left btn btn-outline-danger btn-block text-danger" href="/test/{{ test.id }}"
|
||||
role="button"><span>[x]</span> {{ test|prettyDevName }}
|
||||
</a>
|
||||
</td>
|
||||
{% elif test|testIsFRC %}
|
||||
<td class="text-left text-truncate"><a class="text-left btn btn-primary-outline btn-block"
|
||||
href="/test/{{ test.id }}" role="button">{{ test|prettyDevName }}<span
|
||||
style="color: green">[FRC]</span></a></td>
|
||||
<td class="text-left text-truncate mw-30">
|
||||
<a class="text-left btn btn-primary-outline btn-block" href="/test/{{ test.id }}" role="button">
|
||||
{{ test|prettyDevName }}
|
||||
<span style="color: green">[FRC]</span>
|
||||
</a>
|
||||
</td>
|
||||
{% else %}
|
||||
<td class="text-left text-truncate"><a class="text-left btn btn-primary-outline btn-block"
|
||||
<td class="text-left text-truncate mw-30"><a class="text-left btn btn-primary-outline btn-block"
|
||||
href="/test/{{ test.id }}" role="button">{{ test|prettyDevName }}</a>
|
||||
</td> {% endif %}
|
||||
|
||||
<td class="text-center"><a class="btn btn-primary-outline btn-link btn-block text-decoration-none" href="{{ test|gitDiffLink }}" role="button">diff</a>
|
||||
<td class="text-center w-5"><a class="btn btn-primary-outline btn-link btn-block text-decoration-none" href="{{ test|gitDiffLink }}" role="button">diff</a>
|
||||
</td>
|
||||
|
||||
<td class="text-center"><a class="btn btn-primary-outline btn-block" role="button">{{ test.timecontrol }}</a></td>
|
||||
<td class="text-center w-12"><a class="btn btn-primary-outline btn-block" role="button">{{ test.timecontrol }}</a></td>
|
||||
|
||||
{# <td class="align-middle statblock {{ test|testResultColour }}">#}
|
||||
{# <label style="font-size: 0.8rem; line-height:1.1rem" class="align-middle align-text-bottom text-monospace px-0">#}
|
||||
|
||||
@@ -11,12 +11,10 @@
|
||||
rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
{# <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"#}
|
||||
{# integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">#}
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
|
||||
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
|
||||
crossorigin="anonymous"></script>
|
||||
@@ -33,6 +31,8 @@
|
||||
|
||||
<link rel="stylesheet" href="{% static 'style.css' %}">
|
||||
|
||||
<meta name="color-scheme" content="dark">
|
||||
|
||||
<title>OpenBench</title>
|
||||
<script>
|
||||
{% block scripts %}
|
||||
@@ -68,7 +68,7 @@
|
||||
{% endif %}
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-dark sticky-top">
|
||||
<div class="container container-xxl" style="max-width: 1540px;">
|
||||
<a class="navbar-brand w-100" href="#">
|
||||
<a class="navbar-brand w-100" href="/index/">
|
||||
<h2><i class="fa-solid fa-chess-knight fa-1x"></i> OpenBench Testing Framework</h2>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table table-striped table-sm table-hover">
|
||||
<table class="table table-sm table-hover text-light">
|
||||
<thead class="bg-black">
|
||||
<tr>
|
||||
<th style="color:green">Date</th>
|
||||
<th style="color:green">User</th>
|
||||
<th style="color:green">Test</th>
|
||||
<th style="color:green">Worker</th>
|
||||
<th style="color:green">TC</th>
|
||||
<th class="w-10" style="color:green">TC</th>
|
||||
<th style="color:green">Summary</th>
|
||||
<th style="color:green">Logs</th>
|
||||
<th class="w-5" style="color:green">Logs</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
@@ -4,25 +4,15 @@
|
||||
|
||||
{% if paging.page == 1 %}
|
||||
{% if pending %}
|
||||
<div class="align-self-center w-100 text-center mt-4 bg-black font-weight-bold mb-0 py-2 rounded-top" style="color:green;">
|
||||
<h5>
|
||||
Pending
|
||||
</h5>
|
||||
<div class="align-self-center w-100 text-center mt-4 bg-black font-weight-bold mb-0 py-1 rounded-top h5" style="color:green;">
|
||||
Pending
|
||||
</div>
|
||||
<table class="table table-sm table-hover table-striped datatable">
|
||||
<thead class="bg-black">
|
||||
<tr>
|
||||
<th class="px-3" style="width:10%; color:green;" scope="col">Author</th>
|
||||
<th class="px-3" style="width:10%; color:green;" scope="col">Engine</th>
|
||||
<th class="px-3" style=" color:green;" scope="col">Name</th>
|
||||
<th class="px-3 text-center" style="width: 5%; color:green;" scope="col"><i class="fa-brands fa-github"></i></th>
|
||||
<th class="px-3 text-center" style="width:12%; color:green;" scope="col">TC <i class="fa-solid fa-clock"></i></th>
|
||||
<th class="px-3" style=" color:green;" scope="col">Result</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for test in pending %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<tr class="table-spacer">
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -30,22 +20,13 @@
|
||||
{% endif %}
|
||||
|
||||
{% if active %}
|
||||
<div class="align-self-center w-100 text-center mt-4 bg-black font-weight-bold mb-0 py-2 rounded-top" style="color:green;">
|
||||
<h5>
|
||||
Active {{ status }}
|
||||
</h5>
|
||||
<div class="align-self-center w-100 text-center mt-4 bg-black font-weight-bold mb-0 py-1 rounded-top h5" style="color:green;">
|
||||
Active {{ status }}
|
||||
</div>
|
||||
<table class="table table-sm table-hover table-striped datatable" style="table-layout: fixed">
|
||||
<thead class="bg-black">
|
||||
<tr>
|
||||
<th class="px-3" style="width:10%; color:green;" scope="col">Author</th>
|
||||
<th class="px-3" style="width:10%; color:green;" scope="col">Engine</th>
|
||||
<th class="px-3" style=" color:green;" scope="col">Name</th>
|
||||
<th class="px-3 text-center" style="width: 5%; color:green;" scope="col"><i class="fa-brands fa-github"></i></th>
|
||||
<th class="px-3 text-center" style="width:12%; color:green;" scope="col">TC <i class="fa-solid fa-clock"></i></th>
|
||||
<th class="px-3" style=" color:green;" scope="col">Result</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
|
||||
{% for test in active %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
@@ -54,22 +35,10 @@
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div class="align-self-center w-100 text-center mt-4 bg-black font-weight-bold mb-0 py-2 rounded-top" style="color:green;">
|
||||
<h5>
|
||||
Finished
|
||||
</h5>
|
||||
<div class="align-self-center w-100 text-center mt-4 bg-black font-weight-bold mb-0 py-1 rounded-top h5" style="color:green;">
|
||||
Finished
|
||||
</div>
|
||||
<table class="mw-100 table table-sm table-hover table-striped datatable" style="table-layout: fixed">
|
||||
<thead class="bg-black">
|
||||
<tr>
|
||||
<th class="px-3" style="width:10%; color:green;" scope="col">Author</th>
|
||||
<th class="px-3" style="width:10%; color:green;" scope="col">Engine</th>
|
||||
<th class="px-3" style=" color:green;" scope="col">Name</th>
|
||||
<th class="px-3 text-center" style="width: 5%; color:green;" scope="col"><i class="fa-brands fa-github"></i></th>
|
||||
<th class="px-3 text-center" style="width:12%; color:green;" scope="col">TC <i class="fa-solid fa-clock"></i></th>
|
||||
<th class="px-3" style=" color:green;" scope="col">Result</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for test in completed %}
|
||||
{% include "OpenBench/Blocks/testsummary.html" %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table table-striped table-sm table-hover">
|
||||
<table class="table table-sm table-hover">
|
||||
<thead class="bg-black">
|
||||
<tr>
|
||||
<th style="color:green;">#</th>
|
||||
|
||||
@@ -55,15 +55,14 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table table-striped table-hover table-sm" id="network-table">
|
||||
|
||||
<table class="table table-hover table-sm text-light" id="network-table">
|
||||
<thead class="bg-black">
|
||||
<tr>
|
||||
<th style="color:green" onclick=sort_networks("default")></th>
|
||||
<th style="color:green" onclick=sort_networks("engine")>Engine</th>
|
||||
<th style="color:green" onclick=sort_networks("author")>Uploader</th>
|
||||
<th style="color:green" onclick=sort_networks("name")>Name</th>
|
||||
<th style="color:green" onclick=sort_networks("hash")>Hash</th>
|
||||
<th class="btn-dark" style="color:green" onclick=sort_networks("default")></th>
|
||||
<th class="btn-dark" style="color:green" onclick=sort_networks("engine")>Engine</th>
|
||||
<th class="btn-dark" style="color:green" onclick=sort_networks("author")>Uploader</th>
|
||||
<th class="btn-dark" style="color:green" onclick=sort_networks("name")>Name</th>
|
||||
<th class="btn-dark" style="color:green" onclick=sort_networks("hash")>Hash</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -78,9 +77,9 @@
|
||||
<i class="far fa-star" aria-hidden="true"></i></a></td>
|
||||
{% endif %}
|
||||
|
||||
<td><a href="/networks/{{network.engine}}/">{{network.engine}}</a></td>
|
||||
<td><a href="/user/{{network.author}}">{{network.author|capfirst}}</a></td>
|
||||
<td><a href="/networks/download/{{network.sha256}}">{{network.name}}</a></td>
|
||||
<td><a class="text-decoration-none text-light" href="/networks/{{network.engine}}/">{{network.engine}}</a></td>
|
||||
<td><a class="text-decoration-none text-light" href="/user/{{network.author}}">{{network.author|capfirst}}</a></td>
|
||||
<td><a class="text-decoration-none" href="/networks/download/{{network.sha256}}">{{network.name}}</a></td>
|
||||
<td>{{network.sha256}}</td>
|
||||
|
||||
<td><a class="redlink" onclick="return confirm('YOU ARE DELETING THIS NETWORK FILE FOREVER')" href="/networks/delete/{{network.sha256}}">
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
e.preventDefault();}
|
||||
;
|
||||
btn.classList.add('btn');
|
||||
btn.classList.add('btn-secondary', 'mr-1');
|
||||
btn.classList.add('btn-secondary', 'mr-1', 'me-2');
|
||||
button_div.append(btn);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table table-hover table-sm table-hover table-striped">
|
||||
<table class="table table-hover table-sm table-hover rounded-top text-light">
|
||||
<thead class="bg-black">
|
||||
|
||||
<tr>
|
||||
<th style="color: green" class="px-2">Username</th>
|
||||
<th style="color: green; text-align: center">Games</th>
|
||||
@@ -15,21 +14,20 @@
|
||||
<th style="color: green">Default Repository</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<thead class="bg-black">
|
||||
<tr style="font-weight: bold">
|
||||
<th style="color: green"></th>
|
||||
<th style="color: green; text-align: right">{{ profiles|sumAttributes:"games"|insertCommas }}</th>
|
||||
<th style="color: green; text-align: right">{{ profiles|sumAttributes:"tests"|insertCommas }}</th>
|
||||
<th style="color: green"></th>
|
||||
<th style="color: green"></th>
|
||||
<tr class="bg-black" style="font-weight: bold;">
|
||||
<th style=""></th>
|
||||
<th style="text-align: right">{{ profiles|sumAttributes:"games"|insertCommas }}</th>
|
||||
<th style="text-align: right">{{ profiles|sumAttributes:"tests"|insertCommas }}</th>
|
||||
<th style=""></th>
|
||||
<th style=""></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for profile in profiles %}
|
||||
{% if profile.enabled %}
|
||||
{% if profile.games or profile.tests %}
|
||||
<tr onclick="window.location='/user/{{ profile.user.username }}'">
|
||||
<td><a class="text-decoration-none text-white px-2" href="/user/{{ profile.user.username }}">{{ profile.user.username|capfirst }}</a></td>
|
||||
<tr class="text-light" onclick="window.location='/user/{{ profile.user.username }}'">
|
||||
<td><a class="text-decoration-none px-2" href="/user/{{ profile.user.username }}">{{ profile.user.username|capfirst }}</a></td>
|
||||
<td style="text-align: right">{{ profile.games|insertCommas }}</td>
|
||||
<td style="text-align: right">{{ profile.tests|insertCommas }}</td>
|
||||
<td>{{ profile.engine }}</td>
|
||||
|
||||
Reference in new issue
Block a user