Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-20 17:13:46

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Nested CSS files

I used to (before TXP) build my css files with a master file that contained @import statements, and several topically named css files. That is:

<code>@import url(position.css);@import url(navs.css);</code>

It made editing lots of css code way easier and more organized. How would I do this with TXP? How would I refer to each stylesheet (if possible?)

Last edited by mrdale (2006-01-20 17:14:45)

Offline

#2 2006-01-20 17:42:14

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Nested CSS files

Should be able to still do it…just use an absolute URL to the style files.

Actually a relative should work too, like…

url(../styles/a.css)

Last edited by Destry (2006-01-20 17:43:49)

Offline

#3 2006-01-20 17:44:28

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Nested CSS files

> Destry wrote: Should be able to still do it…just use an absolute URL to the style files.

I still want to manage these files inside of TXP. so how would I reference a TXP style called “position”?

Offline

#4 2006-01-20 17:47:38

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Nested CSS files

Oops, sorry, I see now.

Hmmm, interesting question. Styles are tied a Section, so maybe there’s a way to nest a Tag combination in the url part. I’m not sure. I’ll keep an eye on this though ;)

Maybe that last bit in this FAQ is a piece of the puzzle.

Last edited by Destry (2006-01-20 17:49:45)

Offline

#5 2006-01-20 17:52:57

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Nested CSS files

I do use the same CSS for everything, if that matters.

Thanks, and et me know what you find out.

Offline

#6 2006-01-20 19:00:55

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: Nested CSS files

You can still get a given stylesheet out of css.php, regardless of section. Just call css.php?n=name.

-Kurt


kurt@kurtraschke.com

Offline

#7 2006-01-20 19:09:42

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Nested CSS files

Big Danke, Trying…

Bing works like a charm! Less scrolling!

Last edited by mrdale (2006-01-20 19:39:03)

Offline

Board footer

Powered by FluxBB