From 0452ae8865c97327dbc5b1559453210e464c5e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sat, 6 Oct 2018 22:05:56 +0300 Subject: main css --- weblog/static/weblog/css/weblog.css | 94 +++++++++++++++++++++++++++++++++++++ weblog/templates/weblog/index.html | 4 +- weblog/templates/weblog/post.html | 2 +- weblog/templates/weblog/weblog.html | 6 +-- 4 files changed, 100 insertions(+), 6 deletions(-) (limited to 'weblog') diff --git a/weblog/static/weblog/css/weblog.css b/weblog/static/weblog/css/weblog.css index 0127eaa..0b7c4e6 100755 --- a/weblog/static/weblog/css/weblog.css +++ b/weblog/static/weblog/css/weblog.css @@ -12,6 +12,100 @@ html{ box-sizing: border-box; } +a, +button, +input, +textarea, +ul, +ol, +li, +p{ + font-family: "Helvetica Neue", Helvetica, sans-serif; + color: #3e3e3e; +} + +a, a:visited{ + text-decoration: none; + color: #0080a0; + transition: 0.3s; +} + +a:hover{ + color: #0055a0; +} + +.post-title, +h1, +h2, +h3, +h4, +h5, +h6{ + font-family: Georgia, serif; + color: #3e3e3e; +} + +.post-title a{ + font-family: Georgia, serif; +} + +hr{ + border: none; + height: 1px; + background: linear-gradient(to right, rgba(0, 0, 0, 0), #3e3e3e, rgba(0, 0, 0, 0)); +} + +.navbar{ + background-color: #222; +} + +.nav-container{ + padding: 0.5em 3em; +} + +.navbar-brand, .navbar-brand:visited{ + font-family: Georgia, serif; + color: #dedede; + font-size: 1.5em; +} + +.blog-container{ + position: relative; +} + +.blog-wrapper{ + display: flex; + justify-content: center; +} + +.blog-content{ + flex: 3; +} + +.weblog-sidebar{ + padding: 1em; +} + +.blog-content{ + max-width: 45em; +} + +.blogpost{ +} + +.post-publish-date, +.post-author{ + font-style: italic; +} + +.img-fluid{ + max-width: 100%; +} + +.text-right{ + text-align: right; +} + .archive-list{ list-style-type: none; } diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html index 077fc1f..8dc1d93 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -34,7 +34,7 @@ {% if posts or pinned_posts %} {% if pinned_posts %} {% for post in pinned_posts %} -
+

{% trans 'Important post' %}

{{ post.title }}

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}

@@ -50,7 +50,7 @@ {% endif %} {% if posts %} {% for post in posts %} -
+

{{ post.title }}

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post.author %}{% blocktrans with author=post.author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}


diff --git a/weblog/templates/weblog/post.html b/weblog/templates/weblog/post.html index dfa5c6e..b92d43c 100755 --- a/weblog/templates/weblog/post.html +++ b/weblog/templates/weblog/post.html @@ -2,7 +2,7 @@ {% load i18n %} {% block title_block %}{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}{% endblock %} {% block blog_content_block %} -
+

{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post_author %}{% blocktrans with author=post_author context 'Written by (Author)' %}, by {% endblocktrans %}{% endif %}

{% if post_languages %} diff --git a/weblog/templates/weblog/weblog.html b/weblog/templates/weblog/weblog.html index e24c918..a9acbdf 100755 --- a/weblog/templates/weblog/weblog.html +++ b/weblog/templates/weblog/weblog.html @@ -15,13 +15,13 @@ {% endif %} -
-
+
+
{% block blog_content_block %} {% endblock %}
{% if show_sidebar %} -
+
{% if show_categories %} {% if category %} {% if category == 'misc' %} -- cgit v1.2.3