Axel Rauschmayer on Nostr: By default <input> and <button> don’t seem to be affected by #CSS font-size. This ...
By default <input> and <button> don’t seem to be affected by #CSS font-size. This is my work-around:
body {
font-size: 300%;
}
button {
font-size: 90%;
}
input {
font-size: 90%;
}
I’m curious about the rationale: Why would you want your buttons to stay the same size while all other text is large?
Published at
2024-01-04 14:55:13Event JSON
{
"id": "eddbb62213fde6aba3df787599051aff900418f66d6f4b0c1f56efd9eb1c23cb",
"pubkey": "f757585053520644e2ce9e8c1dbb9dccaedb41a58cec71ac4e94257c6ce1e52b",
"created_at": 1704380113,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/111698255141758002",
"activitypub"
]
],
"content": "By default \u003cinput\u003e and \u003cbutton\u003e don’t seem to be affected by #CSS font-size. This is my work-around:\n\nbody {\n font-size: 300%;\n}\nbutton {\n font-size: 90%;\n}\ninput {\n font-size: 90%;\n}\n\nI’m curious about the rationale: Why would you want your buttons to stay the same size while all other text is large?",
"sig": "fef2439c67870cf97388e2db78af09b7060aef7bfec0e42201fa5854481b3fb63256f6abcda0adf6f9d2e4a0ce050385473153c27da1495b34d3df5e66b12a00"
}