mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-03 10:56:06 -04:00
Misc CSS fixes
This commit is contained in:
parent
d31c0852d1
commit
a7d0a2541a
@ -11,6 +11,10 @@
|
||||
--font-family: monospace;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
@ -35,18 +39,22 @@ table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td:not(:first-child) {
|
||||
padding-left: 0.5rem;
|
||||
thead {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
td:not(:last-child) {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
thead tr > td, tbody tr:not(:last-child) > td {
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
thead {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent-lighter);
|
||||
}
|
||||
@ -131,8 +139,22 @@ input[type="password"] {
|
||||
border: var(--input-border-width) solid var(--accent);
|
||||
}
|
||||
|
||||
input.long {
|
||||
width: 22em;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
input[type="text"]:not([hidden]),
|
||||
input[type="number"]:not([hidden]),
|
||||
input[type="password"]:not([hidden]),
|
||||
input.long:not([hidden]) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="number"] {
|
||||
width: 3rem;
|
||||
width: 5rem;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:not(:disabled),
|
||||
@ -140,10 +162,6 @@ input[type="radio"]:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input.long {
|
||||
width: 22em;
|
||||
}
|
||||
|
||||
input[type="text"]::placeholder,
|
||||
input[type="password"]::placeholder {
|
||||
color: white;
|
||||
@ -153,9 +171,8 @@ input[type="password"]::placeholder {
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="file"]::file-selector-button {
|
||||
margin: 0.5em 0;
|
||||
font-family: var(--font-family);
|
||||
margin: 0.3em var(--button-shadow-size);
|
||||
margin-left: var(--button-shadow-size);
|
||||
background-color: var(--accent);
|
||||
display: inline-block;
|
||||
color: white;
|
||||
@ -169,6 +186,10 @@ input[type="file"]::file-selector-button {
|
||||
0 0 0 var(--button-highlight-size) black;
|
||||
}
|
||||
|
||||
input[type="file"]::file-selector-button {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
button:hover:not(:disabled),
|
||||
input[type="submit"]:hover:not(:disabled),
|
||||
input[type="file"]::file-selector-button:hover:not(:disabled) {
|
||||
@ -229,8 +250,8 @@ fieldset {
|
||||
|
||||
#content {
|
||||
max-width: 800px;
|
||||
padding: 1em;
|
||||
margin: auto;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
|
@ -23,7 +23,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="width: 50%">Link</td>
|
||||
<td>Date Generated</td>
|
||||
<td>Date Generated</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -36,7 +36,7 @@
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
{{ $invite.CreatedAt.Format "Mon Jan _2 15:04:05 MST 2006" }}
|
||||
{{ $invite.CreatedAt.Format "Jan _2 15:04:05 MST 2006" }}
|
||||
</td>
|
||||
<td>
|
||||
<form
|
||||
@ -91,10 +91,10 @@
|
||||
<tr>
|
||||
<td colspan="2">User</td>
|
||||
<td>Players</td>
|
||||
<td>Max # players*</td>
|
||||
<td>Max # players*</td>
|
||||
<td>Admin</td>
|
||||
<td>Locked</td>
|
||||
<td>Delete Account</td>
|
||||
<td>Delete Account</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -122,7 +122,7 @@
|
||||
<a href="{{ $.App.FrontEndURL }}/web/player/{{ $player.UUID }}">{{ $player.Name }}</a>
|
||||
{{ end }}
|
||||
{{ else if gt (len $user.Players) 1 }}
|
||||
{{ len $user.Players }} players
|
||||
{{ len $user.Players }} players
|
||||
{{ end }}
|
||||
</td>
|
||||
<td>
|
||||
|
@ -22,7 +22,9 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="background"></div>
|
||||
<main id="content">{{ block "content" . }}{{ end }}</main>
|
||||
<main id="content">
|
||||
{{ block "content" . }}{{ end }}
|
||||
</main>
|
||||
<script type="module">
|
||||
for (const el of document.querySelectorAll(".noscript-hidden")) {
|
||||
el.classList.remove("noscript-hidden");
|
||||
|
@ -45,7 +45,7 @@
|
||||
<td colspan="2">Player</td>
|
||||
<td>UUID</td>
|
||||
{{ if or .App.Config.AllowAddingDeletingPlayers .User.IsAdmin }}
|
||||
<td>Delete Player</td>
|
||||
<td>Delete Player</td>
|
||||
{{ end }}
|
||||
</tr>
|
||||
</thead>
|
||||
@ -563,7 +563,7 @@
|
||||
</form>
|
||||
<p>
|
||||
<details>
|
||||
<summary>Delete account</summary>
|
||||
<summary>Delete Account</summary>
|
||||
<form
|
||||
action="{{ .App.FrontEndURL }}/web/delete-user"
|
||||
method="post"
|
||||
@ -579,7 +579,7 @@
|
||||
{{ .App.FrontEndURL }}
|
||||
{{ end }}"
|
||||
/>
|
||||
<input type="submit" value="Delete account" />
|
||||
<input type="submit" value="Delete Account" />
|
||||
</form>
|
||||
</details>
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user