FossilRepo

Add input padding for text not hitting border

ragelink 2026-04-08 14:59 trunk
Commit b3f42783ee51faa089cd2e58616f47cb5dd3946d3867c23d0cefd288ef4e5a2f
1 file changed +1
--- templates/base.html
+++ templates/base.html
@@ -40,10 +40,11 @@
4040
input[type="text"], input[type="number"], input[type="email"],
4141
input[type="password"], input[type="search"], input[type="url"],
4242
textarea, select {
4343
@apply bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600
4444
text-gray-900 dark:text-gray-100 rounded-md
45
+ px-3 py-2
4546
shadow-sm dark:shadow-inner
4647
focus:border-brand focus:ring-1 focus:ring-brand
4748
placeholder-gray-500 dark:placeholder-gray-500
4849
transition-colors duration-150
4950
sm:text-sm;
5051
--- templates/base.html
+++ templates/base.html
@@ -40,10 +40,11 @@
40 input[type="text"], input[type="number"], input[type="email"],
41 input[type="password"], input[type="search"], input[type="url"],
42 textarea, select {
43 @apply bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600
44 text-gray-900 dark:text-gray-100 rounded-md
 
45 shadow-sm dark:shadow-inner
46 focus:border-brand focus:ring-1 focus:ring-brand
47 placeholder-gray-500 dark:placeholder-gray-500
48 transition-colors duration-150
49 sm:text-sm;
50
--- templates/base.html
+++ templates/base.html
@@ -40,10 +40,11 @@
40 input[type="text"], input[type="number"], input[type="email"],
41 input[type="password"], input[type="search"], input[type="url"],
42 textarea, select {
43 @apply bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600
44 text-gray-900 dark:text-gray-100 rounded-md
45 px-3 py-2
46 shadow-sm dark:shadow-inner
47 focus:border-brand focus:ring-1 focus:ring-brand
48 placeholder-gray-500 dark:placeholder-gray-500
49 transition-colors duration-150
50 sm:text-sm;
51

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button