Allegro.cc - Online Community

Allegro.cc Forums » Allegro.cc Comments » Control center - custom css

This thread is locked; no one can reply to it. rss feed Print
Control center - custom css
Peter Hull
Member #1,136
March 2001

I was messing with this page just now.
My custom css looks like this

div.signature {
  display: block !important;
}
span.cuss {color:#888}
div.instructions { font-family: Lucida Handwriting Italic; }

I noticed that the browser is putting in requests to https://djungxnpq2nug.cloudfront.net/css/div.signature { display: block !important
and https://djungxnpq2nug.cloudfront.net/css/}span.cuss {color:#888}div.instructions { font-family: Lucida Handwriting Italic
So is there something screwy going on with the CSS parser?

bamccaig
Member #7,536
July 2006
avatar

I don't seem to experience this. Are you sure you're putting your CSS in the correct field? If you examine the network tab of your browser's debugger you can confirm which field(s) have which data in the post request. I'm guessing you're sending CSS code as a URL field... It should also suffice to just inspect the input/textarea element and check its name attribute.

Mine looks like:

#SelectExpand
1div.mockup div.spoiler, 2div.mockup div.source-code 3{ 4 max-width: 80em; 5} 6 7div.mockup div.source-code div.inner td, 8div.mockup pre.source-code div.inner td 9{ 10 font-family: monospace !important; 11 font-size: 12px !important; 12 line-height: 1.2 !important; 13} 14 15span.url {display: none} 16 17#thread-list tr.bookmark td.topic 18{ 19 font-weight: normal; 20} 21 22.avatar_1111 {visibility: hidden;}

I tried posting it again to ensure it wasn't a new "save" bug... ???

Peter Hull
Member #1,136
March 2001

Maybe I am 'special' (my mum says I am) - I tried it on Firefox/windows and Safari/OSX with the same result.
{"name":"610220","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/1\/8163bb1a0a0b46a8c6042508d6b29e36.png","w":2264,"h":1452,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/1\/8163bb1a0a0b46a8c6042508d6b29e36"}610220

Matthew Leverton
Supreme Loser
January 1999
avatar

View the HTML. You should just see a call to /1136 on css. I don't see how anything a.cc could be doing would cause those network loads.

You should have quotes around Lucida Handwriting Italic.

Peter Hull
Member #1,136
March 2001

You should have quotes around Lucida Handwriting Italic

Nope.
Depends what you mean by 'should' - it's not required although it is recommended (I tried it both ways)

The request is coming from a file called theme-css.html, the top of which looks like this:

#SelectExpand
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<title>Control Center</title> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6<link rel="stylesheet" type="text/css" media="screen, projection" href="/theme/default/css/global.css" /> 7<link rel="stylesheet" type="text/css" media="screen, projection" href="/theme/default/css/cc.css" /> 8<link rel="stylesheet" type="text/css" media="screen, projection" href="/css/user.css/1136" /> 9<link rel="stylesheet" type="text/css" media="screen, projection" href="//djungxnpq2nug.cloudfront.net/css/div.signature { 10 display: block !important" /> 11<link rel="stylesheet" type="text/css" media="screen, projection" href="//djungxnpq2nug.cloudfront.net/css/ 12} 13span.cuss {color:#888} 14div.instructions { font-family: Lucida Handwriting Italic" /> 15<link rel="stylesheet" type="text/css" media="screen, projection" href="//djungxnpq2nug.cloudfront.net/css/ }" /> 16<link rel="search" type="application/opensearchdescription+xml" title="Allegro.cc" href="/opensearch.xml" />

And (if it's relevant) my user css code (from https://www.allegro.cc/css/user.css/1136) looks like this:

/* --------------- REMOTE LINKS --------------- */
div.signature span.url {
  display: none;
}

div.signature {
  display: block !important;
}
span.cuss {color:#888}
div.instructions { font-family: Lucida Handwriting Italic; }

with an extra rule at the top which isn't in the rules shown on the page.

Gideon Weems
Member #3,925
October 2003

Does anyone have a good, dark theme I could just plunk in there?

Peter Hull
Member #1,136
March 2001

Oy, Weems, no! Get out of my thread! ;)

Gideon Weems
Member #3,925
October 2003

It sounds like Peter is trying to hide something. :-X

Either way, changes only seem to be reflected when linking to an external CSS file, not when filling in the "Custom CSS" text box.

... Never mind. It was a cache issue.

Matthew Leverton
Supreme Loser
January 1999
avatar

And what is causing this "theme-css.html" to load?

Peter Hull
Member #1,136
March 2001

And what is causing this "theme-css.html" to load?

Me. That's the name of the page where I am making my settings.
See attachments. I have a horrible feeling I'm doing something stoopid. Is there anything I can do to be more helpful?

Elias
Member #358
May 2000

I can see the same thing if I go to https://www.allegro.cc/cc/theme-css with firefox:

Quote:

GET /css/span.cuss%20%7B%20%20%20%20visibility:%20visible%20!important HTTP/1.1
Host: djungxnpq2nug.cloudfront.net
...

And the response:

I'd just assume this is some kind of caching mechanism used by allegro.cc - I have no idea how it works though.

--
"Either help out or stop whining" - Evert

bamccaig
Member #7,536
July 2006
avatar

Peter Hull
Member #1,136
March 2001

Right. I initially thought it was every page but I think it's just the CSS editing page that does it.

Go to: