CP Theme: How to change alignment of Tabs?
Posted: 05 September 2008 10:43 AM   [ Ignore ]  
Summer Student
Total Posts:  14
Joined  03-12-2007

Hei!

I’m working on my own Control Panel Theme but for any reason the tabs in the top naviagion are always centered and 100% wide.
I’d rather have to have tabs that are left-aligned and only as wide as needed.
I haven’t found any information about this and would be happy if someone could help me. smile

Thanks a lot!
Maurus

Profile
 
 
Posted: 08 September 2008 12:57 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1455
Joined  09-16-2004
Breathe Makes Smoke - 05 September 2008 10:43 AM

Hei!

I’m working on my own Control Panel Theme but for any reason the tabs in the top naviagion are always centered and 100% wide.

Well, they’re inside a table so that’s what happens.

Breathe Makes Smoke - 05 September 2008 10:43 AM

I’d rather have to have tabs that are left-aligned and only as wide as needed.
I haven’t found any information about this and would be happy if someone could help me. smile

Thanks a lot!
Maurus

Text-alignment can be changed by setting text-align to left or right for .cpNavOff, .cpNavLocked in the CSS file that’s inside themes/cp_themes/default/default.css
Unfortunately, the width is specified in the markup itself.
Around line 858 in system/cp/cp.display.php sets the width:

$r .= "<td class='navCell' width='".$width."%' ".$js.">";


Not sure it’s worth hacking one of the core files to get rid of it… I for one hope that in EE2.0 they lose all presentational data in the HTML, it would sure make the CP easier to skin.

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 09 September 2008 08:50 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  14
Joined  03-12-2007

Thanks a lot! I’ll take a look at it. smile

Profile
 
 
Posted: 09 September 2008 10:04 AM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1455
Joined  09-16-2004

No prob smile
Don’t forget that a lot can be learned from picking apart the available control panel themes.
Another good tool for dissecting a webpage is the Firebug extension for Firefox, if you’re not using that already>

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 10 September 2008 09:32 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  04-23-2006
e-man - 09 September 2008 10:04 AM

... the available control panel themes ...

After just now viewing the screenshots of those themes, it strikes me odd.

Although it is the tiniest of print, it appears to say the version of EE during when the screenshots were made ...

v.1.1.1
v.1.1.1
v.1.4.0
v.1.1.1
v.1.1.1
v.1.1.1

Have the Control Panel Themes NOT changed that much over these past versions?!
or am I mistaken, and I’m just seeing things?!
gulp

 Signature 

OLD username was jammo, NEW username is OrganizedFellow

It’s a struggle even to keep focused. This is the best of my AD/HD & GTD.
The exceptionally slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

Profile
 
 
Posted: 11 September 2008 11:28 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  122
Joined  08-05-2008

The main CP skeleton has to be the same, so that’s why only color-variations are made to the current system.

 Signature 

———-
http://douglasstridsberg.com
My blog with random rants and lulz.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 21
Total Topics: 81863 Total Anonymous Users: 18
Total Replies: 440100 Total Guests: 205
Total Posts: 521963    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb