lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

Customize CSS on OSX not working #71

Open yichuan1118 opened 8 years ago

yichuan1118 commented 8 years ago

Summary

Custom CSS is placed at ~/.jupyter/custom/custom.css

⟩ cat ~/.jupyter/custom/custom.css
/* Jupyter cell is in normal mode when code mirror */
.edit_mode .cell.selected .CodeMirror-focused.cm-fat-cursor {
  background-color: #F6EBF1;
}
/* Jupyter cell is in insert mode when code mirror */
.edit_mode .cell.selected .CodeMirror-focused:not(.cm-fat-cursor) {
  background-color: #F6EBF1;
}

Tried to make sure the folder is correct, in ipython notebook:

import jupyter_core
jupyter_core.paths.jupyter_config_dir()
'/Users/yichuan/.jupyter'

The custom.css file seems to be loaded in chrome: screen shot 2016-05-04 at 3 44 44 pm

However the CSS did not take effect.

Thanks!

Environment

For example, the behavior is confirmed with Firefox 44.0.2 and Google Chrome xx.xx.xx and could not be reproduced in Firefox but Chrome or what ever.

Remarks

If any

lambdalisue commented 8 years ago

Related to https://github.com/lambdalisue/jupyter-vim-binding/issues/63

I haven't investigate this problem yet but could you try http://stackoverflow.com/questions/32156248/how-do-i-set-custom-css-for-my-ipython-ihaskell-jupyter-notebook