Hi,

First of all, great module, I've been wanting to use blocks/views in a mega-menu for a long time!

I'm wondering how to start theming the modules, working off the starter themes. I'm using 'light' however I can't see any CSS for 'light' in the module's CSS files, only the other themes. Do I need to create the CSS for 'light' or am I better creating my own theme from scratch?

One of the problems which I've got at the moment is that I can't figure out what's controlling the margin around my menu blocks at the moment. If you have a look at http://demo.highfrequencytraders.com/node/2 (a demo site I'm building), you'll see the margin in question (I've made the block grey to make it visible). Where can I control this margin?

Thanks.

Comments

pbfleetwood’s picture

+1

damienmckenna’s picture

Status: Active » Fixed

If you use something like Web Inspector in Safari or Chrome or Firebug in Firefox you'll find that the padding is being inserted into the "qtip-content" div directly by qTip. What you ought to do is try out the newest version and create a custom style which defines your own custom settings, see the included API.txt for details; fyi I'll have another RC out hopefully today.

damienmckenna’s picture

Title: Basic Theming » Theming documentation
Version: 6.x-1.2 » 7.x-1.0-rc1
Status: Fixed » Active

Am re-opening this so that I can update the README.txt file with instructions for theming.

damienmckenna’s picture

Tag.

erok415’s picture

Hi,
I still kinda nubish. I read your API.txt and have a few questions.

Q1.

Step 1: Add a JS file called e.g. "mymodule_style.js" with the desired style
settings.

Does this mean I should create a new module or add this new ...js file to the menu-minipanels directory? Excuse my ignorance, I have never created a module.

I may be going to far into this.

Basically, all I want to do is add rounded corners to the bottom left/right and not the entire container that is displayed. In the menu item settings, I can only provide 1 number which then gives a rounded corner to all corners of the container. It would be great if we could enter a series of numbers to modify each corner separately. Such as 0px 4px or 0px 4px 0px or 0px 4px 0px 4px flowing CSS standards. Just a thought.

Thanks,
E.

pbfleetwood’s picture

@erok415, I've been able to style my megamenu via my theme's CSS file. I haven't touched any of the files in the module folder.

erok415’s picture

Please describe how you did it. All I want to do is add a rounded corner to the bottom left/right of the

. That div is that one that is getting styled from the JS. If I tried to style that div, the radius applied gets removed once the JS activates.

Any clues on how to do this using the theme stylesheet?
E.

pbfleetwood’s picture

@erok415, the following served my purpose. There are four qtip divs wrapped around the minipanel.

.qtip-content { padding: 0px !important; background-color: #f0f8ff !important; }

erok415’s picture

@pbfleetwood

Outstanding! Here is what I did.

I had to remove the background color that is getting applied via qtip-light (maybe) or just the standard qtip JS file. Then I applied my styles to the .qtip-content as you suggested. The code is as follows.

.qtip-contentWrapper {background-color: transparent !important;}
.qtip-content {-moz-border-radius-topleft: 0px;-moz-border-radius-topright: 0px;-moz-border-radius-bottomright: 4px;-moz-border-radius-bottomleft: 4px;-webkit-border-radius: 0px 0px 4px 4px;border-radius: 0px 0px 4px 4px; }

Thanks a bunch. Now my menu looks just like I intended it to.
E.

damienmckenna’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Component: Miscellaneous » Documentation
Category: support » task
Issue tags: +D6 stable release blocker

D6 needs this too.