From 92ed7ff6a86febfb0b8570b7a1d9ce6b70a5e265 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 29 Dec 2013 17:32:12 +0100 Subject: [PATCH] compact-boardlist.js: factor out styles to style.css; some are also to be used by watch.js --- js/compact-boardlist.js | 41 ----------------------------------------- stylesheets/style.css | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 41 deletions(-) diff --git a/js/compact-boardlist.js b/js/compact-boardlist.js index 9baefa11..a6a72aec 100644 --- a/js/compact-boardlist.js +++ b/js/compact-boardlist.js @@ -1,48 +1,7 @@ if (device_type == 'desktop') { compact_boardlist = true; - var do_css = function() { - $('#compact-boardlist-css').remove(); - - $('').appendTo($("head")); - }; - do_boardlist = function() { - do_css(); - var categories = []; var topbl = $('.boardlist:first'); diff --git a/stylesheets/style.css b/stylesheets/style.css index 202d6b17..184fef56 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -514,3 +514,38 @@ form.ban-appeal textarea { .theme-catalog div.thread strong { display: block; } +.compact-boardlist { + padding: 3px; + padding-bottom: 0px; +} +.compact-boardlist .cb-item { + display: inline-block; + vertical-align: middle; +} +.compact-boardlist .cb-icon { + padding-bottom: 1px; +} +.compact-boardlist .cb-fa { + font-size: 21px; + padding: 2px; + padding-top: 0; +} +.compact-boardlist .cb-cat { + padding: 5px 6px 8px 6px; +} + +/* styles also used by watch.js */ +.cb-menuitem { + display: table-row; +} +.cb-menuitem span { + padding: 5px; + display: table-cell; + text-align: left; + border-top: 1px solid rgba(0, 0, 0, 0.5); +} +.cb-menuitem span.cb-uri { + text-align: right; + padding-left: 0; +} +