|
3 | 3 | * License: MS-RSL – see LICENSE.md for details |
4 | 4 | */ |
5 | 5 |
|
| 6 | +@use 'colors' |
| 7 | + |
6 | 8 | // I just noticed there is another version of this file in jupyter/_jupyter.sass |
7 | 9 | // They need to be carefully merged into one! But not today. |
8 | 10 |
|
|
78 | 80 |
|
79 | 81 | .cc-jupyter-snippet |
80 | 82 | > div.ant-collapse-header |
81 | | - color: $COL_GRAY !important |
| 83 | + color: colors.$COL_GRAY !important |
82 | 84 |
|
83 | 85 | .cc-jupyter-snippet-collapse |
84 | 86 | .cc-jupyter-snippet |
|
90 | 92 | background: white |
91 | 93 | margin: 0 10px 10px 10px |
92 | 94 | padding: 10px |
93 | | - border: 1px solid $COL_GRAY_L |
| 95 | + border: 1px solid colors.$COL_GRAY_L |
94 | 96 | border-radius: 3px |
95 | 97 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.22) |
96 | 98 | > pre |
|
102 | 104 | display: inline |
103 | 105 |
|
104 | 106 | // katex 0.13.5 somehow causes formulas to be displayed wider than the width of the output |
105 | | -// adding ugly horizontal scrollbars. this eliminates that. |
| 107 | +// adding ugly horizontal scrollbar. this eliminates that. |
106 | 108 | .cocalc-jupyter-rendered |
107 | 109 | .katex-display>.katex>.katex-html |
108 | | - // display: contents // this did work, but it's some experimenal new display option |
| 110 | + // display: contents // this did work, but it's some experimental new display option |
109 | 111 | margin: 1em .5em // margin works as well, but we also have to set it for mathjax to make it look consistent |
110 | 112 | .katex |
111 | 113 | padding: 0 2.5px |
112 | 114 |
|
113 | 115 | // this seems to be missing from jupyter widgets, but is used to implement the according |
114 | 116 | // https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#accordion |
115 | | -// I.e., without this css rule, accordian is just broken. |
| 117 | +// I.e., without this css rule, accordion is just broken. |
116 | 118 | .lm-Widget.lm-mod-hidden |
117 | 119 | display: none !important |
118 | 120 |
|
119 | 121 | .cc-jupyter-buttonbar-dropdown |
120 | 122 | .ant-dropdown-menu-item |
121 | | - color: $COL_GRAY_D !important |
| 123 | + color: colors.$COL_GRAY_D !important |
0 commit comments