Mailspring/static/components/generated-form.less

109 lines
1.9 KiB
Text
Raw Normal View History

feat(salesforce): add Salesforce creator Summary: tests on the schemas build input elements form builder pulls data grouping by row salesforce object store salesforce api logic successfully pulling salesforce objects into db object store saving to db refactoring tokenizing text field full documented tokenizing text field with specs linking in object picker component converting generated form to a controlled input form change handlers for controlled inputs Salesforce object creator store new way of opening windows removed atom.state.mode create new salesforce object creator in new window form creator loading in popup with generated form generated form renders select and multiselcet and textarea add checkbox creating related objects windnows know when others close remove debugger statements form submission converting data for salesforce posting hot window loading new hot window registration hot loading windows actions for listening to salesforce objects created generated form errors error handling for salesforce object creator rename saleforce object form store display errors to form submitting state passed through properly posts objects to Salesforce change name to salesforce object form add deep clone use formItemEach styling for Salesforce form creator salesforce required fields come back and populate form generated form loads related objects into fields remove console logs and fix sales schema adapter test fix task queue and formbuilder specs fix action bridge spec fix tokenizing text field spec fix draft store and tokenizing proptypes fix linter issues fix tokenizing text field bug rename to refresh window props remove console.log Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1425
2015-04-25 00:36:19 +08:00
@import "ui-variables";
.generated-form {
position: relative;
fieldset {
legend {
margin-bottom: @spacing-double;
color: fade(@black, 40%);
font-weight: @font-weight-semi-bold;
}
margin: 0;
padding: @spacing-double 50px 50px 50px;
border: 0;
border-bottom: 1px solid fade(@black, 20%);
}
.form-item {
display: flex;
flex-direction: row;
.label-area {
padding-top: 0.5em;
width: 125px;
margin-right: @spacing-standard;
}
.input-area {
position: relative;
flex: 2;
select {
margin-top: 9px;
}
feat(salesforce): add Salesforce creator Summary: tests on the schemas build input elements form builder pulls data grouping by row salesforce object store salesforce api logic successfully pulling salesforce objects into db object store saving to db refactoring tokenizing text field full documented tokenizing text field with specs linking in object picker component converting generated form to a controlled input form change handlers for controlled inputs Salesforce object creator store new way of opening windows removed atom.state.mode create new salesforce object creator in new window form creator loading in popup with generated form generated form renders select and multiselcet and textarea add checkbox creating related objects windnows know when others close remove debugger statements form submission converting data for salesforce posting hot window loading new hot window registration hot loading windows actions for listening to salesforce objects created generated form errors error handling for salesforce object creator rename saleforce object form store display errors to form submitting state passed through properly posts objects to Salesforce change name to salesforce object form add deep clone use formItemEach styling for Salesforce form creator salesforce required fields come back and populate form generated form loads related objects into fields remove console logs and fix sales schema adapter test fix task queue and formbuilder specs fix action bridge spec fix tokenizing text field spec fix draft store and tokenizing proptypes fix linter issues fix tokenizing text field bug rename to refresh window props remove console.log Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1425
2015-04-25 00:36:19 +08:00
}
.form-error {
position: absolute;
color: @error-color;
font-size: @font-size-smaller;
margin-top: 0.3em;
}
input {
padding-top: 5px;
padding-bottom: 2px;
padding-left: 5px;
}
textarea {
width: 100%;
border: 1px solid @input-border;
}
}
.fieldset-form-items {
.row {
position: relative;
margin-top: @spacing-double;
display: flex;
flex-direction: row;
}
.column {
flex: 1;
&:last-child {
margin-right: 0;
}
}
.column-spacer {
min-width: 30px;
max-width: 80px;
width: 10%;
}
}
.form-footer {
background: @background-secondary;
text-align: center;
padding: 22px 0;
}
button {
font-size: @font-size-larger;
background: #fff;
border: 0;
border-bottom: 3px solid @input-border;
border-radius: 4px;
padding: 7px 35px 2px 35px;
}
.tokenizing-field-input {
padding: 0;
.token {
padding-top: 0.4em;
margin-bottom: 3px;
}
input {
margin-bottom: 3px;
}
}
/* NOTE: We intentionally don't use the HTML :valid :invalid CSS pseudo
* selectors since we can't set them declaratively with React.
input, textarea {
&:valid { }
&:invalid { }
}
*/
}