-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SageNB -- Change table layouts to CSS layouts #7269
Comments
Reduces/replaces table layouts with css layouts. Also cleans up the top bar template to be shared among all the templates. |
comment:1
Attachment: trac_7269-table-reduction.patch.gz This should do the job. |
comment:2
Notes from "functional tests:"
I try to take a closer look at the patch itself tomorrow. |
comment:3
Odds and ends:
Out of curiousity:
I'll try to look at |
comment:4
Replying to @qed777:
Yes. I forgot to do so.
Yes. I'll do that now.
I haven't an idea. I just copied that from the old code.
No, but that would be simply awesome.
I actually planned to do a fair bit of changes to the structure (use inheritance instead of includes, etc.), but I think it would be better to put it in another ticket.
I actually just copied the old main.css and put it through |
comment:5
Apparently, |
Fixed the "Report a Problem" and "Toggle" links. Removed |
Attachment: trac_7269-table-reduction.2.patch.gz Attachment: trac_7269-table-reduction.2.2.patch.gz Fixed the "Report a Problem" and "Toggle" links. Removed |
comment:6
The Toggle link problem was caused by a changed selector. Report a problem was due to lack of the JS libraries on certain pages. Both are now fixed. |
Attachment: trac_7269-table-reduction.3.patch.gz Fixed "None" value in search box due to Jinja2 migration. |
Removed an escape that was no longer needed. |
Attachment: trac_7269-table-reduction.4.patch.gz Attachment: trac_7269-table-reduction.5.patch.gz Added parentheses to macro |
Work Issues: Bugs on some pages. |
comment:8
Also:
Thanks for mentioning SASS and Compass! Should we add the .sass files to the repository, to make it easier update the stylesheets in the future? Reminder to self: Rebase #4714's "jsmath_init" patch. |
comment:9
On the JS functions (this is mainly for future reference):
|
comment:10
On the JS functions (continued):
but I think we can drop Jmol, jsMath, TinyMCE, sage3d, etc., and any cell-related functions. This might seem like too much, but I think it's useful to optimize the JS (and make it modular) just as you've done and are doing for HTML and CSS. Remote embeds (cf. #6855), in particular, may only need a streamlined library. |
comment:11
Replying to @qed777:
I can do so. I'll also put instructions on using SASS + Compass. |
comment:12
Sphinx generates the CSS directives "scraped directly from Pygments" (i.e., |
comment:13
How often/when will the HTML theme be changed? Does If it is to be changed on the user-end, |
Attachment: trac_7269-table-reduction.10.patch.gz Aligns the username, removes the Jinja2 migration, deletes some obsolete files. |
Changed work issues from Bugs on some pages. to none |
comment:25
Oops. I apologize for this. I'm about to attach V11, which
|
Top bar tweaks and doctest fixes. Replaces previous. |
Attachment: trac_7269-table-reduction.11.patch.gz Attachment: trac_7269-table-reduction.12.patch.gz Input cell tweaks. Include jQuery just once. Replaces previous. |
Reviewer: Mitesh Patel |
comment:26
V12:
Someone should review my changes, of course, and perhaps also comment on the slightly changed layouts. I think the button/toolbars wrap differently than before, e.g., when the browser width is narrow and/or the font size is large. Does this cause problems on mobiles or when giving presentations? Positive review! This is great work! I'm still quite new to SASS and Compass, but it seems that they'll make it much easier to edit and manage SageNB stylesheets. By the way, can we use SASS, Compass, and/or another tool to find unused CSS directives? |
Attachment: trac_7269-table-reduction.13.patch.gz Apply #7811 to |
comment:27
V13 just applies #7811 to |
Rebase vs. #7811 v2. Replaces previous. |
comment:28
Attachment: trac_7269-table-reduction.14.patch.gz I can't merge this into sagenb-0.4.8 (which I'm about to release). Please rebase it once sage-4.3.1.alpha0 comes out with this new sagenb. Thanks!
|
rebased vs sagenb-0.4.9 |
comment:29
Attachment: trac_7269-table-reduction.15.patch.gz Rebased version posted. |
comment:30
Can you try applying #7650 first, then V14? That should give just one, ignorable failure and much less "fuzz". I apologize for not being more explicit about this dependency. |
comment:31
Of course, this assumes #7650 is reviewed. |
comment:32
Merged into sagenb-0.5. I was able to apply trac_7269-table-reduction.15.patch just fine without merging in #7650 first. Yeah. So this is in and pushed to the official repo. |
Merged: sagenb-0.5 |
Changing the table layouts to CSS layouts will make it easier to make future edits, and will pave the path to user styling of the notebook.
CC: @williamstein @qed777
Component: notebook
Keywords: sagenb notebook
Author: Tim Dumol
Reviewer: Mitesh Patel
Merged: sagenb-0.5
Issue created by migration from https://trac.sagemath.org/ticket/7269
The text was updated successfully, but these errors were encountered: