mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-07 15:50:29 +03:00
from earlier attempt to remove highlighting on the POC component (not the current one at all)
This commit is contained in:
parent
41538561ee
commit
64ea5f262b
1 changed files with 80 additions and 2 deletions
|
|
@ -174,16 +174,94 @@ export const MessageTextBody = recipe({
|
||||||
jumboEmoji: {
|
jumboEmoji: {
|
||||||
true: {
|
true: {
|
||||||
fontSize: '1.504em',
|
fontSize: '1.504em',
|
||||||
lineHeight: '1.4962em',
|
lineHeight: 1.1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
emote: {
|
emote: {
|
||||||
true: {
|
true: {
|
||||||
color: color.Success.Main,
|
|
||||||
fontStyle: 'italic',
|
fontStyle: 'italic',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'@media': {
|
||||||
|
'screen and (max-width: 768px)': {
|
||||||
|
base: {
|
||||||
|
userSelect: 'none',
|
||||||
|
WebkitUserSelect: 'none',
|
||||||
|
MozUserSelect: 'none',
|
||||||
|
msUserSelect: 'none',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export type MessageTextBodyVariants = RecipeVariants<typeof MessageTextBody>;
|
export type MessageTextBodyVariants = RecipeVariants<typeof MessageTextBody>;
|
||||||
|
|
||||||
|
export const menuBackdrop = style({
|
||||||
|
userSelect: 'none',
|
||||||
|
position: 'fixed',
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
||||||
|
transition: 'opacity 0.3s ease-in-out',
|
||||||
|
opacity: 0,
|
||||||
|
});
|
||||||
|
|
||||||
|
export const menuBackdropOpen = style({
|
||||||
|
opacity: 1,
|
||||||
|
});
|
||||||
|
|
||||||
|
export const menuSheet = style({
|
||||||
|
userSelect: 'none',
|
||||||
|
position: 'fixed',
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
backgroundColor: color.Background.Container,
|
||||||
|
borderTopLeftRadius: config.radii.R400,
|
||||||
|
borderTopRightRadius: config.radii.R400,
|
||||||
|
padding: config.space.S500,
|
||||||
|
transform: 'translateY(100%)',
|
||||||
|
transition: 'transform 0.3s ease-out',
|
||||||
|
boxShadow: '0 -2px 10px rgba(0,0,0,0.1)',
|
||||||
|
});
|
||||||
|
|
||||||
|
export const menuSheetOpen = style({
|
||||||
|
transform: 'translateY(0)',
|
||||||
|
});
|
||||||
|
|
||||||
|
export const menuItem = style({
|
||||||
|
userSelect: 'none',
|
||||||
|
width: '100%',
|
||||||
|
background: 'none',
|
||||||
|
border: 'none',
|
||||||
|
padding: `${config.space.S300} ${config.space.S100}`,
|
||||||
|
textAlign: 'left',
|
||||||
|
cursor: 'pointer',
|
||||||
|
borderRadius: config.radii.R300,
|
||||||
|
color: color.Primary.ContainerActive,
|
||||||
|
|
||||||
|
outline: 'none',
|
||||||
|
|
||||||
|
WebkitTapHighlightColor: 'transparent',
|
||||||
|
|
||||||
|
WebkitUserSelect: 'none',
|
||||||
|
MozUserSelect: 'none',
|
||||||
|
msUserSelect: 'none',
|
||||||
|
|
||||||
|
selectors: {
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: color.Background.ContainerHover,
|
||||||
|
},
|
||||||
|
'&:focus-visible': {
|
||||||
|
backgroundColor: color.Background.ContainerHover,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
export const menuItemDestructive = style({
|
||||||
|
color: color.Critical.ContainerActive,
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue