Skip to content
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

notebook -- add something to reference manual about user-customizable css (easy ticket) #3733

Closed
williamstein opened this issue Jul 28, 2008 · 6 comments

Comments

@williamstein
Copy link
Contributor

I am working on a project this summer that uses SAGE to assemble some
interactive Calculus lessons, and I was hoping to do something like
this. So thank you very much!

Will this be placed in the manual or the Wiki?

regards
john perry

On May 27, 9:57 am, "William Stein" <wst...@gmail.com> wrote:
> Hi,
>
> I've always wondered why nobody creates nice stylized "skins", etc.
> for the notebook.
> It just occurred to me that though I made it trivial to change the
> notebook css on the
> fly, nobody knows how.  If you would like to make your Sage notebook
> look totally
> different, here's a quick tutorial (assumes you are not using the
> vmware version of
> the notebook):
>
> 1. See attached screenshot.
>
> 2. Start your *own* notebook server running locally on your computer.
>
> 3. Make a new file $HOME/.sage/notebook.css with these contents:
>
> textarea.cell_input {
>   color:#003300;
>   border: 0px;
>   font-family: monaco;
>
> }
>
> div.cell_not_evaluated {
>     border-left: 3px solid #ff8888;
>
> }
>
> td.cell_number_running {
>    border-left:20px solid orange;
>
> }
>
> 4. Press refresh in your web browser and observe that the above css takes
> effect thus changing the style of your notebook.
>
> 5. You can change a lot.  To get a feel for the options seehttp://localhost:8000/css/main.css
> where 8000 is replaced by whatever port your notebook runs on.
>
> This feature has been in Sage for two years, but I don't think anybody
> has ever used it.
>
>  -- William

Component: notebook

Author: William Stein

Reviewer: Tim Dumol

Merged: sagenb-0.4.6

Issue created by migration from https://trac.sagemath.org/ticket/3733

@williamstein
Copy link
Contributor Author

comment:1

Attachment: sagenb-3733.patch.gz

Note only does this add the remark to the manual, but also sphinxifies the notebook? docstring.

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Dec 6, 2009

comment:2

I didn't know this existed until now. Positive review. I've added a few more improvements to the ReST docstring at #7611.

@williamstein
Copy link
Contributor Author

comment:3

merged into sagenb-0.4.6.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Dec 27, 2009

Reviewer: Tim Dumol

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Dec 27, 2009

Merged: sagenb-0.4.6

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Dec 27, 2009

Author: William Stein

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants