First I want to say you have awesome timing. I need to rebuild my hacked up Zen theme for D6 and have been waffling between the layout ease of ninesixty and the massive support and documentation for Zen. Last night, I decided to go looking for already existing Zen subthemes to see if there was anything close to what I need to help me out and this is it. I can handle basic CSS like color changes and stuff so having a similar layout really helps.

The problem I'm running into is I am going for a two column 630/330 split and trying to make the adjustment runs into all those delicate negative margins and such. I normally try to avoid filing issues for support that's so specific to my site but it occured to me that a help page on how to adjust the column size would benefit all of your users who aren't CSS savvy enough to wade through layout issues.

So, any chance of you writing something up? It doesn't need to be wordy. Just paste the relevant CSS bits and say if you add X to this number you need to subtract Y from that number so that everything balances out.

Thanks in advance,

Michelle

Comments

michelle’s picture

Ok, I've been poking at Firebug since I posted this trying to figure it out on my own and I finally hit on a combo that works. I just added this to my CSS:

body.one-sidebar #sidebar-right,
body.one-sidebar #sidebar-left {
width: 330px
}

body.one-sidebar #content-inner {
margin:0 120px 0 250px
}

It seems to be working. If doing it this way is going to come back and bite me in the butt down the road, I'd appreciate a heads up. ;) If not, well, then documenting this is quite easy. Not much to it once you finally figure it out.

Michelle

gausarts’s picture

It's a great honor that you asked, thanks.

I didn't plan to have two column layout, but it's worth a try, seems to be nice though with 960px wide. I'm working on it now and there is a good progress. Allow me sometime to test it thoroughly.

And I am working with sidebar-right now. Is that okay?

Thanks

michelle’s picture

Well, you can get a two column layout simply by putting everything into the right sidebar. The trouble is that it ends up being 220px and I really wanted it wider to fit a standard ad size, and other things. The fix I posted seems to work but I don't know CSS very well and didn't know if that woudl break something else.

Thanks for looking at it,

Michelle

gausarts’s picture

StatusFileSize
new189.89 KB

I followed what is there http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-pixels.htm

And seem to be okay here. Please have a look at the screenshot, so that I know what to correct.

michelle’s picture

StatusFileSize
new127.35 KB

FWIW, here's what it looks like with my adjustment up there.

gausarts’s picture

StatusFileSize
new163.9 KB

Another clean one

gausarts’s picture

Ah you did it. Need to give a padding for the left side of the sidebar I think:
#sidebar-right {
float:right;
left:330px;
padding:0;
position:relative;
width:315px;
}

gausarts’s picture

Assigned: Unassigned » gausarts
Category: feature » task

Changing this to a task:) Thanks

michelle’s picture

Oh, sorry, I never answered your last post. I tried the padding but didn't like the look of it. That's ok, though. It was changing the column size that was the real challange. Would be good to have that documented for other css newbs like me. :)

I've put my theme on hold for a bit so I can work on APK so that's it from me for now.

Michelle

michelle’s picture

Actually, looks like I need help after all. I thought I had it but then I changed the background color and realized there's a border on "far-left" that's sitting in the middle of my right sidebar. I can't figure out how to move that. So I could still really use instructions on how to properly set this up as a two column theme. :)

Michelle

gausarts’s picture

I am really sorry for the delay.

You may need to remove this property:

border-right:1px solid #EAEAEA;

from these selectors:

body.one-sidebar .farleft, 
body.two-sidebars .farleft, 
.farleft, 
#main-inner

I haven't refactored the codes yet, sorry.

FYI, actually I've created a specific theme based on your ideas here and it's designed with drupal forum in mind. I'll be glad if you can tell me what needs to be there or not as you have mastered drupal forum already.

The header part is made easier to get replaced with large banner/image. It has more spacious sidebar when there is only one sidebar available as you expected. When one sidebar is collapsed, the other will occupy the total width of the two. It also supports one/two/three columns of ads. Would you mind checking this link first http://dev.gausarts.com/

michelle’s picture

Oh, nice! That would actually work great as there are some pages here and there I may want the three columns on. Having the option would be great. Is this theme available? I'm really struggling with my theme right now and what you have there would get me a lot closer than what I've managed on my own. :)

Thanks!

Michelle

gausarts’s picture

Yes, I hope I clean things up by night today. It's 5am here now:)

Please suggest me more so it can be more usable. Thanks

michelle’s picture

Well, what's usable to me might not be what you want. :) I can tell you the changes that I will make to it for my own site and you can decide if any of it is something you are interested in.

  • Top block white with two regions: Logo on the right and user login / dashboard on the left
  • Under that a bar with the primary menu, possibly with the search there if enough room
  • Right sidebar different background color (maybe grey) with a more graphical border on the left
  • Large footer with mini site map

Beyond that, it would be mostly colors / graphics to match my site. What you have there in your demo comes really, really close to what I need. I'm excited to get it and play with it. I've been so frustrated because I'm a programmer, not a themer and my attemps so far are getting me no where. You've given me hope!

Now get some sleep! :)

Thanks,

Michelle

michelle’s picture

For reference, I'm trying to do something like this except with two columns at a 630/330 split. Different colors and graphics, etc, of course, but that layout is pretty close.

Michelle

michelle’s picture

Better example: http://www.revolutiontheme.com/city is what I'm really going for. That's it to a T except for color/graphics changes.

Michelle

gausarts’s picture

Ok, I'll see to it. The last example is prettier and seem closer to this http://dforum.gausarts.com. But it doesn't use holy grail. What do you think? Thanks

gausarts’s picture

But if you prefer like the last example, and still holy grail, I think I can make 5 collapsible sidebars, that is, the last sidebar right, can be split into two more narrow sidebars along with the wider sidebar right upper and lower. Is that reasonable?

michelle’s picture

Oh, that last example is awesome! I'm not married to grail at all. I just picked this theme because it was the closest Zen subtheme I could find to my goals. As long as the layout is sensible under the hood, I'm fine with it. I think what you have there would be a great start if you could release that!

Thanks so much. I think this will be a nice starter theme for a lot of people. The Wordpress theme I wanted to use was very popular and this doesn't copy it but has a lot of the same layout.

Michelle

michelle’s picture

I know I'm being impatient but I'm chomping at the bit to get to work on this theme. :) Can you give me some idea of the plan, here? Are you going to release that "forum" one as a seperate project? Any idea when? Not rushing you to finish it but if you can put up a dev of what you have, I can start playing with it and then just update when you have it done.

Thanks,

Michelle

gausarts’s picture

I have been absorbed by holy grail version, but that'll be fine. I'll just have to make it a bit different as I made it for my employer :) Perhaps one or two days after I finished this holy grail version. I'll try to make it as close as possible to your preference at least in the layout. If I can make it by morning, I'll check it in. My internet connection is very slow, and usually a bit faster by morning. Thanks

michelle’s picture

Thanks, you are awesome! :)

Michelle

gausarts’s picture

StatusFileSize
new91.71 KB

My, I couldn't make it in time, sorry. If you might want to play around with the grail version, please see the attachment. Please see the readme for the WARNING :) Suggestions are very much appreciated. Thanks

gausarts’s picture

StatusFileSize
new25.67 KB

And a preview:)

michelle’s picture

That looks like a very nice theme and I think it will be well worth a project but I think you've moved farther away from the direction I was trying to go. And that's fine; you need to do your thing, not mine. But I've made some progress using the Plain Grail theme and the main issue I'm having is that the columns still aren't right. I've attached a screenshot so you can see the problem. The black outline is around "main-inner" and the yellow outline is around "sidebar-right". As you can see, I've managed to get the content itself in the right place but having the containers wrong mean I can't put a border on the sidebar.

If you need a link to the site itself I can provide that. If this is too much support to be asking, I understand that as well.

Thanks,

Michelle

gausarts’s picture

Okay, I think a link or screenshot will help me spot the problem. So I'll go from there if that's fine. Thanks

michelle’s picture

StatusFileSize
new137.74 KB

Oh, doh! I didn't actually attach the screenshot, did I?

gausarts’s picture

StatusFileSize
new96.58 KB

I don't know if it may help, but I attached another theme here. I tried to get it as close as possible to the layout you have. I think I should start to write about adjusting column size as you wanted:) It's just sort of mathematics, but I just have to say that right so it may apply to any situation which I guess need a lot of testings in my part:)

michelle’s picture

Awesome! Just based on a quick look so far, looks like you fixed the layout. You rock! I agree, though, that docs would still be good. It's a better use of your time to document it rather than fix everyone's themes for them. :)

Well, cool, I can switch over to using that layout and I should be good to go. Thanks so much!

Just out of curiosity, what did you use to grab the images? I sure hope they don't actually look like that in any browser. Wowsers!

Thanks,

Michelle

gausarts’s picture

I just picked up the screenshot roughly to check sizes:) The image is actually 2px shorter than it should be, I just realize it when seeing the secondary menus, but the CSS is just fine. Only need to replace them all with your own, of course.

michelle’s picture

Ok, finally had a chance to get back to this and I'm comparing the differences between Plain Grail and "Coulee Grail" and there's a lot of differences. So much, I'm not able to pick out the layout changes to copy over. So I'm back to needing those instructions, I guess. :(

Michelle

gausarts’s picture

Oops, sorry. I made coulee a single sidebar yes :) I'll try to do my best to create a proper release. Allow me some time. thanks

gausarts’s picture

StatusFileSize
new92.87 KB

In case I have a delay in the release, here is I attached the latest dev. Hope it may be more flexible. If you found the README there, feel free to mark this fixed :) Thanks

michelle’s picture

Status: Active » Fixed

Thanks! TBH, I couldn't follow the comments in the readme. I think there's still room for work there if you have time some day. But singling out the exact parts that needed adjusting did it for me. With a bit of playing around, I realized that if I subtract the exact same number from each of the big numbers, I can shrink the right column as needed. So that worked out great for me. :)

Ironically, after all this, I don't think I'm going to put a visible border on the sidebar. LOL! But it's nice to know that the layout is in good enough shape that I can do so if I ever choose to.

Michelle

michelle’s picture

One other thing... If you are going to make what you have there in that zip the new version of Plain Grail, is there any chance you could do an alpha release of what is currently in the dev snapshot first? The reason I'm asking is because, while the new instructions are nice, the rest of the new version wrecks my subtheme. If you make an Alpha, I can just stick with the Alpha and it will always be there for me to go back to if something were to happen to my copy. If you just overwrite the existing dev with the new version, it's lost forever. :(

Thanks,

Michelle

gausarts’s picture

Ok, thanks for the hints. I am new to all this. I'll try to refine the current dev snapshot first and stick with that to alpha before releasing the latest. The borders were separated now. They are actually made to show off the holy grail, but I should have made them more visible to delete in the first place:)

If you want me to take a peep at your link, you can always use my contact form in drupal. It'll be easier to work out things from what you have done :) Thanks for helping me make better things.

michelle’s picture

Actually... Don't hate me but I was really struggling with this on IRC last night and found someone able to help me but he uses the Framework base theme so I ended up switching to that. While trying to see if I could get my subtheme to work with your latest version, I looked in all the files and realized this theme is a lot heavier than I realized. There's all sorts of javascript and just misc stuff in there and the filesizes are quite large. To put that on top of Zen and then my theme on top of that is going to make the theme really sluggish.

I don't think your time was wasted, though, because adding those instructions will help others using this theme. Also, I suggest paring the layout.css file down to just layout. One of the first things I tried to do was just grab the layout.css since the only thing I needed from this theme is the layout but found it was filled with non layout CSS. Having a clear line between layout and "decoration" will help people adapt your theme to their needs.

Thanks for all your help. I do really appreciate it even if I ended up switching in the end. And this is still a nice theme for folks who don't need to modify it quite as extensively as I do.

Michelle

gausarts’s picture

Yes, thanks. No worries. It's always helpful to have second opinions. I've refined them down the road, and the latest zip was really too early. I haven't optimized the images as much the codes. My target is to actually make the css files under 15K when drupal aggregation is enabled. Currently I have just reduced around 20K out of 62K in the latest ZIP up there before aggregation. And the images were about 12K less out of 28.7K, and will be lesser when I made them as a sprite I hope. I just need another cup of coffee to stay strong :) Thanks

michelle’s picture

You're doing a fine job and I understand perfectly that this is still in dev. What it comes down to is that what I wanted was your layout, not your theme and I realized that taking a whole theme just for the layout made no sense. You've got a fine theme going that I'm sure many people will love; it just wasn't what I really needed in the end.

Thank you for your time,

Michelle

gausarts’s picture

Yes, I thank you too for giving it a test. I am now even a bit exited as all css files aggregated almost reach my goal:)

Input: 35.894KB, Output:16.472KB, Compression Ratio: 54.1% (-19422 Bytes)

There are actually 3 unused files: ads.css and preset grail-overrides amount to 4K, and deletable 6K of grail width starter. So it may end up around 10K aggregated, or around 25K with all comments.

It's high time to find out how much is good enough for a usable starter starter theme :) Again thanks for your time, too.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.