CSS to change background in address modal window?

  • Posts: 8
  • Thank you received: 0
12 years 1 month ago #67211

In the user control panel there is a page that lets you manage your addresses. When you press edit, it opens a modal window.

I'd like to be able to style the parent container of the form in this window, but I can't work out what CSS rule I need in order to do this.

Any help much appreciated!

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #67300

Hi,

To edit the display in these popups, you need to edit your template css file.
Because the hikashop frontend css file is not loaded for the popup.

In Joomla > extension > Template manager, tab "templates" edit your template and the css/template.css (template is an example).

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
12 years 1 month ago #67345

Thanks Xavier,

However, this is what I'm trying to edit, I just wondered if you could give me the rule for example:

#divName {
background-color:#fff;
}

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #67376

Try to apply the properties on the class:

.body-overlayed .shadow,
.body-overlayed .contentpane,
.body-overlayed #all{
background-color:#fff;
}

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
12 years 1 month ago #67448

Unfortunately this didn't work.

It looks like it opens a new document (theres a new document declaration half way down in this firebug screenshot)



I don't know if that is something to do with it. Even if I could just get rid of that corkboard background that is my default background image that'd make it easier to read.

This is the code I'm using for the other backgrounds:
#hikashop_category_information_menu_153, .hikashop_checkout_page, .hikashop_product_page,
.body-overlayed .contentpane{
	position:relative;
	background-image:url(../img/eggshell.jpg);
	background-repeat:repeat;
	width:680px;
	padding:10px;
	clear:left;
	margin:10px 0 20px 0;
	-webkit-box-shadow: 3px 3px 7px rgba(50, 50, 50, 0.7);
	-moz-box-shadow: 3px 3px 7px rgba(50, 50, 50, 0.7);
	box-shadow: 3px 3px 7px rgba(50, 50, 50, 0.7);	
	overflow:hidden;	
}

Last edit: 12 years 1 month ago by afish674.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67666

The background in the popup is added by your template's CSS which is loaded in the component.php file of your template.

One solution is to not have the CSS of your template added in the component.php file of your template. That way, the back ground won't display either.

The best is to ask your template provider about help personalizing your template.

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
12 years 1 month ago #67735

Hi Nicolas,

Thanks for your reply.

Wouldn't this prevent the background from loading in the rest of the site too, rather than just the popup?

In this case, I am the template provider because it's one that I designed but I've not had to deal with a popup before, I normally just use Firebug to work out what rules need adjusting, although in this case I couldn't work it out.

If there was a way to just remove the pop-up background then that would do to be honest, just makes it easier to read.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67903

Hi,

No it won't cause the background to not load on the rest of the website.

The component.php file of templates are only for popups while the index.php file is used elsewhere on your website. So if you change something in the component.php file, it only applies to the popups.

So the way to "just remove the popup background" is simply to not add it in the component.php file when you create your template :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum