From 30586760c93f8c07b07bdee8fe5cc26149f9b69c Mon Sep 17 00:00:00 2001 From: Bert Driehuis Date: Mon, 25 May 2015 01:16:08 +0200 Subject: [PATCH] Add button style reset code in case the user forgets to do so. --- .../stylesheets/colorbox-rails/colorbox-rails.css.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/colorbox-rails/colorbox-rails.css.erb b/app/assets/stylesheets/colorbox-rails/colorbox-rails.css.erb index eb3a103..31db788 100644 --- a/app/assets/stylesheets/colorbox-rails/colorbox-rails.css.erb +++ b/app/assets/stylesheets/colorbox-rails/colorbox-rails.css.erb @@ -13,7 +13,7 @@ .cboxPhoto{float:left; margin:auto; border:0; display:block;} .cboxIframe{width:100%; height:100%; display:block; border:0;} -/* +/* User Style: Change the following styles to modify the appearance of ColorBox. They are ordered & tabbed in a way that represents the nesting of the generated HTML. @@ -83,3 +83,10 @@ .cboxIE6 #cboxMiddleRight { _behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')"); } +/* + If the user's reset stylescript fails to remove the button shadows, + next & previous buttons will look ugly. Make sure we remove the sdahows. +*/ +#cboxContent button { + border: none; +}