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
|
|
|
/**
|
|
|
|
* @provides phui-form-css
|
|
|
|
*/
|
|
|
|
|
|
|
|
select,
|
|
|
|
textarea,
|
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
input[type="datetime"],
|
|
|
|
input[type="datetime-local"],
|
|
|
|
input[type="date"],
|
|
|
|
input[type="month"],
|
|
|
|
input[type="time"],
|
|
|
|
input[type="week"],
|
|
|
|
input[type="number"],
|
|
|
|
input[type="email"],
|
|
|
|
input[type="url"],
|
|
|
|
input[type="search"],
|
|
|
|
input[type="tel"],
|
|
|
|
input[type="color"],
|
|
|
|
div.jx-tokenizer-container {
|
|
|
|
display: inline-block;
|
|
|
|
height: 28px;
|
|
|
|
line-height: 18px;
|
2013-05-08 05:56:13 +02:00
|
|
|
color: #333;
|
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
|
|
|
vertical-align: middle;
|
2013-08-26 20:53:11 +02:00
|
|
|
font: 13px 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
textarea,
|
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
input[type="datetime"],
|
|
|
|
input[type="datetime-local"],
|
|
|
|
input[type="date"],
|
|
|
|
input[type="month"],
|
|
|
|
input[type="time"],
|
|
|
|
input[type="week"],
|
|
|
|
input[type="number"],
|
|
|
|
input[type="email"],
|
|
|
|
input[type="url"],
|
|
|
|
input[type="search"],
|
|
|
|
input[type="tel"],
|
|
|
|
input[type="color"],
|
|
|
|
div.jx-tokenizer-container {
|
|
|
|
padding: 4px 6px;
|
|
|
|
background-color: #ffffff;
|
2013-08-26 20:53:11 +02:00
|
|
|
border: 1px solid #95a6c5;
|
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
|
|
|
|
|
|
|
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
|
|
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
|
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
|
|
|
|
|
|
-webkit-transition: border linear .05s, box-shadow linear .05s;
|
|
|
|
-moz-transition: border linear .05s, box-shadow linear .05s;
|
|
|
|
-o-transition: border linear .05s, box-shadow linear .05s;
|
|
|
|
transition: border linear .05s, box-shadow linear .05s;
|
|
|
|
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2013-05-17 02:24:02 +02:00
|
|
|
|
|
|
|
/* iOS Safari */
|
|
|
|
-webkit-appearance: none;
|
|
|
|
border-radius: 0;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
textarea:focus,
|
|
|
|
input[type="text"]:focus,
|
|
|
|
input[type="password"]:focus,
|
|
|
|
input[type="datetime"]:focus,
|
|
|
|
input[type="datetime-local"]:focus,
|
|
|
|
input[type="date"]:focus,
|
|
|
|
input[type="month"]:focus,
|
|
|
|
input[type="time"]:focus,
|
|
|
|
input[type="week"]:focus,
|
|
|
|
input[type="number"]:focus,
|
|
|
|
input[type="email"]:focus,
|
|
|
|
input[type="url"]:focus,
|
|
|
|
input[type="search"]:focus,
|
|
|
|
input[type="tel"]:focus,
|
|
|
|
input[type="color"]:focus,
|
|
|
|
div.jx-tokenizer-container-focused {
|
|
|
|
border-color: rgba(82, 168, 236, 0.8);
|
|
|
|
outline: 0;
|
|
|
|
/* IE6-9 */
|
|
|
|
|
|
|
|
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
|
|
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
|
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
|
|
}
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
margin: 4px 0 0;
|
|
|
|
margin-top: 1px \9;
|
|
|
|
/* IE8-9 */
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
height: 24px;
|
|
|
|
line-height: 24px;
|
|
|
|
border: 1px solid #a1a5a9;
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
select[multiple],
|
|
|
|
select[size] {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
select:focus,
|
|
|
|
input[type="file"]:focus,
|
|
|
|
input[type="radio"]:focus,
|
|
|
|
input[type="checkbox"]:focus {
|
|
|
|
outline: thin dotted #333;
|
|
|
|
outline: 5px auto -webkit-focus-ring-color;
|
|
|
|
outline-offset: -2px;
|
|
|
|
}
|
|
|
|
input:-moz-placeholder,
|
|
|
|
textarea:-moz-placeholder {
|
|
|
|
color: #999999;
|
|
|
|
}
|
|
|
|
input:-ms-input-placeholder,
|
|
|
|
textarea:-ms-input-placeholder {
|
|
|
|
color: #999999;
|
|
|
|
}
|
|
|
|
input::-webkit-input-placeholder,
|
|
|
|
textarea::-webkit-input-placeholder {
|
|
|
|
color: #999999;
|
|
|
|
}
|
2013-05-31 01:19:43 +02:00
|
|
|
|
|
|
|
|
2013-06-22 00:13:48 +02:00
|
|
|
select[disabled="disabled"],
|
|
|
|
input[disabled="disabled"] {
|
2013-05-31 01:19:43 +02:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|