|
From: Benjamin L. <ben...@co...> - 2001-06-13 00:08:40
|
Heya Dieter,
Find the diff attached for ar.pl (against 1.4.5).
You'll notice that I've left the various <FONT> tags intact as much as
possible, for the moment, to allow for backwards compatibility (the
old look?).
The really only added HTML code is the outer table (which can be used
for a nice border) and the coloured lines trickery. The rest is just
replacement of " with qq|, and the class= stuff.
FYI, these are the current classes.
perl -n -e 'if ( m/class=\"[^\"]*\"/ ) { print $& . "\n"; }' < ar.pl | sort | uniq
class="list_heading"
class="list_inner_table"
class="list_item"
class="list_outer_table"
class="list_row_1"
class="list_row_2"
class="list_total"
list_inner_table, list_outer_table are only placeholders at the
moment.
I'm thinking there'll soon be a need for list_sub_total. Anyway,
that's for later.
Here's the stylesheet I've been using. I just put it in Form.pm.
<style type="text/css">
<!--
body { background-color: #ffffff; }
.list_inner_table { }
.list_outer_table { }
.list_heading {
font-family: arial, helvetica, san-serif;
font-size: 13px; font-weight: bold;
color: #003399; background-color: #000066; padding-top: 1px;
}
.list_item {
font-family: arial, helvetica, san-serif;
font-size: 12px;
padding-top: 1px; padding-left: 2px; padding-right: 2px;
}
.list_row_1 { background-color: #eeeeee; }
.list_row_2 { background-color: #ddddee; }
.list_total {
font-family: arial, helvetica, san-serif;
font-size: 13px; font-weight: bold;
color: #ffffff; background-color: #000000; padding-top: 1px;
}
-->
</style>
As for RTL stuff, I think it's just a matter of adding the 'direction:
rtl;' attribute. I must admit, I'm unfamiliar with this setting. ;-O
Cheers!
Ben.
P.S. I think I forgot to attach the screenshots... I always forget
attachments.
On Tue, Jun 12, 2001 at 10:08:06AM -0600, Dieter Simader wrote:
> Hi Ben!
>
> I think adding CSS is an excellent idea. While we are at it can you
> mirror image the display to read from right to left. This would come
> in handy to fix the display issues for Arabic languages.
>
> Yes, send me a diff of your hack.
>
>
> Dieter Simader http://www.sql-ledger.org (780) 472-8161
> DWS Systems Inc. Accounting Software Fax: 478-5281
> =========== On a clear disk you can seek forever ===========
>
> On Tue, 12 Jun 2001, Benjamin Lee wrote:
>
> > Whilst in the process of beautifying some other things, I found myself
> > beginning to hack away at the HTML parts of SL.
> >
> > I attach screenshots of the AR transactions search as an example of
> > adding CSS to SL. With CSS (although it's certainly by no means
> > perfect), it's quite straight forward enough to customise fonts and
> > colours for an individual / company.
> >
> > Anyway, Dieter, if you're interested I'll send you a diff of the hack
> > in progress.
> >
> > Cheers all,
> > Ben.
> >
> >
--
B. http://makelinux.org/ "Always real." http://realthought.net/
__________________________________________________________________________
One advantage of talking to yourself is that you know at least somebody's
listening.
-- Franklin P. Jones
|