aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/refinerycms-blog.js26
-rw-r--r--public/stylesheets/refinerycms-blog.css69
2 files changed, 94 insertions, 1 deletions
diff --git a/public/javascripts/refinerycms-blog.js b/public/javascripts/refinerycms-blog.js
new file mode 100644
index 0000000..b94977c
--- /dev/null
+++ b/public/javascripts/refinerycms-blog.js
@@ -0,0 +1,26 @@
+$(document).ready(function(){
+ $('#show_blog_post').height($('#show_blog_post').height());
+
+ $('#next_prev_article a:not(".home")').live('click', function(){
+ url = this.href + ".js";
+ nav_url = $(this).attr('data-nav-url');
+ $('#show_blog_post > *').fadeOut();
+ $.ajax({
+ url: url,
+ success: function(data) {
+ $('#show_blog_post').html(data);
+ new_height = 0;
+ $('#show_blog_post > *').each(function(){
+ new_height += $(this).height()
+ });
+ $('#show_blog_post').animate({
+ height: new_height
+ });
+ }
+ });
+ $('html, body').animate({
+ scrollTop: $('body').offset().top
+ }, 2000);
+ return false;
+ })
+}) \ No newline at end of file
diff --git a/public/stylesheets/refinerycms-blog.css b/public/stylesheets/refinerycms-blog.css
index 35c2ef5..73a4e42 100644
--- a/public/stylesheets/refinerycms-blog.css
+++ b/public/stylesheets/refinerycms-blog.css
@@ -22,4 +22,71 @@
display: block;
padding-left: 25px;
background: url('/images/refinerycms-blog/rss-feed.png') no-repeat;
-} \ No newline at end of file
+}
+#next_prev_article{
+ overflow:hidden;
+ margin:10px 0;
+ position:relative;
+ height:30px;
+}
+#next_prev_article a{
+ display:block;
+ width:33%;
+ height:30px;
+ line-height:30px;
+ position:absolute;
+ top:0;
+}
+#next_prev_article a.prev{
+ left:0;
+}
+#next_prev_article a.home{
+ left:33%;
+ text-align:center;
+}
+#next_prev_article a.next{
+ text-align:right;
+ right:0;
+}
+
+#message, .flash {
+ padding: 8px 8px 8px 30px;
+ margin-bottom: 15px;
+ position: relative;
+}
+.flash_notice, .flash_message {
+ border: 1px solid #00A017;
+ color: #00A017;
+ background: 7px 7px no-repeat url('/images/refinery/icons/accept.png') #E0F5E0;
+}
+.flash_notice, .flash_notice * {
+ color: #00A017;
+}
+.flash_error {
+ border: 1px solid #A00027;
+ color: #A00027;
+ background: 7px 7px no-repeat url('/images/refinery/icons/cancel.png') #FFB1B1;
+}
+.flash.flash_notice #flash_close, .flash.flash_error #flash_close {
+ text-transform: lowercase;
+}
+.flash.flash_message {
+ background: #E0F5E0;
+ padding: 9px;
+ position: relative;
+ margin-bottom: 32px;
+}
+.flash.flash_message h2 {
+ margin-top: 12px;
+}
+.flash_message, .flash_message * {
+ color: #262719;
+ font-size: 14px;
+}
+.flash a, .flash a:hover {
+ color: #e20003;
+ border-bottom-color: #e20003;
+}
+.flash.flash_error a, .flash.flash_error a:hover {
+ display: none;
+} /* FLASH MESSAGES */