mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
* add models tests (#1) also replace single quote to double one to confort PEP docstring + move _check_output to class properties to make it available for mocking * alpm tests implementation * try to replace os with pathlib * update tests for pathlib * fix includes glob and trim version from dependencies * build_tools package tests * repository component tests * add sign tests * complete status tests * handle exceptions in actual_version calls * complete core tests * move configuration to root conftest * application tests * complete application tests * change copyright to more generic one * base web tests * complete web tests * complete testkit also add argument parsers test
136 lines
3.6 KiB
Django/Jinja
136 lines
3.6 KiB
Django/Jinja
<style>
|
|
:root {
|
|
--color-building: 255, 255, 146;
|
|
--color-failed: 255, 94, 94;
|
|
--color-pending: 255, 255, 146;
|
|
--color-success: 94, 255, 94;
|
|
--color-unknown: 225, 225, 225;
|
|
|
|
--color-header: 200, 200, 255;
|
|
--color-hover: 255, 255, 225;
|
|
--color-line-blue: 235, 235, 255;
|
|
--color-line-white: 255, 255, 255;
|
|
}
|
|
|
|
@keyframes blink-building {
|
|
0% { background-color: rgba(var(--color-building), 1.0); }
|
|
10% { background-color: rgba(var(--color-building), 0.9); }
|
|
20% { background-color: rgba(var(--color-building), 0.8); }
|
|
30% { background-color: rgba(var(--color-building), 0.7); }
|
|
40% { background-color: rgba(var(--color-building), 0.6); }
|
|
50% { background-color: rgba(var(--color-building), 0.5); }
|
|
60% { background-color: rgba(var(--color-building), 0.4); }
|
|
70% { background-color: rgba(var(--color-building), 0.3); }
|
|
80% { background-color: rgba(var(--color-building), 0.2); }
|
|
90% { background-color: rgba(var(--color-building), 0.1); }
|
|
100% { background-color: rgba(var(--color-building), 0.0); }
|
|
}
|
|
|
|
div.root {
|
|
width: 70%;
|
|
padding: 15px 15% 0;
|
|
}
|
|
|
|
section.element, footer {
|
|
width: 100%;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
code, input, table {
|
|
width: inherit;
|
|
}
|
|
|
|
th, td {
|
|
padding: 5px;
|
|
}
|
|
|
|
tr.package:nth-child(odd) {
|
|
background-color: rgba(var(--color-line-white), 1.0);
|
|
}
|
|
|
|
tr.package:nth-child(even) {
|
|
background-color: rgba(var(--color-line-blue), 1.0);
|
|
}
|
|
|
|
tr.package:hover {
|
|
background-color: rgba(var(--color-hover), 1.0);
|
|
}
|
|
|
|
tr.header{
|
|
background-color: rgba(var(--color-header), 1.0);
|
|
}
|
|
|
|
td.status {
|
|
text-align: center;
|
|
}
|
|
|
|
td.package-unknown {
|
|
background-color: rgba(var(--color-unknown), 1.0);
|
|
}
|
|
td.package-pending {
|
|
background-color: rgba(var(--color-pending), 1.0);
|
|
}
|
|
td.package-building {
|
|
background-color: rgba(var(--color-building), 1.0);
|
|
animation-name: blink-building;
|
|
animation-duration: 1s;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
td.package-failed {
|
|
background-color: rgba(var(--color-failed), 1.0);
|
|
}
|
|
td.package-success {
|
|
background-color: rgba(var(--color-success), 1.0);
|
|
}
|
|
|
|
li.service-unknown {
|
|
background-color: rgba(var(--color-unknown), 1.0);
|
|
}
|
|
li.service-building {
|
|
background-color: rgba(var(--color-building), 1.0);
|
|
animation-name: blink-building;
|
|
animation-duration: 1s;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
li.service-failed {
|
|
background-color: rgba(var(--color-failed), 1.0);
|
|
}
|
|
li.service-success {
|
|
background-color: rgba(var(--color-success), 1.0);
|
|
}
|
|
|
|
ul.navigation {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background-color: rgba(var(--color-header), 1.0);
|
|
}
|
|
|
|
ul.navigation li {
|
|
float: left;
|
|
}
|
|
|
|
ul.navigation li.status {
|
|
display: block;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
ul.navigation li a {
|
|
display: block;
|
|
color: black;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
ul.navigation li a:hover {
|
|
background-color: rgba(var(--color-hover), 1.0);
|
|
}
|
|
</style> |