style: Modernize account_settings.liquid form styles to match login.liquid

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 16:08:48 +08:00
1 parent b02d8c6c2d
commit 1aae7d7d92
1 file changed
+7 -7
+7 -7
View File
@@ -54,7 +54,7 @@
<div class="p-4 border border-gray-200 rounded-md bg-white/50">
<label for="about" class="block text-sm font-medium text-primary mb-1">About</label>
<div class="flex items-start">
<textarea id="about" name="about" rows="5" class="flex-grow text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">{{ page.about }}</textarea>
<textarea id="about" name="about" rows="5" class="flex-grow text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">{{ page.about }}</textarea>
<a href="/formatdoc" tabindex="-1" class="ml-2 mt-1 text-xs text-primary hover:underline flex-shrink-0">help</a>
</div>
</div>
@@ -62,7 +62,7 @@
<!-- Email -->
<div class="p-4 border border-gray-200 rounded-md bg-white/50">
<label for="email" class="block text-sm font-medium text-primary mb-1">Email</label>
<input type="email" id="email" name="email" value="{{ page.email }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
<input type="email" id="email" name="email" value="{{ page.email }}" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">
<p class="mt-1 text-xs text-text-muted">Only admins see your email. To share publicly, add to the 'about' box.</p>
</div>
</div> <!-- End of tab-profile -->
@@ -73,7 +73,7 @@
<!-- showdead -->
<div>
<label for="showdead" class="block text-sm font-medium text-primary mb-1">Show Dead?</label>
<select id="showdead" name="showd" class="w-full text-primary text-sm px-3 py-2 bg-white border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
<select id="showdead" name="showd" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out appearance-none">
<option value="yes" {% if page.showdead == "yes" %}selected{% endif %}>Yes</option>
<option value="no" {% if page.showdead == "no" %}selected{% endif %}>No</option>
</select>
@@ -82,7 +82,7 @@
<!-- noprocrast -->
<div>
<label for="noprocrast" class="block text-sm font-medium text-primary mb-1">No Procrastinate?</label>
<select id="noprocrast" name="nopro" class="w-full text-primary text-sm px-3 py-2 bg-white border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
<select id="noprocrast" name="nopro" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out appearance-none">
<option value="yes" {% if page.noprocrast == "yes" %}selected{% endif %}>Yes</option>
<option value="no" {% if page.noprocrast == "no" %}selected{% endif %}>No</option>
</select>
@@ -97,19 +97,19 @@
<!-- maxvisit -->
<div>
<label for="maxvisit" class="block text-sm font-medium text-primary mb-1">Max Visit (mins)</label>
<input type="number" id="maxvisit" name="maxv" value="{{ page.maxvisit }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
<input type="number" id="maxvisit" name="maxv" value="{{ page.maxvisit }}" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">
<p class="mt-1 text-xs text-text-muted">Max time per visit.</p>
</div>
<!-- minaway -->
<div>
<label for="minaway" class="block text-sm font-medium text-primary mb-1">Min Away (mins)</label>
<input type="number" id="minaway" name="mina" value="{{ page.minaway }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
<input type="number" id="minaway" name="mina" value="{{ page.minaway }}" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">
<p class="mt-1 text-xs text-text-muted">Required break time.</p>
</div>
<!-- delay -->
<div>
<label for="delay" class="block text-sm font-medium text-primary mb-1">Submit Delay (mins)</label>
<input type="number" id="delay" name="delay" value="{{ page.delay }}" class="w-full text-primary text-sm px-3 py-2 bg-transparent border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-150 ease-in-out">
<input type="number" id="delay" name="delay" value="{{ page.delay }}" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs">
<p class="mt-1 text-xs text-text-muted">Delay before submitting.</p>
</div>
</div>