Style tweaks
This commit is contained in:
parent
158961c82a
commit
6cac52675e
3 changed files with 11 additions and 12 deletions
|
@ -3,7 +3,6 @@ import React from 'react'
|
|||
import {GoChevronRight, DiHtml53DEffects} from 'react-icons/all'
|
||||
import styled, {css} from 'styled-components'
|
||||
import noop from '@theatre/shared/utils/noop'
|
||||
import {darken, lighten} from 'polished'
|
||||
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
|
||||
|
||||
export const Container = styled.li`
|
||||
|
@ -40,22 +39,22 @@ const Header = styled(BaseHeader)`
|
|||
&.descendant-is-selected {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
|
||||
--item-bg: ${() => darken(0.1, baseBg)};
|
||||
--item-border-color: ${baseBorderColor};
|
||||
--item-bg: #2e4244ed;
|
||||
--item-border-color: #254355;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
|
||||
--item-bg: ${() => darken(0.12, baseBg)};
|
||||
--item-border-color: ${lighten(0.1, baseBorderColor)};
|
||||
--item-bg: #1e5866;
|
||||
--item-border-color: #152f42;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
color: #fff;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
|
||||
--item-bg: ${() => darken(0.15, baseBg)};
|
||||
--item-border-color: ${lighten(0.05, baseBorderColor)};
|
||||
--item-bg: #1e5866;
|
||||
--item-border-color: #152f42;
|
||||
}
|
||||
`
|
||||
|
||||
|
@ -81,7 +80,7 @@ const Head_Label = styled.span`
|
|||
&:after {
|
||||
border: 1px solid var(--item-border-color);
|
||||
position: absolute;
|
||||
inset: -1px;
|
||||
inset: 0px;
|
||||
display: block;
|
||||
content: ' ';
|
||||
z-index: -1;
|
||||
|
@ -121,7 +120,7 @@ const Head_IconContainer = styled.span`
|
|||
inset: 0px;
|
||||
z-index: -1;
|
||||
background-color: var(--item-bg);
|
||||
opacity: 1;
|
||||
opacity: 0.6;
|
||||
border-radius: 2px;
|
||||
}
|
||||
`
|
||||
|
|
|
@ -144,7 +144,7 @@ const OutlinePanel: React.FC<{}> = (props) => {
|
|||
}, [])
|
||||
|
||||
const [triggerTooltip, triggerButtonRef] = useTooltip(
|
||||
{enterDelay: conflicts.length > 0 ? 0 : 200},
|
||||
{enabled: conflicts.length > 0, enterDelay: conflicts.length > 0 ? 0 : 200},
|
||||
() =>
|
||||
conflicts.length > 0 ? (
|
||||
<ErrorTooltip>
|
||||
|
|
|
@ -4,7 +4,7 @@ import BasicPopover from './BasicPopover'
|
|||
const BasicTooltip = styled(BasicPopover)`
|
||||
padding: 1em;
|
||||
max-width: 240px;
|
||||
pointer-events: none;
|
||||
pointer-events: none !important;
|
||||
--popover-outer-stroke: transparent;
|
||||
--popover-inner-stroke: #45464d;
|
||||
`
|
||||
|
|
Loading…
Reference in a new issue