Skip to content

Commit 1c9e050

Browse files
committed
splitting out css per page style
1 parent bf98f0b commit 1c9e050

File tree

21 files changed

+210
-244
lines changed

21 files changed

+210
-244
lines changed

content/pages/02-development-environments/03-vim.markdown

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ ready to take that step.
201201
set up Vim for greater productivity once you learn the initial Vim language
202202
for using the editor.
203203

204-
* [Vim as a Python IDE](http://unlogic.co.uk/2013/02/08/vim-as-a-python-ide/)
205-
goes through the steps necessary to make Vim into a more comfortable
206-
environment for Python development.
207-
208204
* [Setting up Vim for Python](http://stackoverflow.com/questions/9172802/setting-up-vim-for-python)
209205
has a well written answer on Stack Overflow for getting started with Vim.
210206

theme/templates/all.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends "base.html" %}
22

3-
{% block css %}
4-
{% include "css.html" %}
5-
{% endblock %}
3+
{% block css %}{% include "css/base.css" %}{% include "css/page-article.css" %}{% endblock %}
64

75
{% block content %}
86
<div class="row">

theme/templates/article.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515

1616
{% block title %}{% if article %}{{ article.title }} - {% endif %}{% endblock %}
1717

18-
{% block css %}{% include "css.html" %}{% include "css/panel.html" %}{% endblock %}
18+
{% block css %}<style>{% include "css/base.css" %}{% include "css/panel.css" %}{% include "css/page-article.css" %}{% include "css/responsive.css" %}</style>{% endblock %}
1919

2020
{% block banner %}{% include "banner.html" %}{% endblock %}
2121

22-
2322
{% block content %}
2423
{% if article %}
2524
<div class="row">

theme/templates/blog.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55
{% endblock %}
66

77
{% block title %}Blog - {% endblock %}
8-
{% block css %}{% include "css.html" %}{% endblock %}
8+
{% block css %}<style>{% include "css/base.css" %}{% include "css/responsive.css" %}</style>{% endblock %}
99

1010
{% block banner %}{% endblock %}
1111

1212
{% block content %}
1313
<div class="row">
14-
<div class="c12">
15-
<h1 style="display:none">Blog Tutorials</h1>
16-
{% for a in articles %}
17-
{% if a.headerimage and a.headeralt %}
18-
<div class="row" style="padding-top: 30px;">
19-
<div class="c3">
20-
<img src="{{ a.headerimage }}" alt="{{ a.headeralt }}" width="100%" style="padding: 4px 0 6px 0; border-radius: 12px;">
21-
</div>
22-
<div class="c9">
23-
{% endif %}
24-
<h2 style="padding-top: 0px; margin-top: 0px;"><a href="/blog/{{ a.slug }}.html">{{ a.title }}</a></h2>
25-
<div style="font-size:12px;color:#666;margin:0 0 10px">
14+
<div class="c12">
15+
<h1 style="display:none">Blog Tutorials</h1>
16+
{% for a in articles %}
17+
{% if a.headerimage and a.headeralt %}
18+
<div class="row" style="padding-top: 30px;">
19+
<div class="c3">
20+
<img src="{{ a.headerimage }}" alt="{{ a.headeralt }}" width="100%" style="padding:4px 0 6px 0;border-radius:12px">
21+
</div>
22+
<div class="c9">
23+
{% endif %}
24+
<h2 style="padding-top:0;margin-top:0"><a href="/blog/{{ a.slug }}.html">{{ a.title }}</a></h2>
25+
<div style="font-size:12px;color:#666;margin:0 0 10px">
2626
{% if a.modified != a.date %}
2727
Post updated by <a href="/about-author.html">Matt Makai</a> on
2828
{{ a.modified.strftime('%B %d, %Y') }}. Originally posted
@@ -31,13 +31,13 @@ <h2 style="padding-top: 0px; margin-top: 0px;"><a href="/blog/{{ a.slug }}.html"
3131
Posted by <a href="/about-author.html">Matt Makai</a> on
3232
{{ a.date.strftime('%B %d, %Y') }}.
3333
{% endif %}
34-
</div>
35-
{{ a.content|truncate(350) }} (<a href="/blog/{{ a.slug }}.html">read more</a>)
36-
{% if a.headerimage and a.headeralt %}
37-
</div>
38-
</div>
39-
{% endif %}
40-
{% endfor %}
34+
</div>
35+
{{ a.content|truncate(350) }} (<a href="/blog/{{ a.slug }}.html">read more</a>)
36+
{% if a.headerimage and a.headeralt %}
37+
</div>
4138
</div>
39+
{% endif %}
40+
{% endfor %}
41+
</div>
4242
</div>
4343
{% endblock %}

theme/templates/blog/pydev-week-django-2-twilio-voices.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="https://www.blog.pythonlibrary.org/" class="lis/t-group-item smaller-item">PyDev of the Week Blog {% include "blog/external-link.html" %}</a>
1+
<a href="https://www.blog.pythonlibrary.org/" class="lgi">PyDev of the Week Blog {% include "blog/external-link.html" %}</a>
22
<a href="/python-community.html" class="lgi">Python Community</a>
33
<a href="/web-frameworks.html" class="lgi">Web frameworks</a>
44
<a href="/django.html" class="lgi">Django</a>

theme/templates/css.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

theme/templates/css/base.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% raw %}.btn-full{width:100%;box-shadow:1px 2px 1px #222;padding-bottom:4px}
2+
p.under-btn{text-align:left;margin-top:20px}
3+
p.banner{font-weight:500;line-height:1.1;color:#fff;font-size:22px;margin:14px 0 18px 0}
4+
th{text-align:left;font-family:"Helvetica Neue",sans-serif}
5+
td{padding-right:20px}
6+
img.bordered{border:1px solid #ccc}
7+
blockquote{border-left:4px solid #aaa;padding-left:10px;font-family:"Helvetica Neue"}
8+
.well{min-height:20px;padding:19px;margin:0 0 20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}
9+
.see-also{margin-top:20px;background:#22B24C;color:#eee;font-family:"Helvetica Neue",sans-serif}
10+
.see-also a{color: #fff}
11+
.highlight{background:#ffff00}
12+
.form-control{display:block;width:100%;height:39px;padding:8px 12px;font-size:14px;color:#777;vertical-align:middle;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}
13+
.form-control:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}
14+
.btn{display:inline-block;padding:8px 12px;margin-bottom:0;font-size:15px;line-height:1.4;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:4px;color:#fff;background-color:#22b24c;border-color:#22b24c}
15+
.btn:active,.btn.active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}{% endraw %}

theme/templates/css/panel.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/templates/css/panel.html

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)