[gimp-web/gimp-web-static] Styling titles for pages
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/gimp-web-static] Styling titles for pages
- Date: Thu, 6 Aug 2015 22:17:47 +0000 (UTC)
commit e6304b81cc144db4d73917bfea2393e9ac07a664
Author: Pat David <patdavid gmail com>
Date: Thu Aug 6 17:17:39 2015 -0500
Styling titles for pages
themes/newgimp/static/css/page.css | 12 ++++++++++++
themes/newgimp/templates/page.html | 12 +++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/themes/newgimp/static/css/page.css b/themes/newgimp/static/css/page.css
index 02c3004..9708e90 100644
--- a/themes/newgimp/static/css/page.css
+++ b/themes/newgimp/static/css/page.css
@@ -1,5 +1,6 @@
.page_content {
text-align: left;
+ padding-top: 0;
}
.page_content h1,
@@ -71,3 +72,14 @@ figure figcaption {
margin: 0;
vertical-align: middle;
}
+
+.container.title {
+ box-shadow: 0 8px 6px -7px #ddd;
+ margin: 1.5rem auto;
+ max-width: 37rem;
+ text-align: center;
+}
+
+.container.title h1 {
+ margin-bottom: 0;
+}
diff --git a/themes/newgimp/templates/page.html b/themes/newgimp/templates/page.html
index 66d37e2..aa5bc7e 100644
--- a/themes/newgimp/templates/page.html
+++ b/themes/newgimp/templates/page.html
@@ -11,9 +11,15 @@
{% block content %}
- <h1>{{ page.title }}</h1>
- {% import 'translations.html' as translations with context %}
- {{ translations.translations_for(page) }}
+ <div class="container title">
+ <div class="row clearfix">
+ <div class="column full">
+ <h1>{{ page.title }}</h1>
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(page) }}
+ </div>
+ </div>
+ </div>
<section class='page_content'>
<div class='container'>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]