css.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.4, at build/shiki/samples/css.sample
| 1 | html { |
| 2 | margin: 0; |
| 3 | background: black; |
| 4 | height: 100%; |
| 5 | } |
| 6 | |
| 7 | body { |
| 8 | margin: 0; |
| 9 | width: 100%; |
| 10 | height: inherit; |
| 11 | } |
| 12 | |
| 13 | /* the three main rows going down the page */ |
| 14 | |
| 15 | body > div { |
| 16 | height: 25%; |
| 17 | } |
| 18 | |
| 19 | .thumb { |
| 20 | float: left; |
| 21 | width: 25%; |
| 22 | height: 100%; |
| 23 | object-fit: cover; |
| 24 | } |
| 25 | |
| 26 | .main { |
| 27 | display: none; |
| 28 | } |
| 29 | |
| 30 | .blowup { |
| 31 | display: block; |
| 32 | position: absolute; |
| 33 | object-fit: contain; |
| 34 | object-position: center; |
| 35 | top: 0; |
| 36 | left: 0; |
| 37 | width: 100%; |
| 38 | height: 100%; |
| 39 | z-index: 2000; |
| 40 | } |
| 41 | |
| 42 | .darken { |
| 43 | opacity: 0.4; |
| 44 | } |
| 45 | |
| 46 | /* From https://github.com/mdn/css-examples/blob/main/object-fit-gallery/style.css */ |
| 47 |