Last active
May 5, 2016 15:54
-
-
Save grapho/4aa3be3afa8a85fce3cf to your computer and use it in GitHub Desktop.
Form Structure
This file contains hidden or 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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Form Components', | |
| actions: { | |
| toggleError() { | |
| this.toggleProperty('isError'); | |
| } | |
| } | |
| }); |
This file contains hidden or 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
| html { | |
| font-size: 16px; | |
| } | |
| body { | |
| margin: 12px 16px; | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| line-height: 1.25; | |
| } | |
| *, *:after, *:before, input, fieldset { | |
| box-sizing: border-box; | |
| } | |
| input, textarea { | |
| font-size: inherit; | |
| font-family: inherit; | |
| line-height: inherit; | |
| } | |
| .form-component {} | |
| .fieldset-component { | |
| display: block; | |
| border: 0; | |
| border-top: 1px solid rgba(0, 0, 0, .1); | |
| margin: 0; | |
| padding: 8px 0 16px; | |
| outline: 0; | |
| } | |
| .legend-component { | |
| display: block; | |
| font-size: 12px; | |
| font-weight: bold; | |
| margin: 0 !important; | |
| padding: 0 8px 0 0; | |
| } | |
| .fieldset-content { | |
| display: block; | |
| padding: 0; | |
| } | |
| .form-control-component { | |
| display: flex; | |
| align-items: flex-start; | |
| width: 100%; | |
| margin: 0 0 4px; | |
| padding: 0; | |
| position: relative; | |
| } | |
| .label-component { | |
| width: 75px; | |
| flex: none; | |
| font-size: .75rem; | |
| padding-top: .25rem; | |
| padding-right: .5rem; | |
| } | |
| .input-component { | |
| background-color: rgba(0, 0, 0, .02); | |
| box-shadow: inset 0 0 1px rgba(0, 0, 0, .2), inset 0 1px 1px rgba(0, 0, 0, .2); | |
| border-radius: 2px; | |
| width: 100%; | |
| flex: 1; | |
| border: none; | |
| outline: 0; | |
| margin: 0; | |
| } | |
| .error-component { | |
| background-color: rgba(255, 255, 255, .9); | |
| border: 1px solid rgba(0, 0, 0, .1); | |
| border-radius: 2px 0 0 0; | |
| display: block; | |
| height: 12px; | |
| text-align: right; | |
| font-size: 10px; | |
| line-height: 12px; | |
| color: rgba(225, 0, 0, .9); | |
| padding: 0 2px; | |
| } |
This file contains hidden or 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
| { | |
| "version": "0.6.1", | |
| "EmberENV": { | |
| "FEATURES": {} | |
| }, | |
| "options": { | |
| "enable-testing": false | |
| }, | |
| "dependencies": { | |
| "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
| "ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.3.1/ember.debug.js", | |
| "ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.3.3/ember-data.js", | |
| "ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember-template-compiler.js" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment