In Sage 3.4 (and 3.2.3), I think there are two typos in the file

$SAGE_ROOT/local/lib/python2.5/site-packages/sage/server/notebook/css.py .

In particular, in Sage 3.4's version of the file:

line 572:  "arial monospace" should be "arial, monospace"
line 1072: "zIndex" should be "z-index" .

Disclaimer: I'm not a style sheet expert.  I just saved

http://localhost:8000/css/main.css

and fed it to the validator at

http://jigsaw.w3.org/css-validator/

It reported a warning at the first line above and an error at the
second.  I assume the other warnings are even less consequential, but I
did want to ask about which parts of the default stylesheet, if any, are
no longer used.

I ask about that, because I'd like to make a relatively low-priority
attempt to alter or supplement css() in css.py with a set of shorter,
more independent functions (a class?) with a sensible number of
additional parameters.  If this is acceptable, and it works, I'd like to
update worksheet_conf.py to call these functions and add a pull-down
option to bring up a worksheet settings page.  How about serving up an
@interact widget for the settings?

I found a couple of python packages for manipulating css:

* CleverCSS (BSD):  http://sandbox.pocoo.org/clevercss/
* cssutils (LGPL3):  http://cthedot.de/cssutils/

The latter includes a parser, which also complains twice about main.css,

Client-side introspection, which is cool but well beyond my ability to
implement, could also work in this context.  For example, one would fire
up a "What's this?"-like mode and hover over an element of the current
worksheet (e.g., active cell border) to get its CSS properties, or even
click to change a property in place and auto-save the changes.  Is this
possible with TinyMCE and/or another JavaScript library?

Thoughts?  I'm happy to defer --- and find a different way to contribute
to Sage --- if this is frivolous or already underway at non-negligible
priority.  Thanks!


Sincerely,
Pat LeSmithe


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to