Show Posts

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.

Messages - Nao
4486
Off-topic / Re: The Dark Knight Rises
« on September 11th, 2012, 05:27 PM »
Well... Every time I caught an episode, it felt horribly campy. Perhaps even worse than the Batman show of the 60's...
It just doesn't seem to fit AT ALL with any of the Superman origin stories I'm familiar with.

They should have made him go to Metropolis early on. Then I'd have watched the show. Lex Luthor in Smallville? That's just plain silly...
4487
Off-topic / Re: symfony vs zend framework
« on September 11th, 2012, 05:25 PM »
The only framework that works for me is called SMF. :P
4488
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on September 11th, 2012, 05:23 PM »
It might work better if I used a different command for inline if's, but people might see it as 'odd'...
But if there's a different syntax, then @if could be done with the {browser} syntax easily, without brackets or whatever...

Code: [Select]
@if {ie[7-]}
    rule: property

@if $variable
    rule: property

.class
    rule: @test ({ie6,ie7}, property1, property2)
    rule: @ifthen ($variable == true, property1, property2)

Is that, err... Any good?? Or confusing? What name for the inline version? @ite (if then else)? Is that self-explained or too lame?
Posted: September 11th, 2012, 04:25 PM

Or something like @if agent(ie6,ie7) maybe..? agent() being a function that returns 'true' if the current browser is in the list?
Although it could also be tested for "agent(rtl)" for instance, in which case we'd need a more generic name...
Maybe global(variable) or something?
We could even test for global(index) for instance, to tell whether the current file is executed in the main context, for instance if we're adding some conditional code in common.css or custom.css... Wouldn't it be nice to be able to restrict custom/common code to just one file? :)

Oh... "if is(...)"...? Sounds like a winner to me. Or "if for(...)", but I don't like it as much (the only point is that it's also used in skin.xml...)
Posted: September 11th, 2012, 04:37 PM

(Anyone still reading this topic...? :^^;:)
4489
Off-topic / Re: Doctor Who
« on September 11th, 2012, 04:21 PM »
I never really liked dinosaurs, myself... It's like being a fan of sharks, but only because they're extinct so they can't hurt me.
4490
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on September 11th, 2012, 02:53 PM »
I've been breaking my jaws on the regex for @if... Grmpf!!

It's pretty hard to figure out.

- @if can be inline
- @if can be a block, in which case the code to be executed is in a nested block below it...
- @else can be on the same line, or at the same (horizontal) level in a following line <-- this is where it's getting complicated! Especially if I decide to allow for an inline @if followed by an @else statement on the next line...
- no @endif means I have to do a precise calculation of what is inside both @if and @else blocks
- I don't even know if I should allow @if to test more than CSS suffixes... i.e. in a mixin, @if ($param == 0) would be a nice thing to do... But then, how do I differentiate between a browser name and something else? (I mean in regex... and don't tell me "just look for $"...)

Perhaps I should do the parsing with multiple strpos calls. But I'm not sure it's even going to be any easier... At least with regex I can easily keep track of the positioning.

So much fun...
4491
Off-topic / Re: The Dark Knight Rises
« on September 11th, 2012, 01:21 PM »
Never saw Birds of Prey. Smallville sucks big time. Ain't seen Green Arrow or Aquaman or whatever.
What I'm talking about is the DCAU... Bruce Timm's thing. Now there's someone (along with Paul Dini etc) who did a lot for Batman and co. More than Chris Nolan, if you want my opinion, but I'm thankful for Nolan too!
4492
The Pub / Re: Logo Madness
« on September 11th, 2012, 01:18 PM »
But it's recognizable.

For every 'Nike' example I can give, I can find thousands of examples where a company logo is basically the name itself.
I've always been bothered with the logo, not because it's original, but because it's not THAT much original -- heck, it could be seen as a rip-off of the Nike logo after all... Or simply a 'wave', or 'flower petals', etc... Which is valid for everything, because, well, that's basically what I did: I took a bunch of paths and tried to turn them into something recognizable and inducing a sense of dynamism.
Fact is, I learned more about the tools (never stopped learning...), now I've becoming better at handling paths, and I was able to start from a more complex shape -- a W -- and turn it into something I like.

I still haven't managed to make a proper favicon for it, but it doesn't matter that much. I mean, Google's old favicon was horrendous, their new one may be even worse... It's not stopping them from being successful is it?
4493
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on September 11th, 2012, 12:35 PM »
What do you think looks best and/or readable...?

Code: [Select]
$bevel = ", url($images/theme/bevel.png) $button_gradient"
$bevel {ie6,ie7,ie8} = ""
$button_gradient = ", linear-gradient(90deg, rgba(212, 212, 212, .5), rgba(212, 212, 212, 0))"
$button_gradient {ie9} = ""
$max-width = "max-width"
$max-width {ie6} = "width"

Code: [Select]
$bevel = @if (ie6,ie7,ie8) "" @else ", url($images/theme/bevel.png) $button_gradient"
$button_gradient = @if (ie9) "" @else ", linear-gradient(90deg, rgba(212, 212, 212, .5), rgba(212, 212, 212, 0))"
$max-width = @if (ie6) "width" @else "max-width"

I'd say the first one.
So, I've got three possibilities...
- Just get a life and forget the first one,
- Keep support for {browser}, as I'll probably be keeping it in skin.xml as well (I need to think about it),
- Just get a life and forget the first one, really.

What do you think...?

Also:

- I've rewritten ifnull() to @ifnull(), as it's a conditional command. It should now accept spaces before the brackets as well.

- Rewrote {%function%} to use '@dynamic function' instead. (It's the same thing, except that you can actually call multiple parameters now and with a cleaner param syntax, they'll be sent as regular parameters instead of the array crap I was sending.)

- And finally, renamed mixin declarations to @mixin. (Have yet to add support for the 'mixes' keyword.)

I discovered (ah ah, completely forgot about it) that I'd already added support for optional variables in mixins, but I haven't tested them for a long time, so I don't know if it still works, I'll have to try... Problem is, I really, really don't make much use of mixins in Wedge...! Actually, it's only used twice (checkbox-styling and ie-inline-block). And none of them require a variable. I should probably do something about that...
4494
Off-topic / Re: Doctor Who
« on September 11th, 2012, 08:47 AM »
Devious? As in deviant?

Okay, I'll accept the explanations for the Doctor's wrath etc... There are enough elements to justify it, even though I think he's going over the top. (And it's a kid's show originally, remember?)
4495
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on September 11th, 2012, 12:51 AM »
Quote from Arantor on September 9th, 2012, 02:40 PM
Either it needs to be be consistently with @ or consistently without to let @ be left alone as it was for @media type stuff. Unless you have a different symbol in mind that can be consistently used everywhere?
There's ~, by the way... It could be used. It's used by LESS as an escape character. It's hard to write for me, though. On an AZERTY keyboard, it's Alt Gr + number 2 on the keyboard (not the keypad), forcing us Frenchies to actually use both hands to enter the character... I think QWERTY keyboards have it more readily available.
Heck, even @ is Alt Gr + 0 number for us, but at least it's easy to type with a single hand... :)
Posted: September 11th, 2012, 12:46 AM

Oh, and the name Wess... Is that alright for everyone? Or does it sound too much like Wuss?
4496
The Pub / Re: Logo Madness
« on September 11th, 2012, 12:39 AM »
Still haven't found a 'suitable' favicon version (16x16)...
Also, Milady told me she prefers the original logo. Just like her friend told me yesterday... Odd that people IRL are telling me they don't like it -- but they're the only ones! And I like the new one too much to get rid of it. I'm not going to be stopped by the favicon problem either... At worst, I'll just keep both logos. One will be for wedge.org, the other will represent Wedge.
Or something.

PS: I've updated the poll with the latest logo...
4497
Off-topic / Re: Doctor Who
« on September 10th, 2012, 11:22 PM »
- I do remember 42... And I did enjoy the episode. A bit like 'Sunshine' and all...

- What I'm saying is that the Doctor never gets mad against villains unless they did something truly worthy of his wrath. Okay, the guy killed hundreds of Silurians -- and we know Silurians are usually a peaceful people -- but he didn't see him do it. From his point of view, all he knows is that he tried to kidnap Nefertiti and sell her as a slave or something... And he's so old, he couldn't do anything worthy without his robots' help. He really didn't strike me as worthy of such a revenge from the Doctor. I like my Doctor vengeful, believe me. I just think he should be vengeful in really, really exciting situations. Like when he snapped in Waters of Mars, things like that...

- Eleven is only as smart as Steven Moffat can be... :lol:
4498
The Pub / Re: Getting ready for an alpha release: WeCSS/Wess improvements
« on September 10th, 2012, 11:13 PM »
Quote from Arantor on September 9th, 2012, 07:15 PM
It's more a semantic thing to me personally. LESS uses @ everywhere to indicate mixins, functions and whatnot and that helps differentiate it from CSS. Having the @ will certainly avoid making mistakes between commands and selectors, but it also conflicts with the use of @ for media.
@ is used for conditional commands, as well as directives (@import, @charset...), and a couple of non-specific instructions.
Basically, the thing that connects them all, AFAIK, is that they're at the beginning of a line, rather than lost inside a selector.
So, there's no reason to use @ on 'extends', 'virtual' or 'final', etc.
However, Wedge defines mixins with the simple 'mixin' keyword, instead of '@mixin', which is probably an oversight of mine.
When CSS adds functions that can be used inside a property, they aren't prefixed. 'calc', 'url', and so on.

Now, one might want to keep away from using @ function names when nothing says CSS4 won't implement @if in the future. If this happens, however, there's always time to rename it. In the meantime, I'd like to 'stick' to the CSS standards as much as possible.
Thus, if() should be @if() because it's a conditional command. Even if it can be used inside a property -- but it's really of no concern to us, because it can be used anywhere and is a preprocessor magic replacement, just like $variables are.
Quote
Conditionals are somewhere between commands and modifiers, semantically speaking. But consider something like lighten(value, 10%) - what's different when writing compared to if(ie[-8], #fff, rgba(255,255,255,.8)) ?
As mentioned above -- functions inside properties aren't prefixed in CSS.
Quote
I don't really mind either way, just offering up my thoughts on a technical perspective. People coming to Wedge will deal with whatever's there, warts and all.
Sure.

Well... I'll try to work on that this week.
4499
Off-topic / Re: The Dark Knight Rises
« on September 10th, 2012, 07:51 PM »
Quote from Kindred on September 10th, 2012, 05:49 AM
Bane's voice annoyed me, because it was so muffled that I had a hard time understanding him in many places during the movie.
Sometimes it's good to have subtitles :P
Heck, I'm so used to them, I sometimes have trouble understanding French movies for the same reason (bad sound etc...), and I then start pondering whether I should add English subtitles just as occasional help...
Quote
the rest of it...  meh...  I preferred the first two movies, much more.
I don't even remember a tenth of the first one... Definitely the weaker entry for me.
Quote
and DC movies are crap these days. Marvel rules the movie-verse
DC doesn't release a lot of movies, AFAIK.
They do have interesting direct-to-videos though. e.g. Under the Hood, Doomsday, Year One... Some of these things are worth it (mostly.)
4500
The Pub / Re: Logo Madness
« on September 10th, 2012, 04:32 PM »
It doesn't even have blue in it..? The top right corner is gray... (Just do a color peek on it!)

The only issue I have with the new logo is making an exciting favicon for it... But it'll come in time. I'll probably have to use some tricks, though.