improve packet display

This commit is contained in:
Ross
2023-10-16 10:16:13 +01:00
parent 64b496988f
commit 2f6e3a8701
2 changed files with 14 additions and 6 deletions
+9
View File
@@ -1116,3 +1116,12 @@ input[type="button"], button {
.login-button { .login-button {
cursor: pointer; cursor: pointer;
} }
h2:has(+ #exam-list:empty), h2:has(+ #packet-list:empty){
opacity: 30%;
}
#exam-list:empty::after, #packet-list:empty::after{
content: "None available.";
opacity: 30%;
}
+5 -6
View File
@@ -68,14 +68,13 @@
<div id="packets"> <div id="packets">
<p>Click buttons below to load an exam / packet</p> <p>Click buttons below to load an exam / packet</p>
<span class="exam-wrapper"> <span class="exam-wrapper">
<h2>Available Exams:</h2> <h2>Exams:</h2>
<span id="exam-list"> <span id="exam-list"></span>
</span>
</span> </span>
<h2>Available Packets:</h2> <span class="packet-wrapper">
<span id="packet-list"> <h2>Packets:</h2>
<span id="packet-list"></span>
</span> </span>
</div> </div>
<div id="options-link"> <div id="options-link">