Added label to select and updated light/dark styles.

This commit is contained in:
Benjamin A. Shelton 2026-08-19 17:54:28 -06:00
commit 3d09ba37b7
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 17 additions and 3 deletions

View file

@ -70,8 +70,9 @@ const meta = `{
</svg>
</button>
</div>
<div class="mt-6">
<select class="translation text-sm mt-0 p-2 text-gray-400 bg-gray-700 border-1 dark:border-gray-800 rounded-sm w-full">
<div class="mt-2">
<label for="translation">Translation</label>
<select id="translation" class="translation">
<option value="BSB">Berean Standard Bible (BSB)</option>
</select>
</div>

View file

@ -148,8 +148,21 @@ dialog.scripture {
p.poem-2 {
@apply mt-0 pl-14;
}
label[for=translation] {
@apply text-gray-500 text-sm bg-white;
@apply dark:bg-gray-600 dark:text-gray-400;
}
select.translation {
@apply text-sm mt-0 p-2 text-gray-600 bg-gray-100 border-gray-300 border-1 rounded-sm w-full;
@apply dark:text-gray-400 dark:bg-gray-700 dark:border-gray-800;
@apply overflow-hidden;
}
select.translation:focus, select.translation:focus-visible {
border: 1px solid rgb(79, 136, 206);
outline: 1px solid rgb(79, 136, 206);
}
button[data-close] {
@apply absolute top-0 right-0 pr-2 pb-4 pt-2 text-sm text-gray-500 cursor-pointer hover:text-red-900;
@apply absolute top-0 right-0 pr-2 pb-2 pt-2 text-sm text-gray-500 cursor-pointer hover:text-red-900;
@apply dark:text-gray-400 dark:hover:text-red-500;
span {
text-transform: uppercase;