From c918953d33da8fc3ac5a442db5788e5645c46598 Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 25 Dec 2013 17:46:13 +0100 Subject: [PATCH] catalog theme: integrate with the styling framework of tinyboard; allow for js --- stylesheets/style.css | 29 ++++++++++++++++++ templates/themes/catalog/catalog.css | 42 --------------------------- templates/themes/catalog/catalog.html | 14 +++++---- templates/themes/catalog/info.php | 8 ----- templates/themes/catalog/theme.php | 2 -- 5 files changed, 38 insertions(+), 57 deletions(-) delete mode 100644 templates/themes/catalog/catalog.css diff --git a/stylesheets/style.css b/stylesheets/style.css index 786fa37e..85ce5ba0 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -485,3 +485,32 @@ form.ban-appeal { form.ban-appeal textarea { display: block; } +.theme-catalog img { + float:none!important; + margin: auto; + margin-bottom: 12px; + max-height: 150px; + max-width: 200px; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.55); + border: 2px solid rgba(153, 153, 153, 0); +} +.theme-catalog div.thread { + display: inline-block; + vertical-align: top; + margin-bottom:25px; + margin-left: 20px; + margin-right: 15px; + text-align:center; + font-weight:normal; + width:205px; + overflow:hidden; + position: relative; + font-size:11px; + padding: 15px; + max-height:300px; + background: rgba(182, 182, 182, 0.12); + border: 2px solid rgba(111, 111, 111, 0.34); +} +.theme-catalog strong { + display: block; +} diff --git a/templates/themes/catalog/catalog.css b/templates/themes/catalog/catalog.css deleted file mode 100644 index c24b9d62..00000000 --- a/templates/themes/catalog/catalog.css +++ /dev/null @@ -1,42 +0,0 @@ -img { - float:none!important; - margin: auto; - margin-bottom: 12px; - max-height: 150px; - max-width: 200px; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.55); - border: 2px solid rgba(153, 153, 153, 0); -} - -/* -img:hover { - border: 2px solid rgba(153, 153, 153, 0.27); -} -*/ - -div.thread { - display: inline-block; - vertical-align: top; - margin-bottom:25px; - margin-left: 20px; - margin-right: 15px; - text-align:center; - font-weight:normal; - width:205px; - overflow:hidden; - position: relative; - font-size:11px; - padding: 15px; - background: rgba(182, 182, 182, 0.12); - border: 2px solid rgba(111, 111, 111, 0.34); - max-height:300px; -} - -div.thread:hover { - background: #D6DAF0; - border-color: #B7C5D9; -} - -strong { - display: block; -} diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index 7b8c075a..d6b76eff 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -3,18 +3,19 @@ + + {% include 'header.html' %} {{ settings.title }} - - - {% if config.url_favicon %}{% endif %} - + {{ boardlist.top }}

{{ settings.title }} (/{{ board }}/)

{{ settings.subtitle }}
- +