This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Off-topic / Re: Kaspersky Antivirus always alert the js script contains virus
« on May 5th, 2011, 04:21 PM »2
Features / Re: Ditching themes?
« on April 30th, 2011, 07:39 PM »Heh, well suffice to say that it takes some of the elegance of Python source and applies that to CSS, such that things are much more visually distinct and approachable at a glance than CSS normally is.
But of course since none of the browsers support it, it has to be processed first.
Sass seems to be quite a fun thing from what I've read over here.
And in the admin area -- retrieve variables from the wecss files, list them ("$main_font", etc.), and offer to overwrite them. If one of them is detected to be a color variable ("rgba(0,0,0, .5)", etc.), we could also offer a color wheel to pick a new one.
@Joker> Actually it's only Sass-style by inspiration. I read about Sass in .net Magazine last January, loved how their idea was going further than my original plans for a css preparser, which encouraged me to do a PHP version of it. In the end it hasn't got half of the Sass features, and it's certainly not as elegant, but it's much, much faster, and at least you don't have to remember 50 different functions eheh. Plus, my implementation has some cool extra features that no other css preparsers have. (Notably the 'final' keyword which is important for object oriented programming. You'll see when I publish the feature list.)
Here's a sample from my index.css code:Code: [Select] section.block extends .wrc
overflow: hidden
header extends .wehead
font-weight: 700
padding: 3px 12px
border-radius: 8px 8px 0 0
margin: -0.9em -1.2em 1em
footer extends .wefoot
padding: 3px 12px
border-radius: 0 0 8px 8px
margin: .5em -1.2em -0.9em
dl.settings
margin, padding: 0
Fun, eh? :)
3
Features / Re: Ditching themes?
« on April 30th, 2011, 05:30 PM »It's a LOT more complex than that. There are no normal CSS files in Wedge, they are all Sass type files now, so you'd have to edit them, recache them then re-serve them.
4
Features / Re: Ditching themes?
« on April 30th, 2011, 05:26 PM »Though we're planning on making it so that editing a theme affects mods less and vice versa.
I'm not much of a fan of noob-friendly CSS editing, personally. Tempted to get rid of that editor in the admin area. As for allowing people to set default colors for a styling, hmm... I guess it's doable, but only through using CSS variables. It can be done, but really, I imagine it would complicate things for Wedge at compilation time. Maybe by allowing to override only the actual CSS variables in the code...
You can create a script which can refresh the css cache if the user has made changes in css through admin panel.
One more suggestion if you people think of going with the above suggestion that do create backup css files so that even if one wants to have the old styling back he can simply get it back from backup css file.
Edit - Just saw Arantor's reply
Arantor why don't you make a css code highlighter in admin panel itself so that it will be much easier to read the css code.
5
Features / Re: Ditching themes?
« on April 30th, 2011, 05:03 PM »Well right now it's very easy to change using an add-type styling.
6
Features / Re: Ditching themes?
« on April 30th, 2011, 12:26 PM »
First of all hello to everyone,
Nao as we can see in SMF itself most themes are curve based with some variation in images, so why not create a default theme using as less images as possible and then creating a section in admin panel where the admin can make the color variations by just putting color hex codes.
So it will provide a nice platform to admins to play with there themes and modify there forum looks as they want in very easy manner.
Just a suggestion :).
Nao as we can see in SMF itself most themes are curve based with some variation in images, so why not create a default theme using as less images as possible and then creating a section in admin panel where the admin can make the color variations by just putting color hex codes.
So it will provide a nice platform to admins to play with there themes and modify there forum looks as they want in very easy manner.
Just a suggestion :).