Skip to content

Commit d813aa8

Browse files
committed
Add missing code tags
1 parent a119b6c commit d813aa8

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

ux.symfony.com/assets/styles/components/_Terminal.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
text-overflow: ellipsis;
4949
white-space: nowrap;
5050
padding-inline-start: .25rem;
51+
52+
code {
53+
font-size: inherit;
54+
opacity: .8;
55+
}
5156
}
5257

5358
.Terminal_controls {
@@ -58,8 +63,8 @@
5863
}
5964
.Terminal_controls span {
6065
display: inline-block;
61-
width: .75rem;
62-
height: .75rem;
66+
width: .65rem;
67+
height: .65rem;
6368
border-radius: 50%;
6469

6570
&.red {
@@ -71,8 +76,13 @@
7176
&.green {
7277
background: $green;
7378
}
79+
[data-bs-theme="dark"] & {
80+
opacity: .85;
81+
filter: grayscale(.4);
82+
}
7483
}
7584

85+
7686
.Terminal_body {
7787
background-color: $n-800;
7888
height: 100%;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}) }}>
44
{% if showFilename %}
55
<div class="Terminal_header py-2 ps-4 pe-2 mb-0 d-flex justify-content-between align-items-center">
6-
<a id="{{ this.elementId }}" href="#{{ this.elementId }}" class="Terminal_title">{{ filename }}</a>
6+
<a id="{{ this.elementId }}" href="#{{ this.elementId }}" class="Terminal_title"><code>{{ filename }}</code></a>
77
<div class="Terminal_actions">
88
<twig:CodeBlockButtons source="{{ this.rawSource }}" link="{{ this.githubLink }}" />
99
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
</div>
1010
</div>
1111
<div class="Terminal_body">
12-
<pre class="Terminal_content ps-4 pt-3" style="padding-bottom: {{ bottomPadding }}px; height: {{ height }}">
12+
<pre class="Terminal_content ps-4 pt-3" style="padding-bottom: {{ bottomPadding }}px; height: {{ height }}"><code>
1313
{{- this.process(block('content'))|raw -}}
14-
</pre>
14+
</code></pre>
1515
</div>
1616
</div>

0 commit comments

Comments
 (0)