Skip to content

Commit

Permalink
Merge pull request #1268 from LiskHQ/1201-align-size-gray-part
Browse files Browse the repository at this point in the history
Align size of gray parts - Closes #1201
  • Loading branch information
michaeltomasik committed Sep 21, 2018
2 parents c78761b + 6082a5b commit 77b6def
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 17 deletions.
33 changes: 31 additions & 2 deletions src/components/help/help.css
Expand Up @@ -10,6 +10,23 @@
flex-direction: row;
align-items: flex-start;
padding: 0;
background-color: rgb(0, 0, 0, 0);

& > aside {
display: flex;
height: 100%;
background: #f5f8fc;
padding: 40px 30px;
justify-content: space-between;
flex-direction: column;
box-sizing: border-box;
}

& > section {
background: var(--color-white);
flex-basis: 70%;
max-width: 70%;
}

& h2 {
font-size: var(--font-size-h3);
Expand Down Expand Up @@ -107,7 +124,19 @@
}

@media (--medium-viewport) {
.helpSection:first-child {
display: none;
.sideBar:first-child {
flex: 0 0 30%;
width: 100%;
max-width: 100%;
}

.wrapper {
flex-direction: column;

& > section {
background: none;
flex-basis: 100%;
max-width: 100%;
}
}
}
20 changes: 11 additions & 9 deletions src/components/help/help.js
Expand Up @@ -22,15 +22,17 @@ class Help extends React.Component {
const chatIcon = () => (<span className={styles.inlineIcon}><FontIcon>conversation</FontIcon><b>{this.props.t(' Chat')}</b></span>);
return (
<Box className={styles.wrapper}>
<aside className={`${grid['col-sm-12']} ${grid['col-md-4']} ${styles.helpSection} ${styles.sideBar}`}>
<h2>{this.props.t('Help')}</h2>
<p>{this.props.t('Search through our tutorials, FAQs or connect to our community all over the world.')}</p>
{
this.props.account.address ?
<a className='help-onboarding' onClick={() => this.initOnboarding() }>{this.props.t('New to Hub? Take a tour')}
<FontIcon>arrow-right</FontIcon>
</a> : null
}
<aside className={`${grid['col-sm-12']} ${grid['col-md-4']} ${styles.sideBar}`}>
<header>
<h2>{this.props.t('Help')}</h2>
<p>{this.props.t('Search through our tutorials, FAQs or connect to our community all over the world.')}</p>
{
this.props.account.address ?
<a className='help-onboarding' onClick={() => this.initOnboarding() }>{this.props.t('New to Hub? Take a tour')}
<FontIcon>arrow-right</FontIcon>
</a> : null
}
</header>
</aside>

<section className={`${grid['col-sm-12']} ${grid['col-md-8']} ${styles.helpSection} help-articles`}>
Expand Down
3 changes: 1 addition & 2 deletions src/components/menuBar/menuBar.css
Expand Up @@ -8,7 +8,7 @@

.menuBar {
display: none;
z-index: 4 !important;
z-index: 100 !important;
}

.openMenu {
Expand Down Expand Up @@ -39,7 +39,6 @@
font-size: var(--menu-bar-font-size-m);
font-family: var(--heading-font);
background-color: var(--color-white);
z-index: var(--menubar-index);
flex-direction: row-reverse;
justify-content: space-between;
}
Expand Down
26 changes: 24 additions & 2 deletions src/components/setting/setting.css
Expand Up @@ -24,7 +24,6 @@

& > aside {
display: flex;
flex: 0 0 30%;
height: 100%;
background: #f5f8fc;
padding: 40px 30px;
Expand All @@ -38,7 +37,6 @@
}

& > section {
flex: 1;
background: #fff;
overflow: auto;
padding: 40px 50px;
Expand Down Expand Up @@ -156,11 +154,35 @@
}
}

@media (--medium-viewport) {
aside:first-child {
flex-basis: 30%;
max-width: 30%;
}

.wrapper {
& > section {
flex-basis: 70%;
max-width: 70%;
}
}
}

@media (--small-viewport) {
aside:first-child {
flex: 0 0 30%;
max-width: 100%;
}

.wrapper {
position: relative;
margin-bottom: 62px;
flex-direction: column;

& > section {
flex-basis: 100%;
max-width: 100%;
}
}

.carouselNav {
Expand Down
6 changes: 4 additions & 2 deletions src/components/setting/setting.js
@@ -1,5 +1,7 @@
import React from 'react';
import { Link } from 'react-router-dom';
import grid from 'flexboxgrid/dist/flexboxgrid.css';

// import ReactSwipe from 'react-swipe';
import Checkbox from '../toolbox/sliderCheckbox';
import styles from './setting.css';
Expand Down Expand Up @@ -58,13 +60,13 @@ class Setting extends React.Component {
const activeCurrency = settings.currency || settingsConst.currencies[0];

return (<Box className={styles.wrapper}>
<aside>
<aside className={`${grid['col-sm-12']} ${grid['col-md-4']}`}>
<header>
<h4>{t('Settings')}</h4>
<p>{t('Set up Lisk Hub and your account.')}</p>
</header>
</aside>
<section>
<section className={`${grid['col-sm-12']} ${grid['col-md-8']}`}>
<h4 className={`${allowAuthClass}`}>{t('Security')}</h4>
<div className={styles.item}>
<label className={`${allowAuthClass}`}>{t('2nd passphrase (Fee: 5 LSK)')}</label>
Expand Down
11 changes: 11 additions & 0 deletions src/components/votesPreview/votesPreview.css
Expand Up @@ -239,6 +239,11 @@

& .footerWrapper {
margin: 0 calc(-1 * var(--box-padding-left-M));
position: fixed;
width: 100%;
bottom: 72px;
left: var(--box-padding-left-M);
z-index: 3;

& .button {
width: 100%;
Expand Down Expand Up @@ -286,6 +291,12 @@
}

@media (--small-viewport) {
.wrapper {
& .footerWrapper {
bottom: 63px;
}
}

.surpassMessage.visible {
bottom: var(--footer-height-s);
}
Expand Down
10 changes: 10 additions & 0 deletions src/components/voting/voting.css
Expand Up @@ -8,6 +8,15 @@
.wrapper {
width: 100%;
box-shadow: var(--normal-shadow);
margin: 0;

& > aside {
padding-left: 0;
}

& > section {
padding-right: 0;
}
}

.sideBar {
Expand Down Expand Up @@ -40,6 +49,7 @@
bottom: var(--footer-height-m);
max-height: 100%;
height: auto;
max-width: 100%;
}
}

Expand Down

0 comments on commit 77b6def

Please sign in to comment.