99 --mystnb-stdout-border-color : # f7f7f7 ;
1010 --mystnb-stderr-border-color : # f7f7f7 ;
1111 --mystnb-traceback-border-color : # ffd6d6 ;
12+ --mystnb-hide-prompt-opacity : 70% ;
13+ --mystnb-source-border-radius : .4em ;
14+ --mystnb-source-border-width : 1px ;
1215}
1316
1417/* Whole cell */
@@ -36,23 +39,68 @@ div.cell div.cell_input,
3639div .cell details .above-input > summary {
3740 padding-left : 0em ;
3841 padding-right : 0em ;
39- border : 1 px var (--mystnb-source-border-color ) solid;
42+ border : var ( --mystnb-source-border-width ) var (--mystnb-source-border-color ) solid;
4043 background-color : var (--mystnb-source-bg-color );
4144 border-left-color : var (--mystnb-source-margin-color );
4245 border-left-width : medium;
43- border-radius : .4 em ;
46+ border-radius : var ( --mystnb-source-border-radius ) ;
4447}
4548
49+ div .cell_input > div ,
50+ div .cell_output div .output > div .highlight {
51+ margin : 0em !important ;
52+ border : none !important ;
53+ }
54+
55+ /* All cell outputs */
56+ .cell_output {
57+ padding-left : 1em ;
58+ padding-right : 0em ;
59+ margin-top : 1em ;
60+ }
61+
62+ /* Text outputs from cells */
63+ .cell_output .output .text_plain ,
64+ .cell_output .output .traceback ,
65+ .cell_output .output .stream ,
66+ .cell_output .output .stderr {
67+ margin-top : 1em ;
68+ margin-bottom : 0em ;
69+ box-shadow : none;
70+ }
71+
72+ .cell_output .output .text_plain ,
73+ .cell_output .output .stream {
74+ background : var (--mystnb-stdout-bg-color );
75+ border : 1px solid var (--mystnb-stdout-border-color );
76+ }
77+
78+ .cell_output .output .stderr {
79+ background : var (--mystnb-stderr-bg-color );
80+ border : 1px solid var (--mystnb-stderr-border-color );
81+ }
82+
83+ .cell_output .output .traceback {
84+ background : var (--mystnb-traceback-bg-color );
85+ border : 1px solid var (--mystnb-traceback-border-color );
86+ }
87+
88+ /* Collapsible cell content */
4689div .cell details .above-input div .cell_input {
4790 border-top-left-radius : 0 ;
4891 border-top-right-radius : 0 ;
49- border-top : 1px var (--mystnb-source-border-color ) dashed;
92+ border-top : var (--mystnb-source-border-width ) var (--mystnb-source-border-color ) dashed;
93+ }
94+
95+ div .cell div .cell_input .above-output-prompt {
96+ border-bottom-left-radius : 0 ;
97+ border-bottom-right-radius : 0 ;
5098}
5199
52100div .cell details .above-input > summary {
53101 border-bottom-left-radius : 0 ;
54102 border-bottom-right-radius : 0 ;
55- border-bottom : 1 px var (--mystnb-source-border-color ) dashed;
103+ border-bottom : var ( --mystnb-source-border-width ) var (--mystnb-source-border-color ) dashed;
56104 padding-left : 1em ;
57105 margin-bottom : 0 ;
58106}
@@ -61,20 +109,26 @@ div.cell details.above-output>summary {
61109 background-color : var (--mystnb-source-bg-color );
62110 padding-left : 1em ;
63111 padding-right : 0em ;
64- border : 1 px var (--mystnb-source-border-color ) solid;
65- border-bottom : 1 px var (--mystnb-source-border-color ) dashed ;
66- border-left-color : blue ;
112+ border : var ( --mystnb-source-border-width ) var (--mystnb-source-border-color ) solid;
113+ border-radius : var (--mystnb-source-border-radius ) ;
114+ border-left-color : var ( --mystnb-source-margin-color ) ;
67115 border-left-width : medium;
68- border-top-left-radius : .4em ;
69- border-top-right-radius : .4em ;
70116}
71117
72- div .cell details .hide > summary ::marker {
73- opacity : 50% ;
118+ div .cell details .below-input > summary {
119+ background-color : var (--mystnb-source-bg-color );
120+ padding-left : 1em ;
121+ padding-right : 0em ;
122+ border : var (--mystnb-source-border-width ) var (--mystnb-source-border-color ) solid;
123+ border-top : none;
124+ border-bottom-left-radius : var (--mystnb-source-border-radius );
125+ border-bottom-right-radius : var (--mystnb-source-border-radius );
126+ border-left-color : var (--mystnb-source-margin-color );
127+ border-left-width : medium;
74128}
75129
76130div .cell details .hide > summary > span {
77- opacity : 50 % ;
131+ opacity : var ( --mystnb-hide-prompt-opacity ) ;
78132}
79133
80134div .cell details .hide [open ]> summary > span .collapsed {
@@ -94,52 +148,12 @@ div.cell details.hide:not([open])>summary>span.expanded {
94148 opacity : 1 ;
95149 }
96150}
97-
98151div .cell details .hide [open ]> summary ~ * {
99152 -moz-animation : collapsed-fade-in 0.3s ease-in-out;
100153 -webkit-animation : collapsed-fade-in 0.3s ease-in-out;
101154 animation : collapsed-fade-in 0.3s ease-in-out;
102155}
103156
104- div .cell_input > div ,
105- div .cell_output div .output > div .highlight {
106- margin : 0em !important ;
107- border : none !important ;
108- }
109-
110- /* All cell outputs */
111- .cell_output {
112- padding-left : 1em ;
113- padding-right : 0em ;
114- margin-top : 1em ;
115- }
116-
117- /* Text outputs from cells */
118- .cell_output .output .text_plain ,
119- .cell_output .output .traceback ,
120- .cell_output .output .stream ,
121- .cell_output .output .stderr {
122- margin-top : 1em ;
123- margin-bottom : 0em ;
124- box-shadow : none;
125- }
126-
127- .cell_output .output .text_plain ,
128- .cell_output .output .stream {
129- background : var (--mystnb-stdout-bg-color );
130- border : 1px solid var (--mystnb-stdout-border-color );
131- }
132-
133- .cell_output .output .stderr {
134- background : var (--mystnb-stderr-bg-color );
135- border : 1px solid var (--mystnb-stderr-border-color );
136- }
137-
138- .cell_output .output .traceback {
139- background : var (--mystnb-traceback-bg-color );
140- border : 1px solid var (--mystnb-traceback-border-color );
141- }
142-
143157/* Math align to the left */
144158.cell_output .MathJax_Display {
145159 text-align : left !important ;
0 commit comments