fix(client): guide layout
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { StaticQuery, graphql } from 'gatsby';
|
import { StaticQuery, graphql } from 'gatsby';
|
||||||
import { Col, Row } from '@freecodecamp/react-bootstrap';
|
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';
|
||||||
|
|
||||||
import { NavigationContext } from '../../contexts/GuideNavigationContext';
|
import { NavigationContext } from '../../contexts/GuideNavigationContext';
|
||||||
import DefaultLayout from './Default';
|
import DefaultLayout from './Default';
|
||||||
@ -61,6 +61,7 @@ const Layout = ({ children }) => (
|
|||||||
}) => (
|
}) => (
|
||||||
<DefaultLayout>
|
<DefaultLayout>
|
||||||
<Spacer size={2} />
|
<Spacer size={2} />
|
||||||
|
<Grid>
|
||||||
<Row>
|
<Row>
|
||||||
<Col
|
<Col
|
||||||
md={4}
|
md={4}
|
||||||
@ -85,6 +86,7 @@ const Layout = ({ children }) => (
|
|||||||
</main>
|
</main>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
</Grid>
|
||||||
</DefaultLayout>
|
</DefaultLayout>
|
||||||
)}
|
)}
|
||||||
</NavigationContext>
|
</NavigationContext>
|
||||||
|
@ -61,14 +61,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb > .active {
|
.breadcrumb > .active {
|
||||||
color: #555
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
overflow-y: auto;
|
/* 100vh - (navbar height) - (spacer height) */
|
||||||
height: 92vh;
|
min-height: calc(100vh - 38px - 60px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content img {
|
.content img {
|
||||||
@ -93,7 +93,6 @@
|
|||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 400px) {
|
@media (max-width: 400px) {
|
||||||
.fcc_searchBar .ais-Hits {
|
.fcc_searchBar .ais-Hits {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
@ -116,7 +115,6 @@
|
|||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.navContainer {
|
.navContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -172,7 +170,7 @@
|
|||||||
.navbar-toggle {
|
.navbar-toggle {
|
||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-right: 0px;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-toggle .icon-bar {
|
.navbar-toggle .icon-bar {
|
||||||
@ -242,30 +240,21 @@
|
|||||||
|
|
||||||
.navPanelUl {
|
.navPanelUl {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panelStyle {
|
.panelStyle {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
border-radius: 0px;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
color: #006400;
|
color: #006400;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sideNav {
|
.sideNav {
|
||||||
overflow-y: scroll;
|
|
||||||
max-height: 90vh;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 992px) {
|
|
||||||
.sideNav {
|
|
||||||
overflow-y: auto;
|
|
||||||
max-height: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.stubbed {
|
.stubbed {
|
||||||
color: #777;
|
color: #777;
|
||||||
}
|
}
|
||||||
@ -283,7 +272,7 @@
|
|||||||
.title {
|
.title {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0px;
|
border-radius: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,12 +283,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 992px) {
|
@media (max-width: 992px) {
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
overflow-y: hidden;
|
min-height: auto;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-link {
|
.skip-link {
|
||||||
|
Reference in New Issue
Block a user