From 763694b5abb1ab3177ac3c89e18867bfe2aa2c1a Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Sat, 25 Apr 2020 13:00:51 -0400 Subject: [PATCH] Progress --- .../gabsocial/assets/loading_icon.js | 16 +- app/javascript/gabsocial/base_polyfills.js | 3 + .../gabsocial/components/account.js | 2 +- .../components/autosuggest_textbox.js | 2 +- app/javascript/gabsocial/components/button.js | 6 +- .../gabsocial/components/comment.js | 4 +- .../gabsocial/components/display_name.js | 2 +- .../gabsocial/components/divider.js | 2 +- .../components/group_collection_item.js | 9 +- .../gabsocial/components/group_list_item.js | 2 +- .../gabsocial/components/hashtag_item.js | 2 +- app/javascript/gabsocial/components/image.js | 2 +- app/javascript/gabsocial/components/input.js | 4 +- .../gabsocial/components/link_footer.js | 2 +- .../gabsocial/components/list_item.js | 4 +- .../gabsocial/components/media_gallery.js | 2 +- .../gabsocial/components/media_item.js | 6 +- .../gabsocial/components/modal/embed_modal.js | 2 +- .../gabsocial/components/modal/modal_base.js | 2 +- .../gabsocial/components/notification.js | 4 +- .../components/panel/panel_layout.js | 2 +- .../gabsocial/components/panel/user_panel.js | 2 +- app/javascript/gabsocial/components/poll.js | 9 +- .../components/popover/popover_base.js | 2 +- .../popover/status_visibility_popover.js | 2 +- .../gabsocial/components/profile_header.js | 2 +- .../gabsocial/components/progress_bar.js | 4 +- .../components/rich_text_editor_bar.js | 2 +- .../components/sensitive_media_item.js | 2 +- .../components/sidebar_section_item.js | 2 +- app/javascript/gabsocial/components/status.js | 2 +- .../gabsocial/components/status_action_bar.js | 1 + .../components/status_action_bar_item.js | 2 +- .../gabsocial/components/status_card.js | 8 +- .../gabsocial/components/status_content.js | 2 +- app/javascript/gabsocial/components/switch.js | 2 +- .../gabsocial/components/tab_bar_item.js | 2 +- .../components/timeline_compose_block.js | 2 +- .../gabsocial/components/trends_item.js | 2 +- app/javascript/gabsocial/components/video.js | 10 +- .../components/compose_extra_button.js | 2 +- .../compose/components/compose_form.js | 2 +- .../compose/components/media_upload_item.js | 3 +- app/javascript/gabsocial/layouts/layout.js | 4 +- .../gabsocial/layouts/search_layout.js | 4 +- .../gabsocial/layouts/settings_layout.js | 4 +- app/javascript/styles/global.css | 985 +++++------------- package.json | 1 + yarn.lock | 5 + 49 files changed, 356 insertions(+), 794 deletions(-) diff --git a/app/javascript/gabsocial/assets/loading_icon.js b/app/javascript/gabsocial/assets/loading_icon.js index 4f0b9eda..5b403151 100644 --- a/app/javascript/gabsocial/assets/loading_icon.js +++ b/app/javascript/gabsocial/assets/loading_icon.js @@ -13,7 +13,7 @@ const LoadingIcon = ({ > - + @@ -21,7 +21,7 @@ const LoadingIcon = ({ - + @@ -29,7 +29,7 @@ const LoadingIcon = ({ - + @@ -37,7 +37,7 @@ const LoadingIcon = ({ - + @@ -45,7 +45,7 @@ const LoadingIcon = ({ - + @@ -53,7 +53,7 @@ const LoadingIcon = ({ - + @@ -61,7 +61,7 @@ const LoadingIcon = ({ - + @@ -69,7 +69,7 @@ const LoadingIcon = ({ - + diff --git a/app/javascript/gabsocial/base_polyfills.js b/app/javascript/gabsocial/base_polyfills.js index d54ed977..b2780077 100644 --- a/app/javascript/gabsocial/base_polyfills.js +++ b/app/javascript/gabsocial/base_polyfills.js @@ -8,6 +8,9 @@ import assign from 'object-assign'; import values from 'object.values'; import isNaN from 'is-nan'; import { decode as decodeBase64 } from './utils/base64'; +import cssVars from 'css-vars-ponyfill'; + +cssVars() if (!Array.prototype.includes) { includes.shim(); diff --git a/app/javascript/gabsocial/components/account.js b/app/javascript/gabsocial/components/account.js index 3399b680..85f3cd7d 100644 --- a/app/javascript/gabsocial/components/account.js +++ b/app/javascript/gabsocial/components/account.js @@ -151,7 +151,7 @@ class Account extends ImmutablePureComponent { ) return ( -
+
-
+
diff --git a/app/javascript/gabsocial/components/display_name.js b/app/javascript/gabsocial/components/display_name.js index b56cba41..18c37d04 100644 --- a/app/javascript/gabsocial/components/display_name.js +++ b/app/javascript/gabsocial/components/display_name.js @@ -180,7 +180,7 @@ class DisplayName extends ImmutablePureComponent { size='extraSmall' isBadge color='tertiary' - className={[_s.backgroundSubtle2, _s.py2].join(' ')} + className={[_s.backgroundColorSubtle2, _s.py2].join(' ')} > {relationshipLabel} diff --git a/app/javascript/gabsocial/components/divider.js b/app/javascript/gabsocial/components/divider.js index 0d48090c..7af4fce2 100644 --- a/app/javascript/gabsocial/components/divider.js +++ b/app/javascript/gabsocial/components/divider.js @@ -21,7 +21,7 @@ export default class Divider extends PureComponent { const classes = cx({ default: 1, borderBottom1PX: !isInvisible, - borderColorSecondary2: !isInvisible, + borderColorSecondary: !isInvisible, width100PC: 1, mb15: !isSmall, my10: isSmall || isInvisible, diff --git a/app/javascript/gabsocial/components/group_collection_item.js b/app/javascript/gabsocial/components/group_collection_item.js index a9c7ff12..f86dd34a 100644 --- a/app/javascript/gabsocial/components/group_collection_item.js +++ b/app/javascript/gabsocial/components/group_collection_item.js @@ -60,13 +60,14 @@ class GroupCollectionItem extends ImmutablePureComponent { noUnderline: 1, overflowHidden: 1, borderColorSecondary: 1, + boxShadowBlock: 1, radiusSmall: 1, - border1PX: 1, + borderTop1PX: 1, mb10: 1, ml5: 1, mr5: 1, backgroundColorPrimary: 1, - backgroundSubtle_onHover: isMember, + backgroundColorSubtle_onHover: isMember, }) return ( @@ -86,7 +87,7 @@ class GroupCollectionItem extends ImmutablePureComponent { { !coverSrc && (isMember || isAdmin) && -
+
} { @@ -122,7 +123,7 @@ class GroupCollectionItem extends ImmutablePureComponent { {group.get('title')} -
+
{shortNumberFormat(group.get('member_count'))}   diff --git a/app/javascript/gabsocial/components/group_list_item.js b/app/javascript/gabsocial/components/group_list_item.js index eb5f6f3a..77d779a3 100644 --- a/app/javascript/gabsocial/components/group_list_item.js +++ b/app/javascript/gabsocial/components/group_list_item.js @@ -57,7 +57,7 @@ class GroupListItem extends ImmutablePureComponent { default: 1, noUnderline: 1, overflowHidden: 1, - backgroundSubtle_onHover: 1, + backgroundColorSubtle_onHover: 1, borderColorSecondary: 1, radiusSmall: !slim, mt5: !slim, diff --git a/app/javascript/gabsocial/components/hashtag_item.js b/app/javascript/gabsocial/components/hashtag_item.js index 622d2733..21811a86 100644 --- a/app/javascript/gabsocial/components/hashtag_item.js +++ b/app/javascript/gabsocial/components/hashtag_item.js @@ -23,7 +23,7 @@ export default class HashtagItem extends ImmutablePureComponent { return (
diff --git a/app/javascript/gabsocial/components/image.js b/app/javascript/gabsocial/components/image.js index b5816d5b..ce109dd1 100644 --- a/app/javascript/gabsocial/components/image.js +++ b/app/javascript/gabsocial/components/image.js @@ -50,7 +50,7 @@ export default class Image extends PureComponent { const classes = cx(className, { default: 1, objectFitCover: !!src && fit === 'cover', - backgroundSubtle2: 1, + backgroundColorSubtle2: 1, }) //If error and not our own image diff --git a/app/javascript/gabsocial/components/input.js b/app/javascript/gabsocial/components/input.js index b574ca8a..7af3b122 100644 --- a/app/javascript/gabsocial/components/input.js +++ b/app/javascript/gabsocial/components/input.js @@ -54,7 +54,7 @@ export default class Input extends PureComponent { py10: !small, py5: small, backgroundTransparent: !readOnly, - backgroundSubtle2: readOnly, + backgroundColorSubtle2: readOnly, colorSecondary: readOnly, fontSize15PX: !small, fontSize13PX: small, @@ -91,7 +91,7 @@ export default class Input extends PureComponent {
{ !!prependIcon && - + } {linkFooterItem.text} diff --git a/app/javascript/gabsocial/components/list_item.js b/app/javascript/gabsocial/components/list_item.js index abc41bbb..fd38d862 100644 --- a/app/javascript/gabsocial/components/list_item.js +++ b/app/javascript/gabsocial/components/list_item.js @@ -45,7 +45,7 @@ export default class ListItem extends PureComponent { flexRow: 1, alignItemsCenter: 1, width100PC: 1, - backgroundSubtle_onHover: 1, + backgroundColorSubtle_onHover: 1, borderColorSecondary: !isLast, borderBottom1PX: !isLast, }) @@ -53,7 +53,7 @@ export default class ListItem extends PureComponent { const iconClasses = cx({ mr10: !large, mr15: large, - fillColorBlack: 1, + fillColorPrimary: 1, }) const textSize = small ? 'small' : large ? 'medium' : 'normal' diff --git a/app/javascript/gabsocial/components/media_gallery.js b/app/javascript/gabsocial/components/media_gallery.js index aed09ea5..ab49fd67 100644 --- a/app/javascript/gabsocial/components/media_gallery.js +++ b/app/javascript/gabsocial/components/media_gallery.js @@ -216,7 +216,7 @@ class Item extends ImmutablePureComponent { playsInline /> -
+
GIF
diff --git a/app/javascript/gabsocial/components/media_item.js b/app/javascript/gabsocial/components/media_item.js index 1d253091..dd195742 100644 --- a/app/javascript/gabsocial/components/media_item.js +++ b/app/javascript/gabsocial/components/media_item.js @@ -91,8 +91,8 @@ export default class MediaItem extends ImmutablePureComponent { height100PC: 1, overflowHidden: 1, border1PX: 1, - borderColorSecondary: !small, - borderColorWhite: small, + borderColorPrimary: !small, + borderColorPrimary: small, }) return ( @@ -137,7 +137,7 @@ export default class MediaItem extends ImmutablePureComponent { { !!badge && -
+
{badge} diff --git a/app/javascript/gabsocial/components/modal/embed_modal.js b/app/javascript/gabsocial/components/modal/embed_modal.js index af75a4d3..d6571a00 100644 --- a/app/javascript/gabsocial/components/modal/embed_modal.js +++ b/app/javascript/gabsocial/components/modal/embed_modal.js @@ -89,7 +89,7 @@ class EmbedModal extends ImmutablePureComponent { {intl.formatMessage(messages.preview)} -
+