[geany/www.geany.org] d40204: Cleanup CSS

Enrico Tröger git-noreply at xxxxx
Sun May 19 22:38:02 UTC 2019


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 19 May 2019 22:38:02 UTC
Commit:      d40204e2549018a66ba60909528b7a886142c295
             https://github.com/geany/www.geany.org/commit/d40204e2549018a66ba60909528b7a886142c295

Log Message:
-----------
Cleanup CSS

Move basic body styles into main.css instead of custom style tags
in the base HTML template.
And move Releases page specific styles into the Releases page
template.


Modified Paths:
--------------
    geany/static/css/main.css
    geany/templates/pages/download/releases.html
    geany/templates/skel.html

Modified: geany/static/css/main.css
26 lines changed, 5 insertions(+), 21 deletions(-)
===================================================================
@@ -1,4 +1,9 @@
 
+body {
+    padding-top: 60px;
+    padding-bottom: 40px;
+}
+
 .forkmeongithub {
     position: absolute;
     top: 40px;
@@ -113,24 +118,3 @@ div.feature-icon {
 .news-list li {
     margin-bottom: 10px;
 }
-
-/* table formatting on Releases page */
-#releases + table {
-    border: 1px solid rgb(221, 221, 221);
-    width: 100%;
-    max-width: 100%;
-    margin-bottom: 20px;
-}
-
-#releases + table > thead > tr > th,
-#releases + table > tbody > tr > th,
-#releases + table > tfoot > tr > th,
-#releases + table > thead > tr > td,
-#releases + table > tbody > tr > td,
-#releases + table > tfoot > tr > td {
-    border: 1px solid rgb(221, 221, 221);
-    padding: 8px;
-    line-height: 1.42857143;
-    vertical-align: top;
-    border-top: 1px solid rgb(221, 221, 221);
-}


Modified: geany/templates/pages/download/releases.html
28 lines changed, 28 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,28 @@
+{% extends "pages/richtextpage.html" %}
+
+{% block extra_head %}
+{{ block.super }}
+<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url "news_feed" %}">
+<style>
+/* table formatting on Releases page */
+#releases + table {
+    border: 1px solid rgb(221, 221, 221);
+    width: 100%;
+    max-width: 100%;
+    margin-bottom: 20px;
+}
+
+#releases + table > thead > tr > th,
+#releases + table > tbody > tr > th,
+#releases + table > tfoot > tr > th,
+#releases + table > thead > tr > td,
+#releases + table > tbody > tr > td,
+#releases + table > tfoot > tr > td {
+    border: 1px solid rgb(221, 221, 221);
+    padding: 8px;
+    line-height: 1.42857143;
+    vertical-align: top;
+    border-top: 1px solid rgb(221, 221, 221);
+}
+</style>
+{% endblock %}


Modified: geany/templates/skel.html
6 lines changed, 0 insertions(+), 6 deletions(-)
===================================================================
@@ -15,12 +15,6 @@
 
 {% compress css %}
 <link rel="stylesheet" href="{% static "css/bootstrap.css" %}">
-<style>
-    body {
-        padding-top: 60px;
-        padding-bottom: 40px;
-    }
-</style>
 <link rel="stylesheet" href="{% static "css/main.css" %}">
 <link rel="stylesheet" type="text/css" href="{% static "css/pygments.css" %}">
 {% block extra_css %}{% endblock %}



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list