| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 3 This file is part of website-defaults | |
| 4 Copyright (C) 2016 Eyeo GmbH | |
| 5 | |
| 6 website-defaults is free software: you can redistribute it and/or | |
| 7 modify it under the terms of the GNU General Public License as published by | |
| 8 the Free Software Foundation, either version 3 of the License, or | |
| 9 (at your option) any later version. | |
| 10 | |
| 11 website-defaults is distributed in the hope that it will be useful, | |
| 12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 GNU General Public License for more details. | |
| 15 | |
| 16 You should have received a copy of the GNU General Public License | |
| 17 along with website-defaults. If not, see <http://www.gnu.org/licenses/>. | |
| 18 --> | |
| 19 <html dir="ltr"> | |
| 20 | |
| 21 <head> | |
| 22 <meta charset="utf-8"> | |
| 23 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to- fit=no"> | |
| 24 <meta http-equiv="x-ua-compatible" content="ie=edge"> | |
| 25 <title>Forms</title> | |
| 26 <link rel="stylesheet" href="css/main.css"> | |
| 27 <link rel="stylesheet" href="css/demo.css"> | |
| 28 </head> | |
| 29 | |
| 30 <body> | |
| 31 <div class="container"> | |
| 32 | |
| 33 <h1>Forms</h1> | |
| 34 <p>Default styles for native form elements.</p> | |
| 35 | |
| 36 <h2>Requirements</h2> | |
| 37 <ul> | |
| 38 <li> | |
| 39 <a href="#fields">Fields</a> | |
| 40 <ul> | |
| 41 <li><a href="#basic-text">Basic text</a></li> | |
| 42 <li><a href="#advanced-text">Advanced text</a></li> | |
| 43 <li><a href="#textareas">Textareas</a></li> | |
| 44 <li><a href="#selects">Selects</a></li> | |
| 45 <li><a href="#checkboxes">Checkboxes</a></li> | |
| 46 <li><a href="#radios">Radios</a></li> | |
| 47 <li><a href="#buttons">Buttons</a></li> | |
| 48 </ul> | |
| 49 </li> | |
| 50 <li> | |
| 51 <a href="#support">Support</a> | |
| 52 <ul> | |
| 53 <li><a id="dir" onclick="changeDirection()">Right-to-left</a></li> | |
|
saroyanm
2016/12/06 18:26:55
Detail: we decided to remove Change direction and
juliandoucette
2016/12/07 17:31:10
Acknowledged.
I will change this.
| |
| 54 <li><a href="http://browserl.ist/?q=last+2+versions%2C+Safari+6%2C+IE+ 8">Last 2 versions, Safari 6, IE 8</a></li> | |
| 55 </ul> | |
| 56 </li> | |
| 57 </ul> | |
| 58 | |
| 59 <h3 id="fields">Fields</h3> | |
| 60 | |
| 61 <form> | |
| 62 <fieldset> | |
| 63 <legend id="basic-text">Basic text</legend> | |
| 64 <p> | |
| 65 <label for="default-text">Default text</label> | |
| 66 <input id="default-text" type="text" placeholder="Placeholder" /> | |
| 67 </p> | |
| 68 <p class="invalid"> | |
| 69 <label for="invalid-text">Invalid text</label> | |
| 70 <input id="invalid-text" type="text" placeholder="Placeholder" aria-in valid="true" /> | |
| 71 </p> | |
| 72 <p class="disabled"> | |
| 73 <label for="disabled-text">Disabled text</label> | |
| 74 <input id="disabled-text" type="text" placeholder="Placeholder" disabl ed /> | |
| 75 </p> | |
| 76 </fieldset> | |
| 77 | |
| 78 <fieldset> | |
| 79 <legend id="advanced-text">Advanced text</legend> | |
| 80 <p>These should look like basic text inputs in <a href="http://browserl. ist/?q=last+2+versions%2C+Safari+6%2C+IE+8">last 2 versions, Safari 6, IE 8</a>. </p> | |
| 81 <p><input type="search" placeholder="Search terms" /></p> | |
| 82 <p><input type="tel" placeholder="+55-55-555-5555" /></p> | |
| 83 <p><input type="url" placeholder="example.com" /></p> | |
| 84 <p><input type="email" placeholder="user@example.com" /></p> | |
| 85 <p><input type="password" placeholder="Password" /></p> | |
| 86 <p><input type="date" placeholder="Date" /></p> | |
| 87 <p><input type="time" placeholder="Time" /></p> | |
| 88 <p><input type="number" placeholder="5" /></p> | |
| 89 </fieldset> | |
| 90 | |
| 91 <fieldset> | |
| 92 <legend id="textareas">Textareas</legend> | |
| 93 <p> | |
| 94 <label for="default-textarea">Default textarea</label> | |
| 95 <textarea id="default-textarea"></textarea> | |
| 96 </p> | |
| 97 <p class="invalid"> | |
| 98 <label for="invalid-textarea">Invalid textarea</label> | |
| 99 <textarea id="invalid-textarea" aria-invalid="true"></textarea> | |
| 100 </p> | |
| 101 <p class="disabled"> | |
| 102 <label for="disabled-textarea">Disabled textarea</label> | |
| 103 <textarea id="disabled-textarea" disabled></textarea> | |
| 104 </p> | |
| 105 </fieldset> | |
| 106 | |
| 107 <fieldset> | |
| 108 <legend id="selects">Selects</legend> | |
| 109 <p> | |
| 110 <label for="default-select">Default select</label> | |
| 111 <select> | |
| 112 <option selected>Default option</option> | |
| 113 <optgroup label="Group 1"> | |
| 114 <option>Option 1</option> | |
| 115 <option>Option 2</option> | |
| 116 </optgroup> | |
| 117 <optgroup label="Group 2"> | |
| 118 <option>Option 3</option> | |
| 119 <option disabled>Option 4</option> | |
| 120 </optgroup> | |
| 121 </select> | |
| 122 </p> | |
| 123 <p class="invalid"> | |
| 124 <label for="invalid-select">Invalid select</label> | |
| 125 <select aria-invalid="true"> | |
| 126 <option selected>Default option</option> | |
| 127 <optgroup label="Group 1"> | |
| 128 <option>Option 1</option> | |
| 129 <option>Option 2</option> | |
| 130 </optgroup> | |
| 131 <optgroup label="Group 2"> | |
| 132 <option>Option 3</option> | |
| 133 <option disabled>Option 4</option> | |
| 134 </optgroup> | |
| 135 </select> | |
| 136 </p> | |
| 137 <p class="disabled"> | |
| 138 <label for="disabled-select">Disabled select</label> | |
| 139 <select disabled> | |
| 140 <option selected>Default option</option> | |
| 141 <optgroup label="Group 1"> | |
| 142 <option>Option 1</option> | |
| 143 <option>Option 2</option> | |
| 144 </optgroup> | |
| 145 <optgroup label="Group 2"> | |
| 146 <option>Option 3</option> | |
| 147 <option disabled>Option 4</option> | |
| 148 </optgroup> | |
| 149 </select> | |
| 150 </p> | |
| 151 </fieldset> | |
| 152 | |
| 153 <fieldset> | |
| 154 <legend id="checkboxes">Checkboxes</legend> | |
| 155 <p> | |
| 156 <label> | |
| 157 <input type="checkbox"> | |
| 158 Default checkbox | |
| 159 </label> | |
| 160 </p> | |
| 161 <p> | |
| 162 <label class="invalid"> | |
| 163 <input type="checkbox" aria-invalid="true"> | |
| 164 Invalid checkbox | |
| 165 </label> | |
| 166 </p> | |
| 167 <p> | |
| 168 <label class="disabled"> | |
| 169 <input type="checkbox" disabled> | |
| 170 Disabled checkbox | |
| 171 </label> | |
| 172 </p> | |
| 173 </fieldset> | |
| 174 | |
| 175 <fieldset> | |
| 176 <legend id="radios">Radios</legend> | |
| 177 <p> | |
| 178 <label> | |
| 179 <input type="radio"> | |
| 180 Default radio | |
| 181 </label> | |
| 182 </p> | |
| 183 <p> | |
| 184 <label class="invalid"> | |
| 185 <input type="radio" aria-invalid="true"> | |
| 186 Invalid radio | |
| 187 </label> | |
| 188 </p> | |
| 189 <p> | |
| 190 <label class="disabled"> | |
| 191 <input type="radio" disabled> | |
| 192 Disabled radio | |
| 193 </label> | |
| 194 </p> | |
| 195 </fieldset> | |
| 196 | |
| 197 <fieldset> | |
| 198 <legend id="buttons">Buttons</legend> | |
| 199 <p> | |
| 200 <button type="button">Default button</button> | |
| 201 <input type="button" value="Default input" /> | |
| 202 <button type="reset">Reset button</button> | |
| 203 <input type="reset" value="Reset input" /> | |
| 204 <button type="submit">Submit button</button> | |
| 205 <input type="submit" value="Submit input" /> | |
| 206 </p> | |
| 207 </fieldset> | |
| 208 | |
| 209 </form> | |
| 210 | |
| 211 </div> | |
| 212 | |
| 213 <script src="js/demo.js"></script> | |
| 214 </body> | |
| 215 | |
| 216 </html> | |
| OLD | NEW |