Advertisement
metchaikovsky

custom.css

Dec 2nd, 2020
973
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 15.87 KB | None | 1 0
  1. /*
  2. One Dark for Jupyter Notebook/iPython 4
  3. Author: James Draper
  4. Inspired by and adapted from the following:
  5. https://github.com/powerpak/jupyter-dark-theme
  6. Base16 for iPython Notebook (https://github.com/nsonnad/base16-ipython-notebook)
  7. Base16 Twilight Dark, David Hart (http://hart-dev.com)
  8. CodeMirror template adapted for IPython Notebook by Nikhil Sonnad (https://github.com/nsonnad/base16-ipython-notebook)
  9. CodeMirror template by Jan T. Scott (https://github.com/idleberg/base16-chrome-devtools)
  10. Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
  11. One Dark Color list
  12. atom-one-dark-cyan : #56B6C2
  13. atom-one-dark-blue : #61AFEF
  14. atom-one-dark-bg-1 : #121417
  15. atom-one-dark-mono-2 : #828997
  16. atom-one-dark-red-1 : #E06C75
  17. atom-one-dark-mono-1 : #ABB2BF
  18. atom-one-dark-silver : #AAAAAA
  19. atom-one-dark-purple : #C678DD
  20. atom-one-dark-orange-2 : #E5C07B
  21. atom-one-dark-bg-hl : #2F343D
  22. atom-one-dark-black : #0F1011
  23. atom-one-dark-gutter : #666D7A
  24. atom-one-dark-fg : #ABB2BF
  25. atom-one-dark-green : #98C379
  26. atom-one-dark-red-2 : #BE5046
  27. atom-one-dark-orange-1 : #D19A66
  28. atom-one-dark-mono-3 : #5C6370
  29. atom-one-dark-accent : #AEB9F5
  30. atom-one-dark-bg : #282C34
  31. atom-one-dark-gray : #3E4451
  32.   CHANGE THE BACKGROUND OF ANY MATPLOTLIB OUTPUT BY ADDING THIS:
  33.   matplotlib.rcParams['figure.facecolor'] = 'white'
  34. */
  35.  
  36. /* DEFINE MAIN STYLES */
  37. :root {
  38.     --main-font-family: Consolas, monaco, monospace;
  39.     --main-bg-color: #282C34;
  40.  
  41.     --atom-one-dark-cyan : #56B6C2;
  42.     --atom-one-dark-blue : #61AFEF;
  43.     --atom-one-dark-bg-1 : #121417;
  44.     --atom-one-dark-mono-2 : #828997;
  45.     --atom-one-dark-red-1 : #E06C75;
  46.     --atom-one-dark-mono-1 : #ABB2BF;
  47.     --atom-one-dark-silver : #AAAAAA;
  48.     --atom-one-dark-purple : #C678DD;
  49.     --atom-one-dark-orange-2 : #E5C07B;
  50.     --atom-one-dark-bg-hl : #2F343D;
  51.     --atom-one-dark-black : #0F1011;
  52.     --atom-one-dark-gutter : #666D7A;
  53.     --atom-one-dark-fg : #ABB2BF;
  54.     --atom-one-dark-green : #98C379;
  55.     --atom-one-dark-red-2 : #BE5046;3§
  56.     --atom-one-dark-orange-1 : #D19A66;
  57.     --atom-one-dark-mono-3 : #5C6370;
  58.     --atom-one-dark-accent : #AEB9F5;
  59.     --atom-one-dark-bg : #282C34;
  60.     --atom-one-dark-gray : #3E4451;
  61. }
  62.  
  63.  
  64. .CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal {
  65.     font-family: var(--main-font-family);
  66.     font-size: 9pt;
  67. }
  68.  
  69. .terminal-app .terminal {
  70.     line-height: 1.3em;
  71. }
  72.  
  73. div.output pre, div.output code, .rendered_html pre, .rendered_html code, div.completions select, div.container pre {
  74.     font-family: var(--main-font-family);
  75. }
  76.  
  77. div.output pre, div.output code, .rendered_html pre, .rendered_html p code, div.completions select, div.container pre {
  78.     font-size: 9pt;
  79. }
  80.  
  81. div.prompt, div.tooltiptext pre {
  82.     font-family: Consolas, monaco, monospace;
  83.     font-size: 8pt;
  84. }
  85.  
  86. div.input_area {
  87.     border-color: rgba(0, 0, 0, 0.10);
  88.     background: rbga(0, 0, 0, 0.5);
  89.     /* Round couners */
  90.     border-radius: .5em;
  91.     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  92. }
  93.  
  94.  
  95. /* GLOBALS */
  96.  
  97. /* The majority of the text on the intro page is warapped in the <a> tag.*/
  98.  
  99. @media not print {
  100.     body {
  101.         background-color: #eee;
  102.     }
  103. }
  104.  
  105. a {
  106.     color: #CC7833;
  107. }
  108.  
  109. a:hover, a:focus {
  110.     color: #DE6F71;
  111. }
  112.  
  113.  
  114. /* Set the color of the h2 heading.*/
  115.  
  116. h2 {
  117.     color: #c2c1c1;
  118. }
  119.  
  120.  
  121. /* Set the text color for th <p> tag. Most of the text on the nbextension page is wrapped with the <p> tag. */
  122.  
  123. p {
  124.     color: #dccde0;
  125. }
  126.  
  127. li {
  128.     color: #b9c2dd;
  129. }
  130.  
  131.  
  132. /* INTRO PAGE */
  133.  
  134. body[data-notebook-path] {
  135.     background-color: var(--main-bg-color);
  136. }
  137.  
  138. body[data-notebook-path] #header, .terminal-app #header {
  139.     display: none !important;
  140. }
  141.  
  142. .tabbable {
  143.     color: #979797;
  144. }
  145.  
  146. .nav-tabs {
  147.     border-bottom-color: #444;
  148. }
  149.  
  150. .nav-tabs>li>a:hover, .nav>li>a:focus {
  151.     background-color: #333;
  152.     border-color: #222 #222 #555 #222;
  153. }
  154.  
  155. .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
  156.     color: #979797;
  157.     background-color: #444;
  158.     border-top-color: #444;
  159.     border-right-color: #444;
  160.     border-left-color: #444;
  161. }
  162.  
  163. .list_container {
  164.     border-color: #444;
  165. }
  166.  
  167. .list_container>div {
  168.     border-bottom-color: #444;
  169. }
  170.  
  171. .list_item:hover {
  172.     background-color: #333;
  173. }
  174.  
  175. .list_header {
  176.     background-color: #444;
  177. }
  178.  
  179. #notebook_list input[type="checkbox"] {
  180.     opacity: 0.3;
  181. }
  182.  
  183. #notebook_list input[type="checkbox"]:checked {
  184.     opacity: 1;
  185. }
  186.  
  187. .item_icon {
  188.     color: #777;
  189. }
  190.  
  191. .panel {
  192.     border-color: #444;
  193.     background-color: #222;
  194. }
  195.  
  196. .panel-default>.panel-heading {
  197.     border-color: #444;
  198. }
  199.  
  200. #site .panel-group .panel .panel-heading {
  201.     background-color: #444;
  202. }
  203.  
  204. #running .panel-group .panel .panel-body .list_container .list_item {
  205.     border-bottom-color: #444;
  206. }
  207.  
  208.  
  209. /* Dropdown menus */
  210.  
  211. .dropdown-menu {
  212.     background: rgba(50, 50, 50, 0.95);
  213.     color: #b7b7b7;
  214. }
  215.  
  216. .dropdown-menu>li>a, .dropdown-submenu>a:after, .dropdown-menu>li>a:visited:after {
  217.     color: #b7b7b7;
  218. }
  219.  
  220. .dropdown-menu .divider {
  221.     background-color: #444;
  222. }
  223.  
  224. .dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
  225.     color: #fff;
  226.     background-color: #444;
  227. }
  228.  
  229. .dropdown-menu>li>a:hover:after, .dropdown-menu>li>a:focus:after, .dropdown-menu>li>a:active:after {
  230.     color: #fff;
  231. }
  232.  
  233.  
  234. /* TERMINAL INTERFACE */
  235.  
  236. .terminal-app #site {
  237.     background: #272727;
  238. }
  239.  
  240. .terminal-app .terminal {
  241.     background: #141414 !important;
  242. }
  243.  
  244.  
  245. /* NOTEBOOK AND EDITOR INTERFACE */
  246.  
  247.  
  248. /* comment out the following line to unhide the toolbar */
  249.  
  250.  
  251. /*
  252. div#maintoolbar { display: none !important; }
  253. */
  254.  
  255.  
  256. /* Header UI styles */
  257.  
  258. body.notebook_app>#header {
  259.     display: block !important;
  260. }
  261.  
  262. .notebook_app>#header, .edit_app>#header {
  263.     background-color: #282C34;
  264.     color: #b7b7b7;
  265.     -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  266.     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  267. }
  268.  
  269. .edit_app #menubar .navbar {
  270.     margin-bottom: 0;
  271. }
  272.  
  273. body>#header .header-bar {
  274.     background: #444;
  275. }
  276.  
  277. #header .navbar-brand {
  278.     display: none;
  279. }
  280.  
  281. #header .filename {
  282.     margin-left: 0;
  283.     margin-right: 2em;
  284. }
  285.  
  286. #header .current_kernel_logo {
  287.     width: 24px;
  288.     height: 24px;
  289. }
  290.  
  291. span.save_widget span.filename:hover {
  292.     background: rgba(255, 255, 255, 0.15);
  293.     color: #fff;
  294.     text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5);
  295. }
  296.  
  297. .navbar-default {
  298.     background: transparent;
  299.     color: #b7b7b7;
  300.     border-color: #444;
  301. }
  302.  
  303. .navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
  304.     color: #fff;
  305. }
  306.  
  307. .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:hover, .navbar-default .navbar-nav>.open>a:focus {
  308.     color: #fff;
  309.     background-color: #444;
  310. }
  311.  
  312.  
  313. /* Notebook Background */
  314.  
  315. @media not print {
  316.     .notebook_app #notebook {
  317.         background-color: var(--main-bg-color);
  318.  
  319.     }
  320.     .notebook_app #notebook-container, .edit_app #texteditor-backdrop {
  321.         background-color: var(--main-bg-color);
  322.         border-radius: .35em;
  323.     }
  324. }
  325.  
  326.  
  327. /* Invert the notebook editor UI */
  328.  
  329. .celltoolbar {
  330.     border-color: #444;
  331.     background: #444;
  332.     color: #b7b7b7;
  333. }
  334.  
  335. .ctb_global_show .ctb_show~div.text_cell_render {
  336.     border-color: #444;
  337. }
  338.  
  339. .celltoolbar select {
  340.     opacity: 0.5;
  341. }
  342.  
  343. .modal-dialog .modal-content, .popover, .popover .popover-title {
  344.     background: rgba(50, 50, 50, 0.95);
  345.     color: #b7b7b7;
  346. }
  347.  
  348. .modal-header, .popover-title {
  349.     border-bottom-color: #444;
  350. }
  351.  
  352. .modal-footer {
  353.     border-top-color: #444;
  354. }
  355.  
  356. .modal-dialog .close {
  357.     color: #fff;
  358.     text-shadow: 0 1px 0 #000;
  359. }
  360.  
  361. .modal-dialog .alert-info {
  362.     background-color: #373E42;
  363.     color: #d9edf7;
  364. }
  365.  
  366. .popover.bottom>.arrow:after {
  367.     border-bottom-color: #444;
  368. }
  369.  
  370. .btn:focus, .btn:active:focus {
  371.     outline: 5px auto rgba(102, 175, 233, 0.3);
  372.     outline-offset: -1px;
  373. }
  374.  
  375. .btn-default {
  376.     background-color: #555;
  377.     border-color: #222;
  378.     box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  379.     color: #aaa;
  380. }
  381.  
  382. .btn-default:focus, .btn-default:hover {
  383.     background-color: #555;
  384.     border-color: #222;
  385.     box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  386.     color: #bbb;
  387. }
  388.  
  389. .btn-default:active, .btn-default.active, .open>.dropdown-toggle.btn-default {
  390.     background-color: #474747;
  391.     color: #999;
  392.     box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  393. }
  394.  
  395. .btn-default.disabled:focus, .btn-default.disabled:hover, .btn-default[disabled]:focus, .btn-default[disabled]:hover {
  396.     background-color: #555;
  397.     border-color: #222;
  398.     box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  399.     color: #aaa;
  400. }
  401.  
  402. .btn-default:active:hover, .btn-default:active:focus, .open>.dropdown-toggle.btn-default:hover, .open>.dropdown-toggle.btn-default:focus {
  403.     background-color: #474747;
  404.     color: #999;
  405.     border-color: #222;
  406.     box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  407. }
  408.  
  409. .btn-primary {
  410.     color: #eee;
  411.     background-color: #4481b7;
  412.     border-color: #222;
  413.     box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  414. }
  415.  
  416. .btn-primary:focus, .btn-primary:hover {
  417.     background-color: #4481b7;
  418.     color: #fff;
  419. }
  420.  
  421. .btn-primary:active {
  422.     background-color: #306ea6;
  423.     color: #ccc;
  424. }
  425.  
  426. .btn-primary:active:hover, .btn-primary:active:focus {
  427.     background-color: #306ea6;
  428.     color: #ccc;
  429. }
  430.  
  431. .form-control {
  432.     background: #222;
  433.     color: #eee;
  434.     border-color: #777;
  435. }
  436.  
  437. .form-control:focus {
  438.     border-color: #458ac1;
  439.     border-radius: .5em;
  440.     box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.3);
  441. }
  442.  
  443. .form-control::selection {
  444.     border-radius: .5em;
  445.     background: rgba(221, 240, 255, 0.19);
  446. }
  447.  
  448. #complete {
  449.     border-color: #444;
  450.     border-radius: .5em;
  451.     background: rgba(50, 50, 50, 0.95);
  452.     color: #b7b7b7;
  453.     -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  454.     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  455. }
  456.  
  457. .completions select {
  458.     background: rgba(50, 50, 50, 0.95);
  459.     color: #b7b7b7;
  460. }
  461.  
  462.  
  463. /* Styles for output content */
  464.  
  465. div#notebook .text_cell_render {
  466.     font-size: 16.25px;
  467.     font-weight: 300;
  468.     line-height: 1.25;
  469. }
  470.  
  471. .rendered_html li p {
  472.     margin-top: 1em;
  473. }
  474.  
  475.  
  476. /* Markdown Heading 1*/
  477.  
  478. .rendered_html h1 {
  479.     color: rgb(147, 161, 164);
  480. }
  481.  
  482. div.output_html {
  483.     /*font-family: sans-serif; */
  484.     font-family: Consolas, monaco, monospace;
  485. }
  486.  
  487.  
  488. /*Set colors and styles that we only want on the screen, not for print*/
  489.  
  490. @media not print {
  491.     .notebook_app div.cell.running .input .input_area {
  492.         border-left-color: #82591E;
  493.         -webkit-animation-name: pulseBorder;
  494.         -webkit-animation-duration: 1s;
  495.         -webkit-animation-iteration-count: infinite;
  496.         -webkit-animation-direction: alternate;
  497.         -webkit-animation-timing-function: ease-in-out;
  498.     }
  499.     @-webkit-keyframes pulseBorder {
  500.         from {
  501.             border-left-color: #82591E;
  502.         }
  503.         to {
  504.             border-left-color: #eea236;
  505.         }
  506.     }
  507.     .notebook_app div.input_prompt {
  508.         color: var(--atom-one-dark-green);
  509.     }
  510.     .notebook_app div.output_prompt {
  511.         color: var(--atom-one-dark-red-1);
  512.     }
  513.     .notebook_app div.input_area {
  514.         border: 1px solid #464b50;
  515.     }
  516.     .notebook_app div.output_area pre {
  517.         font-weight: normal;
  518.         color: #979797;
  519.     }
  520.     .notebook_app div.output_subarea {
  521.         font-weight: normal;
  522.         color: #979797;
  523.     }
  524.     .notebook_app div.output_stderr {
  525.         background-color: #cf6a4c;
  526.     }
  527.     .notebook_app div.output_stderr pre {
  528.         color: #eee;
  529.     }
  530.     .notebook_app .rendered_html table, .notebook_app .rendered_html th, .notebook_app .rendered_html tr, .notebook_app .rendered_html td {
  531.         background-color: var(--main-bg-color);
  532.         table-layout: auto !important;
  533.         border: 1px #979797 solid;
  534.         color: #979797;
  535.     }
  536.     .notebook_app div.text_cell_render, .notebook_app div.output_html {
  537.         color: #979797;
  538.         border-radius: .5em;
  539.     }
  540.     .notebook_app table.dataframe tr {
  541.         border: 1px #979797;
  542.         /*border-radius: .5em;*/
  543.     }
  544.     .notebook_app .rendered_html pre, .notebook_app .rendered_html code {
  545.         border: 0;
  546.         background-color: #444;
  547.         color: #b0b0b0;
  548.         padding: 0;
  549.     }
  550. }
  551.  
  552.  
  553. /*Terminal text coloring*/
  554.  
  555. span.ansiblack {
  556.     color: #323537;
  557. }
  558.  
  559. span.ansiblue {
  560.     color: #afc4db;
  561. }
  562.  
  563. span.ansigray {
  564.     color: #838184;
  565. }
  566.  
  567. span.ansigreen {
  568.     color: #8f9d6a;
  569. }
  570.  
  571. span.ansipurple {
  572.     color: #9b859d;
  573. }
  574.  
  575. span.ansired {
  576.     color: #cf6a4c;
  577. }
  578.  
  579. span.ansiyellow {
  580.     color: #c2bc15;
  581. }
  582.  
  583.  
  584. /*CODE EDITING*/
  585.  
  586. .CodeMirror {
  587.     background: #141414;
  588.     color: var(--atom-one-dark-mono-1);
  589.     border-radius: .35em;
  590.     /*box-shadow: inset 10px 10px 16px -4px rgba(0, 0, 0, 0.44);*/
  591. }
  592.  
  593. div.CodeMirror-selected {
  594.     background: rgba(221, 240, 255, 0.19) !important;
  595. }
  596.  
  597. #texteditor-backdrop #texteditor-container .CodeMirror-gutter, .CodeMirror-gutters {
  598.     background: #444;
  599.     color: #777;
  600. }
  601.  
  602. .CodeMirror-linenumber {
  603.     color: #7C7C7C;
  604.     font-size: 10px;
  605. }
  606.  
  607. .CodeMirror-cursor {
  608.     border-left: 1px solid #A7A7A7 !important;
  609.     margin-top: -2px;
  610.     min-height: 18px;
  611. }
  612.  
  613. .cm-s-ipython.CodeMirror {
  614.     background-color: var(--main-bg-color);
  615.     /*background: #282C34;*/
  616.     /*background: #2c303c;*/
  617.     /* The color below is all of the text not spoken for by the code below. */
  618.     color: #B5C2D9;
  619. }
  620.  
  621. .cm-s-ipython div.CodeMirror-selected {
  622.     background: #343d46 !important;
  623. }
  624.  
  625. .cm-s-ipython .CodeMirror-gutters {
  626.     background: #2b303b;
  627.     border-right: 0px;
  628. }
  629.  
  630. .cm-s-ipython .CodeMirror-linenumber {
  631.     color: #7C7C7C;
  632.     font-size: 10px;
  633. }
  634.  
  635. .cm-s-ipython .CodeMirror-cursor {
  636.     border-left: 1px solid #a7adba !important;
  637. }
  638.  
  639. .cm-s-ipython span.cm-comment {
  640.     color: #7C7C7C;
  641. }
  642.  
  643. .cm-s-ipython span.cm-atom {
  644.     color: #61afef;
  645. }
  646.  
  647. .cm-s-ipython span.cm-number {
  648.     color: #e2a271;
  649. }
  650.  
  651. .cm-s-ipython span.cm-property {
  652.     color: #B5C2D9;
  653. }
  654.  
  655. .cm-s-ipython span.cm-attribute {
  656.     color: #ea8080;
  657. }
  658.  
  659. .cm-s-ipython span.cm-keyword {
  660.     color: #cc89e0;
  661. }
  662.  
  663. .cm-s-ipython span.cm-string {
  664.     color: #94c273;
  665. }
  666.  
  667. .cm-s-ipython span.cm-meta {
  668.     color: #51b6c3;
  669. }
  670.  
  671. .cm-s-ipython span.cm-operator {
  672.     color: #5cadf1;
  673. }
  674.  
  675. .cm-s-ipython span.cm-builtin {
  676.     color: #61afef;
  677. }
  678.  
  679. .cm-s-ipython span.cm-variable {
  680.     color: #B5C2D9;
  681. }
  682.  
  683. .cm-s-ipython span.cm-variable-2 {
  684.     color: #ea8080;
  685. }
  686.  
  687. .cm-s-ipython span.cm-variable-3 {
  688.     color: #51b6c3;
  689. }
  690.  
  691. .cm-s-ipython span.cm-def {
  692.     color: #e2a271;
  693.     color: var(--atom-one-dark-orange-2);
  694.     /*color: var(--atom-one-dark-blue);*/
  695. }
  696.  
  697. .cm-s-ipython span.cm-error {
  698.     background: #bf616a;
  699.     color: #a7adba;
  700. }
  701.  
  702. .cm-s-ipython span.cm-bracket {
  703.     color: #B5C2D9;
  704.     font-weight: bold;
  705. }
  706.  
  707. .cm-s-ipython span.cm-tag {
  708.     color: #61afef;
  709. }
  710.  
  711. .cm-s-ipython span.cm-link {
  712.     color: #e2a271;
  713. }
  714.  
  715. .cm-s-ipython span.cm-storage {
  716.     color: #61afef;
  717. }
  718.  
  719. .cm-s-ipython span.cm-entity {
  720.     color: #61afef;
  721. }
  722.  
  723. .cm-s-ipython span.cm-latex {
  724.     color: #8fb36a;
  725. }
  726.  
  727. .cm-s-ipython .CodeMirror-matchingbracket { color: #b58900 !important; font-weight: bold; }
  728. .cm-s-ipython .CodeMirror-matchingbracket {
  729.     text-decoration: underline;
  730.     -moz-text-decoration-color: #37d6f2;
  731.     text-decoration-color: #37d6f2;
  732.     color: #B5C2D9 !important;
  733. }
  734.  
  735.  
  736. /*Markdown editing*/
  737.  
  738. .CodeMirror.cm-s-default {
  739.     background: #2C2C2C;
  740.     color: #787474;
  741.     border-radius: .35em;
  742.     box-shadow: inset 10px 10px 16px -4px rgba(0, 0, 0, 0.44);
  743. }
  744.  
  745. .cm-s-default span.cm-bracket {
  746.     color: #c0c5ce;
  747. }
  748.  
  749. .cm-s-default span.cm-header {
  750.     color: #CF4A4C;
  751. }
  752.  
  753. .cm-s-default span.cm-variable-2 {
  754.     color: #7587A6;
  755. }
  756.  
  757. .cm-s-default span.cm-comment {
  758.     color: #7F7A80;
  759. }
  760.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement