Skip to content

Commit b74c9ba

Browse files
committed
restyle buttons
1 parent 570c8ed commit b74c9ba

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

src/components/lesson/LessonNav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import '../../css/lesson/LessonNav.scss';
66
const 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
: ''}

src/css/lesson/LessonNav.scss

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,37 @@
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
}

0 commit comments

Comments
 (0)