Skip to content

Commit 82cea5e

Browse files
committed
tweak
1 parent eabb51a commit 82cea5e

3 files changed

Lines changed: 252 additions & 88 deletions

File tree

_includes/components/design-page-header.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,19 @@
3232
{% if description and description != "" %}
3333
<p class="design-page-header-desc">{{ description }}</p>
3434
{% endif %}
35+
{% if include.video and include.video != "" %}
36+
{% if include.video_title and include.video_title != "" %}
37+
{% assign video_link_label = include.video_title %}
38+
{% else %}
39+
{% assign video_link_label = "Watch demo" %}
40+
{% endif %}
41+
<p class="design-page-header-action">
42+
<a
43+
class="design-link"
44+
href="{{ include.video }}"
45+
target="_blank"
46+
rel="noopener noreferrer"
47+
>{{ video_link_label }} →</a>
48+
</p>
49+
{% endif %}
3550
</div>

assets/css/main.src.css

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,9 @@ html.dark .design-badge.design-badge--danger {
35283528
color: #f87171;
35293529
}
35303530

3531-
.design-list {
3531+
.design-list,
3532+
.docs-intro-cards,
3533+
.docs-cli-cards {
35323534
display: flex;
35333535
flex-direction: column;
35343536
gap: 1.1rem;
@@ -4806,6 +4808,38 @@ html.dark .radar-btn {
48064808
}
48074809
}
48084810

4811+
/* /docs/env-file — hero example + on-page TOC */
4812+
.docs-env-hero-example {
4813+
align-items: center;
4814+
display: flex;
4815+
height: 100%;
4816+
justify-content: center;
4817+
min-height: inherit;
4818+
padding: 0.5rem 0;
4819+
width: 100%;
4820+
}
4821+
4822+
.docs-env-hero-example .design-codeblock-wrap {
4823+
margin: 0;
4824+
max-width: 22rem;
4825+
width: 100%;
4826+
}
4827+
4828+
.docs-env-file-body .design-page-title {
4829+
scroll-margin-top: 1.25rem;
4830+
}
4831+
4832+
.docs-env-syntax-table .design-table th,
4833+
.docs-env-syntax-table .design-table td {
4834+
font-size: var(--design-text-compact);
4835+
}
4836+
4837+
.docs-env-syntax-table .design-table tbody th {
4838+
font-family: var(--design-font-mono);
4839+
font-weight: 450;
4840+
white-space: nowrap;
4841+
}
4842+
48094843
.docs-hero-icon {
48104844
color: var(--design-ink);
48114845
display: block;
@@ -5071,13 +5105,6 @@ html.storm .docs-hero-icon--invert-dark {
50715105
max-width: 36rem;
50725106
}
50735107

5074-
.docs-cli-cards {
5075-
display: flex;
5076-
flex-direction: column;
5077-
gap: 0.75rem;
5078-
width: 100%;
5079-
}
5080-
50815108
.docs-cli-cards .design-settings-grid {
50825109
gap: 0.7rem;
50835110
grid-template-columns: repeat(2, minmax(0, 1fr));

0 commit comments

Comments
 (0)