From c343dd2889402a5e0eca4d490fbd0fbf3c892b70 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 26 Aug 2010 20:53:46 +1200 Subject: display more frontend, create separate css for frontend and backend, namespace the js in the same fashion, now has full English support.. --- public/javascripts/refinery/refinerycms-blog.js | 40 +++++++++++++++++++++ public/javascripts/refinerycms-blog.js | 40 --------------------- public/stylesheets/refinery/refinerycms-blog.css | 33 ++++++++++++++++++ public/stylesheets/refinerycms-blog.css | 44 +++++++----------------- 4 files changed, 85 insertions(+), 72 deletions(-) create mode 100644 public/javascripts/refinery/refinerycms-blog.js delete mode 100644 public/javascripts/refinerycms-blog.js create mode 100644 public/stylesheets/refinery/refinerycms-blog.css (limited to 'public') diff --git a/public/javascripts/refinery/refinerycms-blog.js b/public/javascripts/refinery/refinerycms-blog.js new file mode 100644 index 0000000..0159655 --- /dev/null +++ b/public/javascripts/refinery/refinerycms-blog.js @@ -0,0 +1,40 @@ +$(document).ready(function(){ + $('nav#actions.multilist > ul:not(.search_list) li a[href$=' + window.location.pathname + ']') + .parent().addClass('selected'); + + $('nav#actions.multilist > ul:not(.search_list) li > a').each(function(i,a){ + if ($(this).data('dialog-title') == null) { + $(this).bind('click', function(){ + $(this).css('background-image', "url('/images/refinery/icons/ajax-loader.gif') !important"); + }); + } + }); + + $('ul.collapsible_menu').each(function(i, ul) { + (first_li = $(this).children('li:first')).after(div=$("
")); + if (($(this).children('li.selected')).length == 0) { + div.hide(); + } + $(this).children('li:not(:first)').appendTo(div); + + first_li.find('> a').click(function(e){ + $(this).parent().next('div').animate({ + opacity: 'toggle' + , height: 'toggle' + }, 250, $.proxy(function(){ + $(this).css('background-image', null); + }, $(this)) + ); + e.preventDefault(); + }); + }); + + $('.success_icon, .failure_icon').bind('click', function(e) { + $.get($(this).attr('href'), $.proxy(function(data){ + $(this).css('background-image', null) + .toggleClass('success_icon') + .toggleClass('failure_icon'); + }, $(this))); + e.preventDefault(); + }); +}); \ No newline at end of file diff --git a/public/javascripts/refinerycms-blog.js b/public/javascripts/refinerycms-blog.js deleted file mode 100644 index 0159655..0000000 --- a/public/javascripts/refinerycms-blog.js +++ /dev/null @@ -1,40 +0,0 @@ -$(document).ready(function(){ - $('nav#actions.multilist > ul:not(.search_list) li a[href$=' + window.location.pathname + ']') - .parent().addClass('selected'); - - $('nav#actions.multilist > ul:not(.search_list) li > a').each(function(i,a){ - if ($(this).data('dialog-title') == null) { - $(this).bind('click', function(){ - $(this).css('background-image', "url('/images/refinery/icons/ajax-loader.gif') !important"); - }); - } - }); - - $('ul.collapsible_menu').each(function(i, ul) { - (first_li = $(this).children('li:first')).after(div=$("
")); - if (($(this).children('li.selected')).length == 0) { - div.hide(); - } - $(this).children('li:not(:first)').appendTo(div); - - first_li.find('> a').click(function(e){ - $(this).parent().next('div').animate({ - opacity: 'toggle' - , height: 'toggle' - }, 250, $.proxy(function(){ - $(this).css('background-image', null); - }, $(this)) - ); - e.preventDefault(); - }); - }); - - $('.success_icon, .failure_icon').bind('click', function(e) { - $.get($(this).attr('href'), $.proxy(function(data){ - $(this).css('background-image', null) - .toggleClass('success_icon') - .toggleClass('failure_icon'); - }, $(this))); - e.preventDefault(); - }); -}); \ No newline at end of file diff --git a/public/stylesheets/refinery/refinerycms-blog.css b/public/stylesheets/refinery/refinerycms-blog.css new file mode 100644 index 0000000..cc6f582 --- /dev/null +++ b/public/stylesheets/refinery/refinerycms-blog.css @@ -0,0 +1,33 @@ +.comments_icon { + background-image: url('/images/refinerycms-blog/icons/comments.png'); +} +.comment_icon { + background-image: url('/images/refinerycms-blog/icons/comment.png'); +} +.comment_cross_icon { + background-image: url('/images/refinerycms-blog/icons/comment_cross.png'); +} +.comment_tick_icon { + background-image: url('/images/refinerycms-blog/icons/comment_tick.png'); +} +.folder_icon { + background-image: url('/images/refinerycms-blog/icons/folder.png'); +} +.folder_add_icon { + background-image: url('/images/refinerycms-blog/icons/folder_add.png'); +} +.folder_edit_icon { + background-image: url('/images/refinerycms-blog/icons/folder_edit.png'); +} +.settings_icon { + background-image: url('/images/refinerycms-blog/icons/cog.png'); +} +.page_icon { + background-image: url('/images/refinerycms-blog/icons/page.png'); +} +.page_copy_icon { + background-image: url('/images/refinerycms-blog/icons/page_copy.png'); +} +.page_add_icon { + background-image: url('/images/refinerycms-blog/icons/page_add.png'); +} \ No newline at end of file diff --git a/public/stylesheets/refinerycms-blog.css b/public/stylesheets/refinerycms-blog.css index cc6f582..d961487 100644 --- a/public/stylesheets/refinerycms-blog.css +++ b/public/stylesheets/refinerycms-blog.css @@ -1,33 +1,13 @@ -.comments_icon { - background-image: url('/images/refinerycms-blog/icons/comments.png'); -} -.comment_icon { - background-image: url('/images/refinerycms-blog/icons/comment.png'); -} -.comment_cross_icon { - background-image: url('/images/refinerycms-blog/icons/comment_cross.png'); -} -.comment_tick_icon { - background-image: url('/images/refinerycms-blog/icons/comment_tick.png'); -} -.folder_icon { - background-image: url('/images/refinerycms-blog/icons/folder.png'); -} -.folder_add_icon { - background-image: url('/images/refinerycms-blog/icons/folder_add.png'); -} -.folder_edit_icon { - background-image: url('/images/refinerycms-blog/icons/folder_edit.png'); -} -.settings_icon { - background-image: url('/images/refinerycms-blog/icons/cog.png'); -} -.page_icon { - background-image: url('/images/refinerycms-blog/icons/page.png'); -} -.page_copy_icon { - background-image: url('/images/refinerycms-blog/icons/page_copy.png'); -} -.page_add_icon { - background-image: url('/images/refinerycms-blog/icons/page_add.png'); +.post_categories .filed_in { + display: inline; +} +.post_categories ul { + margin: 0px 0px 0px 6px; + padding: 0px; + display: inline; +} +.post_categories ul li { + margin: 0px; + padding: 0px; + display: inline; } \ No newline at end of file -- cgit v1.2.3