Skip to content

Commit c1cef8c

Browse files
committed
fix mobile ui
Signed-off-by: Alex Suraci <[email protected]>
1 parent 0ab2024 commit c1cef8c

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

css/booklit.css

+20-7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ pre {
4242
color: #fff;
4343
padding: .5rem;
4444
overflow-x: auto;
45+
46+
/* kind of a hack tbh but happens to make various code samples fit better
47+
* narrow spaces like the examples pane and front page */
48+
font-size: .9em;
4549
}
4650

4751
code code {
@@ -88,7 +92,6 @@ h2, h3 {
8892

8993
.top-logo {
9094
grid-area: logo;
91-
min-width: 300px;
9295
}
9396

9497
.top-nav {
@@ -201,7 +204,6 @@ h2, h3 {
201204

202205
.segment.example pre {
203206
margin-top: 6px;
204-
font-size: .9em;
205207
}
206208

207209
@media (min-width: 800px) {
@@ -921,15 +923,26 @@ label.quickstart-label::before {
921923

922924
@media (max-width: 1200px) {
923925
body {
924-
grid-template-columns: 3fr 1fr;
926+
grid-template-columns: 1fr 2fr;
927+
grid-template-rows: 80px 60px auto;
925928
grid-template-areas:
926929
"logo search"
927-
"nav nav"
928-
"content toc";
930+
"primary-nav primary-nav"
931+
"secondary-nav content";
932+
}
933+
934+
.page-content.wide {
935+
grid-column-start: 1 / span 2;
936+
grid-column-end: 3;
937+
padding: 30px;
938+
}
939+
940+
.page-content.wide .section {
941+
grid-template-columns: auto;
929942
}
930943

931-
.top-nav {
932-
height: 60px;
944+
.splash-title {
945+
grid-column-start: 1;
933946
}
934947

935948
.top-nav a {

0 commit comments

Comments
 (0)