Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #4665 from gratipay/fix-label-regression
Browse files Browse the repository at this point in the history
Fix label regression
  • Loading branch information
EdOverflow authored Oct 2, 2017
2 parents 772cdfd + e887786 commit 2f66f2d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
7 changes: 1 addition & 6 deletions scss/pages/homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
}

.field {
label, fieldset legend {
label {
display: block;
text-align: left;
font: normal 10px/12px $Ideal;
Expand All @@ -205,11 +205,6 @@
position: static;
margin: 0;
padding: 0;
legend {
color: $black;
position: static;
padding: 2em 0 0;
}
}
input {
width: 100%;
Expand Down
36 changes: 17 additions & 19 deletions www/index.spt
Original file line number Diff line number Diff line change
Expand Up @@ -247,29 +247,27 @@ $(document).ready(function() {
</div>

<div class="field on_mailing_list">
<fieldset>
<legend>{{ _('Join Mailing List') }}</legend>
<label for="mailing-list-yes">{{ _('Join Mailing List') }}</label>

<div class="fancy-radio">
<input type="radio" name="on_mailing_list" id="mailing-list-yes"
value="yes" checked>
<label for="mailing-list-yes">{{ _('Yes') }}</label>
</div>
<div class="fancy-radio">
<input type="radio" name="on_mailing_list" id="mailing-list-yes"
value="yes" checked>
<label for="mailing-list-yes">{{ _('Yes') }}</label>
</div>

<div class="fancy-radio">
<input type="radio" name="on_mailing_list" id="mailing-list-no"
value="no">
<label for="mailing-list-no">{{ _('No') }}</label>
</div>
<div class="fancy-radio">
<input type="radio" name="on_mailing_list" id="mailing-list-no"
value="no">
<label for="mailing-list-no">{{ _('No') }}</label>
</div>

<p class="fine-print help">
{{ _("I am surprised that you are seeing this message.") }}
</p>
<p class="fine-print help">
{{ _("I am surprised that you are seeing this message.") }}
</p>

<p class="fine-print">
{{ _('We send updates related to #BackTheStack.') }}
</p>
</fieldset>
<p class="fine-print">
{{ _('We send updates related to #BackTheStack.') }}
</p>
</div>


Expand Down

0 comments on commit 2f66f2d

Please sign in to comment.