darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.33k stars 705 forks source link

input field width #378

Open ghost opened 9 years ago

ghost commented 9 years ago

Can you include the class input-block-level by default such as:

<input class="vTextField input-block-level" id="id_country" maxlength="2" name="country" type="text" >
darklow commented 9 years ago

Why?

ghost commented 9 years ago

because the default size is too small, and there's lots of empty space?

and I don't want to put in this class one by one for my fields.

is there a way to do this automatically for all text fields?

darklow commented 9 years ago

Please see my comments here: #58

ghost commented 9 years ago

"""2) If you wish do not wish to use spanX classes, and used fixed width, you can increase twitter bootstrap default width for all inputs using following CSS in your projects .css file:"""

is there a way to add to ALL fields? what is this project css file?

darklow commented 9 years ago

You can extend base_site.html as Django and Django Suit documentation suggests and include your own project.css file where you can set global styles for vTextFieldby yourself.

Read more here: http://django-suit.readthedocs.org/en/develop/index.html#templates

And example file: https://github.com/darklow/django-suit/blob/master/suit/templates/admin/base_site.html

yomguy commented 8 years ago

Thanks @darklow, your solution works like a charm. To me, this issue could be closed.