CSS framework

Posted 9 years, 6 months ago (Edited 5 years, 4 months ago) by cy

I basically went through everything on profile pages and noted down what each thing did so it'd be easier to code profiles...! It's just a matter of filling in the blanks. Some code has already been added but you can always remove it. Now with a character pages version! Profiles

Characters Updates:

- (7/11) Added links and stats, rearranged the code to reflect the new order of links in the sidebar; finished characters framework too.

- Added character folders.

NotFound

cy I see

 

if gradients are supported at some time in the future, will you let me know?

NotFound

cy

I was thinking about what you said

"whitelisting properties/values requires that a parser be manually written to detect allowed values (for security reasons), so it's more than likely that functions aren't currently working."

and that sounds like reinventing the wheel.  wouldn't it be simpler to filter the custom CSS input rather than simply putting it up blindly as a style tag?  write a simple js that take in the contents of the box as a string, and iterates through the properties, discarding any non-whitelisted properties or values within the property?  I mean in that case you could block errors from misspelled properties and generally shorten load times for pages with custom CSS, as well as block certain selectors you don't want modified, like the header of the page that you want to retain the TH LAF.

using a js filter would actually be more secure than the method you're currently using which is capable of generating unforseen errors, since you're rewriting the CSS interpreter.  on top of that, posting it automatically has another danger: you assume the only things in the box is CSS

Semeki

Nice job! I am fairly new so I didnt know which codes this site supported since other websites use different tag s to represent different things

KnightOfSpring

Semeki the site recently went through a recode so the codes in this thread are from the old design and won't work anymore unless you use the Legacy option. I just thought I'd let you know.

Semeki

I see. Whoops. And thank you for letting me know. Guess ill keep looking for a guide of some sort

KnightOfSpring

Semeki yeah, I hope they will put it up soon again. The admins are still in the process of fixing things and adding stuff so here's hoping that once that is done we get the framework. However, you can find a few nice tricks here: http://toyhou.se/1099931.coding-snippet-goldmine

Semeki

You have been very helpful thank you.