[geany/www.geany.org] cb5740: Add common table formatting CSS rules

Enrico Tröger git-noreply at xxxxx
Sun Jun 9 14:34:13 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, 09 Jun 2019 14:34:13 UTC
Commit:      cb57404f01b66eb68d2052b9a79613ced363f224
             https://github.com/geany/www.geany.org/commit/cb57404f01b66eb68d2052b9a79613ced363f224

Log Message:
-----------
Add common table formatting CSS rules

Since Markdown tables are created a simple <table> tags, the usual
Bootstrap table classes cannot be applied, so add general CSS rules
for all tables.


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

Modified: geany/static/css/main.css
22 lines changed, 22 insertions(+), 0 deletions(-)
===================================================================
@@ -126,3 +126,25 @@ div.feature-icon {
 .news-list li {
     margin-bottom: 10px;
 }
+
+
+/* basic table formatting: border and cell spacing */
+table {
+    border: 1px solid rgb(221, 221, 221);
+    width: 100%;
+    max-width: 100%;
+    margin-bottom: 20px;
+}
+
+table > thead > tr > th,
+table > tbody > tr > th,
+table > tfoot > tr > th,
+table > thead > tr > td,
+table > tbody > tr > td,
+table > tfoot > tr > td {
+    border: 1px solid rgb(221, 221, 221);
+    padding: 6px;
+    line-height: 1.4;
+    vertical-align: top;
+    border-top: 1px solid rgb(221, 221, 221);
+}


Modified: geany/templates/pages/download/releases.html
28 lines changed, 0 insertions(+), 28 deletions(-)
===================================================================
@@ -1,28 +0,0 @@
-{% 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 %}



--------------
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