Skip to main content

Module: template/image/style

Variables

default

Const default: "<style>\n /* Layout */\n @media (min-width: 1200px) {\n body {\n display: grid;\n grid-template-rows: auto;\n grid-template-columns: 4fr 1fr;\n gap: 1rem;\n }\n\n .bd-cheatsheet {\n padding-top: 0.5rem;\n }\n\n /**\n * 1. Too bad only Firefox supports subgrids ATM\n */\n .bd-cheatsheet,\n .bd-cheatsheet section,\n .bd-cheatsheet article {\n display: inherit; /* 1 */\n grid-template-rows: auto;\n grid-template-columns: 4fr;\n grid-column: 1 / span 2;\n gap: inherit; /* 1 */\n }\n\n .bd-cheatsheet section,\n .bd-cheatsheet section > h2 {\n top: 2rem;\n scroll-margin-top: 2rem;\n }\n\n .bd-cheatsheet section > h2::before {\n position: absolute;\n /* rtl:begin:ignore */\n top: 0;\n right: 0;\n bottom: -2rem;\n left: 0;\n /* rtl:end:ignore */\n z-index: -1;\n content: \"\";\n }\n\n .bd-cheatsheet article,\n .bd-cheatsheet .bd-heading {\n top: 8rem;\n scroll-margin-top: 8rem;\n }\n\n .bd-cheatsheet .bd-heading {\n z-index: 1;\n }\n }\n </style>"

Defined in

template/image/style.ts:1