mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(component): correct notification action hover style (#8303)
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { darkCssVariables, lightCssVariables } from '@toeverything/theme';
|
|
||||||
import { globalStyle } from '@vanilla-extract/css';
|
import { globalStyle } from '@vanilla-extract/css';
|
||||||
|
|
||||||
globalStyle('*', {
|
globalStyle('*', {
|
||||||
@@ -14,14 +13,6 @@ globalStyle('body', {
|
|||||||
backgroundColor: 'var(--affine-background-primary-color)',
|
backgroundColor: 'var(--affine-background-primary-color)',
|
||||||
});
|
});
|
||||||
|
|
||||||
globalStyle('html', {
|
|
||||||
vars: lightCssVariables,
|
|
||||||
});
|
|
||||||
|
|
||||||
globalStyle('html[data-theme="dark"]', {
|
|
||||||
vars: darkCssVariables,
|
|
||||||
});
|
|
||||||
|
|
||||||
globalStyle('.docs-story', {
|
globalStyle('.docs-story', {
|
||||||
backgroundColor: 'var(--affine-background-primary-color)',
|
backgroundColor: 'var(--affine-background-primary-color)',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import './polyfill';
|
import './polyfill';
|
||||||
import '../src/theme/global.css';
|
import '../src/theme';
|
||||||
import './preview.css';
|
import './preview.css';
|
||||||
import { ThemeProvider } from 'next-themes';
|
import { ThemeProvider } from 'next-themes';
|
||||||
import type { ComponentType } from 'react';
|
import type { ComponentType } from 'react';
|
||||||
|
|||||||
@@ -61,17 +61,6 @@ export const actionButton = style({
|
|||||||
position: 'relative',
|
position: 'relative',
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
'::before': {
|
|
||||||
content: '""',
|
|
||||||
position: 'absolute',
|
|
||||||
inset: 0,
|
|
||||||
borderRadius: 'inherit',
|
|
||||||
backgroundColor: cssVar('black'),
|
|
||||||
opacity: 0.04,
|
|
||||||
},
|
|
||||||
':hover': {
|
|
||||||
boxShadow: 'none !important',
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
export const closeButton = style({
|
export const closeButton = style({
|
||||||
selectors: {
|
selectors: {
|
||||||
|
|||||||
Reference in New Issue
Block a user