2024-05-31 19:49:46 +05:30
|
|
|
import { style } from '@vanilla-extract/css';
|
2026-09-19 23:54:52 -04:00
|
|
|
import { DefaultReset, FocusOutline, color, config, toRem } from 'folds';
|
2024-05-31 19:49:46 +05:30
|
|
|
|
|
|
|
|
export const MessageBase = style({
|
|
|
|
|
position: 'relative',
|
|
|
|
|
});
|
2025-09-19 16:36:05 +05:30
|
|
|
export const MessageBaseBubbleCollapsed = style({
|
|
|
|
|
paddingTop: 0,
|
|
|
|
|
});
|
2024-05-31 19:49:46 +05:30
|
|
|
|
|
|
|
|
export const MessageOptionsBase = style([
|
|
|
|
|
DefaultReset,
|
|
|
|
|
{
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
top: toRem(-30),
|
|
|
|
|
right: 0,
|
|
|
|
|
zIndex: 1,
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
export const MessageOptionsBar = style([
|
|
|
|
|
DefaultReset,
|
|
|
|
|
{
|
|
|
|
|
padding: config.space.S100,
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
|
2025-09-19 16:36:05 +05:30
|
|
|
export const BubbleAvatarBase = style({
|
|
|
|
|
paddingTop: 0,
|
|
|
|
|
});
|
|
|
|
|
|
2024-05-31 19:49:46 +05:30
|
|
|
export const MessageAvatar = style({
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const MessageQuickReaction = style({
|
|
|
|
|
minWidth: toRem(32),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const MessageMenuGroup = style({
|
2025-08-04 20:29:12 +05:30
|
|
|
padding: config.space.S100,
|
2024-05-31 19:49:46 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const MessageMenuItemText = style({
|
|
|
|
|
flexGrow: 1,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const ReactionsContainer = style({
|
2026-09-19 23:54:52 -04:00
|
|
|
position: 'relative',
|
2024-05-31 19:49:46 +05:30
|
|
|
selectors: {
|
|
|
|
|
'&:empty': {
|
|
|
|
|
display: 'none',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2026-09-19 23:54:52 -04:00
|
|
|
/** [Gitea #138] "+N" / "less" chip at the end of a collapsed reaction row. */
|
|
|
|
|
export const ReactionsMore = style([
|
|
|
|
|
FocusOutline,
|
|
|
|
|
{
|
|
|
|
|
display: 'inline-flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
flexShrink: 0,
|
|
|
|
|
padding: `${toRem(2)} ${config.space.S200}`,
|
|
|
|
|
color: color.SurfaceVariant.OnContainer,
|
|
|
|
|
backgroundColor: 'transparent',
|
|
|
|
|
border: `${config.borderWidth.B300} solid ${color.SurfaceVariant.ContainerLine}`,
|
|
|
|
|
borderRadius: config.radii.R300,
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
selectors: {
|
|
|
|
|
'&:hover, &:focus-visible': {
|
|
|
|
|
backgroundColor: color.SurfaceVariant.ContainerHover,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
|
2024-05-31 19:49:46 +05:30
|
|
|
export const ReactionsTooltipText = style({
|
|
|
|
|
wordBreak: 'break-word',
|
|
|
|
|
});
|