mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
Fixed inputs and labels lack spacing (#821)
To keep consistency in the Forms documentation page I just fixed spacing between inputs and their associate labels
This commit is contained in:
parent
e79bd2f2ef
commit
10096f812c
@ -27,8 +27,7 @@ function Forms() {
|
|||||||
<input type="email" placeholder="Email" />
|
<input type="email" placeholder="Email" />
|
||||||
<input type="password" placeholder="Password" />
|
<input type="password" placeholder="Password" />
|
||||||
<label htmlFor="default-remember">
|
<label htmlFor="default-remember">
|
||||||
<input id="default-remember" type="checkbox" />
|
<input id="default-remember" type="checkbox" /> Remember me
|
||||||
Remember me
|
|
||||||
</label>
|
</label>
|
||||||
<button type="submit" className="pure-button pure-button-primary">Sign in</button>
|
<button type="submit" className="pure-button pure-button-primary">Sign in</button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@ -284,16 +283,13 @@ function Forms() {
|
|||||||
<Example>
|
<Example>
|
||||||
<form className="pure-form">
|
<form className="pure-form">
|
||||||
<label htmlFor="checkbox-radio-option-one" className="pure-checkbox">
|
<label htmlFor="checkbox-radio-option-one" className="pure-checkbox">
|
||||||
<input id="checkbox-radio-option-one" type="checkbox" value="" />
|
<input id="checkbox-radio-option-one" type="checkbox" value="" /> Here's option one.
|
||||||
Here's option one.
|
|
||||||
</label>
|
</label>
|
||||||
<label htmlFor="checkbox-radio-option-two" className="pure-radio">
|
<label htmlFor="checkbox-radio-option-two" className="pure-radio">
|
||||||
<input id="checkbox-radio-option-two" type="radio" name="optionsRadios" value="option1" defaultChecked />
|
<input id="checkbox-radio-option-two" type="radio" name="optionsRadios" value="option1" defaultChecked /> Here's a radio button. You can choose this one..
|
||||||
Here's a radio button. You can choose this one..
|
|
||||||
</label>
|
</label>
|
||||||
<label htmlFor="checkbox-radio-option-three" className="pure-radio">
|
<label htmlFor="checkbox-radio-option-three" className="pure-radio">
|
||||||
<input id="checkbox-radio-option-three" type="radio" name="optionsRadios" value="option2" />
|
<input id="checkbox-radio-option-three" type="radio" name="optionsRadios" value="option2" /> ..Or this one!
|
||||||
..Or this one!
|
|
||||||
</label>
|
</label>
|
||||||
</form>
|
</form>
|
||||||
</Example>
|
</Example>
|
||||||
|
Loading…
Reference in New Issue
Block a user