File tree Expand file tree Collapse file tree 2 files changed +32
-9
lines changed
Expand file tree Collapse file tree 2 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import '../../css/lesson/LessonNav.scss';
66const LessonNav = ( { order, base_path, course_size} ) => (
77 < div className = "lesson-nav" >
88 { order !== 0
9- ? < button type = "button" className = 'btn' >
9+ ? < button type = "button" className = 'btn prev-btn ' >
1010 < Link to = { `/courses/${ base_path } /${ order - 1 } ` } > ← Prev</ Link >
1111 </ button >
1212 : '' }
1313 { order !== course_size - 1
14- ? < button type = "button" className = "btn" >
14+ ? < button type = "button" className = "btn next-btn " >
1515 < Link to = { `/courses/${ base_path } /${ order + 1 } ` } > Next →</ Link >
1616 </ button >
1717 : '' }
Original file line number Diff line number Diff line change 11.lesson-nav {
2- display : flex ;
3- justify-content : space-between ;
42 margin-top : -1rem ;
53 margin-bottom : 2rem ;
64
75 .btn {
8- font-family : var (--fontfamily );
9- background-color : var (--navy );
10- color :var (--cream );
11- font-size : 1rem ;
12- padding : 0.75rem 1.5rem ;
6+ border : none ;
7+
8+ a {
9+ font-family : var (--fontfamily );
10+ background-color : var (--navy );
11+ font-size : 1rem ;
12+ height : 100% ;
13+ width : 100% ;
14+ color :var (--cream );
15+ text-decoration : none ;
16+ padding : 0.75rem 1.5rem ;
17+ }
18+
19+ a :hover {
20+ background-color : var (--brown );
21+ }
22+ }
23+
24+ .prev-btn {
25+ float : left ;
1326 }
27+
28+ .next-btn {
29+ float : right ;
30+ }
31+ }
32+
33+ .lesson-nav :after {
34+ content : ' ' ;
35+ display : block ;
36+ clear : both ;
1437}
You can’t perform that action at this time.
0 commit comments