Skip to content

Commit b833f10

Browse files
committed
Update demo pages
1 parent 5979432 commit b833f10

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

ux.symfony.com/assets/styles/components/_demo-container.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
border-top-right-radius: 12px;
66
}
77

8+
.demo-introduction {
9+
a {
10+
color: var(--bs-code-color);
11+
font-weight: 500;
12+
}
13+
code {
14+
font-size: .95em;
15+
}
16+
}
17+
818
.demo-container-inner {
919
background-color: var(--bs-secondary-bg);
1020
border: 1px solid var(--bs-secondary-bg-subtle);

ux.symfony.com/templates/components/CodeBlock.html.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
{{ stimulus_target('code-expander', 'expandCodeButton') }}
2727
{{ stimulus_action('code-expander', 'expandCode') }}
2828
style="display: none;"
29-
>Expand code</button>
29+
>
30+
<twig:Icon name="arrow-down" />
31+
Expand code
32+
<twig:Icon name="arrow-down" />
33+
</button>
3034
{% endblock %}
3135
</div>
3236
</div>

ux.symfony.com/templates/liveDemoBase.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<a href="{{ url('app_demos') }}">DEMO</a>
2525
</p>
2626
<h1 class="ubuntu text-center">{{ demo.name }}</h1>
27-
<div style="font-size: 1rem; line-height: 1.75rem;" class="mt-4">
27+
<div style="font-size: 1rem; line-height: 1.75rem;" class="mt-4 demo-introduction">
2828
{{ demo.longDescription|markdown_to_html }}
2929
</div>
3030
</div>
@@ -37,7 +37,7 @@
3737
</div>
3838

3939
<div class="container-fluid container-xxl px-4 pt-4 px-md-5 pt-md-5 mb-5">
40-
<div class="mb-3" style="position: relative;">
40+
<div class="mb-5" style="position: relative;">
4141
<div class="p-4 markdown-container bg-body shadow-blur shadow-blur--rainbow" id="demo">
4242
{% block demo_content %}{% endblock %}
4343
</div>

0 commit comments

Comments
 (0)