File tree 3 files changed +30
-26
lines changed 3 files changed +30
-26
lines changed Original file line number Diff line number Diff line change @@ -22,30 +22,41 @@ def Marginalia.css := r#"
22
22
padding: 0.5rem;
23
23
}
24
24
/* Wide viewport */
25
- @media (min-width: 1400px) {
26
- .marginalia .note {
27
- float: right;
28
- clear: right;
29
- margin-right: -19vw;
30
- width: 15vw;
31
- margin-top: 1rem;
32
- }
25
+ @media screen and (min-width: 1400px) {
26
+ .marginalia .note {
27
+ float: right;
28
+ clear: right;
29
+ margin-right: -19vw;
30
+ width: 15vw;
31
+ margin-top: 1rem;
32
+ }
33
33
}
34
34
35
35
.marginalia:hover, .marginalia:hover .note, .marginalia:has(.note:hover) {
36
36
background-color: var(--lean-accent-light-blue);
37
37
}
38
38
39
- /* Narrow viewport */
40
- @media (max-width: 1400px) {
41
- .marginalia .note {
42
- float: right;
43
- clear: right;
44
- width: 40%;
45
- margin: 1rem 0;
46
- margin-left: 5%;
39
+ /* Medium viewport */
40
+ @media screen and (700px < width <= 1400px) {
41
+ .marginalia .note {
42
+ float: right;
43
+ clear: right;
44
+ width: 40%;
45
+ margin: 1rem 0;
46
+ margin-left: 5%;
47
+ }
47
48
}
49
+
50
+ /* Narrow viewport (e.g. phone) */
51
+ @media screen and (width <= 700px) {
52
+ .marginalia .note {
53
+ float: left;
54
+ clear: left;
55
+ width: 90%;
56
+ margin: 1rem 5%;
57
+ }
48
58
}
59
+
49
60
body {
50
61
counter-reset: margin-note-counter;
51
62
}
Original file line number Diff line number Diff line change 25
25
"type" : " git" ,
26
26
"subDir" : null ,
27
27
"scope" : " " ,
28
- "rev" : " b1d1865f979882dbc52c386877bc6708d9b56aec " ,
28
+ "rev" : " 314e77088df5c4fa8e072d88e66af3599aca8350 " ,
29
29
"name" : " verso" ,
30
30
"manifestFile" : " lake-manifest.json" ,
31
31
"inputRev" : " main" ,
Original file line number Diff line number Diff line change @@ -115,18 +115,11 @@ figcaption {
115
115
position : fixed;
116
116
top : 0 ;
117
117
right : 0 ;
118
- transform :
119
- /* first undo the effect of the rotation, pushing it to the right*/
120
- translateX (25% )
121
- /* then shove it against the side, sticking the box out of the viewport */
122
- translateX (5em ) translateY (-5em )
123
- /* and rotate! */
124
- rotate (45deg );
125
- transform-origin : top left;
126
- padding : 1em 8em ;
118
+ padding : 0.5rem 1rem ;
127
119
background-color : var (--lean-compl-yellow );
128
120
font-family : var (--verso-structure-font-family );
129
121
font-size : large;
122
+ z-index : 9 ; /* Just below the ToC */
130
123
}
131
124
}
132
125
You can’t perform that action at this time.
0 commit comments