Skip to content

docs: fix wide tables #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 19, 2023
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
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<template>
<dt-stack gap="400" direction="row" class="d-bgc-secondary d-p8 d-bar4 d-ba d-bc-subtle d-my16">
<dt-stack direction="row" gap="300">
<dt-stack gap="500" direction="row" class="d-bgc-secondary d-p16 d-bar4 d-ba d-bc-subtle d-my16">
<dt-stack direction="row" gap="400">
<dt-icon
class="d-fc-success"
name="check-circle"
size="300"
/>
<span class="d-label-plain-small">Ready</span>
<span class="d-label-plain-base">Ready</span>
</dt-stack>
<dt-stack direction="row" gap="300">
<dt-stack direction="row" gap="400">
<dt-icon
class="d-fc-warning"
name="tools"
size="300"
/>
<span class="d-label-plain-small">In progress</span>
<span class="d-label-plain-base">In progress</span>
</dt-stack>
<dt-stack direction="row" gap="300">
<dt-stack direction="row" gap="400">
<dt-icon
class="d-fc-error"
name="box-select"
size="300"
/>
<span class="d-label-plain-small">Planned</span>
<span class="d-label-plain-base">Planned</span>
</dt-stack>
<dt-stack direction="row" gap="300">
<dt-stack direction="row" gap="400">
<dt-icon
class="d-fc-muted"
name="box"
size="300"
/>
<span class="d-label-plain-small">N/A</span>
<span class="d-label-plain-base">N/A</span>
</dt-stack>
</dt-stack>
<table class="d-table">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="dialtone-usage">
<div class="dialtone-usage__item dialtone-usage__item--do">
<h3 class="dialtone-usage__hd dialtone-usage__hd--do">
<dt-icon name="thumbs-up" />
<dt-icon name="thumbs-up" size="400" />
Do
</h3>
<div class="dialtone-usage__bd">
Expand All @@ -11,7 +11,7 @@
</div>
<div class="dialtone-usage__item dialtone-usage__item--dont">
<h3 class="dialtone-usage__hd dialtone-usage__hd--dont">
<dt-icon name="thumbs-down" />
<dt-icon name="thumbs-down" size="400" />
Don’t
</h3>
<div class="dialtone-usage__bd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</dt-stack>
</th>
<td
class="d-fs-100 d-lh-300"
class="d-ff-mono d-fw-normal d-fs-100 d-fs-100 d-lh-300"
>
<div class="d-wmx264">
{{ tokenValue }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,20 +256,7 @@ html body {
// custom CSS here instead.
// ----------------------------------------------------------------------------
.vuepress-toc {
height: fit-content;

.active-category {
&::before {
position: absolute;
top: var(--dt-space-300);
bottom: var(--dt-space-300);
left: var(--dt-space-300-negative);
width: var(--dt-size-200);
background-color: var(--dt-color-purple-400);
border-radius: var(--dt-size-200);
content: '';
}
}
// height: fit-content;

.toc-item {
>.toc-list {
Expand All @@ -278,6 +265,8 @@ html body {
}
}



// ============================================================================
// $ LAYOUT
// Because the doc site needs layout specifications that aren't
Expand Down Expand Up @@ -367,6 +356,12 @@ a.header-anchor {
.d-gl-docsite-toc {
grid-template-areas: 'content toc';
grid-template-columns: [content] minmax(32rem, 99rem) [toc] minmax(min-content, 21.6rem);

@media (max-width: 1260px) {
grid-template-areas: 'content';
grid-template-columns: [content] minmax(32rem, 99rem);
}

}

.d-docsite--paragraph {
Expand Down Expand Up @@ -820,17 +815,17 @@ a.header-anchor {
display: flex;
flex: 1;
flex-direction: column;
gap: var(--dt-space-400);
gap: var(--dt-space-500);
padding: var(--dt-space-500);
background-color: var(--usage-item-color-background);
border-radius: var(--dt-size-400);

&--do {
--usage-item-color-background: var(--dt-color-surface-success);
--usage-item-color-background: var(--dt-color-surface-success-subtle);
}

&--dont {
--usage-item-color-background: var(--dt-color-surface-critical);
--usage-item-color-background: var(--dt-color-surface-critical-subtle);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<div
class="
d-px16
d-ps-fixed d-w100p d-bgc-primary d-h64 d-x0
lg:d-d-flex d-bb d-bc-black-100 d-ai-center
d-ps-fixed d-w100p d-bgc-secondary d-h64 d-x0
lg:d-d-flex d-bb d-bc-default d-ai-center
d-jc-space-between d-t64 d-d-none
"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
:class="gridClass"
>
<div class="d-p24 lg:d-pr24 lg:d-pt64">
<page-header>
<template #content-bottom>
<page-toc v-if="isMobile && includeToc" />
</template>
</page-header>
<page-header></page-header>
<content />
<nav
:class="prev ? 'd-jc-space-between' : 'd-jc-flex-end'"
Expand Down Expand Up @@ -50,7 +46,7 @@
</dt-button>
</router-link>
</nav>
<footer class="d-mt16 d-mb16 d-body-small d-fc-secondary">
<footer class="d-mt16 d-mb16 d-body-small d-fc-tertiary">
<span
v-if="$frontmatter.title"
v-text="$frontmatter.title"
Expand Down
Loading