2012-08-15 23:15:12 +02:00
|
|
|
/**
|
|
|
|
* @provides phabricator-form-view-css
|
|
|
|
*/
|
|
|
|
|
|
|
|
.phabricator-form-view {
|
Update form styles, implement in many places
Summary:
This creates a common form look and feel across the site. I spent a bit of time working out a number of kinks in our various renderings. Some things:
- Font Styles are correctly applied for form elements now.
- Everything lines up!
- Selects are larger, easier to read, interact.
- Inputs have been squared.
- Consistant CSS applied glow (try it!)
- Improved Mobile Responsiveness
- CSS applied to all form elements, not just Aphront
- Many other minor tweaks.
I tried to hit as many high profile forms as possible in an effort to increase consistency. Stopped for now and will follow up after this lands. I know Evan is not a super fan of the glow, but after working with it for a week, it's way cleaner and responsive than the OS controls. Give it a try.
Test Plan: Tested many applications, forms, mobile and tablet.
Reviewers: epriestley, btrahan
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5860
2013-05-07 23:07:06 +02:00
|
|
|
padding: 20px;
|
|
|
|
background: #f4f5f8;
|
2012-08-15 23:15:12 +02:00
|
|
|
border-width: 1px 0;
|
|
|
|
border-style: solid;
|
Update form styles, implement in many places
Summary:
This creates a common form look and feel across the site. I spent a bit of time working out a number of kinks in our various renderings. Some things:
- Font Styles are correctly applied for form elements now.
- Everything lines up!
- Selects are larger, easier to read, interact.
- Inputs have been squared.
- Consistant CSS applied glow (try it!)
- Improved Mobile Responsiveness
- CSS applied to all form elements, not just Aphront
- Many other minor tweaks.
I tried to hit as many high profile forms as possible in an effort to increase consistency. Stopped for now and will follow up after this lands. I know Evan is not a super fan of the glow, but after working with it for a week, it's way cleaner and responsive than the OS controls. Give it a try.
Test Plan: Tested many applications, forms, mobile and tablet.
Reviewers: epriestley, btrahan
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5860
2013-05-07 23:07:06 +02:00
|
|
|
border-color: rgb(199, 201, 214);
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-phone .phabricator-form-view {
|
|
|
|
padding: 10px 5px 10px 10px;
|
2012-08-15 23:15:12 +02:00
|
|
|
}
|
|
|
|
|
2012-12-07 22:37:10 +01:00
|
|
|
.device .phabricator-form-view .aphront-form-control .aphront-form-label {
|
2012-08-15 23:15:12 +02:00
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
text-align: left;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2012-12-07 22:37:10 +01:00
|
|
|
.device .phabricator-form-view .aphront-form-control .aphront-form-caption {
|
2012-08-15 23:15:12 +02:00
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
text-align: left;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2012-12-07 22:37:10 +01:00
|
|
|
.device .phabricator-form-view .aphront-form-control .aphront-form-input {
|
2012-08-15 23:15:12 +02:00
|
|
|
float: none;
|
|
|
|
display: block;
|
|
|
|
text-align: left;
|
|
|
|
margin: .25em 0 0 0;
|
|
|
|
width: 99%;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2012-12-07 22:37:10 +01:00
|
|
|
.device .phabricator-form-view .aphront-form-control .aphront-form-error {
|
2012-08-15 23:15:12 +02:00
|
|
|
float: none;
|
|
|
|
text-align: left;
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|