Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[Bug 1247219] Fix Group settings UI elements
Browse files Browse the repository at this point in the history
* Fix Group title overflow text
* Limit select boxes width on mobile
* Proper arrangement of checkbox labels
  • Loading branch information
comzeradd committed Mar 29, 2016
1 parent 0977c04 commit 23b8b7d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
8 changes: 2 additions & 6 deletions mozillians/jinja2/groups/includes/group_edit_access.html
Expand Up @@ -107,10 +107,8 @@ <h4>Closed</h4>
<fieldset id="id_group_has_terms">
<div class="form-group">
<label class="checkbox">
<input type="checkbox" class="acknowledge">
{{ _('New members should accept terms') }}
<span>
<input type="checkbox" class="acknowledge"></input>
</span>
</label>
</div>
</fieldset>
Expand All @@ -133,10 +131,8 @@ <h4>Closed</h4>
<fieldset id="id_membership_can_expire">
<div class="form-group">
<label class="checkbox">
<input type="checkbox" class="acknowledge"></input>
{{ _('Membership can expire') }}
<span>
<input type="checkbox" class="acknowledge"></input>
</span>
</label>
</div>
</fieldset>
Expand Down
8 changes: 2 additions & 6 deletions mozillians/jinja2/groups/includes/group_edit_invitation.html
Expand Up @@ -55,18 +55,16 @@
<div class="panel-heading">{{ _('Invite new member') }}</div>
<div class="panel-body">

<fieldset>
<fieldset id="invites">
<div class="form-group">
{{ mozillians_field(invite_form.invites) }}
</div>
</fieldset>
<fieldset id="id_group_has_email_text">
<div class="form-group">
<label class="checkbox">
<input type="checkbox" class="acknowledge"></input>
{{ _('Additional Email Text') }}
<span>
<input type="checkbox" class="acknowledge"></input>
</span>
</label>
</div>
</fieldset>
Expand All @@ -76,8 +74,6 @@
<div class="col-sm-6">
<div class="form-group">
{{ mozillians_field(invite_form.invite_email_text) }}
<span class="under-input-field">
</span>
</div>
</div>
</div>
Expand Down
22 changes: 22 additions & 0 deletions mozillians/static/mozillians/css/main.less
Expand Up @@ -299,6 +299,13 @@ body {
.select2-container--default .select2-selection--multiple .select2-selection__clear {
margin-right: 0;
}

@media (max-width: @breakMobileLandscape) {
.select2-selection--multiple,
.select2-dropdown.select2-dropdown--below {
max-width: 230px !important;
}
}
}

#outer-wrapper {
Expand Down Expand Up @@ -2384,6 +2391,12 @@ form.add-group {
padding-left: 0px;
}
}
#id_group_email_text,
#id_group_terms,
#id_group_invalidation_days {
margin-top: 0px;
padding-top: 0px;
}
.text-muted {
margin: 20px 0;
text-align: center;
Expand All @@ -2404,6 +2417,14 @@ form.add-group {
}
}
}
@media (max-width: @breakMobileLandscape) {
fieldset#curators,
fieldset#invites {
.help-block {
max-width: 230px;
}
}
}
.invite-controls a {
color: @black;
}
Expand All @@ -2422,6 +2443,7 @@ form.add-group {
.panel-heading {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}

Expand Down

0 comments on commit 23b8b7d

Please sign in to comment.