Skip to content

Commit 074bcee

Browse files
committed
7: Add CSS for full-page illustrations
1 parent f2b50f1 commit 074bcee

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

7-high-level-structural-patterns.rst

+16
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,14 @@ Images
13061306
}
13071307
}
13081308
1309+
@supports(display: grid){
1310+
figure.full-page{
1311+
display: grid;
1312+
grid-template-rows: 1fr auto;
1313+
max-height: 100%;
1314+
}
1315+
}
1316+
13091317
#. :html:`<figure>` elements that are meant to be aligned block-level with the text have this additional CSS:
13101318

13111319
.. code:: css
@@ -1344,6 +1352,14 @@ Examples
13441352
}
13451353
}
13461354
1355+
@supports(display: grid){
1356+
figure.full-page{
1357+
display: grid;
1358+
grid-template-rows: 1fr auto;
1359+
max-height: 100%;
1360+
}
1361+
}
1362+
13471363
/* If the image is meant to be aligned block-level with the text, use this selector... */
13481364
figure{
13491365
break-inside: avoid;

0 commit comments

Comments
 (0)