New revs

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: New revs
« Reply #675, on March 15th, 2011, 05:42 PM »
rev 657
(4 files modded, 3 deleted, 9 added, 48kb)

* Replaced foldable system with a simple div instead of the cool, but slightly annoying inline blank image. This saves a total of 83 bytes per call. (index.css, sections.css, upshrinks.png, index.template.php, BoardIndexInfoCenter.template.php, more files to come.)
+ Added other/images folder, where we should store 32-bit, unedited versions of our icons and such before optimizing them for filesize. The menu sprite, I'm afraid, is a bit outdated, but I couldn't find a fresher copy. (buttons-32bit.png, quickbuttons-32bit.png, sprite-32bit.png, sprite-32bit (menu, old).png, upshrinks-32bit.png, also moved foldable.gif and shrinkable.png)
Re: New revs
« Reply #676, on March 16th, 2011, 12:16 PM »
rev 658
(12 files, 16kb)

* Applied new foldable code to category collapsing and news. Also fixed plenty of minor issues regarding IE support for these icons. Grmpf. (Subs-BoardIndex.php, BoardIndex.template.php, ie6.css, ie7.css, index.css, rtl.css, sections.css
* Removed #boardindex_table id and used #board_list instead. Also indenazi and added a placeholder class for category RSS icons. (BoardIndex.template.php, */settings.xml)
* Topic titles need different things. They can't use we:cat anymore. Let it go, now. We need the freedom to style these. (Display.template.php)
! Fixed validation on IE6/7. Not that anyone cares... (index.template.php)

As always... Some complicated shit! Also, can't get category collapse icons to show both states in IE6 because of its inability to style two classes at once. It works in other icons only because they're linked to a smc_Toggle() object. I changed the order from &.fold to .fold& (which, admittedly is uglier), because I think it's best to always see the "-" icon, rather than either the "+" icon or no icon at all...
Re: New revs
« Reply #677, on March 18th, 2011, 04:45 PM »
rev 659
(4 files, 9kb)

+ Added support for browser-specific CSS mixins. Example: mixin {ie6,ie7} sample(attribute: 0px) (Class-CSS.php)
! Enforced removal of child selectors when parsing class extensions for IE6. Basically, without this, the entire list of inherited selectors is discarded. (Class-CSS.php)
! Fixed CSS cache file URLs (should start with "Wedge" for the default styling, not "styles".) (Load.php)
! Always load settings.xml, even if we're using the default styling. IE6 still needs the freakin' help with transparent PNGs... (Subs-Cache.php)
! Fixed JS error in stat page when using IE6. (stats.js)

(Just committing the easier stuff. ;))
Re: New revs
« Reply #678, on March 18th, 2011, 11:14 PM »
rev 660
(23 files, 58kb)

+ Added support for complement() alias function in the CSS parser (equivalent of hue(color, 180) or hue(color, 50%)). (Class-CSS.php)
+ Added support for custom color functions through a hook (untested, though.) (Class-CSS.php)
* Replaced regular board status icons with a sprite that makes it possible to change the icons in stylings. Because IE6 doesn't support transparent PNGs and we don't want to waste time over it, I'm using a special, smaller version of the sprite with no transparency effect. Also, these new class names suck... Anyone got a better idea? (boardstatus.png in both PNG8 and PNG32, boardstatus-ie6.png, sections.css, ie6.css, BoardIndex.template.php, MessageIndex.template.php)
+ Added a 'ping' class to images with a transparent PNG. (Admin.template.php, and... Is that all? Is there really no other PNG32 image left?)
* Replaced toggler icons with sprited versions, and made them stylable as well. Some places in the admin area still require an update. It doesn't work well in IE6, but you know the drill... Screw you, IE6. (Display.template.php, Post.template.php, Search.template.php, gecko.css, sections.css)
* Moved bottom linktree to below the content area, allowing for more precise fine-tuning of its styling. (index.template.php)
* Lots, lots of fixes for IE6. Also fixed a couple of issues with IE. Warm and Wine should now be closer to their modern browser appearance. The 'grey' color isn't recognized in IE6, so changing it to the Americanish 'gray'. And changed the transparent PNG process to be much faster. (ie6.css, Wine/ie6.css, ie7.css, index.css, settings.xml, Wine/index.css, Wine/settings.xml, Wine/ie7.css, Wine/ie8.css)
* Changed topic pages to show titles in a new .posthead div, inherited from .cat -- technically, there's no reason to force all cat's to be table-based when it's really only used in that single place. (ie6.css, sections.css)

This is the big bulk of my changes to the CSS. Pete, you'll need to make sure your styling isn't broken by my changes to Wine!
Re: New revs
« Reply #679, on March 18th, 2011, 11:42 PM »
rev 661
(the "I'm going to bed, just want to be done with these..." revision)

* Updated boardstatus.png with a version that is 40% smaller and doesn't show any significant decrease in quality. (boardstatus.png)
* Pixelnazi. (sections.css)
- Board list no longer needs a PNG fix, eh... (settings.xml)
* Windowbg needs one, though. (Wine/settings.xml)
Re: New revs
« Reply #680, on March 20th, 2011, 09:31 AM »
rev 662
(3 files, 5kb -- interim release...)

! Typo in clean_cache. Thanks Aaron! (Subs-Cache.php)
! Don't bother splitting quotes when the open tag list is empty... (post.js)
- No need to PNGize #board_list img anymore. (Pastel/settings.xml)
Re: New revs
« Reply #681, on March 20th, 2011, 07:54 PM »
rev 663
(7 files, 15kb)

+ Added a new custom CSS property, 'gradient-background', which allows you to set a transparent background, or a (transparent or not) gradient background. The point is that, in addition to vendor tags, it also deals with IE and makes it compatible with IE 6-9. Only supports vertical gradients for now. (Class-CSS.php, ie6.css, ie7.css, ie8.css, index.css)
! Fixed a bug introduced in revision 76 which caused Firefox not to be detected in $browser. Yeah, that's an old one... Goes to show how much we test in Firefox, eh..? Or just the fact that it doesn't need too many hacks. (Load.php)
- Removed the ugly '/hex' solution for IE filters, since gradient-background will now take care of that. Moved color conversion to its own area, saving some processing time for other browsers. (Class-CSS.php, Subs-Cache.php)

Note: the gradient-background() function is still a bit... fragile. Meaning, it won't work with #rrggbb values, things like that. It only takes rgb, rgba, hsl and hsla as values, or color functions (when they return a non-# value). I will need to fix that, obviously... Also, just specifying one color ("gradient-background: rgba(0,0,0,.5)") will simply make it act as a "background-image: rgba(0,0,0,.5)", with an automatic fallback for IE (which was the goal, after all.)
Please comment on it -- whether you like it or not! ;)
Re: New revs
« Reply #682, on March 21st, 2011, 04:59 PM »
rev 664
(11 files, 18kb)

+ Added a third optional parameter to gradient-background, top/left which determines whether the gradient is vertical or horizontal. (Class-CSS.php)
* gradient-background should now accept any kind of color parameter. Untested, though. (Class-CSS.php)
* Optimized rgba emulation for IE and generally reworked the wecss class's structure, for whatever reason I don't remember. But it was probably a good one. (Class-CSS.php)
! IE8 doesn't support rgba(), either... I tend to forget that even that version sucks. (Subs-Cache.php)
* Trying to save a few milliseconds in IE6 when resizing the screen. On the other hand, I should disable it altogether for IE6, as it doesn't really work with it... (index.template.php)
* Moved the top linktree to the root, and renamed .linktree to #linktree and .linktree.bt to #linktree_bt (inherited). Should make it easier to style. (index.template.php, index.css, rtl.css, Pastel/index.css)
! Fixed some foldable icon margins and other glitches. (sections.css, Wine/index.css, Pastel/ie6.css)
- Debug code. (Post.template.php)
Re: New revs
« Reply #683, on March 24th, 2011, 10:07 PM »
rev 665
(3 files +1, 17kb)

! Fixed a potential undefined variable error when applying mixins. (Class-CSS.php)
! Added support for Safari gradients. Newer versions of the browser were fine, but not the current ones. (Class-CSS.php)
! It would seem that some versions of PHP, or whatever, don't support self::method calls inside a preg_replace_callback. Changed these to array($this, 'method'). (Class-CSS.php)
* Made French version clearer for keyboard shortcuts in the post box. (Post.french.php)
+ Added a different mini-logo in the Wine footer. (Wine/index.css, wedgesight.png)

None of this is about vertical alignment. I committed everything NOT related to it, actually. I'm strongly considering reverting my current local changes because, well... It's probably not worth all the trouble in the end.
Re: New revs
« Reply #684, on March 25th, 2011, 11:12 AM »
rev 666
(14 files, 21kb)

! A selector followed with "extends something" needed to have at least one child property (the alternative being to use "base: something" as a property) -- this is no longer the case, indentation is enough to point out that the selector is just supposed to inherit something else. (Class-CSS.php)
! Some fixes to the object logic (visibility and instances). I'm starting to grasp how it works. Yay. (Class-String.php)
! Re-split top page IDs into three single anchors as they used to be. This is because the page won't validate otherwise. Uhhhhh. (Display.template.php)
- Don't show the window resize script in IE6 and IE7, as the current table-based solution isn't out-of-the-box compatible with the display:table one. Also made the related function a bit shorter. (index.template.php)
* we:title2 should only be used when within a hierarchy below we:title... Also, RSS header text was missing some white space. (index.template.php)
- Removed 'p' tags inside prev/next links. They were a leftover from a previous hack... (Display.php)
- $substr wasn't used in westr::cut. (Class-String.php)
* More stuff needing white space. (Stats.template.php)
* Indenazi. (index.template.php, Memberlist.template.php)
* Some 'Allons-y, Alonso!' tweaks to the language files. (index.*.php)
* Tidbits. Dozens of minor changes that aren't worthy of a changelog line, but are still there. Mostly, remnants of my epic but failed attempt at introducing a general vertical alignment process. (Post.template.php, ie6.css, ie7.css, index.css, sections.css)
Posted: March 25th, 2011, 11:11 AM

Note: I forgot to add the Class-CSS.php file to the commit list. Will be in #667, as soon as I find a sec' to look into the instance crap.
Re: New revs
« Reply #685, on March 25th, 2011, 11:42 AM »
rev 667
(5 files, 10kb)

* Changed headers to actually use the header tag now... Might as well start using HTML5 tags now! (*/settings.xml)
! Oops, forgot to actually commit Class-CSS in the previous rev... (Class-CSS.php)
* Turned gradient_background and rgba2rgb into static methods, and fixed rgba2rgb to actually stop using class variables. (Class-CSS.php)
! Forgot to add a PNG workaround for IE6 in Wine's footer logo. (Wine/settings.xml)
Re: New revs
« Reply #686, on March 25th, 2011, 02:07 PM »
rev 668
(28 files, 26kb)

* Updated the official website link from wedgeforum.com to wedge.org
Re: New revs
« Reply #687, on March 25th, 2011, 05:09 PM »
rev 669
(5 files, 7kb)

! Fixed wrong alignment for category headers in IE6. (BoardIndex.template.php)
! Fixed header styling in browsers that don't support the header tag. Uh. (index.css)
! Fixed more IE6 issues: menu toggler arrow in IE6, and various minor details. (GenericMenu.template.php, ie6.css, index.css, rtl.css)
Re: New revs
« Reply #688, on March 26th, 2011, 02:20 PM »
rev 670
(5 files +1, 20kb)

+ Added support for version number of main browsers (IE, Opera, Firefox, Chrome, Safari), via a floating point number. (Load.php, Class-CSS.php)
- Removing a work in progress that I committed by mistake in the wedge.org renaming batch: alternative quote handling in Post.php. Moved it to the wip folder instead. (Post.php, other/wip/Post-alt-quotes.php)
@ Also committed another WIP by mistake, in Load.php this time, but it's working, so I'm leaving it in, hopefully we'll end up using it: on_date() function in Subs.php, which does all the work on 'on January 1st / today' formatting. It's just a single line though... (Subs.php)
! Board status icons were broken in IE6. (ie6.css)
- Removed useless img styling. (Pastel/index.css)
Re: New revs
« Reply #689, on March 27th, 2011, 05:04 PM »
rev 671
(13 files +1, 17kb)

* Moved img_blankGif() to a new wip file (Unused.php, where we should add all of our code snippets that aren't used but may be used in the future), and updated all files to use divs instead of these blank images. (other/wip/Unused.php, Subs.php, Admin.template.php, ManageMaintenance.template.php, ManagePermissions.template.php, Packages.template.php, PersonalMessage.template.php)
* Cleaned up the alt tags in togglers. (script.js, and a file of the above files.)
- Don't bother retrieving Safari/* version numbers, because we care about the Version/*, not the build number. (Load.php)
! Added a temp fix to set the left margin to zero in the user box if no avatar is selected. (index.template.php, index.css)
! Fixed potential XML error. (ManageServer.php)
* Minor tidbits. (member.css, Pastel/index.css)