Skip to content

Commit fb344c7

Browse files
committed
Changes to remove overflow on smaller screen sizes
1 parent ace02dd commit fb344c7

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

sites/website/src/css/custom.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,24 +176,26 @@ html[data-theme='dark'] .DocSearch-Hit[aria-selected="true"] a mark {
176176
--tree-item-expand-collapse-hover: #333333;
177177
--tree-item-expand-collapse-selected-hover: #383838;
178178
--base-layer-luminance: 0.09;
179+
--wrapper-gutter: 20px;
180+
--wrapper-max-width: 8px;
179181
background-color: var(--fill-color);
180182
color: var(--neutral-foreground-rest);
181183
font-family: var(--body-font);
182184
font-size: var(--type-ramp-base-font-size);
183185
line-height: var(--type-ramp-base-line-height);
184186
margin: 0;
185-
padding: 20px 0;
187+
padding: 20px;
186188
display: grid;
187189
grid-auto-rows: minmax(0, auto);
188-
grid-template-columns: minmax(var(--wrapper-gutter), 1fr) minmax(0, var(--wrapper-max-width)) minmax(var(--wrapper-gutter), 1fr);
190+
grid-template-columns: 1fr;
189191
}
190192

191193
.section {
192194
box-sizing: border-box;
193195
color: var(--neutral-foreground-rest);
194196
grid-column: span 2;
195197
margin: var(--section-height-spacing-mobile);
196-
padding: 40px 0;
198+
padding: 20px 0;
197199
align-items: center;
198200
display: flex;
199201
flex-flow: row wrap;
@@ -271,6 +273,11 @@ html[data-theme='dark'] .DocSearch-Hit[aria-selected="true"] a mark {
271273
height: calc(var(--type-ramp-plus-5-font-size) + var(--design-unit)* 1px);
272274
}
273275

276+
.theme-code-block {
277+
overflow: auto;
278+
width: inherit;
279+
}
280+
274281
pre {
275282
text-align: left;
276283
}
@@ -293,17 +300,18 @@ li {
293300
}
294301

295302
.section-showcase-item svg {
296-
height: 40px;
297-
width: 80px;
303+
height: 20px;
304+
width: 40px;
298305
fill: white;
299306
stroke: white;
300-
margin: 15px 40px;
307+
margin: 8px 20px;
301308
}
302309

303310
@media screen and (min-width: 900px) {
304311
.frontpage {
305312
--wrapper-gutter: 5vw;
306313
--wrapper-max-width: 800px;
314+
grid-template-columns: minmax(var(--wrapper-gutter), 1fr) minmax(0, var(--wrapper-max-width)) minmax(var(--wrapper-gutter), 1fr);
307315
}
308316

309317
.section,
@@ -314,5 +322,16 @@ li {
314322
.section {
315323
margin: var(--section-height-spacing);
316324
padding: 40px 0;
325+
max-width: 900px;
326+
}
327+
328+
.section-showcase-item svg {
329+
height: 40px;
330+
width: 80px;
331+
margin: 15px 40px;
332+
}
333+
334+
.theme-code-block {
335+
width: unset;
317336
}
318337
}

0 commit comments

Comments
 (0)