Add styles for custom source indicator

pull/10616/head
Andrew Watkins 2017-10-02 15:54:08 -07:00
parent f12f2790b1
commit cdbd54ce0d
2 changed files with 21 additions and 6 deletions

View File

@ -15,12 +15,12 @@ const LayoutCellHeader = (
s => s.links.self === _.get(queries, ['0', 'source'], null)
)
const headingClass = `dash-graph--heading ${isEditable
? 'dash-graph--heading-draggable'
: ''}`
return (
<div
className={classnames('dash-graph--heading', {
'dash-graph--heading-draggable': isEditable,
})}
>
<div className={headingClass}>
<span
className={
cellNameIsDefault
@ -29,7 +29,7 @@ const LayoutCellHeader = (
}
>
{querySource && querySource.id !== defaultSource.id
? <span className="dash-graph--custom-time">
? <span className="dash-graph--custom-source">
{querySource.name}
</span>
: null}

View File

@ -170,6 +170,21 @@ $dash-graph-options-arrow: 8px;
right: 2px;
}
.dash-graph--custom-source {
font-style: normal;
font-family: $code-font;
color: $c-pool;
background-color: $g2-kevlar;
height: 24px;
font-size: 10px;
line-height: 24px;
border-radius: 3px;
padding: 0 7px;
position: absolute;
top: 3px;
right: 86px;
}
.dash-graph-context {
z-index: 2;
position: absolute;