This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree 2 files changed +4
-6
lines changed
components/learn/syllabus-tree
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ export default class SyllabusTree extends React.Component {
34
34
font-size: 0.85rem;
35
35
user-select: none;
36
36
border-left: 2px solid #fff;
37
+ color: #888;
37
38
:hover {
38
39
background-color: #f5f5f5;
39
40
border-left: 2px solid #374355;
40
41
cursor: pointer;
41
42
}
42
43
}
43
44
44
- & .chapter- active {
45
+ & .active {
45
46
color: #374355;
46
47
background-color: #f5f5f5;
47
48
border-left: 2px solid #374355;
@@ -75,9 +76,7 @@ export default class SyllabusTree extends React.Component {
75
76
onClick = { ( ) => this . handleClick ( i ) } >
76
77
{ unitNode . chapters . map ( chapter => (
77
78
< div
78
- className = { `chapter ${
79
- this . state . activeChapter === chapter . url ? 'chapter-active' : 'chapter-inactive'
80
- } `}
79
+ className = { `chapter ${ this . state . activeChapter === chapter . url ? 'active' : '' } ` }
81
80
key = { chapter . url }
82
81
onClick = { ( ) => this . clickOnChapter ( chapter , unitNode . unit . name ) } >
83
82
{ chapter . name }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { space } from 'styled-system';
6
6
import Layout from '../../components/common/layout' ;
7
7
import BannerSection from '../../components/common/banner' ;
8
8
import SubjectCard from '../../components/learn/subject-card' ;
9
- import { baseContainer , graySecondary } from '../../utils/base.styles' ;
9
+ import { baseContainer } from '../../utils/base.styles' ;
10
10
import { listOfSubjects } from '../../utils/mock-data' ;
11
11
12
12
const LearnSection = styled . section `
@@ -17,7 +17,6 @@ const LearnSection = styled.section`
17
17
18
18
const FilterContainer = styled . div `
19
19
${ space } ;
20
- border-bottom: 1px solid ${ graySecondary } ;
21
20
& .title_filter {
22
21
text-align: center;
23
22
}
You can’t perform that action at this time.
0 commit comments