2011-01-25 22:48:05 +01:00
|
|
|
/**
|
|
|
|
* @provides aphront-tokenizer-control-css
|
|
|
|
* @requires aphront-typeahead-control-css
|
2015-04-19 18:08:19 +02:00
|
|
|
* @requires phui-tag-view-css
|
2011-01-25 22:48:05 +01: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
|
|
|
body div.jx-tokenizer {
|
2011-01-25 22:48:05 +01:00
|
|
|
background: transparent;
|
2012-11-12 22:15:46 +01:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2015-05-27 18:49:54 +02:00
|
|
|
overflow: hidden;
|
2011-01-25 22:48:05 +01: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
|
|
|
body div.jx-tokenizer-container {
|
2011-01-25 22:48:05 +01:00
|
|
|
position: relative;
|
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
|
|
|
display: block;
|
2014-02-17 08:01:59 +01:00
|
|
|
padding: 0 0 2px 0;
|
2013-05-10 21:50:56 +02:00
|
|
|
min-height: 30px;
|
|
|
|
height: auto;
|
2013-04-25 17:51:27 +02:00
|
|
|
}
|
|
|
|
|
2011-01-25 22:48:05 +01:00
|
|
|
var.jx-tokenizer-metrics {
|
|
|
|
position: absolute;
|
|
|
|
left: 20px;
|
|
|
|
top: 20px;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
body input.jx-tokenizer-input {
|
2011-01-25 22:48:05 +01:00
|
|
|
border: 1px solid transparent;
|
|
|
|
border-width: 1px 0px;
|
2012-11-12 22:15:46 +01:00
|
|
|
padding: 3px;
|
2011-01-25 22:48:05 +01:00
|
|
|
outline: none;
|
|
|
|
float: left;
|
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
|
|
|
width: 100%;
|
|
|
|
border-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
font-size: 13px;
|
2013-05-10 21:50:56 +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
|
|
|
height: 26px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body input.jx-tokenizer-input:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
border-color: transparent;
|
2011-01-25 22:48:05 +01:00
|
|
|
}
|
|
|
|
|
2013-05-13 05:14:17 +02:00
|
|
|
body input.jx-typeahead-placeholder {
|
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
|
|
|
margin-left: 4px;
|
2013-09-02 17:10:47 +02:00
|
|
|
color: {$greytext};
|
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
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-x {
|
2014-02-17 08:01:59 +01:00
|
|
|
margin-left: 4px;
|
|
|
|
color: {$bluetext};
|
2015-04-19 18:08:19 +02:00
|
|
|
float: right;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-x:hover {
|
2014-02-17 08:01:59 +01:00
|
|
|
color: {$darkbluetext};
|
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
|
|
|
text-decoration: none;
|
2011-01-25 22:48:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token {
|
2015-04-19 18:08:19 +02:00
|
|
|
padding: 2px 6px;
|
2014-02-17 08:01:59 +01:00
|
|
|
border: 1px solid {$lightblueborder};
|
2011-01-25 22:48:05 +01:00
|
|
|
margin: 3px 2px 0 4px;
|
2015-04-19 18:08:19 +02:00
|
|
|
background-color: {$sh-bluebackground};
|
2011-01-25 22:48:05 +01:00
|
|
|
float: left;
|
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
|
|
|
cursor: pointer;
|
2012-11-12 22:15:46 +01:00
|
|
|
border-radius: 3px;
|
2015-04-19 18:08:19 +02:00
|
|
|
color: {$sh-bluetext};
|
2014-02-21 21:16:18 +01:00
|
|
|
min-height: 16px;
|
2011-01-25 22:48:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token:hover {
|
|
|
|
text-decoration: none;
|
2015-04-19 18:08:19 +02:00
|
|
|
border-color: {$sh-blueborder};
|
2011-01-25 22:48:05 +01:00
|
|
|
}
|
2014-02-14 19:23:56 +01:00
|
|
|
|
|
|
|
.jx-tokenizer-token .phui-icon-view {
|
|
|
|
display: inline-block;
|
2014-02-17 08:01:59 +01:00
|
|
|
margin: 2px 4px -3px 0;
|
2015-04-19 18:08:19 +02:00
|
|
|
color: {$sh-blueicon};
|
2014-02-14 19:23:56 +01:00
|
|
|
}
|
|
|
|
|
2015-04-17 16:00:43 +02:00
|
|
|
a.jx-tokenizer-token-function {
|
2015-04-19 18:08:19 +02:00
|
|
|
border-color: {$sh-lightgreyborder};
|
|
|
|
background: #fff;
|
2015-04-17 16:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token-function:hover {
|
2015-04-19 18:08:19 +02:00
|
|
|
background: #fff;
|
2015-04-17 16:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token-disabled {
|
2015-04-19 18:08:19 +02:00
|
|
|
background-color: {$sh-disabledbackground};
|
|
|
|
border-color: {$sh-lightdisabledborder};
|
|
|
|
color: {$sh-disabledtext};
|
2015-04-17 16:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token-disabled:hover {
|
2015-04-19 18:08:19 +02:00
|
|
|
border-color: {$sh-disabledborder};
|
|
|
|
background-color: {$sh-disabledbackground};
|
2015-04-17 16:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.jx-tokenizer-token-disabled .phui-icon-view {
|
2015-04-19 18:08:19 +02:00
|
|
|
color: {$sh-disabledicon};
|
2015-04-17 16:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token-invalid {
|
|
|
|
border-color: {$sh-lightredborder};
|
|
|
|
background: {$sh-redbackground};
|
|
|
|
color: {$sh-redtext};
|
|
|
|
}
|
|
|
|
|
|
|
|
a.jx-tokenizer-token-invalid:hover {
|
|
|
|
border-color: {$sh-redborder};
|
2015-04-19 18:08:19 +02:00
|
|
|
background: {$sh-redbackground};
|
2015-04-17 16:00:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.jx-tokenizer-token-invalid .phui-icon-view {
|
|
|
|
color: {$sh-redicon};
|
|
|
|
}
|
|
|
|
|
Show icons and disabled/archived/closed results in typahead dynamic list
Summary:
Ref T4420. This is mostly a design change, but addresses two functional issues:
# Many sources exclude disabled accounts, system agents, archived projects, etc. It is rare to select these, but excluding them completely is too severe, and we've made more than a handful of changes over time to replace a "users" endpoint with an "accounts" endpoint (to include disabled users) or similar. Instead, always show these results, but sort them last and use a special style to clearly mark them as closed, disabled, or otherwise unusual.
- As a practical consequence, all the similar endpoints can now be merged, so "accounts" and "users" return the exact same result sets.
# Increasingly, sources can return multiple object types in a single list. For example, "CC" can have a user or mailing list, and soon a project or repository. However, the result list is fairly homogenous across types and it isn't easy to quickly pick out projects vs users. To help with this, add icons showing the result type.
Test Plan:
{F113079}
(The main search results get touched here too, I verified they didn't blow up.)
Reviewers: chad, btrahan
Reviewed By: chad
CC: chad, aran, mbishopim3
Maniphest Tasks: T4420
Differential Revision: https://secure.phabricator.com/D8231
2014-02-14 19:24:11 +01:00
|
|
|
.tokenizer-result {
|
|
|
|
position: relative;
|
|
|
|
padding: 5px 8px 5px 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tokenizer-result .phui-icon-view {
|
|
|
|
display: inline-block;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
position: absolute;
|
|
|
|
top: 5px;
|
|
|
|
left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tokenizer-result-closed {
|
|
|
|
color: {$greytext};
|
|
|
|
}
|
|
|
|
|
|
|
|
.tokenizer-closed {
|
|
|
|
margin-top: 2px;
|
2014-02-14 19:23:56 +01:00
|
|
|
}
|
2015-04-16 22:37:12 +02:00
|
|
|
|
2015-04-18 19:58:50 +02:00
|
|
|
.jx-tokenizer-frame .button.tokenizer-browse-button {
|
|
|
|
display: none;
|
2015-04-16 22:37:12 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 19:58:50 +02:00
|
|
|
.jx-tokenizer-frame.has-browse .button.tokenizer-browse-button {
|
|
|
|
display: block;
|
2015-04-16 23:46:10 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 19:58:50 +02:00
|
|
|
.jx-tokenizer-frame.has-browse {
|
|
|
|
position: relative;
|
2015-04-16 23:46:10 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 19:58:50 +02:00
|
|
|
.jx-tokenizer-frame.has-browse div.jx-tokenizer-container {
|
|
|
|
padding-right: 32px;
|
2015-04-16 22:37:12 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 19:58:50 +02:00
|
|
|
.button.tokenizer-browse-button {
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
right: 1px;
|
|
|
|
bottom: 1px;
|
|
|
|
border-radius: 0;
|
|
|
|
border-right: none;
|
|
|
|
border-top: none;
|
|
|
|
border-bottom: none;
|
|
|
|
padding: 0;
|
|
|
|
width: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button.tokenizer-browse-button .phui-icon-view {
|
|
|
|
top: 7px;
|
|
|
|
left: 9px;
|
2015-04-16 22:37:12 +02:00
|
|
|
}
|