diff --git a/site/common/styles/common.less b/site/common/styles/common.less index bcae7aaab1..dd390f8eb3 100644 --- a/site/common/styles/common.less +++ b/site/common/styles/common.less @@ -18,6 +18,10 @@ .sidebar { padding-bottom: 50px; + + a[disabled] { + color: #ccc; + } } .sidebar .chinese { diff --git a/site/component/MainContent/index.jsx b/site/component/MainContent/index.jsx index c103e69831..c3b8ea21b8 100644 --- a/site/component/MainContent/index.jsx +++ b/site/component/MainContent/index.jsx @@ -9,18 +9,19 @@ export default class MainContent extends React.Component { return props.menuItems.map((item) => { const key = item.english.toLowerCase(); const text = item.chinese || item.english; + const disabled = item.disabled === 'true'; const child = !item.link ? - + { text } : - + { text } ; return ( -