|
Re: default theme css split [message #13820 is a reply to message #13818] |
Tue, 28 October 2003 15:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
What would be the advantage? The disadvantage is that browser will be making 3 seperate requests rather then 1. Plus nearly all styles inherit properties from one or more style. It is easier to visualize and edit when all the styles are in one place.
FUDforum Core Developer
|
|
|
|
|
|
Re: default theme css split [message #13882 is a reply to message #13881] |
Wed, 29 October 2003 23:58 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Alpha channel is great, but only when the browser supports it. Many versions of IE still do not, and alas that is the browser 90% of the user base uses.
Well, I do not see what is so abnormal about existing config, you get access to a powerful templating system that lets you do just about anything you want...
You could just convert the remaining 10% of images using ImageMagick's convert utility (installed on most *nix oses by default) and happily replace all .gif links with .png.
FUDforum Core Developer
|
|
|
|
Re: default theme css split [message #13885 is a reply to message #13883] |
Thu, 30 October 2003 00:50 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
AzaToth wrote on Wed, 29 October 2003 19:07 | yes yes yes... I was just thinking it should be a nice move, to structurize the theme a bit. and that IE doesn't support it, we wont obey the laws of Internet Explorer. png is a w3c-standard since 1996, and end of story, if Windows-users want to render it properly, they have to use a proper browser
|
Fine stance, but is not practical until majority of the userbase adopts alternate browsers, which is something I am all for. I won't force a browser on people in a distributable application, maybe on a homepage, but definately not on FUDforum.
As for images, well, the 'problem' is that you've changed the image extension, which is why you need to run a few perl scripts. In most cases you just replace 1 gif with another and you are all set. All images are inside a single directory.
FUDforum Core Developer
|
|
|
|
|
|
Re: default theme css split [message #13917 is a reply to message #13915] |
Fri, 31 October 2003 14:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Would this work fine for the image tag, could you please give me a complete example?
Would the img src be blank and just have <img src="" alt="Button A" class="buttonA"> or something else?
I do not have a problem with such an approach, but I need to see a working example and then I'll test it in various browsers.
FUDforum Core Developer
|
|
|
Re: default theme css split [message #13919 is a reply to message #13818] |
Fri, 31 October 2003 15:15 |
AzaToth
Messages: 125 Registered: October 2003
Karma: 0
|
Senior Member |
|
|
o, I ment more like:
{SECTION: dmsg_quote_link}
<a class="GenLink" href="{TEMPLATE: dmsg_quote_link_lnk}">
{SOMETHING-DATA: msg_quote}
</a>
{SECTION: END}
And when rebuilding the theme, replacing it acoring to a "file"
if it a image then it's became:
<img src="path/url" alt="[quote]" />
or it's just a color, then:
<img alt="[quote]" src="blank.gif" style="background: color; width: 71px; height: 18px" />
or if it's just a text:
text
Edit: expanded my idea
[Updated on: Fri, 31 October 2003 15:21] Report message to a moderator
|
|
|
Re: default theme css split [message #13920 is a reply to message #13919] |
Fri, 31 October 2003 15:58 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
CSS I idea I liked, this one I do not. That said I've done a little research and it does not seem possible to do what you suggest within the CSS1 framework.
FUDforum Core Developer
|
|
|
Re: default theme css split [message #13921 is a reply to message #13920] |
Fri, 31 October 2003 16:09 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The expanded idea using the blank.gif trick works, but that means we'd end up making 1 extra request (for blank.gif) for every image found on the page, which would be bad.
FUDforum Core Developer
|
|
|
|
Re: default theme css split [message #13923 is a reply to message #13922] |
Fri, 31 October 2003 16:32 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
AzaToth wrote on Fri, 31 October 2003 11:26 | Ok, I was tired, offcourse it chould be like this:
If image specified:
<img src="image" alt="..." />
|
Can't work, because browser will try to open "image" and you'll end up with the normal image as background & a broken image super-imposed over it. That's how mozilla does it anyhow.
Quote: |
<div style="background: color; width: 71px; height: 18px"></div>
|
Does not work because it creates a newline before & after the div tag, making it impossible to position text next to a button.
FUDforum Core Developer
|
|
|
|
Re: default theme css split [message #13925 is a reply to message #13924] |
Fri, 31 October 2003 17:36 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The links are done the way they are to allow simply the PATH_INFO templates, which now only define the URLs.
Unless you can suggest a way to do with CSS without making requests to blank.gif or similar I do not see myself making any changes to the current system.
FUDforum Core Developer
|
|
|
|