PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.13.0
Code Block Pro – Beautiful Syntax Highlighting v1.13.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
← All changes | build/shiki/samples/css.sample +11 -38 1.27.61.13.0 View file →
@@ -1,46 +1,19 @@
1 -html {
2 - margin: 0;
3 - background: black;
4 - height: 100%;
1 +.Aligner {
2 + display: flex;
3 + align-items: center;
4 + justify-content: center;
5 5 }
6 6
7 -body {
8 - margin: 0;
9 - width: 100%;
10 - height: inherit;
7 +.Aligner-item {
8 + max-width: 50%;
11 9 }
12 10
13 -/* the three main rows going down the page */
14 -
15 -body > div {
16 - height: 25%;
11 +.Aligner-item--top {
12 + align-self: flex-start;
17 13 }
18 14
19 -.thumb {
20 - float: left;
21 - width: 25%;
22 - height: 100%;
23 - object-fit: cover;
15 +.Aligner-item--bottom {
16 + align-self: flex-end;
24 17 }
25 18
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 */
19 +/* From https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/ */