This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ const CurriculumSection = styled.section`
2424 border-right: 1px solid #f5f5f5;
2525 min-width: 250px;
2626 }
27+ & .toc_sticky {
28+ ${ breakpoints . xs } {
29+ position: sticky;
30+ z-index: 3;
31+ left: 0;
32+ margin-top: 0.5rem;
33+ top: 10rem;
34+ }
35+ }
2736 & .toc_title {
2837 background-color: #374355;
2938 color: #fff;
@@ -37,11 +46,10 @@ const CurriculumSection = styled.section`
3746
3847const Fab = styled . div `
3948 position: sticky;
40- top: 0.5rem;
4149 z-index: 3;
4250 left: 0;
4351 margin-top: 0.5rem;
44- top: 3rem ;
52+ top: 10rem ;
4553 display: none;
4654 & .fab_symbol {
4755 opacity: 0.5;
@@ -104,8 +112,10 @@ export default class Subject extends React.Component {
104112 < Flex column = { false } >
105113 { this . state . isSidebarOpen ? (
106114 < Box width = { [ 0 , 0.2 ] } flex = { '1 1 auto' } className = "box_toc" >
107- < div className = "toc_title" > Table of content</ div >
108- < SyllabusTree data = { laravelSyllabus } changeChapter = { this . changeChapter } />
115+ < div className = "toc_sticky" >
116+ < div className = "toc_title" > Table of content</ div >
117+ < SyllabusTree data = { laravelSyllabus } changeChapter = { this . changeChapter } />
118+ </ div >
109119 </ Box >
110120 ) : null }
111121 < Box width = { [ 1 , 0.8 ] } flex = { '1 1 auto' } px = { [ 1 , 2 ] } className = "box_content" >
You can’t perform that action at this time.
0 commit comments