|
@@ -18,44 +18,37 @@
|
|
|
<h1>Full-page form (flexbox fields)</h1>
|
|
<h1>Full-page form (flexbox fields)</h1>
|
|
|
<form class="form form--full-page" action="#" method="post">
|
|
<form class="form form--full-page" action="#" method="post">
|
|
|
<h1 class="form__title">Form title</h1>
|
|
<h1 class="form__title">Form title</h1>
|
|
|
- <div class="form__field">
|
|
|
|
|
- <div class="field" id="input-text">
|
|
|
|
|
- <label class="field__label" for="text">Text</label>
|
|
|
|
|
- <input class="field__input input" type="text" name="text" label="Text">
|
|
|
|
|
- <p class="field__error-help-msg"></p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="form__field field" id="input-text">
|
|
|
|
|
+ <label class="field__label" for="text">Text</label>
|
|
|
|
|
+ <input class="field__input input" type="text" name="text" label="Text">
|
|
|
|
|
+ <p class="field__error-help-msg"></p>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="form__field">
|
|
|
|
|
- <div class="field" id="input-radio">
|
|
|
|
|
- <label class="field__label" for="radio">Radio</label>
|
|
|
|
|
- <div class="field__input radio radio--grid">
|
|
|
|
|
- <input class="radio__option" type="radio" value="Option 1" name="radio" id="option-1">
|
|
|
|
|
- <label class="radio__label" for="option-1">Option 1</label>
|
|
|
|
|
- <input class="radio__option" type="radio" value="Option 2" name="radio" id="option 2">
|
|
|
|
|
- <label class="radio__label" for="option-2">Option 2</label>
|
|
|
|
|
- <input class="radio__option" type="radio" value="Option 3" name="radio" id="option-3">
|
|
|
|
|
- <label class="radio__label" for="option-3">Option 3</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <p class="field__error-help-msg"></p>
|
|
|
|
|
|
|
+ <div class="form__field field" id="input-radio">
|
|
|
|
|
+ <label class="field__label" for="radio">Radio</label>
|
|
|
|
|
+ <div class="field__input radio radio--grid">
|
|
|
|
|
+ <input class="radio__option" type="radio" value="Option 1" name="radio" id="option-1">
|
|
|
|
|
+ <label class="radio__label" for="option-1">Option 1</label>
|
|
|
|
|
+ <input class="radio__option" type="radio" value="Option 2" name="radio" id="option 2">
|
|
|
|
|
+ <label class="radio__label" for="option-2">Option 2</label>
|
|
|
|
|
+ <input class="radio__option" type="radio" value="Option 3" name="radio" id="option-3">
|
|
|
|
|
+ <label class="radio__label" for="option-3">Option 3</label>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- <div class="form__field">
|
|
|
|
|
- <div class="field" id="input-select">
|
|
|
|
|
- <label class="field__label" for="select">Select</label>
|
|
|
|
|
- <select class="field__input select" id="select" name="select">
|
|
|
|
|
- <option class="select__option" value="option-1">Option 1</option>
|
|
|
|
|
- <option class="select__option" value="option-2">Option 2</option>
|
|
|
|
|
- <option class="select__option" value="option-3">Option 3</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- <p class="field__error-help-msg"></p>
|
|
|
|
|
|
|
+ <p class="field__error-help-msg"></p>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="form__field">
|
|
|
|
|
- <div class="field" id="input-textarea">
|
|
|
|
|
- <label class="field__label" for="textarea">Textarea</label>
|
|
|
|
|
- <textarea class="field__input input" id="textarea" type="textarea" name="text" label="Texte" placeholder="Ajouter une note"></textarea>
|
|
|
|
|
- <p class="field__error-help-msg"></p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="form__field field" id="input-select">
|
|
|
|
|
+ <label class="field__label" for="select">Select</label>
|
|
|
|
|
+ <select class="field__input select" id="select" name="select">
|
|
|
|
|
+ <option class="select__option" value="option-1">Option 1</option>
|
|
|
|
|
+ <option class="select__option" value="option-2">Option 2</option>
|
|
|
|
|
+ <option class="select__option" value="option-3">Option 3</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <p class="field__error-help-msg"></p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form__field field" id="input-textarea">
|
|
|
|
|
+ <label class="field__label" for="textarea">Textarea</label>
|
|
|
|
|
+ <textarea class="field__input input" id="textarea" type="textarea" name="text" label="Texte" placeholder="Ajouter une note"></textarea>
|
|
|
|
|
+ <p class="field__error-help-msg"></p>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form__field field" id="input-multiple">
|
|
<div class="form__field field" id="input-multiple">
|
|
|
<label class="field__label" for="multiple">Select multiple</label>
|
|
<label class="field__label" for="multiple">Select multiple</label>
|
|
@@ -66,7 +59,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
<p class="field__error-help-msg"></p>
|
|
<p class="field__error-help-msg"></p>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="form__field">
|
|
|
|
|
|
|
+ <div class="form__field field">
|
|
|
<input class="input input--hidden" type="hidden" name="kind" value="internetcontent">
|
|
<input class="input input--hidden" type="hidden" name="kind" value="internetcontent">
|
|
|
</div>
|
|
</div>
|
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
@@ -109,11 +102,8 @@
|
|
|
<option class="select__option" value="option2">Option 2</option>
|
|
<option class="select__option" value="option2">Option 2</option>
|
|
|
<option class="select__option" value="option3">Option 3</option>
|
|
<option class="select__option" value="option3">Option 3</option>
|
|
|
</select>
|
|
</select>
|
|
|
- <p class="field__error-help-msg"></p>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form__field">
|
|
|
|
|
- <input class="input input--hidden" type="hidden" name="kind" value="internetcontent">
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <input class="input input--hidden" type="hidden" name="kind" value="internetcontent">
|
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
@@ -167,7 +157,7 @@
|
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
|
- <h1>Inline forms</h1>
|
|
|
|
|
|
|
+ <h1>Horizontal, one-line forms</h1>
|
|
|
<form class="form form--horizontal" action="#" method="post">
|
|
<form class="form form--horizontal" action="#" method="post">
|
|
|
<div class="form__field">
|
|
<div class="form__field">
|
|
|
<div class="field" id="input-text">
|
|
<div class="field" id="input-text">
|
|
@@ -208,7 +198,19 @@
|
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
<button class="form__submit button button-success" type="submit">Go</button>
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
|
- <h1>Tag-like forms</h1>
|
|
|
|
|
|
|
+ <div style="display: flex; align-items: flex-end;">
|
|
|
|
|
+ <form class="form form--horizontal" action="#" method="post">
|
|
|
|
|
+ <div class="form__field">
|
|
|
|
|
+ <div class="field" id="input-text">
|
|
|
|
|
+ <label class="field__label" for="text">Text</label>
|
|
|
|
|
+ <input class="field__input input" type="text" name="text" label="Text">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <button class="form__submit button button-success" type="submit">Go</button>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <h1>Inline forms</h1>
|
|
|
<form class="form form--inline" action="#" method="post">
|
|
<form class="form form--inline" action="#" method="post">
|
|
|
<h1 class="form__title">the tag</h1>
|
|
<h1 class="form__title">the tag</h1>
|
|
|
<button class="form__submit button button--inline button--danger" type="submit">×</button>
|
|
<button class="form__submit button button--inline button--danger" type="submit">×</button>
|