Skip to content

Commit 0b64016

Browse files
committed
style tweaks for binder
1 parent 0ec71ec commit 0b64016

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

src/assets/styles/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ a {
9898
}
9999
a,
100100
a:visited {
101-
color: #4674bc;
101+
/* color: #4674bc; */
102102
}
103103
a:hover {
104104
text-decoration: underline;

src/assets/styles/layout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
flex: 0 0 auto;
3838
width: 15rem;
3939
font-weight: 400;
40-
z-index: 23400;
40+
z-index: 1900;
4141
}
4242

4343
#pages-content {

src/assets/styles/lecture_header.css

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.lecture-header{
1+
.lecture-header {
22
background: #282936;
33
color: white;
44
padding: 1rem;
@@ -7,7 +7,11 @@
77
display: block;
88
border-radius: 1rem;
99
margin: 1rem;
10-
}
10+
}
11+
12+
.lecture-header * {
13+
color: white;
14+
}
1115

1216
.lecture-header,
1317
.lecture-header h1 {
@@ -39,4 +43,25 @@
3943
/* max-width: 400px; */
4044
aspect-ratio: 16/9;
4145
flex: 1 1 auto;
42-
}
46+
}
47+
48+
/* modify Pluto's styles to avoid a visual glitch. This will make the header always display fixed at the top. */
49+
50+
51+
body:not(.asdfsdfa) pluto-editor:not(.asdffdas) header#pluto-nav {
52+
position: fixed;
53+
top: 0;
54+
left: 0;
55+
right: 0;
56+
z-index: 1998;
57+
}
58+
59+
/* Another strategy: leave the header in place but make the export menu hidden when it is not opened. */
60+
/*
61+
header.show_export aside#export {
62+
visibility: initial;
63+
}
64+
65+
aside#export {
66+
visibility: hidden;
67+
} */

0 commit comments

Comments
 (0)