-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpage-image.css.ts
More file actions
56 lines (47 loc) · 1.21 KB
/
page-image.css.ts
File metadata and controls
56 lines (47 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { globalStyle, style } from "@vanilla-extract/css"
import { colors, hspace, mediaQueries, vspace } from "src/style/constants"
import { marginX } from "src/style/utils"
import { hideOnPrint } from "src/style/utils.css"
export const floatingControls = style({
position: "absolute",
right: hspace.halfEdge,
bottom: vspace.half,
backgroundColor: colors.body,
display: "block",
})
globalStyle(`${floatingControls} > *`, {
display: "block",
})
export const control = style({ display: "block" })
export const pageNav = style([
hideOnPrint,
{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
},
])
export const pageImage = style({
width: "100%",
height: "auto",
marginBottom: vspace.small,
})
export const caption = style({
marginTop: vspace.half,
...marginX(hspace.edge),
})
export const annotationFigure = style({
width: "100%",
marginBottom: vspace.double,
marginLeft: 0,
})
export const transformWrapper = style({
position: "relative",
cursor: "grab",
maxHeight: "20rem",
"@media": {
[mediaQueries.medium]: { maxHeight: "30rem" },
[mediaQueries.print]: { maxHeight: "initial" },
},
})
export const transformContent = style({ width: "100%" })