Updated styles for icons throughout all components
• Updated: - styles for icons throughout all components
This commit is contained in:
parent
a3670e8fec
commit
92a89e2425
|
@ -158,7 +158,7 @@ class Account extends ImmutablePureComponent {
|
||||||
onClick={dismissAction}
|
onClick={dismissAction}
|
||||||
icon='close'
|
icon='close'
|
||||||
iconSize='8px'
|
iconSize='8px'
|
||||||
iconClassName={_s.fillSecondary}
|
iconClassName={_s.colorSecondary}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ export default class BackButton extends PureComponent {
|
||||||
className={classes}
|
className={classes}
|
||||||
icon={icon || 'angle-left'}
|
icon={icon || 'angle-left'}
|
||||||
iconSize={iconSize || '24px'}
|
iconSize={iconSize || '24px'}
|
||||||
iconClassName={iconClassName || [_s.mr5, _s.fillPrimary].join(' ')}
|
iconClassName={iconClassName || [_s.mr5, _s.colorPrimary].join(' ')}
|
||||||
onClick={this.handleBackClick}
|
onClick={this.handleBackClick}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
@ -43,7 +43,7 @@ class BundleColumnError extends PureComponent {
|
||||||
|
|
||||||
<h1 className={[_s.default, _s.mr15].join(' ')}>
|
<h1 className={[_s.default, _s.mr15].join(' ')}>
|
||||||
<Button href='/' isText aria-label='Gab' className={[_s.default, _s.justifyContentCenter, _s.noSelect, _s.noUnderline, _s.height53PX, _s.cursorPointer, _s.px10, _s.mr15].join(' ')}>
|
<Button href='/' isText aria-label='Gab' className={[_s.default, _s.justifyContentCenter, _s.noSelect, _s.noUnderline, _s.height53PX, _s.cursorPointer, _s.px10, _s.mr15].join(' ')}>
|
||||||
<Icon id='logo' className={_s.fillWhite} />
|
<Icon id='logo' className={_s.colorWhite} />
|
||||||
</Button>
|
</Button>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class BundleColumnError extends PureComponent {
|
||||||
|
|
||||||
<div className={[_s.default, _s.maxWidth640PX, _s.px15, _s.py10].join(' ')}>
|
<div className={[_s.default, _s.maxWidth640PX, _s.px15, _s.py10].join(' ')}>
|
||||||
|
|
||||||
<Icon id='warning' size='28px' className={[_s.default, _s.fillSecondary, _s.mb15].join(' ')} />
|
<Icon id='warning' size='28px' className={[_s.default, _s.colorSecondary, _s.mb15].join(' ')} />
|
||||||
|
|
||||||
<Text size='medium' className={_s.pt15}>
|
<Text size='medium' className={_s.pt15}>
|
||||||
{formatMessage(messages.body)}
|
{formatMessage(messages.body)}
|
||||||
|
|
|
@ -164,11 +164,11 @@ export default class Button extends PureComponent {
|
||||||
bgSubtle: backgroundColor === COLORS.secondary,
|
bgSubtle: backgroundColor === COLORS.secondary,
|
||||||
bgDanger: backgroundColor === COLORS.danger,
|
bgDanger: backgroundColor === COLORS.danger,
|
||||||
|
|
||||||
colorPrimary: !!children && color === COLORS.primary,
|
colorPrimary: color === COLORS.primary,
|
||||||
colorSecondary: !!children && color === COLORS.secondary,
|
colorSecondary: color === COLORS.secondary,
|
||||||
colorTertiary: !!children && color === COLORS.tertiary,
|
colorTertiary: color === COLORS.tertiary,
|
||||||
colorWhite: !!children && color === COLORS.white,
|
colorWhite: color === COLORS.white,
|
||||||
colorBrand: !!children && color === COLORS.brand,
|
colorBrand: color === COLORS.brand,
|
||||||
|
|
||||||
borderColorBrand: color === COLORS.brand && isOutline,
|
borderColorBrand: color === COLORS.brand && isOutline,
|
||||||
border1PX: isOutline,
|
border1PX: isOutline,
|
||||||
|
@ -190,12 +190,7 @@ export default class Button extends PureComponent {
|
||||||
bgDangerDark_onHover: backgroundColor === COLORS.danger && !isDisabled,
|
bgDangerDark_onHover: backgroundColor === COLORS.danger && !isDisabled,
|
||||||
|
|
||||||
bgBrand_onHover: color === COLORS.brand && isOutline && !isDisabled,
|
bgBrand_onHover: color === COLORS.brand && isOutline && !isDisabled,
|
||||||
colorWhite_onHover: !!children && color === COLORS.brand && isOutline && !isDisabled,
|
colorWhite_onHover: color === COLORS.brand && isOutline && !isDisabled,
|
||||||
|
|
||||||
fillSecondary: !!icon && color === COLORS.secondary,
|
|
||||||
fillWhite: !!icon && color === COLORS.white,
|
|
||||||
fillBrand: !!icon && color === COLORS.brand,
|
|
||||||
fillWhite_onHover: !!icon && color === COLORS.brand && isOutline,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const tagName = !!href ? 'a' : !!to ? 'NavLink' : 'button'
|
const tagName = !!href ? 'a' : !!to ? 'NavLink' : 'button'
|
||||||
|
|
|
@ -81,7 +81,7 @@ class CommentHeader extends ImmutablePureComponent {
|
||||||
<span className={_s.visiblyHidden}>
|
<span className={_s.visiblyHidden}>
|
||||||
{intl.formatMessage(messages.original)}
|
{intl.formatMessage(messages.original)}
|
||||||
</span>
|
</span>
|
||||||
<Icon id='mic' size='10px' className={_s.fillBrand} />
|
<Icon id='mic' size='10px' className={_s.colorBrand} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ class DisplayName extends ImmutablePureComponent {
|
||||||
/>
|
/>
|
||||||
{
|
{
|
||||||
account.get('locked') &&
|
account.get('locked') &&
|
||||||
<Icon id='lock-filled' size={`${iconSize - 3}px`} className={[_s.fillPrimary, _s.ml5].join(' ')} />
|
<Icon id='lock-filled' size={`${iconSize - 3}px`} className={[_s.colorPrimary, _s.ml5].join(' ')} />
|
||||||
}
|
}
|
||||||
</bdi>
|
</bdi>
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,7 +71,7 @@ export default class ErrorBoundary extends PureComponent {
|
||||||
|
|
||||||
<h1 className={[_s.default, _s.mr15].join(' ')}>
|
<h1 className={[_s.default, _s.mr15].join(' ')}>
|
||||||
<Button href='/' isText aria-label='Gab' className={[_s.default, _s.justifyContentCenter, _s.noSelect, _s.noUnderline, _s.height53PX, _s.cursorPointer, _s.px10, _s.mr15].join(' ')}>
|
<Button href='/' isText aria-label='Gab' className={[_s.default, _s.justifyContentCenter, _s.noSelect, _s.noUnderline, _s.height53PX, _s.cursorPointer, _s.px10, _s.mr15].join(' ')}>
|
||||||
<Icon id='logo' className={_s.fillWhite} />
|
<Icon id='logo' className={_s.colorWhite} />
|
||||||
</Button>
|
</Button>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ export default class ErrorBoundary extends PureComponent {
|
||||||
|
|
||||||
<div className={[_s.default, _s.maxWidth640PX, _s.px15, _s.py10].join(' ')}>
|
<div className={[_s.default, _s.maxWidth640PX, _s.px15, _s.py10].join(' ')}>
|
||||||
|
|
||||||
<Icon id='warning' size='28px' className={[_s.default, _s.fillSecondary, _s.mb15].join(' ')} />
|
<Icon id='warning' size='28px' className={[_s.default, _s.colorSecondary, _s.mb15].join(' ')} />
|
||||||
|
|
||||||
<Text size='medium' className={_s.pt15}>
|
<Text size='medium' className={_s.pt15}>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
|
|
@ -71,8 +71,8 @@ export default class FileInput extends PureComponent {
|
||||||
})
|
})
|
||||||
|
|
||||||
const iconClasses = CX({
|
const iconClasses = CX({
|
||||||
fillSecondary: !hovering,
|
colorSecondary: !hovering,
|
||||||
fillWhite: hovering,
|
colorWhite: hovering,
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default class HashtagItem extends ImmutablePureComponent {
|
||||||
title='Remove'
|
title='Remove'
|
||||||
icon='close'
|
icon='close'
|
||||||
iconSize='8px'
|
iconSize='8px'
|
||||||
iconClassName={_s.fillSecondary}
|
iconClassName={_s.colorSecondary}
|
||||||
className={_s.mlAuto}
|
className={_s.mlAuto}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ export default class Input extends PureComponent {
|
||||||
<div className={[_s.default, _s.flexGrow1, _s.bgPrimary, _s.border1PX, _s.borderColorSecondary, _s.flexRow, _s.circle, _s.alignItemsCenter].join(' ')}>
|
<div className={[_s.default, _s.flexGrow1, _s.bgPrimary, _s.border1PX, _s.borderColorSecondary, _s.flexRow, _s.circle, _s.alignItemsCenter].join(' ')}>
|
||||||
{
|
{
|
||||||
!!prependIcon &&
|
!!prependIcon &&
|
||||||
<Icon id={prependIcon} size='16px' className={[_s.fillPrimary, _s.ml15, _s.mr5].join(' ')} />
|
<Icon id={prependIcon} size='16px' className={[_s.colorPrimary, _s.ml15, _s.mr5].join(' ')} />
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,7 +94,7 @@ export default class ListItem extends PureComponent {
|
||||||
const iconClasses = cx({
|
const iconClasses = cx({
|
||||||
mr10: !large,
|
mr10: !large,
|
||||||
mr15: large,
|
mr15: large,
|
||||||
fillPrimary: !!icon,
|
colorPrimary: !!icon,
|
||||||
circle: !icon && !!image,
|
circle: !icon && !!image,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ export default class ListItem extends PureComponent {
|
||||||
<Icon
|
<Icon
|
||||||
id={!!actionIcon ? actionIcon : 'angle-right'}
|
id={!!actionIcon ? actionIcon : 'angle-right'}
|
||||||
size='10px'
|
size='10px'
|
||||||
className={[_s.mlAuto, _s.fillSecondary, _s.flexShrink1].join(' ')}
|
className={[_s.mlAuto, _s.colorSecondary, _s.flexShrink1].join(' ')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ export default class MediaItem extends ImmutablePureComponent {
|
||||||
<Icon
|
<Icon
|
||||||
id='hidden'
|
id='hidden'
|
||||||
size='22px'
|
size='22px'
|
||||||
className={[_s.fillWhite].join('')}
|
className={[_s.colorWhite].join('')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class HomeTimelineSettingsModal extends ImmutablePureComponent {
|
||||||
icon='pro'
|
icon='pro'
|
||||||
href='https://pro.gab.com'
|
href='https://pro.gab.com'
|
||||||
className={_s.justifyContentCenter}
|
className={_s.justifyContentCenter}
|
||||||
iconClassName={[_s.mr5, _s.fillWhite].join(' ')}
|
iconClassName={[_s.mr5, _s.colorWhite].join(' ')}
|
||||||
>
|
>
|
||||||
<Text color='inherit' weight='bold' align='center'>
|
<Text color='inherit' weight='bold' align='center'>
|
||||||
{intl.formatMessage(messages.title)}
|
{intl.formatMessage(messages.title)}
|
||||||
|
|
|
@ -93,7 +93,7 @@ class ProUpgradeModal extends ImmutablePureComponent {
|
||||||
<Text color='inherit' size='large' weight='bold' align='center'>
|
<Text color='inherit' size='large' weight='bold' align='center'>
|
||||||
{intl.formatMessage(messages.upgrade)}
|
{intl.formatMessage(messages.upgrade)}
|
||||||
</Text>
|
</Text>
|
||||||
<Icon id='arrow-right' size='20px' className={[_s.fillWhite, _s.ml5].join(' ')} />
|
<Icon id='arrow-right' size='20px' className={[_s.colorWhite, _s.ml5].join(' ')} />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ class Notification extends ImmutablePureComponent {
|
||||||
<div className={[_s.default, _s.flexRow, _s.my10, _s.py10, _s.px10].join(' ')}>
|
<div className={[_s.default, _s.flexRow, _s.my10, _s.py10, _s.px10].join(' ')}>
|
||||||
|
|
||||||
<Responsive min={BREAKPOINT_EXTRA_SMALL}>
|
<Responsive min={BREAKPOINT_EXTRA_SMALL}>
|
||||||
<Icon id={icon} size='20px' className={[_s.fillPrimary, _s.minWidth20PX, _s.mt5, _s.mr15].join(' ')} />
|
<Icon id={icon} size='20px' className={[_s.colorPrimary, _s.minWidth20PX, _s.mt5, _s.mr15].join(' ')} />
|
||||||
</Responsive>
|
</Responsive>
|
||||||
|
|
||||||
<div className={[_s.default, _s.flexNormal].join(' ')}>
|
<div className={[_s.default, _s.flexNormal].join(' ')}>
|
||||||
|
|
|
@ -90,7 +90,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||||
<Icon
|
<Icon
|
||||||
id={isPrivate ? 'lock-filled' : 'globe'}
|
id={isPrivate ? 'lock-filled' : 'globe'}
|
||||||
size='10px'
|
size='10px'
|
||||||
className={_s.fillSecondary}
|
className={_s.colorSecondary}
|
||||||
/>
|
/>
|
||||||
<span className={_s.ml5}>
|
<span className={_s.ml5}>
|
||||||
{intl.formatMessage(isPrivate ? messages.privateGroup : messages.publicGroup)}
|
{intl.formatMessage(isPrivate ? messages.privateGroup : messages.publicGroup)}
|
||||||
|
|
|
@ -60,7 +60,7 @@ class ListDetailsPanel extends ImmutablePureComponent {
|
||||||
<Divider isSmall />
|
<Divider isSmall />
|
||||||
|
|
||||||
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
||||||
<Icon id='calendar' size='12px' className={_s.fillSecondary} />
|
<Icon id='calendar' size='12px' className={_s.colorSecondary} />
|
||||||
<Text
|
<Text
|
||||||
size='small'
|
size='small'
|
||||||
color='secondary'
|
color='secondary'
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ProPanel extends PureComponent {
|
||||||
<Text color='inherit' size='large' weight='bold' align='center'>
|
<Text color='inherit' size='large' weight='bold' align='center'>
|
||||||
Upgrade
|
Upgrade
|
||||||
</Text>
|
</Text>
|
||||||
<Icon id='arrow-right' size='20px' className={[_s.fillWhite, _s.ml5].join(' ')} />
|
<Icon id='arrow-right' size='20px' className={[_s.colorWhite, _s.ml5].join(' ')} />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
|
||||||
<Icon id='calendar' size='12px' className={_s.fillSecondary} />
|
<Icon id='calendar' size='12px' className={_s.colorSecondary} />
|
||||||
<Text
|
<Text
|
||||||
size='small'
|
size='small'
|
||||||
color='secondary'
|
color='secondary'
|
||||||
|
|
|
@ -93,7 +93,7 @@ class StatusPromotionPanel extends ImmutablePureComponent {
|
||||||
color='none'
|
color='none'
|
||||||
icon='ellipsis'
|
icon='ellipsis'
|
||||||
iconSize='20px'
|
iconSize='20px'
|
||||||
iconClassName={_s.fillSecondary}
|
iconClassName={_s.colorSecondary}
|
||||||
className={_s.mlAuto}
|
className={_s.mlAuto}
|
||||||
onClick={() => {}}
|
onClick={() => {}}
|
||||||
// buttonRef={this.setStatusOptionsButton}
|
// buttonRef={this.setStatusOptionsButton}
|
||||||
|
|
|
@ -102,8 +102,8 @@ class StatusVisibilityDropdown extends PureComponent {
|
||||||
const iconClasses = cx({
|
const iconClasses = cx({
|
||||||
ml10: 1,
|
ml10: 1,
|
||||||
mt2: 1,
|
mt2: 1,
|
||||||
fillPrimary: !isActive,
|
colorPrimary: !isActive,
|
||||||
fillWhite: isActive,
|
colorWhite: isActive,
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -166,7 +166,7 @@ class StyleButton extends PureComponent {
|
||||||
const blockType = editorState.getCurrentContent().getBlockForKey(selection.getStartKey()).getType()
|
const blockType = editorState.getCurrentContent().getBlockForKey(selection.getStartKey()).getType()
|
||||||
|
|
||||||
const active = type === 'block' ? style === blockType : currentStyle.has(style)
|
const active = type === 'block' ? style === blockType : currentStyle.has(style)
|
||||||
const fillColor = active ? 'fillWhite' : 'fillSecondary'
|
const iconColor = active ? 'colorWhite' : 'colorSecondary'
|
||||||
|
|
||||||
const btnClasses = cx({
|
const btnClasses = cx({
|
||||||
default: 1,
|
default: 1,
|
||||||
|
@ -189,7 +189,7 @@ class StyleButton extends PureComponent {
|
||||||
onMouseDown={this.handleOnClick}
|
onMouseDown={this.handleOnClick}
|
||||||
title={label}
|
title={label}
|
||||||
>
|
>
|
||||||
<Icon id={icon} size='12px' className={_s[fillColor]} />
|
<Icon id={icon} size='12px' className={_s[iconColor]} />
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default class Select extends ImmutablePureComponent {
|
||||||
<Icon
|
<Icon
|
||||||
id='select'
|
id='select'
|
||||||
size='14px'
|
size='14px'
|
||||||
className={[_s.fillSecondary, _s.posAbs, _s.right0, _s.mr10, _s.bottom0, _s.mb15].join(' ')}
|
className={[_s.colorSecondary, _s.posAbs, _s.right0, _s.mr10, _s.bottom0, _s.mb15].join(' ')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -258,7 +258,7 @@ class Sidebar extends ImmutablePureComponent {
|
||||||
key={`action-btn-${i}`}
|
key={`action-btn-${i}`}
|
||||||
className={[_s.ml5, _s.px5].join(' ')}
|
className={[_s.ml5, _s.px5].join(' ')}
|
||||||
icon={action.icon}
|
icon={action.icon}
|
||||||
iconClassName={_s.fillPrimary}
|
iconClassName={_s.colorPrimary}
|
||||||
iconSize='14px'
|
iconSize='14px'
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default class SidebarSectionItem extends PureComponent {
|
||||||
<div className={containerClasses}>
|
<div className={containerClasses}>
|
||||||
{
|
{
|
||||||
icon &&
|
icon &&
|
||||||
<Icon id={icon} className={_s.fillPrimary} size={iconSize} />
|
<Icon id={icon} className={_s.colorPrimary} size={iconSize} />
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,7 +60,7 @@ class SortBlock extends PureComponent {
|
||||||
<Text color='inherit' weight='medium' size='small'>
|
<Text color='inherit' weight='medium' size='small'>
|
||||||
{value}
|
{value}
|
||||||
</Text>
|
</Text>
|
||||||
<Icon id='caret-down' size='6px' className={[_s.fillSecondary, _s.ml5].join(' ')} />
|
<Icon id='caret-down' size='6px' className={[_s.colorSecondary, _s.ml5].join(' ')} />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -81,7 +81,7 @@ class SortBlock extends PureComponent {
|
||||||
<Text color='inherit' weight='medium' size='small'>
|
<Text color='inherit' weight='medium' size='small'>
|
||||||
{subValue}
|
{subValue}
|
||||||
</Text>
|
</Text>
|
||||||
<Icon id='caret-down' size='6px' className={[_s.fillSecondary, _s.ml5].join(' ')} />
|
<Icon id='caret-down' size='6px' className={[_s.colorSecondary, _s.ml5].join(' ')} />
|
||||||
</Button>
|
</Button>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@ export default class StatusCard extends ImmutablePureComponent {
|
||||||
{trim(card.get('description') || '', maxDescription)}
|
{trim(card.get('description') || '', maxDescription)}
|
||||||
</p>
|
</p>
|
||||||
<span className={[_s.default, _s.mtAuto, _s.flexRow, _s.alignItemsCenter, _s.colorSecondary, _s.text, _s.displayFlex, _s.textOverflowEllipsis, _s.fs13PX].join(' ')}>
|
<span className={[_s.default, _s.mtAuto, _s.flexRow, _s.alignItemsCenter, _s.colorSecondary, _s.text, _s.displayFlex, _s.textOverflowEllipsis, _s.fs13PX].join(' ')}>
|
||||||
<Icon id='link' size='10px' className={[_s.fillSecondary, _s.mr5].join(' ')} fixedWidth />
|
<Icon id='link' size='10px' className={[_s.colorSecondary, _s.mr5].join(' ')} fixedWidth />
|
||||||
{provider}
|
{provider}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -214,7 +214,7 @@ export default class StatusCard extends ImmutablePureComponent {
|
||||||
className={[_s.default, _s.cursorPointer, _s.bgBlackOpaque, _s.radiusSmall, _s.py15, _s.px15].join(' ')}
|
className={[_s.default, _s.cursorPointer, _s.bgBlackOpaque, _s.radiusSmall, _s.py15, _s.px15].join(' ')}
|
||||||
onClick={this.handleEmbedClick}
|
onClick={this.handleEmbedClick}
|
||||||
>
|
>
|
||||||
<Icon id={iconVariant} size='22px' className={[_s.fillWhite].join(' ')} />
|
<Icon id={iconVariant} size='22px' className={[_s.colorWhite].join(' ')} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@ export default class StatusCard extends ImmutablePureComponent {
|
||||||
} else {
|
} else {
|
||||||
embed = (
|
embed = (
|
||||||
<div className={[_s.default, _s.py15, _s.px15, _s.width72PX, _s.alignItemsCenter, _s.justifyContentCenter].join(' ')}>
|
<div className={[_s.default, _s.py15, _s.px15, _s.width72PX, _s.alignItemsCenter, _s.justifyContentCenter].join(' ')}>
|
||||||
<Icon id='website' size='22px' className={_s.fillSecondary} />
|
<Icon id='website' size='22px' className={_s.colorSecondary} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,7 @@ class StatusContent extends ImmutablePureComponent {
|
||||||
|
|
||||||
<div className={spoilerContainerClasses}>
|
<div className={spoilerContainerClasses}>
|
||||||
<div className={[_s.default, _s.flexRow, _s.mr5].join(' ')}>
|
<div className={[_s.default, _s.flexRow, _s.mr5].join(' ')}>
|
||||||
<Icon id='warning' size='14px' className={[_s.fillPrimary, _s.mt2, _s.mr5].join(' ')}/>
|
<Icon id='warning' size='14px' className={[_s.colorPrimary, _s.mt2, _s.mr5].join(' ')}/>
|
||||||
<div
|
<div
|
||||||
className={[_s.statusContent, _s.outlineNone].join(' ')}
|
className={[_s.statusContent, _s.outlineNone].join(' ')}
|
||||||
dangerouslySetInnerHTML={spoilerContent}
|
dangerouslySetInnerHTML={spoilerContent}
|
||||||
|
|
|
@ -143,7 +143,7 @@ class StatusHeader extends ImmutablePureComponent {
|
||||||
color='none'
|
color='none'
|
||||||
icon='ellipsis'
|
icon='ellipsis'
|
||||||
iconSize='20px'
|
iconSize='20px'
|
||||||
iconClassName={_s.fillSecondary}
|
iconClassName={_s.colorSecondary}
|
||||||
className={_s.mlAuto}
|
className={_s.mlAuto}
|
||||||
onClick={this.handleOpenStatusOptionsPopover}
|
onClick={this.handleOpenStatusOptionsPopover}
|
||||||
buttonRef={this.setStatusOptionsButton}
|
buttonRef={this.setStatusOptionsButton}
|
||||||
|
@ -167,7 +167,7 @@ class StatusHeader extends ImmutablePureComponent {
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
|
|
||||||
<span title={visibilityText} className={[_s.default, _s.displayInline, _s.ml5].join(' ')}>
|
<span title={visibilityText} className={[_s.default, _s.displayInline, _s.ml5].join(' ')}>
|
||||||
<Icon id={visibilityIcon} size='12px' className={[_s.default, _s.fillSecondary].join(' ')} />
|
<Icon id={visibilityIcon} size='12px' className={[_s.default, _s.colorSecondary].join(' ')} />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -177,7 +177,7 @@ class StatusHeader extends ImmutablePureComponent {
|
||||||
<span title={intl.formatMessage(messages.expirationMessage, {
|
<span title={intl.formatMessage(messages.expirationMessage, {
|
||||||
time: timeUntilExpiration,
|
time: timeUntilExpiration,
|
||||||
})} className={[_s.default, _s.displayInline, _s.ml5].join(' ')}>
|
})} className={[_s.default, _s.displayInline, _s.ml5].join(' ')}>
|
||||||
<Icon id='stopwatch' size='13px' className={[_s.default, _s.fillSecondary].join(' ')} />
|
<Icon id='stopwatch' size='13px' className={[_s.default, _s.colorSecondary].join(' ')} />
|
||||||
</span>
|
</span>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ class StatusPrepend extends ImmutablePureComponent {
|
||||||
return (
|
return (
|
||||||
<div className={[_s.default, _s.width100PC, _s.alignItemsStart, _s.borderBottom1PX, _s.borderColorSecondary].join(' ')}>
|
<div className={[_s.default, _s.width100PC, _s.alignItemsStart, _s.borderBottom1PX, _s.borderColorSecondary].join(' ')}>
|
||||||
<div className={[_s.default, _s.width100PC, _s.flexRow, _s.alignItemsCenter, _s.py5, _s.px15].join(' ')}>
|
<div className={[_s.default, _s.width100PC, _s.flexRow, _s.alignItemsCenter, _s.py5, _s.px15].join(' ')}>
|
||||||
<Icon id={iconId} size='12px' className={[_s.fillSecondary, _s.mr5].join(' ')} />
|
<Icon id={iconId} size='12px' className={[_s.colorSecondary, _s.mr5].join(' ')} />
|
||||||
{
|
{
|
||||||
isRepost && !isComment &&
|
isRepost && !isComment &&
|
||||||
<div className={[_s.default, _s.flexRow].join(' ')}>
|
<div className={[_s.default, _s.flexRow].join(' ')}>
|
||||||
|
|
|
@ -641,7 +641,7 @@ class Video extends ImmutablePureComponent {
|
||||||
onClick={this.togglePlay}
|
onClick={this.togglePlay}
|
||||||
className={[_s.default, _s.outlineNone, _s.cursorPointer, _s.alignItemsCenter, _s.justifyContentCenter, _s.posAbs, _s.bgBlackOpaque, _s.circle, _s.height60PX, _s.width60PX].join(' ')}
|
className={[_s.default, _s.outlineNone, _s.cursorPointer, _s.alignItemsCenter, _s.justifyContentCenter, _s.posAbs, _s.bgBlackOpaque, _s.circle, _s.height60PX, _s.width60PX].join(' ')}
|
||||||
>
|
>
|
||||||
<Icon id='play' size='24px' className={_s.fillWhite} />
|
<Icon id='play' size='24px' className={_s.colorWhite} />
|
||||||
</button>
|
</button>
|
||||||
</Responsive>
|
</Responsive>
|
||||||
}
|
}
|
||||||
|
@ -743,7 +743,7 @@ class Video extends ImmutablePureComponent {
|
||||||
icon={paused ? 'play' : 'pause'}
|
icon={paused ? 'play' : 'pause'}
|
||||||
title={paused ? 'Play' : 'Pause'}
|
title={paused ? 'Play' : 'Pause'}
|
||||||
iconSize='16px'
|
iconSize='16px'
|
||||||
iconClassName={_s.fillWhite}
|
iconClassName={_s.colorWhite}
|
||||||
className={_s.pl0}
|
className={_s.pl0}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -755,7 +755,7 @@ class Video extends ImmutablePureComponent {
|
||||||
onClick={this.toggleMute}
|
onClick={this.toggleMute}
|
||||||
icon={muted ? 'audio-mute' : 'audio'}
|
icon={muted ? 'audio-mute' : 'audio'}
|
||||||
iconSize='24px'
|
iconSize='24px'
|
||||||
iconClassName={_s.fillWhite}
|
iconClassName={_s.colorWhite}
|
||||||
className={[_s.px10, _s.mr10].join(' ')}
|
className={[_s.px10, _s.mr10].join(' ')}
|
||||||
title='Volume'
|
title='Volume'
|
||||||
onMouseEnter={this.handleMouseEnterAudio}
|
onMouseEnter={this.handleMouseEnterAudio}
|
||||||
|
@ -776,7 +776,7 @@ class Video extends ImmutablePureComponent {
|
||||||
onClick={this.handleOnClickSettings}
|
onClick={this.handleOnClickSettings}
|
||||||
icon='cog'
|
icon='cog'
|
||||||
iconSize='20px'
|
iconSize='20px'
|
||||||
iconClassName={_s.fillWhite}
|
iconClassName={_s.colorWhite}
|
||||||
className={[_s.px10, _s.pr0].join(' ')}
|
className={[_s.px10, _s.pr0].join(' ')}
|
||||||
buttonRef={this.setSettingsBtnRef}
|
buttonRef={this.setSettingsBtnRef}
|
||||||
title='Video stats'
|
title='Video stats'
|
||||||
|
@ -791,7 +791,7 @@ class Video extends ImmutablePureComponent {
|
||||||
onClick={this.togglePip}
|
onClick={this.togglePip}
|
||||||
icon='pip'
|
icon='pip'
|
||||||
iconSize='20px'
|
iconSize='20px'
|
||||||
iconClassName={_s.fillWhite}
|
iconClassName={_s.colorWhite}
|
||||||
className={[_s.px10, _s.pr0].join(' ')}
|
className={[_s.px10, _s.pr0].join(' ')}
|
||||||
title='Picture in Picture'
|
title='Picture in Picture'
|
||||||
/>
|
/>
|
||||||
|
@ -805,7 +805,7 @@ class Video extends ImmutablePureComponent {
|
||||||
icon={fullscreen ? 'minimize-fullscreen' : 'fullscreen'}
|
icon={fullscreen ? 'minimize-fullscreen' : 'fullscreen'}
|
||||||
title={fullscreen ? 'Minimize fullscreen' : 'Fullscreen'}
|
title={fullscreen ? 'Minimize fullscreen' : 'Fullscreen'}
|
||||||
iconSize='20px'
|
iconSize='20px'
|
||||||
iconClassName={_s.fillWhite}
|
iconClassName={_s.colorWhite}
|
||||||
className={[_s.px10, _s.pr0].join(' ')}
|
className={[_s.px10, _s.pr0].join(' ')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -45,8 +45,8 @@ export default class ComposeExtraButton extends PureComponent {
|
||||||
})
|
})
|
||||||
|
|
||||||
const iconClasses = cx({
|
const iconClasses = cx({
|
||||||
fillSecondary: !active,
|
colorSecondary: !active,
|
||||||
fillWhite: active,
|
colorWhite: active,
|
||||||
})
|
})
|
||||||
|
|
||||||
const iconSize = !!small ? '14px' : '16px'
|
const iconSize = !!small ? '14px' : '16px'
|
||||||
|
|
|
@ -229,7 +229,7 @@ class PollFormOption extends ImmutablePureComponent {
|
||||||
className={[_s.ml5, _s.justifyContentCenter].join(' ')}
|
className={[_s.ml5, _s.justifyContentCenter].join(' ')}
|
||||||
icon='close'
|
icon='close'
|
||||||
iconSize='8px'
|
iconSize='8px'
|
||||||
iconClassName={_s.fillSecondary}
|
iconClassName={_s.colorSecondary}
|
||||||
disabled={index <= 1}
|
disabled={index <= 1}
|
||||||
title={intl.formatMessage(messages.remove_option)}
|
title={intl.formatMessage(messages.remove_option)}
|
||||||
onClick={this.handleOptionRemove}
|
onClick={this.handleOptionRemove}
|
||||||
|
|
|
@ -367,7 +367,7 @@ class Introduction extends ImmutablePureComponent {
|
||||||
<Text color='white' className={_s.px5}>{nextTitle}</Text>
|
<Text color='white' className={_s.px5}>{nextTitle}</Text>
|
||||||
</Responsive>
|
</Responsive>
|
||||||
<Responsive max={BREAKPOINT_EXTRA_SMALL}>
|
<Responsive max={BREAKPOINT_EXTRA_SMALL}>
|
||||||
<Icon id='check' size='14px' className={_s.fillWhite} />
|
<Icon id='check' size='14px' className={_s.colorWhite} />
|
||||||
</Responsive>
|
</Responsive>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
|
|
|
@ -429,8 +429,8 @@ pre {
|
||||||
.colorWhite { color: var(--color_white); }
|
.colorWhite { color: var(--color_white); }
|
||||||
.colorWhite_onHover:hover { color: var(--color_white); }
|
.colorWhite_onHover:hover { color: var(--color_white); }
|
||||||
|
|
||||||
.colorTertiary { color: var(--text_color_tertiary); }
|
|
||||||
.colorSecondary { color: var(--text_color_secondary); }
|
.colorSecondary { color: var(--text_color_secondary); }
|
||||||
|
.colorTertiary { color: var(--text_color_tertiary); }
|
||||||
|
|
||||||
.colorBrand { color: var(--color_brand); }
|
.colorBrand { color: var(--color_brand); }
|
||||||
.colorGabPro { color: var(--color_gold); }
|
.colorGabPro { color: var(--color_gold); }
|
||||||
|
|
Loading…
Reference in New Issue