Skip to content

Commit adb5937

Browse files
docs: fix code blocks uniform in size
1 parent 046a2b1 commit adb5937

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

src/content/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Install from "../components/Splash/install/install.mdx";
3030

3131
## Bundle It
3232

33-
<div className="splash__wrap">
33+
<div id="bundle-it-section" className="splash__wrap">
3434
<div className="splash__left">
3535
<SecondLeft />
3636
</div>

src/styles/tailwind.css

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
@apply max-w-100 m-auto;
8484
}
8585
.splash__left {
86-
@apply w-full float-left md:w-1/2 md:px-3.75;
86+
@apply w-full float-left md:w-1/2 md:px-3.75;
8787
}
8888
.splash__left p {
8989
@apply text-left;
@@ -94,3 +94,38 @@
9494
.splash__right p {
9595
@apply text-left;
9696
}
97+
98+
/* Specific bundle section layout */
99+
@media (min-width: 768px) {
100+
#bundle-it-section {
101+
display: grid !important;
102+
grid-template-columns: 1fr 1fr;
103+
row-gap: 1.5rem;
104+
}
105+
#bundle-it-section::before,
106+
#bundle-it-section::after {
107+
display: none !important;
108+
}
109+
#bundle-it-section > .splash__left,
110+
#bundle-it-section > .splash__right {
111+
float: none !important;
112+
width: auto !important;
113+
display: grid !important;
114+
grid-template-rows: subgrid !important;
115+
grid-row: span 3;
116+
margin-bottom: 0 !important;
117+
}
118+
#bundle-it-section > .splash__left .code-block-wrapper,
119+
#bundle-it-section > .splash__right .code-block-wrapper {
120+
display: flex !important;
121+
flex-direction: column !important;
122+
margin: 0 !important;
123+
height: 100% !important;
124+
}
125+
#bundle-it-section > .splash__left .code-block-wrapper pre,
126+
#bundle-it-section > .splash__right .code-block-wrapper pre {
127+
flex-grow: 1 !important;
128+
margin: 0 !important;
129+
height: 100% !important;
130+
}
131+
}

src/sw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable import/no-extraneous-dependencies */
2+
/* eslint-disable import/named */
23
import { CacheableResponsePlugin } from "workbox-cacheable-response";
34
import { cacheNames } from "workbox-core";
45
import { ExpirationPlugin } from "workbox-expiration";

0 commit comments

Comments
 (0)