diff --git a/app/javascript/gabsocial/components/column/column.scss b/app/javascript/gabsocial/components/column/column.scss
index eef1106c..670d883c 100644
--- a/app/javascript/gabsocial/components/column/column.scss
+++ b/app/javascript/gabsocial/components/column/column.scss
@@ -3,7 +3,7 @@
position: relative;
box-sizing: border-box;
flex-direction: column;
- width: 350px;
+ // width: 350px;
flex: 1 1 100%;
overflow: hidden;
diff --git a/app/javascript/gabsocial/components/column_settings_heading/column_settings_heading.js b/app/javascript/gabsocial/components/column_settings_heading/column_settings_heading.js
index 4b18ad3c..da124b76 100644
--- a/app/javascript/gabsocial/components/column_settings_heading/column_settings_heading.js
+++ b/app/javascript/gabsocial/components/column_settings_heading/column_settings_heading.js
@@ -7,7 +7,7 @@ export default class ColumnSettingsHeading extends PureComponent {
};
render() {
- const { heading } = this.props;
+ const { heading, id } = this.props;
return (
{heading}
diff --git a/app/javascript/gabsocial/components/columns_area/columns_area.js b/app/javascript/gabsocial/components/columns_area/columns_area.js
deleted file mode 100644
index aabc93b9..00000000
--- a/app/javascript/gabsocial/components/columns_area/columns_area.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import './columns_area.scss';
-
-export default class ColumnsArea extends PureComponent {
-
- static propTypes = {
- children: PropTypes.node,
- layout: PropTypes.object,
- };
-
- render () {
- const { children } = this.props;
- const layout = this.props.layout || {LEFT:null,RIGHT:null};
-
- console.log("layout:", layout);
-
- return (
-
- )
- }
-}
diff --git a/app/javascript/gabsocial/components/columns_area/columns_area.scss b/app/javascript/gabsocial/components/columns_area/columns_area.scss
deleted file mode 100644
index dc02fd23..00000000
--- a/app/javascript/gabsocial/components/columns_area/columns_area.scss
+++ /dev/null
@@ -1,181 +0,0 @@
-.page {
- display: flex;
- flex-direction: column;
- width: 100%;
-
- &__top {
- display: flex;
- z-index: 105;
-
- @include size(100%, auto);
-
- @media (min-width:895px) {
- top: -290px;
- position: sticky;
- }
- }
-
- &__columns {
- display: flex;
- flex-direction: column;
-
- @include size(100%);
- }
-}
-
-.columns-area {
- flex: 1 1 auto;
- position: relative;
-
- @include flex(center, stretch, row);
-
- &__panels {
- @include size(100%);
- @include flex(center);
-
- &__pane {
- height: 100%;
- pointer-events: none;
- padding-top: 15px;
-
- @include flex(flex-end);
-
- &--start {
- justify-content: flex-start;
- }
-
- &__inner {
- pointer-events: auto;
-
- @include size(265px, 100%);
- }
- }
-
- &__main {
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- width: 100%;
- max-width: 600px;
- padding: 0 20px;
-
- @media screen and (max-width: 375px) {
- padding: 0 10px;
- }
-
- @media screen and (min-width: 895px) {
- margin: 0 20px;
- padding: 0;
- }
- }
- }
-}
-
-
-@media screen and (min-width: 631px) {
- .columns-area {
- padding: 0;
-
- >div {
- .column,
- .drawer {
- @include horizontal-padding(5px);
- }
- }
- }
-}
-
-.columns-area--mobile {
- flex-direction: column;
- width: 100%;
-
- @include margin-center;
-
- .column,
- .drawer {
- padding: 0;
-
- @include size(100%);
- }
-
- .search__input {
- padding: 15px 30px 15px 15px;
-
- @include text-sizing(16px, 400, 18px);
- }
-
- .search__icon .fa {
- top: 15px;
- }
-
- @media screen and (min-width: 360px) {
- padding: 15px 0;
- }
-
- @media screen and (min-width: 630px) {
- .detailed-status {
- padding: 15px;
-
- .media-gallery,
- .video-player {
- margin-top: 15px;
- }
- }
-
- .account__header__bar {
- padding: 5px 10px;
- }
-
- .navigation-bar,
- .compose-form {
- padding: 15px;
- }
-
- .compose-form .compose-form__publish .compose-form__publish-button-wrapper {
- padding-top: 15px;
- }
-
- .account {
- padding: 15px 10px;
- }
-
- .notification {
- &__message {
- margin-left: 48px + 15px * 2;
- padding-top: 15px;
- }
-
- &__favourite-icon-wrapper {
- left: -32px;
- }
-
- .status {
- padding-top: 8px;
- }
-
- .account {
- padding-top: 8px;
- }
-
- .account__avatar-wrapper {
- @include horizontal-margin(17px, 15px);
- }
- }
- }
-}
-
-@media screen and (max-width: 895px) {
- .columns-area__panels__pane--left {
- display: none;
- }
-}
-
-@media screen and (max-width: 1180px) {
- .columns-area__panels__pane--right {
- display: none;
- }
-}
-
-.columns-area--mobile .column {
- // @include gab-container-standards();
-}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/columns_area/index.js b/app/javascript/gabsocial/components/columns_area/index.js
deleted file mode 100644
index 9cc723dd..00000000
--- a/app/javascript/gabsocial/components/columns_area/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from './columns_area';
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/display_name/display_name.scss b/app/javascript/gabsocial/components/display_name/display_name.scss
index 94795b84..cf9c25fb 100644
--- a/app/javascript/gabsocial/components/display_name/display_name.scss
+++ b/app/javascript/gabsocial/components/display_name/display_name.scss
@@ -6,10 +6,11 @@
&__html {
font-weight: 600;
- padding-right: 4px;
+ font-size: 15px;
}
&__account {
- font-size: 14px;
+ margin-left: 5px;
+ font-size: 15px;
}
}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/gab_logo/gab_logo.js b/app/javascript/gabsocial/components/header/assets/gab_logo/gab_logo.js
similarity index 100%
rename from app/javascript/gabsocial/components/tabs_bar/assets/gab_logo/gab_logo.js
rename to app/javascript/gabsocial/components/header/assets/gab_logo/gab_logo.js
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/gab_logo/gab_logo.scss b/app/javascript/gabsocial/components/header/assets/gab_logo/gab_logo.scss
similarity index 100%
rename from app/javascript/gabsocial/components/tabs_bar/assets/gab_logo/gab_logo.scss
rename to app/javascript/gabsocial/components/header/assets/gab_logo/gab_logo.scss
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/gab_logo/index.js b/app/javascript/gabsocial/components/header/assets/gab_logo/index.js
similarity index 100%
rename from app/javascript/gabsocial/components/tabs_bar/assets/gab_logo/index.js
rename to app/javascript/gabsocial/components/header/assets/gab_logo/index.js
diff --git a/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/group_icon.js b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/group_icon.js
new file mode 100644
index 00000000..f92fe5d1
--- /dev/null
+++ b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/group_icon.js
@@ -0,0 +1,29 @@
+const GroupIcon = ({
+ className = 'header-nav__item__icon',
+ width = '26px',
+ height = '26px',
+ viewBox = '0 0 48 48'
+}) => (
+
+)
+
+export default GroupIcon
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/home_icon.js b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/home_icon.js
new file mode 100644
index 00000000..be20b07d
--- /dev/null
+++ b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/home_icon.js
@@ -0,0 +1,24 @@
+const HomeIcon = ({
+ className = 'header-nav__item__icon',
+ width = '26px',
+ height = '26px',
+ viewBox = '0 0 48 48'
+}) => (
+
+)
+
+export default HomeIcon
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/index.js b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/index.js
similarity index 100%
rename from app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/index.js
rename to app/javascript/gabsocial/components/header/assets/tabs_bar_icon/index.js
diff --git a/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/notifications_icon.js b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/notifications_icon.js
new file mode 100644
index 00000000..b661c9f1
--- /dev/null
+++ b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/notifications_icon.js
@@ -0,0 +1,26 @@
+const NotificationsIcon = ({
+ className = 'header-nav__item__icon',
+ width = '26px',
+ height = '26px',
+ viewBox = '0 0 48 48'
+}) => (
+
+)
+
+export default NotificationsIcon
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/search_icon.js b/app/javascript/gabsocial/components/header/assets/tabs_bar_icon/search_icon.js
similarity index 100%
rename from app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/search_icon.js
rename to app/javascript/gabsocial/components/header/assets/tabs_bar_icon/search_icon.js
diff --git a/app/javascript/gabsocial/components/sidebar_menu/sidebar_menu.js b/app/javascript/gabsocial/components/header/header.js
similarity index 79%
rename from app/javascript/gabsocial/components/sidebar_menu/sidebar_menu.js
rename to app/javascript/gabsocial/components/header/header.js
index 3cf10379..80acdc26 100644
--- a/app/javascript/gabsocial/components/sidebar_menu/sidebar_menu.js
+++ b/app/javascript/gabsocial/components/header/header.js
@@ -12,8 +12,14 @@ import { shortNumberFormat } from '../../utils/numbers';
import { me } from '../../initial_state';
import { makeGetAccount } from '../../selectors';
import ProgressPanel from '../progress_panel';
+import GabLogo from './assets/gab_logo';
+import {
+ GroupIcon,
+ HomeIcon,
+ NotificationsIcon,
+} from './assets/tabs_bar_icon';
-import './sidebar_menu.scss';
+console.log("header global - styles:", styles);
const messages = defineMessages({
followers: { id: 'account.followers', defaultMessage: 'Followers' },
@@ -46,14 +52,14 @@ const mapStateToProps = state => {
};
const mapDispatchToProps = (dispatch) => ({
- onClose () {
+ onClose() {
dispatch(closeSidebar());
},
});
export default @connect(mapStateToProps, mapDispatchToProps)
@injectIntl
-class SidebarMenu extends ImmutablePureComponent {
+class Header extends ImmutablePureComponent {
static propTypes = {
intl: PropTypes.object.isRequired,
@@ -66,7 +72,7 @@ class SidebarMenu extends ImmutablePureComponent {
moreOpen: false,
}
- componentDidUpdate () {
+ componentDidUpdate() {
if (!me) return;
if (this.props.sidebarOpen) {
@@ -89,7 +95,7 @@ class SidebarMenu extends ImmutablePureComponent {
});
}
- render () {
+ render() {
const { sidebarOpen, intl, account } = this.props;
const { moreOpen } = this.state;
@@ -105,6 +111,83 @@ class SidebarMenu extends ImmutablePureComponent {
const moreIcon = moreOpen ? 'minus' : 'plus';
const moreContainerStyle = { display: moreOpen ? 'block' : 'none' };
+ const sidebarItems = [
+ {
+ name: 'Home',
+ icon: ,
+ to: '/',
+ },
+ {
+ name: 'Notifications',
+ icon: ,
+ to: '/',
+ },
+ {
+ name: 'Groups',
+ icon: ,
+ to: '/',
+ },
+ {
+ name: 'Lists',
+ icon: ,
+ to: '/',
+ },
+ {
+ name: 'Chat',
+ icon: ,
+ to: '/',
+ },
+ {
+ name: 'Trends',
+ icon: ,
+ to: '/',
+ },
+ {
+ name: 'Profile',
+ icon: ,
+ to: '/',
+ },
+ ];
+
+ return (
+
+
+
+
+
+
+
+
+
+
+ )
+
return (
@@ -124,7 +207,7 @@ class SidebarMenu extends ImmutablePureComponent {
-
+
@@ -212,7 +295,7 @@ class SidebarMenu extends ImmutablePureComponent {
diff --git a/app/javascript/gabsocial/components/header/header.scss b/app/javascript/gabsocial/components/header/header.scss
new file mode 100644
index 00000000..ee7b7c88
--- /dev/null
+++ b/app/javascript/gabsocial/components/header/header.scss
@@ -0,0 +1,285 @@
+.header {
+ display: flex;
+ flex-basis: auto;
+ flex-direction: column;
+ flex-shrink: 0;
+ flex-grow: 1;
+ align-items: flex-end;
+ z-index: 3;
+
+ &__container {
+ display: flex;
+ flex-basis: auto;
+ flex-direction: column;
+ flex-shrink: 0;
+ width: 275px;
+ }
+
+ &__heading {
+ display: flex;
+ width: 100%;
+ margin-top: 4px;
+
+ &__btn {
+ display: flex;
+ max-width: 100%;
+ padding: 10px;
+ cursor: pointer;
+ }
+ }
+}
+
+.header-scrollarea {
+ position: fixed;
+ height: 100%;
+ top: 0;
+
+ &__container {
+ display: flex;
+ width: 275px;
+ height: 100%;
+ padding-left: 20px;
+ padding-right: 20px;
+ flex-direction: column;
+ align-items: flex-start;
+ overflow: hidden;
+ overflow-y: scroll;
+ }
+}
+
+.header-nav {
+ display: flex;
+ width: 100%;
+ flex-direction: column;
+
+ &__item {
+ display: flex;
+ align-items: flex-start;
+ width: 100%;
+ flex-grow: 1;
+ height: 54px;
+ cursor: pointer;
+ text-decoration: none;
+
+ @include vertical-padding(4px);
+
+ &__block {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ max-width: 100%;
+ padding: 10px;
+ border-radius: 27px;
+ }
+
+ &__icon {
+ @include size(26px);
+
+ &__path {
+ stroke: #fff;
+ fill: none;
+ stroke-width: 4px;
+ stroke-linecap: round;
+
+ &--fill {
+ stroke: none !important;
+ fill: #fff !important;
+ }
+ }
+ }
+
+ &__title {
+ overflow-wrap: break-word;
+ font-size: 19px;
+ color: #fff;
+
+ @include horizontal-margin(15px);
+ }
+
+ &:hover & {
+ &__block {
+ background-color: rgba($gab-brand-default, 0.25);
+ }
+
+ &__title {
+ color: $gab-brand-default;
+ }
+ }
+ }
+}
+
+// .sidebar-menu {
+// display: flex;
+// position: fixed;
+// flex-direction: column;
+// width: 275px;
+// height: 100vh;
+// top: 0;
+// bottom: 0;
+// left: 0;
+// background: $gab-background-container;
+// transform: translateX(-275px);
+// transition: all 0.15s linear;
+// z-index: 10001;
+
+// body.theme-gabsocial-light & {
+// background: $gab-background-container-light;
+// }
+
+// &__root {
+// display: none;
+// }
+
+// &__wrapper {
+// display: block;
+// position: fixed;
+// top: 0;
+// left: 0;
+// right: 0;
+// bottom: 0;
+// z-index: 10000;
+// background-color: transparent;
+// transition: background-color 0.2s linear;
+// transition-delay: 0.1s;
+// }
+
+// &__content {
+// display: flex;
+// flex: 1 1;
+// flex-direction: column;
+// padding-bottom: 40px;
+// overflow: hidden;
+// overflow-y: scroll;
+// -webkit-overflow-scrolling: touch;
+// }
+
+// &__section {
+// display: block;
+// margin: 4px 0;
+// border-top: 1px solid lighten($ui-base-color, 4%);
+
+// &--borderless {
+// margin: 0;
+// border-top: none;
+// }
+// }
+
+// @media (max-width: 400px) {
+// width: 90vw;
+// }
+// }
+
+// .sidebar-menu__root--visible {
+// display: block;
+
+// .sidebar-menu {
+// transform: translateX(0);
+// }
+
+// .sidebar-menu__wrapper {
+// background-color: rgba(0,0,0,0.3);
+// }
+// }
+
+// .sidebar-menu-header {
+// display: flex;
+// height: 46px;
+// padding: 12px 14px;
+// border-bottom: 1px solid lighten($ui-base-color, 4%);
+// box-sizing: border-box;
+// align-items: center;
+
+// &__title {
+// display: block;
+// font-size: 18px;
+// font-weight: 600;
+// color: $primary-text-color;
+// }
+
+// &__btn {
+// margin-left: auto;
+// }
+// }
+
+// .sidebar-menu-profile {
+// display: block;
+// padding: 14px 18px;
+
+// &__avatar {
+// display: block;
+// width: 56px;
+// height: 56px;
+// }
+
+// &__name {
+// display: block;
+// margin-top: 10px;
+
+// .display-name__account {
+// display: block;
+// margin-top: 2px;
+// }
+// }
+
+// &__stats {
+// display: flex;
+// margin-top: 12px;
+// }
+// }
+
+// .sidebar-menu-profile-stat {
+// display: flex;
+// font-size: 14px;
+// text-decoration: none;
+
+// &:not(:first-of-type) {
+// margin-left: 18px;
+// }
+
+// &__value {
+// display: flex;
+// margin-right: 3px;
+// font-weight: 700;
+// color: $primary-text-color;
+// }
+
+// &__label {
+// display: flex;
+// color: $primary-text-color;
+// }
+
+// &:hover {
+// text-decoration: underline;
+// }
+// }
+
+// .sidebar-menu-item {
+// display: flex;
+// padding: 16px 18px;
+// cursor: pointer;
+// text-decoration: none;
+// color: $primary-text-color;
+// font-size: 15px;
+// font-weight: 400;
+// height: 50px;
+// box-sizing: border-box;
+
+// &:hover {
+// background-color: rgba($gab-brand-default, 0.1);
+
+// .fa {
+// color: $primary-text-color;
+// }
+// }
+
+// .fa {
+// margin-right: 10px;
+// }
+
+// &:hover {
+// &__title {
+// color: $primary-text-color;
+// }
+// }
+// }
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/header/index.js b/app/javascript/gabsocial/components/header/index.js
new file mode 100644
index 00000000..a997a96d
--- /dev/null
+++ b/app/javascript/gabsocial/components/header/index.js
@@ -0,0 +1 @@
+export { default } from './header';
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/icon_button/icon_button.js b/app/javascript/gabsocial/components/icon_button/icon_button.js
index 68cf3ce2..88e35f3d 100644
--- a/app/javascript/gabsocial/components/icon_button/icon_button.js
+++ b/app/javascript/gabsocial/components/icon_button/icon_button.js
@@ -44,10 +44,10 @@ export default class IconButton extends PureComponent {
render () {
const style = {
- fontSize: `${this.props.size}px`,
- width: `${this.props.size * 1.28571429}px`,
- height: `${this.props.size * 1.28571429}px`,
- lineHeight: `${this.props.size}px`,
+ // fontSize: `${this.props.size}px`,
+ // width: `${this.props.size * 1.28571429}px`,
+ // height: `${this.props.size * 1.28571429}px`,
+ // lineHeight: `${this.props.size}px`,
...this.props.style,
};
diff --git a/app/javascript/gabsocial/components/media_gallery/media_gallery.scss b/app/javascript/gabsocial/components/media_gallery/media_gallery.scss
index 72111592..936dffd7 100644
--- a/app/javascript/gabsocial/components/media_gallery/media_gallery.scss
+++ b/app/javascript/gabsocial/components/media_gallery/media_gallery.scss
@@ -4,7 +4,6 @@
border: none;
box-sizing: border-box;
position: relative;
- border-radius: 4px;
overflow: hidden;
&.standalone {
@@ -49,7 +48,6 @@
box-sizing: border-box;
margin-top: 8px;
overflow: hidden;
- border-radius: 4px;
position: relative;
width: 100%;
diff --git a/app/javascript/gabsocial/components/page_layout/index.js b/app/javascript/gabsocial/components/page_layout/index.js
new file mode 100644
index 00000000..4c875621
--- /dev/null
+++ b/app/javascript/gabsocial/components/page_layout/index.js
@@ -0,0 +1 @@
+export { default } from './page_layout';
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/page_layout/page_layout.js b/app/javascript/gabsocial/components/page_layout/page_layout.js
new file mode 100644
index 00000000..d85ab439
--- /dev/null
+++ b/app/javascript/gabsocial/components/page_layout/page_layout.js
@@ -0,0 +1,36 @@
+import Header from '../header'
+
+console.log("in the page_layout - styles:", styles);
+
+export default class PageLayout extends PureComponent {
+ static propTypes = {
+ layout: PropTypes.object,
+ };
+
+ render() {
+ const { children, layout } = this.props;
+
+ const right = layout.RIGHT || null;
+
+ return (
+
+ {/*
*/}
+
+
+
+
+ { /* children */ }
+
+
+
+
+
+
+ )
+ }
+
+}
diff --git a/app/javascript/gabsocial/components/page_layout/page_layout.scss b/app/javascript/gabsocial/components/page_layout/page_layout.scss
new file mode 100644
index 00000000..f6f41292
--- /dev/null
+++ b/app/javascript/gabsocial/components/page_layout/page_layout.scss
@@ -0,0 +1,54 @@
+.page {
+ display: flex;
+ flex-direction: row;
+ width: 100%;
+
+ &__top {
+ display: flex;
+ z-index: 105;
+
+ @include size(100%, auto);
+
+ @media (min-width:895px) {
+ top: -290px;
+ position: sticky;
+ }
+ }
+
+ .main {
+ display: flex;
+ flex-basis: auto;
+ flex-direction: column;
+ flex-shrink: 1;
+ flex-grow: 1;
+ align-items: flex-start;
+
+ &__container {
+ display: flex;
+ align-items: stretch;
+ justify-content: space-between;
+ flex-grow: 1;
+ flex-direction: row;
+ width: 990px;
+ }
+ }
+}
+
+.main-contents {
+ display: flex;
+ max-width: 600px;
+ z-index: 1;
+
+ &__inner {
+
+ }
+}
+
+.main-sidebar {
+ display: flex;
+ width: 350px;
+
+ &__inner {
+
+ }
+}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/relative_timestamp/relative_timestamp.js b/app/javascript/gabsocial/components/relative_timestamp/relative_timestamp.js
index 4e2c7ac2..3f1c0007 100644
--- a/app/javascript/gabsocial/components/relative_timestamp/relative_timestamp.js
+++ b/app/javascript/gabsocial/components/relative_timestamp/relative_timestamp.js
@@ -1,4 +1,5 @@
import { injectIntl, defineMessages } from 'react-intl';
+import moment from 'moment';
const messages = defineMessages({
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
diff --git a/app/javascript/gabsocial/components/sidebar_menu/index.js b/app/javascript/gabsocial/components/sidebar_menu/index.js
deleted file mode 100644
index 940f2607..00000000
--- a/app/javascript/gabsocial/components/sidebar_menu/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from './sidebar_menu';
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/sidebar_menu/sidebar_menu.scss b/app/javascript/gabsocial/components/sidebar_menu/sidebar_menu.scss
deleted file mode 100644
index 8d6068d5..00000000
--- a/app/javascript/gabsocial/components/sidebar_menu/sidebar_menu.scss
+++ /dev/null
@@ -1,174 +0,0 @@
-.sidebar-menu {
- display: flex;
- position: fixed;
- flex-direction: column;
- width: 275px;
- height: 100vh;
- top: 0;
- bottom: 0;
- left: 0;
- background: $gab-background-container;
- transform: translateX(-275px);
- transition: all 0.15s linear;
- z-index: 10001;
-
- body.theme-gabsocial-light & {
- background: $gab-background-container-light;
- }
-
- &__root {
- display: none;
- }
-
- &__wrapper {
- display: block;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 10000;
- background-color: transparent;
- transition: background-color 0.2s linear;
- transition-delay: 0.1s;
- }
-
- &__content {
- display: flex;
- flex: 1 1;
- flex-direction: column;
- padding-bottom: 40px;
- overflow: hidden;
- overflow-y: scroll;
- -webkit-overflow-scrolling: touch;
- }
-
- &__section {
- display: block;
- margin: 4px 0;
- border-top: 1px solid lighten($ui-base-color, 4%);
-
- &--borderless {
- margin: 0;
- border-top: none;
- }
- }
-
- @media (max-width: 400px) {
- width: 90vw;
- }
-}
-
-.sidebar-menu__root--visible {
- display: block;
-
- .sidebar-menu {
- transform: translateX(0);
- }
-
- .sidebar-menu__wrapper {
- background-color: rgba(0,0,0,0.3);
- }
-}
-
-.sidebar-menu-header {
- display: flex;
- height: 46px;
- padding: 12px 14px;
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- box-sizing: border-box;
- align-items: center;
-
- &__title {
- display: block;
- font-size: 18px;
- font-weight: 600;
- color: $primary-text-color;
- }
-
- &__btn {
- margin-left: auto;
- }
-}
-
-.sidebar-menu-profile {
- display: block;
- padding: 14px 18px;
-
- &__avatar {
- display: block;
- width: 56px;
- height: 56px;
- }
-
- &__name {
- display: block;
- margin-top: 10px;
-
- .display-name__account {
- display: block;
- margin-top: 2px;
- }
- }
-
- &__stats {
- display: flex;
- margin-top: 12px;
- }
-}
-
-.sidebar-menu-profile-stat {
- display: flex;
- font-size: 14px;
- text-decoration: none;
-
- &:not(:first-of-type) {
- margin-left: 18px;
- }
-
- &__value {
- display: flex;
- margin-right: 3px;
- font-weight: 700;
- color: $primary-text-color;
- }
-
- &__label {
- display: flex;
- color: $primary-text-color;
- }
-
- &:hover {
- text-decoration: underline;
- }
-}
-
-.sidebar-menu-item {
- display: flex;
- padding: 16px 18px;
- cursor: pointer;
- text-decoration: none;
- color: $primary-text-color;
- font-size: 15px;
- font-weight: 400;
- height: 50px;
- box-sizing: border-box;
-
- &:hover {
- background-color: rgba($gab-brand-default, 0.1);
-
- .fa {
- color: $primary-text-color;
- }
- }
-
- .fa {
- margin-right: 10px;
- }
-
- &:hover {
- &__title {
- color: $primary-text-color;
- }
- }
-}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/status/status.js b/app/javascript/gabsocial/components/status/status.js
index 4b8ec007..b077261f 100644
--- a/app/javascript/gabsocial/components/status/status.js
+++ b/app/javascript/gabsocial/components/status/status.js
@@ -403,7 +403,7 @@ class Status extends ImmutablePureComponent {
}
if (account === undefined || account === null) {
- statusAvatar = ;
+ statusAvatar = ;
} else {
statusAvatar = ;
}
@@ -448,21 +448,24 @@ class Status extends ImmutablePureComponent {
})}
data-id={status.get('id')}
>
-
-
-
-
-
-
- {statusAvatar}
-
-
-
+
+
+ {statusAvatar}
+
+
+
+
+
+
+
+
+ •
+ { /* */ }
+ Memes Group
+ •
+ Edited
+
{((!group && status.get('group')) || status.get('revised_at') !== null) && (
diff --git a/app/javascript/gabsocial/components/status/status.scss b/app/javascript/gabsocial/components/status/status.scss
index 8169dba2..35c88713 100644
--- a/app/javascript/gabsocial/components/status/status.scss
+++ b/app/javascript/gabsocial/components/status/status.scss
@@ -1,9 +1,9 @@
.status {
- padding: 8px 10px 8px 68px;
position: relative;
min-height: 54px;
- border-bottom: 1px solid lighten($ui-base-color, 8%);
cursor: default;
+ margin-bottom: 10px;
+ border: 1px solid #171717;
@supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
// Add margin to avoid Edge auto-hiding scrollbar appearing over content.
@@ -88,7 +88,7 @@
@media screen and (min-width:630px) {
.status {
- padding: 15px 15px 15px 78px;
+ padding: 12px 15px 15px 78px;
min-height: 50px;
&__avatar {
@@ -136,24 +136,57 @@
.status__relative-time {
color: $dark-text-color;
- float: right;
- font-size: 14px;
+ font-size: 12px;
}
.status__display-name {
color: $dark-text-color;
}
-.status__info .status__display-name {
- display: block;
- max-width: 100%;
- padding-right: 25px;
+.status__info {
+ display: flex;
+ flex-direction: column;
+ z-index: 4;
+ position: relative;
+ padding: 10px 10px 8px 62px;
+
+ &__dot-seperator {
+ font-size: 15px;
+ color: $dark-text-color;
+
+ @include horizontal-margin(5px);
+ }
+
+ &__attributes {
+ display: flex;
+ margin-top: 2px;
+ align-items: center;
+
+ &__item {
+ font-size: 12px;
+ color: $dark-text-color;
+
+ &--link {
+ cursor: pointer;
+ color: $primary-text-color;
+
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+ }
+ }
+
+ &__actions {
+ display: flex;
+
+ &__icon {
+ margin-left: auto;
+ color: $dark-text-color;
+ }
+ }
}
-.status__info {
- font-size: 15px;
- z-index: 4;
-}
.status__prepend {
margin-left: 68px;
@@ -181,18 +214,11 @@
}
.status__avatar {
- @include size(48px);
+ overflow: hidden;
+ @include circle(42px);
@include abs-position(10px, auto, auto, 10px);
}
-.status__expand {
- cursor: pointer;
-
- @include size(68px, 100%);
- @include abs-position(0, auto, auto, 0);
-}
-
-
.media-spoiler-video {
cursor: pointer;
margin-top: 8px;
diff --git a/app/javascript/gabsocial/components/status_action_bar/status_action_bar.js b/app/javascript/gabsocial/components/status_action_bar/status_action_bar.js
index 5fc5bd29..bb684acf 100644
--- a/app/javascript/gabsocial/components/status_action_bar/status_action_bar.js
+++ b/app/javascript/gabsocial/components/status_action_bar/status_action_bar.js
@@ -6,6 +6,7 @@ import { Link } from 'react-router-dom';
import { openModal } from '../../actions/modal';
import { me, isStaff } from '../../initial_state';
import DropdownMenuContainer from '../../containers/dropdown_menu_container';
+import ComposeFormContainer from '../../features/compose/containers/compose_form_container';
import IconButton from '../icon_button';
import './status_action_bar.scss';
@@ -265,49 +266,67 @@ class StatusActionBar extends ImmutablePureComponent {
return (
-
-
- {
- replyCount !== 0 &&
- {replyCount}
- }
-
+
+
+
+ { /* favoriteCount !== 0 && {favoriteCount} */ }
+
-
-
- {reblogCount !== 0 && {reblogCount}}
-
+
+
+ { /*
+ replyCount !== 0 &&
+ {replyCount}
+ */
+ }
+
-
-
-
-
-
- {favoriteCount !== 0 && {favoriteCount}}
-
+
+
+ { /* reblogCount !== 0 && {reblogCount} */ }
+
-
-
+ {/*
+
+
*/}
+
+ {/*
+
+
*/}
+
+
+ {/**/}
);
diff --git a/app/javascript/gabsocial/components/status_action_bar/status_action_bar.scss b/app/javascript/gabsocial/components/status_action_bar/status_action_bar.scss
index 8e22707f..6c11c721 100644
--- a/app/javascript/gabsocial/components/status_action_bar/status_action_bar.scss
+++ b/app/javascript/gabsocial/components/status_action_bar/status_action_bar.scss
@@ -1,21 +1,51 @@
.status-action-bar {
- display: flex;
- align-items: center;
- margin-top: 25px;
+ display: block;
+ margin-top: 10px;
z-index: 4;
+ @include horizontal-padding(10px);
+
&__dropdown {
@include size(23px);
}
+
+ &__items {
+ display: flex;
+ align-items: center;
+ border-top: 1px solid #161616;
+
+ @include size(100%, 42px);
+ }
+
+ &__comment {
+
+ }
}
.status-action-bar-item {
display: inline-flex;
- margin-right: 22px;
align-items: center;
+ justify-content: center;
+ height: 42px;
+ width: 33%;
+ padding: 5px;
+ box-sizing: border-box;
&__btn {
+ border-radius: 4px;
margin-right: 4px;
+ font-size: 14px;
+ font-weight: 500;
+
+ @include size(100%);
+
+ &:hover {
+ background-color: #000;
+ }
+
+ i {
+ margin-right: 4px;
+ }
}
&__link {
diff --git a/app/javascript/gabsocial/components/status_content/status_content.js b/app/javascript/gabsocial/components/status_content/status_content.js
index 477ef850..7e980647 100644
--- a/app/javascript/gabsocial/components/status_content/status_content.js
+++ b/app/javascript/gabsocial/components/status_content/status_content.js
@@ -167,7 +167,6 @@ export default class StatusContent extends ImmutablePureComponent {
const readMoreButton = (
);
diff --git a/app/javascript/gabsocial/components/status_content/status_content.scss b/app/javascript/gabsocial/components/status_content/status_content.scss
index 77e427d2..14e62cd4 100644
--- a/app/javascript/gabsocial/components/status_content/status_content.scss
+++ b/app/javascript/gabsocial/components/status_content/status_content.scss
@@ -8,7 +8,8 @@
color: $primary-text-color;
@include text-overflow(normal, break-word);
- @include text-sizing(15px, 400, 20px);
+ @include text-sizing(14px, 400, 20px);
+ @include horizontal-padding(10px);
&:focus {
outline: 0;
@@ -102,6 +103,7 @@
border: 0;
background: transparent;
padding: 8px 0 0 0;
+ margin-left: 10px;
@include text-sizing(15px, 400, 20px);
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/group_icon.js b/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/group_icon.js
deleted file mode 100644
index d671049b..00000000
--- a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/group_icon.js
+++ /dev/null
@@ -1,24 +0,0 @@
-const GroupIcon = ({
- className = 'tabs-bar-icon',
- width = '18px',
- height = '18px',
- viewBox = '0 0 48 48'
-}) => (
-
-)
-
-export default GroupIcon
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/home_icon.js b/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/home_icon.js
deleted file mode 100644
index f0b49d7c..00000000
--- a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/home_icon.js
+++ /dev/null
@@ -1,24 +0,0 @@
-const HomeIcon = ({
- className = 'tabs-bar-icon',
- width = '16px',
- height = '16px',
- viewBox = '0 0 48 48'
-}) => (
-
-)
-
-export default HomeIcon
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/notifications_icon.js b/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/notifications_icon.js
deleted file mode 100644
index f0d37034..00000000
--- a/app/javascript/gabsocial/components/tabs_bar/assets/tabs_bar_icon/notifications_icon.js
+++ /dev/null
@@ -1,26 +0,0 @@
-const NotificationsIcon = ({
- className = 'tabs-bar-icon',
- width = '16px',
- height = '16px',
- viewBox = '0 0 48 48'
-}) => (
-
-)
-
-export default NotificationsIcon
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/index.js b/app/javascript/gabsocial/components/tabs_bar/index.js
deleted file mode 100644
index 17102cde..00000000
--- a/app/javascript/gabsocial/components/tabs_bar/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from './tabs_bar';
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/tabs_bar.js b/app/javascript/gabsocial/components/tabs_bar/tabs_bar.js
deleted file mode 100644
index 152f33a3..00000000
--- a/app/javascript/gabsocial/components/tabs_bar/tabs_bar.js
+++ /dev/null
@@ -1,122 +0,0 @@
-import ImmutablePureComponent from 'react-immutable-pure-component';
-import ImmutablePropTypes from 'react-immutable-proptypes';
-import { NavLink, withRouter } from 'react-router-dom';
-import { FormattedMessage } from 'react-intl';
-import { openModal } from '../../actions/modal';
-import { me } from '../../initial_state';
-import SearchContainer from '../../features/compose/containers/search_container';
-import ActionBar from '../../features/compose/components/action_bar';
-import Avatar from '../avatar';
-import NotificationsCounter from '../notification_counter';
-import GabLogo from './assets/gab_logo/gab_logo';
-import {
- GroupIcon,
- HomeIcon,
- NotificationsIcon,
- SearchIcon,
-} from './assets/tabs_bar_icon';
-
-import './tabs_bar.scss';
-
-const mapStateToProps = state => {
- return {
- account: state.getIn(['accounts', me]),
- };
-};
-
-const mapDispatchToProps = (dispatch) => ({
- onOpenCompose() {
- dispatch(openModal('COMPOSE'));
- },
-});
-
-export default @connect(mapStateToProps, mapDispatchToProps)
-@withRouter
-class TabsBar extends ImmutablePureComponent {
-
- static propTypes = {
- history: PropTypes.object.isRequired,
- onOpenCompose: PropTypes.func.isRequired,
- account: ImmutablePropTypes.map.isRequired,
- };
-
- render () {
- const { account, onOpenCompose } = this.props;
-
- if (!account) {
- return (
-
- );
- }
-
- return (
-
- );
- }
-}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/tabs_bar/tabs_bar.scss b/app/javascript/gabsocial/components/tabs_bar/tabs_bar.scss
deleted file mode 100644
index e8f60d7b..00000000
--- a/app/javascript/gabsocial/components/tabs_bar/tabs_bar.scss
+++ /dev/null
@@ -1,204 +0,0 @@
-.tabs-bar {
- display: flex;
- box-sizing: border-box;
- background: #000;
- flex: 0 0 auto;
- overflow-y: auto;
- height: 50px;
- position: sticky;
- top: 0;
- z-index: 4;
-
- &__container {
- display: flex;
- box-sizing: border-box;
- width: 100%;
- max-width: 1200px;
- padding: 0 15px;
-
- @include margin-center;
-
- // NOTE - might need to adjust this based on column sizing
- @media screen and (max-width: $nav-breakpoint-4) {
- padding: 0 20px;
- }
-
- }
-
- &__split {
- display: flex;
- width: auto;
-
- &--left {
- margin-right: auto;
- }
-
- &--right {
- margin-left: auto;
- padding-top: 8px;
-
- @media screen and (max-width: $nav-breakpoint-3) {
- padding-top: 4px;
- }
- }
- }
-
- &__search-container {
- display: block;
- width: 251px;
-
- @media screen and (max-width: $nav-breakpoint-2) {
- display: none;
- }
-
- .search {
- margin: 0;
- }
- }
-
- &__profile {
- position: relative;
- overflow: hidden;
- margin: 0 0 0 20px;
-
- @include size(34px);
-
- @media screen and (max-width: $nav-breakpoint-3) {
- margin: 0;
-
- @include size(42px);
- }
-
- .account__avatar {
- background-size: 34px 34px;
-
- @include size(34px);
-
- @media screen and (max-width: $nav-breakpoint-3) {
- background-size: 42px 42px;
-
- @include size(42px);
- }
- }
-
- .compose__action-bar {
- display: block;
-
- @include abs-position(0, 0, 0, -5px);
-
- i {
- display: none;
- }
- }
- }
-
- &__button-compose {
- display: block;
- margin-left: 20px;
- border-radius: 17px;
-
- @include size(70px, 34px);
-
- @media screen and (max-width: $nav-breakpoint-3) {
- display: none;
- }
-
- &:hover {
- background-color: lighten($gab-brand-default, 5%);
- }
-
- span {
- display: none;
- }
- }
-
- &__button {
- margin-left: 12px;
- height: 34px;
- }
-
- .flex {
- display: flex;
- }
-
- @media screen and (max-width: 630px) and (max-height: 400px) {
- will-change: margin-top;
- transition: margin-top 400ms 100ms;
- }
-}
-
-.tabs-bar-item {
- display: flex;
- position: relative;
- flex: 1 1 auto;
- margin: 0 25px 0 0;
- color: white;
- text-decoration: none;
- padding-top: 14px;
- box-sizing: border-box;
-
- @media screen and (max-width: $nav-breakpoint-1) {
- margin: 0;
- padding-top: 12px !important;
-
- @include size(46px, 50px);
-
- &.active {
- border-bottom: 2px solid $gab-brand-default;
- }
-
- &>span {
- display: none;
- }
- }
-
- &.optional {
- display: none;
-
- @media screen and (max-width: $nav-breakpoint-2) {
- display: flex;
- }
- }
-
- &.active {
- color: $gab-text-highlight;
-
- .tabs-bar-icon__path {
- fill: $gab-text-highlight;
- }
- }
-
- &--logo {
- display: block;
- margin-right: 35px;
- padding-top: 10px;
- border: none;
- box-sizing: border-box;
-
- @include size(50px);
-
- @media (min-width: $nav-breakpoint-4) and (max-width: $nav-breakpoint-1) {
- margin-right: 15px;
- }
-
- @media screen and (max-width: $nav-breakpoint-4) {
- display: none;
- }
-
- & span {
- display: none !important;
- }
- }
-
- .tabs-bar-icon {
- margin-right: 6px;
-
- &__path {
- fill: $white;
- }
-
- @media screen and (max-width: $nav-breakpoint-1) {
- margin: 0 auto;
- }
- }
-}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/components/verified_icon/verified_icon.scss b/app/javascript/gabsocial/components/verified_icon/verified_icon.scss
index d31d6910..c8a229e4 100644
--- a/app/javascript/gabsocial/components/verified_icon/verified_icon.scss
+++ b/app/javascript/gabsocial/components/verified_icon/verified_icon.scss
@@ -1,6 +1,7 @@
.verified-icon {
display: inline-block;
- margin: 0 4px 0 1px;
+ margin-top: 1px;
+ margin-left: 4px;
vertical-align: top;
position: relative;
diff --git a/app/javascript/gabsocial/features/compose/components/upload_form/index.js b/app/javascript/gabsocial/features/compose/components/upload_form/index.js
index e69de29b..be54af57 100644
--- a/app/javascript/gabsocial/features/compose/components/upload_form/index.js
+++ b/app/javascript/gabsocial/features/compose/components/upload_form/index.js
@@ -0,0 +1 @@
+export { default } from './upload_form';
\ No newline at end of file
diff --git a/app/javascript/gabsocial/features/status/components/detailed_status/detailed_status.js b/app/javascript/gabsocial/features/status/components/detailed_status/detailed_status.js
index 776005f7..dfd0f928 100644
--- a/app/javascript/gabsocial/features/status/components/detailed_status/detailed_status.js
+++ b/app/javascript/gabsocial/features/status/components/detailed_status/detailed_status.js
@@ -203,9 +203,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
{media}
- {status.get('quote') &&
}
+ /> */ }
diff --git a/app/javascript/gabsocial/features/ui/ui.js b/app/javascript/gabsocial/features/ui/ui.js
index dffda6ec..3c0ef068 100644
--- a/app/javascript/gabsocial/features/ui/ui.js
+++ b/app/javascript/gabsocial/features/ui/ui.js
@@ -20,12 +20,10 @@ import NotificationsContainer from '../../containers/notifications_container';
import LoadingBarContainer from '../../containers/loading_bar_container';
import ModalContainer from '../../containers/modal_container';
import UploadArea from '../../components/upload_area';
-import TabsBar from '../../components/tabs_bar';
import FooterBar from '../../components/footer_bar';
// import TrendsPanel from './components/trends_panel';
import { WhoToFollowPanel } from '../../components/panel';
import LinkFooter from '../../components/link_footer';
-import SidebarMenu from '../../components/sidebar_menu';
import ProfilePage from '../../pages/profile_page';
// import GroupsPage from 'gabsocial/pages/groups_page';
import GroupPage from '../../pages/group_page';
@@ -534,19 +532,19 @@ class UI extends PureComponent {
return (
-
{children}
-
+ { /* */ }
- {me && floatingActionButton}
+ { /* me && floatingActionButton */ }
+ { /*
- {me && }
+ */ }
);
diff --git a/app/javascript/gabsocial/features/ui/util/wrapped_route.js b/app/javascript/gabsocial/features/ui/util/wrapped_route.js
index ae592f63..0d0b4b4a 100644
--- a/app/javascript/gabsocial/features/ui/util/wrapped_route.js
+++ b/app/javascript/gabsocial/features/ui/util/wrapped_route.js
@@ -1,5 +1,5 @@
import { Route } from 'react-router-dom';
-import ColumnsArea from '../../../components/columns_area';
+import PageLayout from '../../../components/page_layout';
import BundleColumnError from '../../../components/bundle_column_error';
import Bundle from './bundle';
import { me } from '../../../initial_state';
@@ -42,11 +42,11 @@ export default class WrappedRoute extends Component {
{Component =>
(
-
+
{content}
-
+
)
}
diff --git a/app/javascript/gabsocial/pages/group_page.js b/app/javascript/gabsocial/pages/group_page.js
index 390af745..b575dc42 100644
--- a/app/javascript/gabsocial/pages/group_page.js
+++ b/app/javascript/gabsocial/pages/group_page.js
@@ -5,7 +5,7 @@ import { fetchGroup } from '../actions/groups';
import HeaderContainer from '../features/groups/timeline/containers/header_container';
import GroupPanel from '../features/groups/timeline/components/panel';
import GroupSidebarPanel from '../features/groups/sidebar_panel';
-import ColumnsArea from '../components/columns_area';
+import PageLayout from '../components/page_layout';
import { WhoToFollowPanel } from '../components/panel';
import LinkFooter from '../components/link_footer';
import PromoPanel from '../components/promo_panel';
@@ -35,7 +35,7 @@ class GroupPage extends ImmutablePureComponent {
const top = group ? : null;
return (
-
{children}
-
+
)
}
}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/pages/home_page.js b/app/javascript/gabsocial/pages/home_page.js
index 44e2e757..3bee39e6 100644
--- a/app/javascript/gabsocial/pages/home_page.js
+++ b/app/javascript/gabsocial/pages/home_page.js
@@ -3,7 +3,7 @@ import GroupSidebarPanel from '../features/groups/sidebar_panel';
import LinkFooter from '../components/link_footer';
import PromoPanel from '../components/promo_panel';
import UserPanel from '../components/user_panel';
-import ColumnsArea from '../components/columns_area';
+import PageLayout from '../components/page_layout';
import TimelineComposeBlock from '../components/timeline_compose_block';
export default class HomePage extends PureComponent {
@@ -11,26 +11,20 @@ export default class HomePage extends PureComponent {
const {children} = this.props;
return (
-
-
- ),
- LEFT: (
-
-
- )
+ ),
}}
>
{children}
-
+
)
}
}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/pages/profile_page.js b/app/javascript/gabsocial/pages/profile_page.js
index b5072ba7..06b9ef2a 100644
--- a/app/javascript/gabsocial/pages/profile_page.js
+++ b/app/javascript/gabsocial/pages/profile_page.js
@@ -5,7 +5,7 @@ import HeaderContainer from '../features/account_timeline/containers/header_cont
import ProfileInfoPanel from '../features/account_timeline/components/profile_info_panel/profile_info_panel';
import { WhoToFollowPanel, SignUpPanel } from '../components/panel';
import LinkFooter from '../components/link_footer';
-import ColumnsArea from '../components/columns_area';
+import PageLayout from '../components/page_layout';
const mapStateToProps = (state, { params: { username }, withReplies = false }) => {
const accounts = state.getIn(['accounts']);
@@ -48,7 +48,7 @@ class ProfilePage extends ImmutablePureComponent {
const { accountId, account, accountUsername } = this.props;
return (
- ,
RIGHT: (
@@ -62,7 +62,7 @@ class ProfilePage extends ImmutablePureComponent {
}}
>
{this.props.children}
-
+
)
}
}
\ No newline at end of file
diff --git a/app/javascript/gabsocial/pages/search_page.js b/app/javascript/gabsocial/pages/search_page.js
index 21117c0c..dba88ec2 100644
--- a/app/javascript/gabsocial/pages/search_page.js
+++ b/app/javascript/gabsocial/pages/search_page.js
@@ -2,7 +2,7 @@ import { Fragment } from 'react';
import Header from '../features/search/components/header';
import LinkFooter from '../components/link_footer';
import { WhoToFollowPanel, SignUpPanel } from '../components/panel';
-import ColumnsArea from '../components/columns_area';
+import PageLayout from '../components/page_layout';
export default class SearchPage extends PureComponent {
@@ -12,7 +12,7 @@ export default class SearchPage extends PureComponent {
render() {
return (
- ,
RIGHT: (
@@ -25,7 +25,7 @@ export default class SearchPage extends PureComponent {
}}
>
{this.props.children}
-
+
)
}
diff --git a/app/javascript/styles/gabsocial/reset.scss b/app/javascript/styles/gabsocial/reset.scss
index 2906b3ac..fa7c414f 100644
--- a/app/javascript/styles/gabsocial/reset.scss
+++ b/app/javascript/styles/gabsocial/reset.scss
@@ -22,6 +22,7 @@ time, mark, audio, video {
font-size: 100%;
font: inherit;
vertical-align: baseline;
+ box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
diff --git a/app/javascript/styles/global.css b/app/javascript/styles/global.css
new file mode 100644
index 00000000..381ed736
--- /dev/null
+++ b/app/javascript/styles/global.css
@@ -0,0 +1,184 @@
+html,body{
+ height: 100%;
+}
+
+body{
+ -ms-overflow-style:scrollbar;
+ overflow-y:scroll;
+ overscroll-behavior-y:none;
+}
+
+html {
+ -ms-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+body {
+ margin: 0;
+}
+
+.default {
+ align-items: stretch;
+ border: 0 solid black;
+ box-sizing: border-box;
+ display: flex;
+ flex-basis: auto;
+ flex-direction: column;
+ flex-shrink: 0;
+ margin-bottom: 0px;
+ margin-left: 0px;
+ margin-right: 0px;
+ margin-top: 0px;
+ min-height: 0px;
+ min-width: 0px;
+ padding-bottom: 0px;
+ padding-left: 0px;
+ padding-right: 0px;
+ padding-top: 0px;
+ position: relative;
+ z-index: 0;
+}
+
+.text {
+ font: 14px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
+}
+
+.color-black {
+ color: rgba(0, 0, 0, 1.00);
+}
+
+.inline {
+ display: inline;
+}
+
+.wrap {
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+
+.inherit {
+ color: inherit;
+ font: inherit;
+ white-space: inherit;
+}
+
+.r-13awgt0 {
+ -ms-flex-negative: 1;
+ -ms-flex-positive: 1;
+ -ms-flex-preferred-size: 0%;
+ -webkit-box-flex: 1;
+ -webkit-flex-basis: 0%;
+ -webkit-flex-grow: 1;
+ -webkit-flex-shrink: 1;
+ flex-basis: 0%;
+ flex-grow: 1;
+ flex-shrink: 1;
+}
+
+.r-4qtqp9 {
+ display: inline-block;
+}
+
+.r-ywje51 {
+ margin-bottom: auto;
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: auto;
+}
+
+.r-hvic4v {
+ display: none;
+}
+
+.r-1adg3ll {
+ display: block;
+}
+
+
+.r-12vffkv>* {
+ pointer-events: auto;
+}
+
+.r-12vffkv {
+ pointer-events: none !important;
+}
+
+.r-14lw9ot {
+ background-color: rgba(255, 255, 255, 1.00);
+}
+
+.r-1p0dtai {
+ bottom: 0px;
+}
+
+.r-1d2f490 {
+ left: 0px;
+}
+
+.r-1xcajam {
+ position: fixed;
+}
+
+.r-zchlnj {
+ right: 0px;
+}
+
+.r-ipm5af {
+ top: 0px;
+}
+
+.r-yyyyoo {
+ fill: currentcolor;
+}
+
+.r-1xvli5t {
+ height: 1.25em;
+}
+
+.r-dnmrzs {
+ max-width: 100%;
+}
+
+.r-bnwqim {
+ position: relative;
+}
+
+.r-1plcrui {
+ vertical-align: text-bottom;
+}
+
+.r-lrvibr {
+ -moz-user-select: none;
+ -ms-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+}
+
+.color-brand {
+ color: rgba(29, 161, 242, 1.00);
+}
+
+.height-72-px {
+ height: 72px;
+}
+
+.position-relative {
+ position: absolute;
+}
+
+.width-72-px {
+ width: 72px;
+}
+
+.top-60-pc {
+ top: 60%;
+}
+
+.line-height-2 {
+ line-height: 2em;
+}
+
+.text-align-center {
+ text-align: center;
+}
\ No newline at end of file
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 991c4a12..6e59c661 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -40,7 +40,4 @@
= yield :header_tags
%body{ class: body_classes }
- = content_for?(:content) ? yield(:content) : yield
-
- %div{ style: 'display: none'}
- = render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg')
+ = content_for?(:content) ? yield(:content) : yield
\ No newline at end of file
diff --git a/config/webpack/rules/css.js b/config/webpack/rules/css.js
index 10f5f91e..5eea451f 100644
--- a/config/webpack/rules/css.js
+++ b/config/webpack/rules/css.js
@@ -18,7 +18,7 @@ module.exports = {
options: {
sourceMap: true,
importLoaders: 2,
- // modules: true,
+ modules: true,
// localIdentName: '[name]',
},
},
diff --git a/config/webpack/shared.js b/config/webpack/shared.js
index 30839529..39194208 100644
--- a/config/webpack/shared.js
+++ b/config/webpack/shared.js
@@ -9,7 +9,7 @@ const extname = require('path-complete-extname');
const { env, settings, themes, output } = require('./configuration');
const rules = require('./rules');
const localePackPaths = [
- '/Users/m3/Documents/dev/gab-social-2/tmp/packs/locale_en.js',
+ '/Users/m3/Documents/dev/gab-social/tmp/packs/locale_en.js',
];
//require('./generateLocalePacks');
@@ -77,6 +77,7 @@ module.exports = {
PureComponent: ['react', 'PureComponent'],
connect: ['react-redux', 'connect'],
PropTypes: 'prop-types',
+ styles: '/Users/m3/Documents/dev/gab-social/app/javascript/styles/global.css',
}),
new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))),
new webpack.NormalModuleReplacementPlugin(