diff --git a/site/theme/static/common.less b/site/theme/static/common.less index cf8f9bbb0e65..b3ded24c81e5 100644 --- a/site/theme/static/common.less +++ b/site/theme/static/common.less @@ -33,17 +33,25 @@ a { background: #fff; min-height: 500px; overflow: hidden; - border-left: 1px solid @site-border-color-split; position: relative; - margin-left: -1px; } .main-menu { z-index: 1; + + &-inner { + overflow-x: hidden; + overflow-y: hidden; + max-height: 100vh; + } + + &:hover &-inner { + overflow-y: auto; + } } .aside-container { - padding-bottom: 50px; + padding-bottom: 48px; font-family: Avenir, @font-family; &.ant-menu-inline .ant-menu-submenu-title h4, diff --git a/site/theme/static/footer.less b/site/theme/static/footer.less index 2b33f92686b9..1ea525bdee3e 100644 --- a/site/theme/static/footer.less +++ b/site/theme/static/footer.less @@ -8,8 +8,9 @@ footer { background-color: #000; position: relative; z-index: 100; + margin-left: -1px; color: rgba(255, 255, 255, 0.65); - box-shadow: 0 1000px 0 1000px #fff; + .ant-row { text-align: center; .footer-center { diff --git a/site/theme/static/page-nav.less b/site/theme/static/page-nav.less index 6248fe410ba2..8d2a54633d2a 100644 --- a/site/theme/static/page-nav.less +++ b/site/theme/static/page-nav.less @@ -1,9 +1,7 @@ .prev-next-nav { - position: absolute; - bottom: 0; - left: 0; - width: ~'calc(100% - 194px - 64px)'; margin-left: 64px; + margin-right: 64px; + overflow: hidden; font-size: 14px; border-top: 1px solid @site-border-color-split; diff --git a/site/theme/template/Content/MainContent.jsx b/site/theme/template/Content/MainContent.jsx index 23ed04319118..d94bb711ed60 100644 --- a/site/theme/template/Content/MainContent.jsx +++ b/site/theme/template/Content/MainContent.jsx @@ -1,10 +1,12 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'bisheng/router'; -import { Row, Col, Menu, Icon } from 'antd'; +import { Row, Col, Menu, Icon, Affix } from 'antd'; import classNames from 'classnames'; import MobileMenu from 'rc-drawer'; import Article from './Article'; +import PrevAndNext from './PrevAndNext'; +import Footer from '../Layout/Footer'; import ComponentDoc from './ComponentDoc'; import * as utils from '../utils'; @@ -277,39 +279,21 @@ export default class MainContent extends React.PureComponent { ) : (