Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input field width #378

Open
ghost opened this issue Jun 7, 2015 · 6 comments
Open

input field width #378

ghost opened this issue Jun 7, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2015

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
Copy link
Owner

darklow commented Jun 7, 2015

Why?

@ghost
Copy link
Author

ghost commented Jun 7, 2015

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
Copy link
Owner

darklow commented Jun 7, 2015

Please see my comments here: #58

@ghost
Copy link
Author

ghost commented Jun 7, 2015

"""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
Copy link
Owner

darklow commented Jun 7, 2015

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
Copy link

yomguy commented Jan 26, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants