Skip to content

Commit 7f6c19d

Browse files
committed
Sort out list css
1 parent a773577 commit 7f6c19d

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

chapters/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
<main role="main" class="container">
4848

4949
<h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
50-
<ol class="chapter-list">
50+
<ol class="list-group">
5151

52-
<li class="chapter-list-item borderless clearfix">
52+
<li class="list-group-item borderless clearfix">
5353
<div class="row">
5454
<div class="col-sm">
5555
<a href=/sql_python_tutorial/chapters/01 class="btn btn-link" role="button"/> Create a Database</i></a>
@@ -60,7 +60,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
6060
</div>
6161
</li>
6262

63-
<li class="chapter-list-item borderless clearfix">
63+
<li class="list-group-item borderless clearfix">
6464
<div class="row">
6565
<div class="col-sm">
6666
<a href=/sql_python_tutorial/chapters/02 class="btn btn-link" role="button"/> Create a Table</i></a>
@@ -71,7 +71,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
7171
</div>
7272
</li>
7373

74-
<li class="chapter-list-item borderless clearfix">
74+
<li class="list-group-item borderless clearfix">
7575
<div class="row">
7676
<div class="col-sm">
7777
<a href=/sql_python_tutorial/chapters/03 class="btn btn-link" role="button"/> Add Some Data</i></a>
@@ -82,7 +82,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
8282
</div>
8383
</li>
8484

85-
<li class="chapter-list-item borderless clearfix">
85+
<li class="list-group-item borderless clearfix">
8686
<div class="row">
8787
<div class="col-sm">
8888
<a href=/sql_python_tutorial/chapters/04 class="btn btn-link" role="button"/> Look at the Data</i></a>
@@ -93,7 +93,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
9393
</div>
9494
</li>
9595

96-
<li class="chapter-list-item borderless clearfix">
96+
<li class="list-group-item borderless clearfix">
9797
<div class="row">
9898
<div class="col-sm">
9999
<a href=/sql_python_tutorial/chapters/05 class="btn btn-link" role="button"/> Change the Data</i></a>
@@ -104,7 +104,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
104104
</div>
105105
</li>
106106

107-
<li class="chapter-list-item borderless clearfix">
107+
<li class="list-group-item borderless clearfix">
108108
<div class="row">
109109
<div class="col-sm">
110110
<a href=/sql_python_tutorial/chapters/06 class="btn btn-link" role="button"/> Delete Some Data</i></a>
@@ -115,7 +115,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
115115
</div>
116116
</li>
117117

118-
<li class="chapter-list-item borderless clearfix">
118+
<li class="list-group-item borderless clearfix">
119119
<div class="row">
120120
<div class="col-sm">
121121
<a href=/sql_python_tutorial/chapters/07 class="btn btn-link" role="button"/> Dynamic SQL</i></a>
@@ -126,7 +126,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
126126
</div>
127127
</li>
128128

129-
<li class="chapter-list-item borderless clearfix">
129+
<li class="list-group-item borderless clearfix">
130130
<div class="row">
131131
<div class="col-sm">
132132
<a href=/sql_python_tutorial/chapters/08 class="btn btn-link" role="button"/> Link Tables Together</i></a>
@@ -137,7 +137,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
137137
</div>
138138
</li>
139139

140-
<li class="chapter-list-item borderless clearfix">
140+
<li class="list-group-item borderless clearfix">
141141
<div class="row">
142142
<div class="col-sm">
143143
<a href=/sql_python_tutorial/chapters/09 class="btn btn-link" role="button"/> Extract The Data</i></a>
@@ -148,7 +148,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
148148
</div>
149149
</li>
150150

151-
<li class="chapter-list-item borderless clearfix">
151+
<li class="list-group-item borderless clearfix">
152152
<div class="row">
153153
<div class="col-sm">
154154
<a href=/sql_python_tutorial/chapters/10 class="btn btn-link" role="button"/> Aggregation</i></a>
@@ -159,7 +159,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
159159
</div>
160160
</li>
161161

162-
<li class="chapter-list-item borderless clearfix">
162+
<li class="list-group-item borderless clearfix">
163163
<div class="row">
164164
<div class="col-sm">
165165
<a href=/sql_python_tutorial/chapters/11 class="btn btn-link" role="button"/> Create A View</i></a>
@@ -170,7 +170,7 @@ <h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
170170
</div>
171171
</li>
172172

173-
<li class="chapter-list-item borderless clearfix">
173+
<li class="list-group-item borderless clearfix">
174174
<div class="row">
175175
<div class="col-sm">
176176
<a href=/sql_python_tutorial/chapters/12 class="btn btn-link" role="button"/> Bulk Loading</i></a>

static/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ h1 {
3232
z-index: 100;
3333
}
3434

35-
.chapter-list {
35+
.list-group {
3636
white-space: nowrap;
3737
padding: 0 1rem;
3838
}
3939

40-
.chapter-list-item {
40+
.list-group-item {
4141
vertical-align: middle;
4242
display: inline-block;
4343
padding: .5rem;

templates/chapters.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
{% block body %}
44
<h2><i class="fa fa-book fa-fw" aria-hidden="true"></i> Contents</h2>
5-
<ol class="chapter-list">
5+
<ol class="list-group">
66
{% for chapter in chapters %}
7-
<li class="chapter-list-item borderless clearfix">
7+
<li class="list-group-item borderless clearfix">
88
<div class="row">
99
<div class="col-sm">
1010
<a href=/{{root}}/chapters/{{ chapter.dir }} class="btn btn-link" role="button"/>{{ chapter.title }}</i></a>

0 commit comments

Comments
 (0)