Skip to content

Commit 4c0d631

Browse files
committed
working on site speedups
1 parent 647f578 commit 4c0d631

File tree

58 files changed

+426
-484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+426
-484
lines changed
-27.7 KB
Loading

static/img/logos/rbw.jpg

11.5 KB
Loading

theme/static/css/epub-book.css

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -87,51 +87,51 @@ label{display:inline-block;margin-bottom:5px;font-weight:bold}
8787
.btn-block{display:block;width:100%;padding-right:0;padding-left:0}
8888
.btn-block+.btn-block{margin-top:5px}
8989
input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}
90-
.list-group{padding-left:0;margin-bottom:20px}
91-
.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}
92-
.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}
93-
.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}
94-
.list-group-item>.badge{float:right}
95-
.list-group-item>.badge+.badge{margin-right:5px}
96-
a.list-group-item{color:#555}
97-
a.list-group-item .list-group-item-heading{color:#333}
98-
a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}
99-
a.list-group-item.active,a.list-group-item.active:hover,a.list-group-item.active:focus{z-index:2;color:#fff;background-color:#eb6864;border-color:#eb6864}
100-
a.list-group-item.active .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading{color:inherit}
101-
a.list-group-item.active .list-group-item-text,a.list-group-item.active:hover .list-group-item-text,a.list-group-item.active:focus .list-group-item-text{color:#fff}
102-
.list-group-item-heading{margin-top:0;margin-bottom:5px}
103-
.list-group-item-text{margin-bottom:0;line-height:1.3}
104-
.panel{margin-bottom:21px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}
105-
.panel-body{padding:15px}
106-
.panel-body:before,.panel-body:after{display:table;content:" "}
107-
.panel-body:after{clear:both}
108-
.panel>.list-group{margin-bottom:0}
109-
.panel>.list-group .list-group-item{border-width:1px 0}
110-
.panel>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}
111-
.panel>.list-group .list-group-item:last-child{border-bottom:0}
112-
.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}
113-
.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}
114-
.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}
115-
.panel>.table>tbody:first-child th,.panel>.table>tbody:first-child td{border-top:0}
116-
.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}
117-
.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}
118-
.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}
119-
.panel>.table-bordered>thead>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:last-child>th,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:last-child>td,.panel>.table-responsive>.table-bordered>thead>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}
120-
.panel>.table-responsive{margin-bottom:0;border:0}
121-
.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}
90+
.lg{padding-left:0;margin-bottom:20px}
91+
.lgi{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}
92+
.lgi:first-child{border-top-right-radius:4px;border-top-left-radius:4px}
93+
.lgi:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}
94+
.lgi>.badge{float:right}
95+
.lgi>.badge+.badge{margin-right:5px}
96+
a.lgi{color:#555}
97+
a.lgi .lgi-heading{color:#333}
98+
a.lgi:hover,a.lgi:focus{text-decoration:none;background-color:#f5f5f5}
99+
a.lgi.active,a.lgi.active:hover,a.lgi.active:focus{z-index:2;color:#fff;background-color:#eb6864;border-color:#eb6864}
100+
a.lgi.active .lgi-heading,a.lgi.active:hover .lgi-heading,a.lgi.active:focus .lgi-heading{color:inherit}
101+
a.lgi.active .lgi-text,a.lgi.active:hover .lgi-text,a.lgi.active:focus .lgi-text{color:#fff}
102+
.lgi-heading{margin-top:0;margin-bottom:5px}
103+
.lgi-text{margin-bottom:0;line-height:1.3}
104+
.pn{margin-bottom:21px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}
105+
.pnb{padding:15px}
106+
.pnb:before,.pnb:after{display:table;content:" "}
107+
.pnb:after{clear:both}
108+
.pn>.lg{margin-bottom:0}
109+
.pn>.lg .lgi{border-width:1px 0}
110+
.pn>.lg .lgi:first-child{border-top-right-radius:0;border-top-left-radius:0}
111+
.pn>.lg .lgi:last-child{border-bottom:0}
112+
.pnh+.lg .lgi:first-child{border-top-width:0}
113+
.pn>.table,.pn>.table-responsive>.table{margin-bottom:0}
114+
.pn>.pnb+.table,.pn>.pnb+.table-responsive{border-top:1px solid #ddd}
115+
.pn>.table>tbody:first-child th,.pn>.table>tbody:first-child td{border-top:0}
116+
.pn>.table-bordered,.pn>.table-responsive>.table-bordered{border:0}
117+
.pn>.table-bordered>thead>tr>th:first-child,.pn>.table-responsive>.table-bordered>thead>tr>th:first-child,.pn>.table-bordered>tbody>tr>th:first-child,.pn>.table-responsive>.table-bordered>tbody>tr>th:first-child,.pn>.table-bordered>tfoot>tr>th:first-child,.pn>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.pn>.table-bordered>thead>tr>td:first-child,.pn>.table-responsive>.table-bordered>thead>tr>td:first-child,.pn>.table-bordered>tbody>tr>td:first-child,.pn>.table-responsive>.table-bordered>tbody>tr>td:first-child,.pn>.table-bordered>tfoot>tr>td:first-child,.pn>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}
118+
.pn>.table-bordered>thead>tr>th:last-child,.pn>.table-responsive>.table-bordered>thead>tr>th:last-child,.pn>.table-bordered>tbody>tr>th:last-child,.pn>.table-responsive>.table-bordered>tbody>tr>th:last-child,.pn>.table-bordered>tfoot>tr>th:last-child,.pn>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.pn>.table-bordered>thead>tr>td:last-child,.pn>.table-responsive>.table-bordered>thead>tr>td:last-child,.pn>.table-bordered>tbody>tr>td:last-child,.pn>.table-responsive>.table-bordered>tbody>tr>td:last-child,.pn>.table-bordered>tfoot>tr>td:last-child,.pn>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}
119+
.pn>.table-bordered>thead>tr:last-child>th,.pn>.table-responsive>.table-bordered>thead>tr:last-child>th,.pn>.table-bordered>tbody>tr:last-child>th,.pn>.table-responsive>.table-bordered>tbody>tr:last-child>th,.pn>.table-bordered>tfoot>tr:last-child>th,.pn>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.pn>.table-bordered>thead>tr:last-child>td,.pn>.table-responsive>.table-bordered>thead>tr:last-child>td,.pn>.table-bordered>tbody>tr:last-child>td,.pn>.table-responsive>.table-bordered>tbody>tr:last-child>td,.pn>.table-bordered>tfoot>tr:last-child>td,.pn>.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}
120+
.pn>.table-responsive{margin-bottom:0;border:0}
121+
.pnh{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}
122122
.nel-title{margin-top:0;margin-bottom:0;font-size:17px;color:inherit}
123-
.panel-title>a{color:inherit}
124-
.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}
125-
.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}
126-
.panel-group .panel+.panel{margin-top:5px}
127-
.panel-group .panel-heading{border-bottom:0}
128-
.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}
129-
.panel-group .panel-footer{border-top:0}
130-
.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}
131-
.panel-success{border-color:#22b24c}
132-
.panel-success>.panel-heading{color:#468847;background-color:#22b24c;border-color:#22b24c}
133-
.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#22b24c}
134-
.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#22b24c}
123+
.pn-title>a{color:inherit}
124+
.pn-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}
125+
.pn-group .pn{margin-bottom:0;overflow:hidden;border-radius:4px}
126+
.pn-group .pn+.pn{margin-top:5px}
127+
.pn-group .pnh{border-bottom:0}
128+
.pn-group .pnh+.pn-collapse .pnb{border-top:1px solid #ddd}
129+
.pn-group .pn-footer{border-top:0}
130+
.pn-group .pn-footer+.pn-collapse .pnb{border-bottom:1px solid #ddd}
131+
.pn-success{border-color:#22b24c}
132+
.pn-success>.pnh{color:#468847;background-color:#22b24c;border-color:#22b24c}
133+
.pn-success>.pnh+.pn-collapse .pnb{border-top-color:#22b24c}
134+
.pn-success>.pn-footer+.pn-collapse .pnb{border-bottom-color:#22b24c}
135135
.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}
136136
.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}
137137
.clearfix:before,.clearfix:after{display:table;content:" "}
@@ -149,16 +149,16 @@ a:hover{text-decoration:none;color:#000}
149149
.logo-title a:hover{color:#808080}
150150
.logo-image{vertical-align:middle;border:none}
151151
.logo-header-section{margin:15px 0 15px 0}
152-
a.list-group-item.active{background:#444;border:1px solid #222}
153-
a.list-group-item.active:hover{background:#444;border:1px solid #222}
152+
a.lgi.active{background:#444;border:1px solid #222}
153+
a.lgi.active:hover{background:#444;border:1px solid #222}
154154
#sidebar{margin-top:30px}
155155
.select-next{min-height:260px}
156156
.choose-btn{font-size:1.1em;margin:10px 0 0 0}
157157
.choose-next{border:1px solid #000;background-color:#444;margin-left:25px;color:#ddd}
158158
.choose-next a{color:#eee}
159159
.btn-full{width:100%;box-shadow:1px 2px 1px #222; padding-bottom: 4px;}
160160
p.under-btn{text-align:left;margin-top:20px}
161-
h3.panel-head{margin:5px 0 0 0;font-size:26px;color:#fff}
161+
h3.pnh{margin:5px 0 0 0;font-size:26px;color:#fff}
162162
.smaller-item{font-size:.8em;padding:5px 0 5px 10px}
163163
.see-also{margin-top: 20px; background: #22B24C; color: #eee;}
164164
.see-also a{color: #fff;}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<div class="panel" id="sidebar">
2-
<div class="panel-heading">
3-
<h3 class="panel-head">Learn more about these concepts</h3>
4-
</div>
5-
<img src="{{ article.headerimage }}" alt="{{ article.headeralt }}" width="100%">
6-
<div class="list-group">
7-
{% include "blog/" + article.slug + ".html" %}
8-
<a href="/table-of-contents.html" class="list-group-item smaller-item" style='background-color:#444; color: #fff;'>...or <span style="border-bottom: 1px dotted;">view all topics</span>.</a>
9-
</div>
1+
<div class="pn">
2+
<div class="pnh">
3+
<h3>Learn more about these concepts</h3>
4+
</div>
5+
<img src="{{ article.headerimage }}" alt="{{ article.headeralt }}" width="100%">
6+
<div class="lg">
7+
{% include "blog/" + article.slug + ".html" %}
8+
<a href="/table-of-contents.html" class="lgi">...or view all topics.</a>
9+
</div>
1010
</div>

theme/templates/banner.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% if page and (page.slug == 'development-environments' or page.slug == 'best-python-videos' or page.slug == 'learning-programming' or page.slug == 'web-development' or page.slug == 'why-use-python' or page.slug == 'javascript' or page.slug == 'cascading-style-sheets' or page.slug == 'python-2-or-3' or page.slug == 'introduction' or page.slug == 'best-python-podcasts') %}
22
<div style="margin: 0 0 12px;background-color: #22B24C;">
3-
<div class="cn">
4-
<p class="banner sans-font">
5-
<a href="https://training.talkpython.fm/courses/explore_entrepreneurs/python-for-entrepreneurs-build-and-launch-your-online-business" style="color: #fff">Python for Entrepreneurs: learn Python while building your own business</a>!
6-
</p>
7-
</div>
3+
<div class="cn">
4+
<p class="banner sns">
5+
<a href="https://training.talkpython.fm/courses/explore_entrepreneurs/python-for-entrepreneurs-build-and-launch-your-online-business" style="color: #fff">Python for Entrepreneurs: learn Python while building your own business</a>!
6+
</p>
7+
</div>
88
</div>
99
{% endif %}

theme/templates/base.html

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5-
<meta charset="utf-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
{% block meta_header %}{% endblock %}
8-
<title>{% block title %}{% endblock %}Full Stack Python</title> {% block css %}{% endblock %}
9-
<link rel="shortcut icon" href="/img/fsp-fav.png">
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
{% block meta_header %}{% endblock %}
8+
<title>{% block title %}{% endblock %}Full Stack Python</title> {% block css %}{% endblock %}
9+
<link rel="shortcut icon" href="/img/fsp-fav.png">
1010
</head>
1111
<body>
12-
{% block banner %}{% endblock %}
13-
<div class="cn">
14-
{% include "nav.html" %}
15-
{% block forkme %}{% endblock %}
16-
{% block content %}{% endblock %}
17-
<hr>
18-
</div>
19-
{% block lower_banner %}{% endblock %}
20-
{% include "footer.html" %}
12+
{% block banner %}{% endblock %}
13+
<div class="cn">
14+
{% include "nav.html" %}
15+
{% block forkme %}{% endblock %}
16+
{% block content %}{% endblock %}
17+
<hr></div>
18+
{% block lower_banner %}{% endblock %}
19+
<div class="cn"><div class="ft sns"><a href="https://github.com/mattmakai">Matt Makai</a> <a href="/change-log.html">2012-2018</a></div></div>
2120
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-19910497-7', 'auto'); ga('send', 'pageview');</script>
2221
{% block js %}{% endblock %}
2322
</body>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<a href="/aws-lambda.html" class="list-group-item smaller-item">AWS Lambda</a>
2-
<a href="/devops.html" class="list-group-item smaller-item">DevOps</a>
3-
<a href="/why-use-python.html" class="list-group-item smaller-item">Why Use Python?</a>
4-
<a href="/python-2-or-3.html" class="list-group-item smaller-item">Python 2 or3?</a>
5-
<a href="/source-control.html" class="list-group-item smaller-item">Source Control</a>
1+
<a href="/aws-lambda.html" class="lgi">AWS Lambda</a>
2+
<a href="/devops.html" class="lgi">DevOps</a>
3+
<a href="/why-use-python.html" class="lgi">Why Use Python?</a>
4+
<a href="/python-2-or-3.html" class="lgi">Python 2 or3?</a>
5+
<a href="/source-control.html" class="lgi">Source Control</a>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<a href="/aws-lambda.html" class="list-group-item smaller-item">AWS Lambda</a>
2-
<a href="/devops.html" class="list-group-item smaller-item">DevOps</a>
3-
<a href="/learning-programming.html" class="list-group-item smaller-item">Learning Programming</a>
4-
<a href="/why-use-python.html" class="list-group-item smaller-item">Why Use Python?</a>
5-
<a href="/python-2-or-3.html" class="list-group-item smaller-item">Python 2 or 3?</a>
1+
<a href="/aws-lambda.html" class="lgi">AWS Lambda</a>
2+
<a href="/devops.html" class="lgi">DevOps</a>
3+
<a href="/learning-programming.html" class="lgi">Learning Programming</a>
4+
<a href="/why-use-python.html" class="lgi">Why Use Python?</a>
5+
<a href="/python-2-or-3.html" class="lgi">Python 2 or 3?</a>
66

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="/learning-programming.html" class="list-group-item smaller-item">Learning Programming</a>
2-
<a href="/best-python-resources.html" class="list-group-item smaller-item">More Great Python Resources</a>
3-
<a href="/web-development.html" class="list-group-item smaller-item">Web Development</a>
4-
<a href="http://brianknapp.me/how-do-self-taught-developers-actually-get-jobs/" class="list-group-item smaller-item">Self-taught devs get jobs?{% include "blog/external-link.html" %}</a>
1+
<a href="/learning-programming.html" class="lgi">Learning Programming</a>
2+
<a href="/best-python-resources.html" class="lgi">More Great Python Resources</a>
3+
<a href="/web-development.html" class="lgi">Web Development</a>
4+
<a href="http://brianknapp.me/how-do-self-taught-developers-actually-get-jobs/" class="lgi">Self-taught devs get jobs?{% include "blog/external-link.html" %}</a>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<a href="/learning-programming.html" class="list-group-item smaller-item">Learning Python</a>
2-
<a href="/bots.html" class="list-group-item smaller-item">Bots</a>
1+
<a href="/learning-programming.html" class="lgi">Learning Python</a>
2+
<a href="/bots.html" class="lgi">Bots</a>

0 commit comments

Comments
 (0)