mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
ca388d95fd
Summary: Moves the Browse... button into a Search Icon on the actual tokenizer. I played with a number of icon treatments, and Search seems to convey the right attribute, other things like lists and menus didn't quite feel right to me, but feel free to push back if you hate search. Test Plan: Tested lots of tokens, little tokens, small screens, etc. {F375467} Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12452
185 lines
3.3 KiB
CSS
185 lines
3.3 KiB
CSS
/**
|
|
* @provides aphront-tokenizer-control-css
|
|
* @requires aphront-typeahead-control-css
|
|
*/
|
|
|
|
body div.jx-tokenizer {
|
|
background: transparent;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
body div.jx-tokenizer-container {
|
|
position: relative;
|
|
display: block;
|
|
padding: 0 0 2px 0;
|
|
min-height: 30px;
|
|
height: auto;
|
|
}
|
|
|
|
var.jx-tokenizer-metrics {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: 20px;
|
|
}
|
|
|
|
body input.jx-tokenizer-input {
|
|
border: 1px solid transparent;
|
|
border-width: 1px 0px;
|
|
padding: 3px;
|
|
outline: none;
|
|
float: left;
|
|
width: 100%;
|
|
border-shadow: none;
|
|
box-shadow: none;
|
|
-webkit-box-shadow: none;
|
|
font-size: 13px;
|
|
color: #333;
|
|
height: 26px;
|
|
}
|
|
|
|
body input.jx-tokenizer-input:focus {
|
|
box-shadow: none;
|
|
-webkit-box-shadow: none;
|
|
border-color: transparent;
|
|
}
|
|
|
|
body input.jx-typeahead-placeholder {
|
|
margin-left: 4px;
|
|
color: {$greytext};
|
|
}
|
|
|
|
a.jx-tokenizer-x {
|
|
margin-left: 4px;
|
|
color: {$bluetext};
|
|
}
|
|
|
|
a.jx-tokenizer-x:hover {
|
|
color: {$darkbluetext};
|
|
text-decoration: none;
|
|
}
|
|
|
|
a.jx-tokenizer-token {
|
|
padding: 2px 6px 3px;
|
|
border: 1px solid {$lightblueborder};
|
|
margin: 3px 2px 0 4px;
|
|
background: #dee7f8;
|
|
float: left;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
color: {$darkbluetext};
|
|
min-height: 16px;
|
|
}
|
|
|
|
a.jx-tokenizer-token:hover {
|
|
text-decoration: none;
|
|
border-color: {$blueborder};
|
|
background: #CDD9F0;
|
|
}
|
|
|
|
.jx-tokenizer-token .phui-icon-view {
|
|
display: inline-block;
|
|
margin: 2px 4px -3px 0;
|
|
color: {$bluetext};
|
|
}
|
|
|
|
a.jx-tokenizer-token-function {
|
|
border-color: {$sh-lightyellowborder};
|
|
background: {$sh-yellowbackground};
|
|
color: {$sh-yellowtext};
|
|
}
|
|
|
|
a.jx-tokenizer-token-function:hover {
|
|
border-color: {$sh-yellowborder};
|
|
background: {$lightyellow};
|
|
}
|
|
|
|
.jx-tokenizer-token-function .phui-icon-view {
|
|
color: {$sh-yellowicon};
|
|
}
|
|
|
|
a.jx-tokenizer-token-disabled {
|
|
border-color: {$sh-lightgreyborder};
|
|
background: {$sh-greybackground};
|
|
color: {$sh-greytext};
|
|
}
|
|
|
|
a.jx-tokenizer-token-disabled:hover {
|
|
border-color: {$sh-greyborder};
|
|
background: {$greybackground};
|
|
}
|
|
|
|
.jx-tokenizer-token-disabled .phui-icon-view {
|
|
color: {$sh-greyicon};
|
|
}
|
|
|
|
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};
|
|
background: {$lightred};
|
|
}
|
|
|
|
.jx-tokenizer-token-invalid .phui-icon-view {
|
|
color: {$sh-redicon};
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.jx-tokenizer-frame .button.tokenizer-browse-button {
|
|
display: none;
|
|
}
|
|
|
|
.jx-tokenizer-frame.has-browse .button.tokenizer-browse-button {
|
|
display: block;
|
|
}
|
|
|
|
.jx-tokenizer-frame.has-browse {
|
|
position: relative;
|
|
}
|
|
|
|
.jx-tokenizer-frame.has-browse div.jx-tokenizer-container {
|
|
padding-right: 32px;
|
|
}
|
|
|
|
.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;
|
|
}
|