Skip to content

Commit d95d4c8

Browse files
committed
improve binder layout on small screens
1 parent 51dfda0 commit d95d4c8

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

PlutoPages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### A Pluto.jl notebook ###
2-
# v0.19.14
2+
# v0.19.25
33

44
using Markdown
55
using InteractiveUtils

src/assets/styles/index.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,30 @@ a.search-result::before {
282282
blockquote.twitter-tweet {
283283
margin: 0rem;
284284
}
285+
286+
/* modify Pluto's styles to avoid a visual glitch. This will make the header always display fixed at the top. */
287+
288+
body:not(.asdfsdfa) pluto-editor:not(.asdffdas) header#pluto-nav {
289+
position: fixed;
290+
top: 0;
291+
left: 56px;
292+
right: 56px;
293+
z-index: 1998;
294+
width: auto;
295+
border-radius: 0 0 10px 10px;
296+
}
297+
298+
/* Make space for the Pluto header */
299+
body.binder:not(.offer_binder) {
300+
padding-top: 60px;
301+
}
302+
303+
/* Another strategy: leave the header in place but make the export menu hidden when it is not opened. */
304+
/*
305+
header.show_export aside#export {
306+
visibility: initial;
307+
}
308+
309+
aside#export {
310+
visibility: hidden;
311+
} */

src/assets/styles/lecture_header.css

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,3 @@
4343
aspect-ratio: 16/9;
4444
flex: 1 1 auto;
4545
}
46-
47-
/* modify Pluto's styles to avoid a visual glitch. This will make the header always display fixed at the top. */
48-
49-
body:not(.asdfsdfa) pluto-editor:not(.asdffdas) header#pluto-nav {
50-
position: fixed;
51-
top: 0;
52-
left: 0;
53-
right: 0;
54-
z-index: 1998;
55-
}
56-
57-
/* Another strategy: leave the header in place but make the export menu hidden when it is not opened. */
58-
/*
59-
header.show_export aside#export {
60-
visibility: initial;
61-
}
62-
63-
aside#export {
64-
visibility: hidden;
65-
} */

0 commit comments

Comments
 (0)