Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions site/.vitepress/theme/HeroInstall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,11 @@ async function copy() {
.installer-copy:hover { color: var(--vp-c-brand-1); border-color: var(--vp-c-brand-1); }
.installer-more { display: inline-block; margin-top: 9px; font-size: 12px; color: var(--vp-c-brand-1); }
@media (max-width: 959px) { .installer { margin-left: auto; margin-right: auto; } }
@media (max-width: 640px) {
.installer-heading, .installer-more { font-size: 14px; }
.installer-tab { padding-block: 8px; font-size: 14px; }
.installer-command code { font-size: 14px; }
.installer-copy { min-height: 40px; font-size: 14px; }
.installer-more { padding-block: 8px; }
}
</style>
5 changes: 5 additions & 0 deletions site/.vitepress/theme/HomeWorkflows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ const workflows = computed<Workflow[]>(() => frontmatter.value.workflows ?? [])
font-weight: 500;
text-decoration: none;
}
@media (max-width: 640px) {
.workflow { padding: 16px; }
.vp-doc .workflow pre code { font-size: 14px; }
.vp-doc .workflow a { display: inline-block; padding-block: 8px; }
}
</style>
60 changes: 60 additions & 0 deletions site/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,63 @@
margin: 32px 0 0;
}
}

/* Phones: code and menu text at 14px, 40px touch rows, and long inline code that wraps inside table cells */
@media (max-width: 640px) {
.vp-doc [class*='language-'] code,
.vp-doc :not(pre) > code {
font-size: 14px;
}

.vp-doc [class*='language-'] > span.lang,
.VPLocalNav .menu-text,
.VPLocalNavOutlineDropdown button {
font-size: 14px;
}

.vp-doc td code,
.vp-doc th code {
overflow-wrap: anywhere;
}

.vp-doc p,
.vp-doc li {
line-height: 26px;
}

.vp-doc p {
margin: 12px 0;
}

.vp-doc li + li {
margin-top: 4px;
}

.vp-doc h2 {
margin: 32px 0 12px;
padding-top: 16px;
}

.vp-doc h3 {
margin: 24px 0 8px;
}

.VPHomeHero {
padding-bottom: 32px;
}

.VPHero .image {
margin-top: 20px;
}

.VPLocalNav .menu,
.VPLocalNavOutlineDropdown button {
min-height: 40px;
}

.VPSidebarItem .link,
.VPNavScreenMenuLink,
.VPNavScreenMenuGroupLink {
padding-block: 8px;
}
}
Loading