Skip to content

Commit

Permalink
refactor: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Aug 11, 2024
1 parent 0bca5cc commit 8af6216
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/widgets/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default () => {

return (
<div className={s.wrapper}>
{layout !== FOOTER_LAYOUT.GROUP ? <GroupLayout /> : <SimpleLayout />}
{layout === FOOTER_LAYOUT.GROUP ? <GroupLayout /> : <SimpleLayout />}
<PowerbyInfo />
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/GlobalLayout/salon/glow_background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default () => {
`,
wrapper: cn(
'w-full -z-10',
isAbsolute ? 'h-1/5' : 'h-full',
isAbsolute ? 'h-1/5 right-0' : 'h-full',
`opacity-${fmtOpacity(glowOpacity)}`,
glowPosition,
),
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/ThemePalette/GlobalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ const GlobalStyle = createGlobalStyle<TColor>`
.tippy-box {
border: 1px solid;
border-color: ${theme('popover.borderColor')};
background: white !important;
border-radius: 4px;
background: ${theme('popover.bg')} !important;
transition: all .2s ease-in-out !important;
}
Expand Down
21 changes: 1 addition & 20 deletions src/widgets/Tooltip/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Tippy from '@tippyjs/react'

import styled, { css, theme, zIndex } from '~/css'
import styled, { theme } from '~/css'

export const StyledTippy = styled(Tippy)<{ wechatEnv?: boolean }>`
position: relative;
Expand Down Expand Up @@ -36,22 +36,3 @@ export const ChildrenWrapper = styled.div<TContentWrapper>`
export const ContentWrapper = styled.div<{ $hasMaxWidth: boolean }>`
max-width: ${({ $hasMaxWidth }) => ($hasMaxWidth ? '180px' : 'auto')};
`
const Arrow = styled.div`
position: absolute;
${css.circle(4)};
z-index: ${zIndex.popover};
background: #2d7eb1;
box-shadow: ${theme('popover.boxShadow')};
`
export const TopArrow = styled(Arrow)`
top: calc(100% + 4px);
left: calc(50% - 2px);
`
export const BottomArrow = styled(Arrow)`
bottom: calc(100% + 4px);
left: calc(50% - 2px);
`
export const LeftArrow = styled(Arrow)`
top: calc(50% - 2px);
left: calc(100% + 4px);
`
2 changes: 1 addition & 1 deletion utils/themes/skins/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default {
hoverBg: '#eee',
},
popover: {
bg: '#f6f6f6', // '#fafafa', // '#fffffff2',
bg: '#fafafa', // '#f6f6f6', // '#fafafa', // '#fffffff2',
borderColor: '#e9e9ea',
boxShadow: '-3px 2px 20px 0px rgb(58 58 58 / 15%)',
activeBorder: '#70707094',
Expand Down

0 comments on commit 8af6216

Please sign in to comment.