Skip to content

Commit fe226b9

Browse files
committed
(refactor): Optimize and refactor Chapters styles
1 parent 76897f3 commit fe226b9

File tree

2 files changed

+35
-25
lines changed

2 files changed

+35
-25
lines changed

styles/chapters.styl

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1-
.chapter-list ul {
2-
list-style: none;
3-
padding-left: 0px;
4-
}
1+
@import 'settings/*'
52

6-
.chapter-list li {
7-
margin: 5px;
8-
width: 250px;
9-
border-radius: 3px;
10-
padding-bottom: 0px;
11-
display: inline-block;
12-
border: 2px solid #333;
13-
-webkit-transition: background-color 300ms, border 500ms;
14-
transition: background-color 300ms, border 500ms;
15-
}
3+
.chapter-list {
4+
ul {
5+
list-style: none;
6+
padding-left: 0;
7+
}
168

17-
.chapter-list a {
18-
color: black;
19-
padding: 6px;
20-
display: block;
21-
border-bottom: none;
22-
text-decoration: none;
23-
}
9+
li {
10+
width: 250px;
11+
margin: 5px;
12+
padding-bottom: 0;
13+
border: 2px solid $mineshaftGray;
14+
border-radius: 3px;
15+
display: inline-block;
16+
transition: background-color 300ms, border 500ms;
2417

25-
.chapter-list li:hover {
26-
background-color: #FFE51F;
27-
border: 2px solid #FFE51F;
28-
}
18+
&:hover {
19+
background-color: $broomYellow;
20+
border: 2px solid $broomYellow;
21+
}
22+
}
23+
24+
a {
25+
display: block;
26+
color: $black;
27+
padding: 6px;
28+
border-bottom: none;
29+
text-decoration: none;
30+
}
31+
}

styles/settings/colors.styl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// ============================================================================
2+
// Settings: Colors
3+
// ============================================================================
4+
5+
$black = rgb( 0, 0, 0); // #000
6+
$mineshaftGray = rgb( 51, 51, 51); // #333
7+
$broomYellow = rgb(255, 229, 31); // #ffe51f

0 commit comments

Comments
 (0)