Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-10-11 16:42:56

dewyatt
New Member
Registered: 2013-08-20
Posts: 7

[textile] Using @media in articles

I would like to be able to use media queries in articles.
Like so:

<style scoped>
@media screen {
/* ... */
}
</style>

But I have not found a way of escaping the AT symbol, it always ends up wrapped in code tags.
Is there any way around this?

I’m using textpattern 4.5.5.

Last edited by dewyatt (2013-10-11 16:45:10)

Offline

#2 2013-10-11 17:18:37

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Using @media in articles

You can leave a block untouched using notextile tag.

notextile. <style scoped>
@media screen {
}
</style>

Offline

#3 2013-10-11 17:21:06

dewyatt
New Member
Registered: 2013-08-20
Posts: 7

Re: [textile] Using @media in articles

D’oh!
Thanks!
I actually tried notextile but I did it inside the style which of course did not work. I didn’t realize a notextile before the style tag would affect the whole block.

Offline

Board footer

Powered by FluxBB