Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-06-03 04:43:21

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Input field and textarea padding

Currently the default backend CSS applies some padding to textareas and other fields. For slight inconvenience, the paddings set are not the best when the fields should have the same width. The paddings differ between textareas and input.edit, which makes it impossible for plugins to set the width of the fields be same without overwriting part of the CSS.

Because themes might change the styles applied to fields, it’s not the best practice. In the worst case scenario the plugin might have completely different looking fields.

What I’m suggesting, is that in /textpattern/theme/classic/textpattern.css we set the horizontal padding to be exact same. This way, plugins could create fields with same aligment without changing the styles that themes might use. Currently the inputs have the padding of 1px and textareas 3px.

I would change around line 195 to:

input.edit {
margin-top: 5px;
padding: 1px 3px;

The problem with the change is that it will break the styles in existing plugins that try to fix the alignment by setting different widths to textareas and inputs. Those that use padding fixes won’t be affected.

Last edited by Gocom (2010-06-03 04:48:13)

Offline

Board footer

Powered by FluxBB