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;
|
2017-04-12 05:08:28 +02:00
|
|
|
height: 30px;
|
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
|
|
|
line-height: 18px;
|
2017-07-28 00:12:48 +02:00
|
|
|
color: inherit;
|
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;
|
2015-02-26 18:26:36 +01:00
|
|
|
font: {$basefont};
|
2013-08-26 20:53:11 +02:00
|
|
|
-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;
|
2017-07-17 20:08:17 +02:00
|
|
|
background-color: {$page.content};
|
2016-11-10 01:31:30 +01:00
|
|
|
border: 1px solid {$greyborder};
|
|
|
|
border-radius: 3px;
|
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-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;
|
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 */
|
|
|
|
|
2014-12-30 11:48:26 +01:00
|
|
|
-webkit-box-shadow:
|
2016-02-15 06:29:56 +01:00
|
|
|
inset 0 1px 1px rgba({$alphablack},.075),
|
2014-12-30 11:48:26 +01:00
|
|
|
0 0 8px rgba(82,168,236,.6);
|
|
|
|
-moz-box-shadow:
|
2016-02-15 06:29:56 +01:00
|
|
|
inset 0 1px 1px rgba({$alphablack},.075),
|
2014-12-30 11:48:26 +01:00
|
|
|
0 0 8px rgba(82,168,236,.6);
|
|
|
|
box-shadow:
|
2016-02-15 06:29:56 +01:00
|
|
|
inset 0 1px 1px rgba({$alphablack},.075),
|
2014-12-30 11:48:26 +01:00
|
|
|
0 0 8px rgba(82,168,236,.6);
|
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
|
|
|
}
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
margin: 4px 0 0;
|
|
|
|
margin-top: 1px \9;
|
|
|
|
/* IE8-9 */
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
2016-11-10 01:31:30 +01:00
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
|
2017-07-17 20:08:17 +02:00
|
|
|
background: {$page.content} url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC") no-repeat right 8px center;
|
2016-11-10 01:31:30 +01:00
|
|
|
background-size: 8px 10px;
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid {$greyborder};
|
2017-04-12 05:08:28 +02:00
|
|
|
height: 30px;
|
2016-11-11 22:36:03 +01:00
|
|
|
padding: 0 24px 0 8px;
|
2016-12-01 18:04:23 +01:00
|
|
|
margin: 0;
|
2016-11-10 01:31:30 +01:00
|
|
|
min-width: 180px;
|
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
|
|
|
}
|
2013-09-02 17:10:47 +02:00
|
|
|
|
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
|
|
|
select[multiple],
|
|
|
|
select[size] {
|
|
|
|
height: auto;
|
|
|
|
}
|
2013-09-02 17:10:47 +02:00
|
|
|
|
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
|
|
|
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;
|
|
|
|
}
|
2013-09-02 17:10:47 +02:00
|
|
|
|
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
|
|
|
input:-moz-placeholder,
|
|
|
|
textarea:-moz-placeholder {
|
2013-09-02 17:10:47 +02:00
|
|
|
color: {$lightgreytext};
|
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
|
|
|
}
|
2013-09-02 17:10:47 +02:00
|
|
|
|
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
|
|
|
input:-ms-input-placeholder,
|
|
|
|
textarea:-ms-input-placeholder {
|
2013-09-02 17:10:47 +02:00
|
|
|
color: {$lightgreytext};
|
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
|
|
|
}
|
2013-09-02 17:10:47 +02:00
|
|
|
|
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
|
|
|
input::-webkit-input-placeholder,
|
|
|
|
textarea::-webkit-input-placeholder {
|
2013-09-02 17:10:47 +02:00
|
|
|
color: {$lightgreytext};
|
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
|
|
|
}
|
2013-05-31 01:19:43 +02:00
|
|
|
|
2015-05-29 02:27:25 +02:00
|
|
|
select[disabled],
|
2015-12-17 22:27:36 +01:00
|
|
|
input[disabled],
|
|
|
|
textarea[disabled],
|
|
|
|
.disabled-control {
|
2013-05-31 01:19:43 +02:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2015-07-02 23:25:45 +02:00
|
|
|
|
|
|
|
.aphront-space-select-control-knob {
|
2020-01-15 17:47:03 +01:00
|
|
|
margin: 0 8px 4px 0;
|
2017-03-11 18:23:50 +01:00
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.aphront-form-control-policy .policy-control {
|
|
|
|
float: left;
|
|
|
|
margin-right: 8px;
|
2015-07-02 23:25:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.device .aphront-space-select-control-knob {
|
2017-03-11 18:23:50 +01:00
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device .aphront-form-control-policy .policy-control {
|
|
|
|
margin: 0;
|
2015-07-02 23:25:45 +02:00
|
|
|
}
|