-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from alphagov/govuk-elements-sass-3.1.1
Update to govuk-elements-sass v3.1.1
- Loading branch information
Showing
12 changed files
with
217 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block page_title %} | ||
Example - Checkboxes | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<main id="content" role="main"> | ||
|
||
{% include "includes/breadcrumb_examples.html" %} | ||
|
||
<div class="grid-row"> | ||
<div class="column-two-thirds"> | ||
|
||
<h1 class="heading-xlarge"> | ||
Checkboxes | ||
</h1> | ||
|
||
<!-- Copied from https://govuk-elements.herokuapp.com/form-elements/#form-toggle-content-checkboxes --> | ||
|
||
<form> | ||
<div class="form-group"> | ||
<fieldset> | ||
|
||
<legend> | ||
<h1 class="heading-medium"> | ||
What is your nationality? | ||
</h1> | ||
<span class="body-text">Select all options that are relevant to you.</span> | ||
</legend> | ||
|
||
<div class="multiple-choice"> | ||
<input id="nationalities-british" name="nationalities" type="checkbox" value="British"> | ||
<label for="nationalities-british">British (including English, Scottish, Welsh and Northern Irish)</label> | ||
</div> | ||
<div class="multiple-choice"> | ||
<input id="nationalities-irish" name="nationalities" type="checkbox" value="Irish"> | ||
<label for="nationalities-irish">Irish</label> | ||
</div> | ||
<div class="multiple-choice" data-target="example-different-country"> | ||
<input id="nationalities-other" name="nationalities" type="checkbox" value="Citizen of a different country"> | ||
<label for="nationalities-other">Citizen of a different country</label> | ||
</div> | ||
<div class="panel panel-border-narrow js-hidden" id="example-different-country"> | ||
<label class="form-label" for="nationalities-other-country">Country name</label> | ||
<input class="form-control" type="text" id="nationalities-other-country" name="nationalities-other-country"> | ||
</div> | ||
|
||
</fieldset> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</main> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 0 additions & 90 deletions
90
docs/views/examples/elements/radio-buttons-checkboxes.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block page_title %} | ||
Example - Radio buttons | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<main id="content" role="main"> | ||
|
||
{% include "includes/breadcrumb_examples.html" %} | ||
|
||
<div class="grid-row"> | ||
<div class="column-two-thirds"> | ||
|
||
<h1 class="heading-xlarge"> | ||
Radio buttons | ||
</h1> | ||
|
||
<form> | ||
<div class="form-group"> | ||
<fieldset> | ||
|
||
<legend> | ||
<h1 class="heading-medium">Where do you live?</h1> | ||
</legend> | ||
|
||
<div class="multiple-choice"> | ||
<input id="radio-1" type="radio" name="radio-group" value="Northern Ireland"> | ||
<label for="radio-1">Northern Ireland</label> | ||
</div> | ||
<div class="multiple-choice"> | ||
<input id="radio-2" type="radio" name="radio-group" value="Isle of Man or the Channel Islands"> | ||
<label for="radio-2">Isle of Man or the Channel Islands</label> | ||
</div> | ||
<p class="form-block">or</p> | ||
<div class="multiple-choice"> | ||
<input id="radio-3" type="radio" name="radio-group" value="I am a British citizen living abroad"> | ||
<label for="radio-3">I am a British citizen living abroad</label> | ||
</div> | ||
|
||
</fieldset> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
</div> | ||
</main> | ||
{% endblock %} |
Oops, something went wrong.