no-sidebars apppearing in acquia sub theme

no-sidebars apppearing in acquia sub theme

1 post / 0 new
VintageVictory1945's picture
gerardo
Points: 0
no-sidebars apppearing in acquia sub theme

Hello I'm having problems with sub themes. Using Acquia Slate as a basis, I've moved it to sites/themes/acquia/acquia_foo and changed the info details to match.

I'd made good progess with the theming and css when I realised that the column widths were not rendering correctly - no matter what I set them to:

/* Single column layout
* main content
-------------------------------------------------------------- */

body.layout-main #content-wrapper {
margin: 0;

}

/* Two column layout
* sidebar | main content
-------------------------------------------------------------- */

body.layout-first-main #sidebar-first {
margin: 0 20px 0 0;
width: 250px;
}

body.layout-first-main #content-wrapper {
margin: 0;
width: 730px;
}

body.layout-first-main #content {
border-left: 1px solid #444444;
padding: 20px 0 20px 20px;
}

body.front.layout-first-main #content {
border-left: none;
padding: 0;
}

/* Two colum layout
* main content | sidebar
-------------------------------------------------------------- */

body.layout-main-last #content-wrapper {
margin: 0 20px 0 0;
width: 750px;
}

body.layout-main-last #sidebar-last {
margin: 10px 0 0;
width: 250px;
}

body.layout-main-last #content {
border-left: none;
border-right: 1px solid #444;
padding: 20px 20px 20px 0;
}

body.front.layout-main-last #content {
border-left: none;
padding: 0 20px 20px 0;
}

/* Three column layout
* sidebar | main content | sidebar
-------------------------------------------------------------- */

body.layout-first-main-last #sidebar-first {
margin: 0 20px 0 0;
width: 230px;
}

body.layout-first-main-last #content-wrapper {
margin: 0 20px 0 0;
position: relative;
width: 500px;
z-index: 1; /* keep content visible on admin pages */
}

body.layout-first-main-last #sidebar-last {
margin: 10px 0 0;
width: 230px;
}

body.layout-first-main-last #content {
border-left: 1px solid #444;
border-right: 1px solid #444;
padding: 30px;
}

body.front.layout-first-main-last #content {
border-left: none;
padding: 0 20px 0 0;
}

Looking more closely at the rendered page the body class is appearing as "not-front logged-in page-admin no-sidebars lightbox-processed admin-menu" for every page, even if it has sidebars.

This is also happening with a completely unaltered copy of slate uploaed to the same directory..

I can of course override the css using a new class for each content type, or just make every page bar the hompage 3 column (which is what the client wants).

I'd like to use this theme or its variants for other projects and would appreciate clarification - is this a known bug/issue or should I be looking at my theme settings again.?

mnay thanks

Lucy (on behalf of Gerardo)

Status: 
Resolved