File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ import type { CrosswordProps } from '@guardian/react-crossword-next';
4
4
import {
5
5
between ,
6
6
from ,
7
+ headlineBold14 ,
7
8
headlineBold17 ,
8
9
space ,
10
+ textSans12 ,
9
11
textSans14 ,
10
12
textSansItalic12 ,
11
13
} from '@guardian/source/foundations' ;
@@ -29,6 +31,12 @@ const CluesHeader = memo(({ children }: { children: ReactNode }) => {
29
31
height: 2em;
30
32
margin- botto m: 0.5em;
31
33
text- transfor m: capitalize;
34
+ @media print {
35
+ ${ headlineBold14 } ;
36
+ bor der: none;
37
+ height: auto ;
38
+ margin- botto m: 0.25em;
39
+ }
32
40
` }
33
41
>
34
42
{ children }
@@ -114,6 +122,11 @@ const Layout: CrosswordProps['Layout'] = ({
114
122
< div
115
123
css = { css `
116
124
flex-basis : ${ gridWidth } px;
125
+ @media print {
126
+ flex-basis : auto;
127
+ max-width : 400px ;
128
+ max-height : 400px ;
129
+ }
117
130
` }
118
131
>
119
132
< FocusedClue
@@ -211,6 +224,7 @@ const Layout: CrosswordProps['Layout'] = ({
211
224
}
212
225
@media print {
213
226
flex-direction : row;
227
+ ${ textSans12 } ;
214
228
}
215
229
` }
216
230
>
Original file line number Diff line number Diff line change @@ -71,6 +71,17 @@ const CrosswordGrid = ({ children }: { children: React.ReactNode }) => (
71
71
'meta instructions .'
72
72
'body body right-column' ;
73
73
}
74
+
75
+ @media print {
76
+ grid-template-columns : 1fr ;
77
+ grid-template-areas :
78
+ 'title'
79
+ 'headline'
80
+ 'standfirst'
81
+ 'meta'
82
+ 'instructions'
83
+ 'body' ;
84
+ }
74
85
` }
75
86
>
76
87
{ children }
You can’t perform that action at this time.
0 commit comments