Skip to content

Commit

Permalink
style updates for inline forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Mariani committed Mar 6, 2012
1 parent a729d55 commit ecd2f89
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deform_bootstrap/static/chosen_bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,26 @@
* Fixes the positioning and cursor appearance
* of the 'remove' icon in single selection widgets.
*/

.chzn-single abbr {
border-bottom: none;
cursor: pointer;
}

/*
* Fix the width and positioning of chosen within inline forms.
* We had to pick a new class name for this.
*/

.form-inline select.i-can-haz-chzn-select {
min-width: 180px;
}

.form-inline select.i-can-haz-chzn-select[multiple="multiple"] {
min-width: 250px;
}

.form-inline .chzn-container {
vertical-align: middle;
}

1 change: 1 addition & 0 deletions deform_bootstrap/templates/chosen_multiple.pt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<select name="${field.name}"
id="${field.oid}"
multiple="multiple"
class="i-can-haz-chzn-select"
tal:attributes="size field.widget.size;
data-placeholder getattr(field.widget, 'placeholder', nothing)">
<option tal:repeat="(value, description) field.widget.values"
Expand Down
1 change: 1 addition & 0 deletions deform_bootstrap/templates/chosen_single.pt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div i18n:domain="deform" tal:omit-tag="">
<select name="${field.name}"
id="${field.oid}"
class="i-can-haz-chzn-select"
tal:attributes="size field.widget.size;
data-placeholder getattr(field.widget, 'placeholder', nothing)">
<option tal:repeat="(value, description) field.widget.values"
Expand Down

0 comments on commit ecd2f89

Please sign in to comment.