File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
packages/notebook-extension/style Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -72,18 +72,29 @@ body[data-notebook='notebooks']
72
72
73
73
body [data-notebook = 'notebooks' ] .jp-cell-toolbar {
74
74
background : unset;
75
- top : unset;
76
75
box-shadow : unset;
77
76
}
78
77
78
+ body [data-notebook = 'notebooks' ]
79
+ .jp-RawCell [data-windowed-list-index = '0' ]
80
+ .jp-cell-toolbar ,
81
+ body [data-notebook = 'notebooks' ]
82
+ .jp-MarkdownCell [data-windowed-list-index = '0' ]
83
+ .jp-cell-toolbar {
84
+ top : calc (2 * var (--jp-notebook-padding ));
85
+ }
86
+
79
87
@media only screen and (max-width : 760px ) {
80
- body [data-notebook = 'notebooks' ] .jp-CodeCell .jp-cell-toolbar {
81
- top : 20px ;
88
+ /* first code cell on mobile */
89
+ body [data-notebook = 'notebooks' ]
90
+ .jp-CodeCell [data-windowed-list-index = '0' ]
91
+ .jp-cell-toolbar {
92
+ top : var (--jp-notebook-padding );
82
93
}
83
94
84
95
body [data-notebook = 'notebooks' ] .jp-MarkdownCell .jp-cell-toolbar ,
85
96
body [data-notebook = 'notebooks' ] .jp-RawCell .jp-cell-toolbar {
86
- top : 5 px ;
97
+ top : calc ( 0.5 * var ( --jp-notebook-padding )) ;
87
98
}
88
99
}
89
100
You can’t perform that action at this time.
0 commit comments