mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Minor theme changes.
This commit is contained in:
parent
4743678bc9
commit
091d8a2705
4 changed files with 30 additions and 20 deletions
|
|
@ -10,35 +10,38 @@
|
||||||
/* Imports */
|
/* Imports */
|
||||||
@import url("reset.css");
|
@import url("reset.css");
|
||||||
@import url("pygment.css");
|
@import url("pygment.css");
|
||||||
|
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz&subset=latin);
|
||||||
|
|
||||||
/***** Global *****/
|
/***** Global *****/
|
||||||
/* Body */
|
/* Body */
|
||||||
body {
|
body {
|
||||||
background: #F5F4EF url('../images/bg.png');
|
background: #F5F4EF url('../images/bg.png');
|
||||||
color: #000305;
|
color: #000305;
|
||||||
font-size: 87.5%; /* Base font size: 14px */
|
font-size: 87.5%; /* Base font size: 14px */
|
||||||
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
||||||
line-height: 1.429;
|
line-height: 1.429;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
article img{
|
article img{
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Headings */
|
/* Headings */
|
||||||
|
h1 {font-size: 2em }
|
||||||
h2 {font-size: 1.571em} /* 22px */
|
h2 {font-size: 1.571em} /* 22px */
|
||||||
h3 {font-size: 1.429em} /* 20px */
|
h3 {font-size: 1.429em} /* 20px */
|
||||||
h4 {font-size: 1.286em} /* 18px */
|
h4 {font-size: 1.286em} /* 18px */
|
||||||
h5 {font-size: 1.143em} /* 16px */
|
h5 {font-size: 1.143em} /* 16px */
|
||||||
h6 {font-size: 1em} /* 14px */
|
h6 {font-size: 1em} /* 14px */
|
||||||
|
|
||||||
h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
margin-bottom: .8em;
|
margin-bottom: .8em;
|
||||||
|
font-family: 'Yanone Kaffeesatz', arial, serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3, h4, h5, h6 { margin-top: .8em; }
|
h3, h4, h5, h6 { margin-top: .8em; }
|
||||||
|
|
@ -92,10 +95,13 @@ dl {margin: 0 0 1.5em 0;}
|
||||||
dt {font-weight: bold;}
|
dt {font-weight: bold;}
|
||||||
dd {margin-left: 1.5em;}
|
dd {margin-left: 1.5em;}
|
||||||
|
|
||||||
pre{background-color: #000; padding: 10px; color: #fff; margin: 10px;}
|
pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;}
|
||||||
|
|
||||||
/* Quotes */
|
/* Quotes */
|
||||||
blockquote {font-style: italic;}
|
blockquote {
|
||||||
|
margin: 20px;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
cite {}
|
cite {}
|
||||||
|
|
||||||
q {}
|
q {}
|
||||||
|
|
@ -341,8 +347,9 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
||||||
li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
|
li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
|
||||||
#content > .hentry {padding: 1em 0;}
|
#content > .hentry {padding: 1em 0;}
|
||||||
|
|
||||||
.entry-title {font-size: 2em; margin-bottom: 5px; margin-top: 0; }
|
.entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
|
||||||
.entry-title a:link, .entry-title a:visited {text-decoration: none;}
|
.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
|
||||||
|
.entry-title a:visited {background-color: #fff;}
|
||||||
|
|
||||||
.hentry .post-info * {font-style: normal;}
|
.hentry .post-info * {font-style: normal;}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<article>
|
<article>
|
||||||
<header> <h2 class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title }}</a></h2> </header>
|
<header> <h1 class="entry-title"><a href="{{ article.url }}"
|
||||||
|
rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title
|
||||||
|
}}</a></h1> </header>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<footer class="post-info">
|
<footer class="post-info">
|
||||||
<abbr class="published" title="{{ article.date.isoformat() }}">
|
<abbr class="published" title="{{ article.date.isoformat() }}">
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
{% for article in articles %}
|
{% for article in articles %}
|
||||||
{% if loop.index == 1 %}
|
{% if loop.index == 1 %}
|
||||||
<aside id="featured" class="body"><article>
|
<aside id="featured" class="body"><article>
|
||||||
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
|
||||||
|
}}">{{ article.title }}</a></h1>
|
||||||
<footer class="post-info">
|
<footer class="post-info">
|
||||||
<abbr class="published" title="{{ article.date.isoformat() }}">
|
<abbr class="published" title="{{ article.date.isoformat() }}">
|
||||||
{{ article.date.strftime('%a %d %B %Y') }}
|
{{ article.date.strftime('%a %d %B %Y') }}
|
||||||
|
|
@ -20,14 +21,14 @@
|
||||||
</article></aside><!-- /#featured -->
|
</article></aside><!-- /#featured -->
|
||||||
{% if loop.length > 1 %}
|
{% if loop.length > 1 %}
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<h2>Others articles</h2>
|
<h1>Others articles</h1>
|
||||||
<hr />
|
<hr />
|
||||||
<ol id="posts-list" class="hfeed">
|
<ol id="posts-list" class="hfeed">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><article class="hentry">
|
<li><article class="hentry">
|
||||||
<header>
|
<header>
|
||||||
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></h2>
|
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
{% block title %}{{ page.title }}{% endblock %}
|
{% block title %}{{ page.title }}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section id="content" class="body">
|
<section id="content" class="body">
|
||||||
<h2>{{ page.title }}</h2>
|
<h1 class="entry-title">{{ page.title }}</h1>
|
||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue