#13131: Make a top-level table/Table function
----------------------------------+-----------------------------------------
Reporter: kcrisman | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.4
Component: user interface | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: John Palmieri | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by jhpalmieri):
To get `header_column` to have any effect in HTML, we also will need to
patch the Sage notebook, to modify the file
`devel/sagenb/sagenb/data/sage/css/main.css`:
{{{
#!diff
--- main.css.orig 2012-08-31 13:52:42.000000000 -0700
+++ main.css 2012-11-09 13:05:29.000000000 -0800
@@ -445,6 +445,8 @@
table.table_form * td { padding-top: 5px; padding-bottom: 5px; padding-
left: 15px; padding-right: 15px; }
/* line 899, ../../../../sass/src/main.scss */
table.table_form * th { background: #a6ba4e; height: 29px; padding-left:
15px; padding-right: 15px; padding-top: 5px; padding-bottom: 5px; color:
white; text-align: left; }
+table.table_form * th.ch { background: #7c8b3a; }
+table.table_form * td.ch { background: #a6ba4e; color: white; }
/* line 909, ../../../../sass/src/main.scss */
table.table_form * tr.row-a { background: #f8f8f8; text-align: left; }
/* line 912, ../../../../sass/src/main.scss */
}}}
I guess this means a change to `devel/sagenb/sass/src/main.scss`, but I'm
not sure of the syntax in that file. Maybe this:
{{{
#!diff
--- main.scss.orig 2012-08-31 13:51:10.000000000 -0700
+++ main.scss 2012-11-09 13:06:47.000000000 -0800
@@ -895,7 +895,10 @@
padding-top: 5px;
padding-bottom: 5px;
padding-left: 15px;
- padding-right: 15px; }
+ padding-right: 15px;
+ &.ch {
+ background: #a6ba4e;
+ color: white; } }
th {
background: #a6ba4e;
height: 29px;
@@ -904,7 +907,9 @@
padding-top: 5px;
padding-bottom: 5px;
color: white;
- text-align: left; }
+ text-align: left;
+ &.ch {
+ background: #7c8b3a; } }
tr {
&.row-a {
background: #f8f8f8;
}}}
This is not a big deal and the ticket can be merged independently of such
a change. I may get around to putting up a pull request for the notebook,
but no guarantees.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13131#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.