mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Tweak preformatted block styling
This commit is contained in:
parent
15e011ae52
commit
aa9e68e121
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-print.css
vendored
BIN
netbox/project-static/dist/netbox-print.css
vendored
Binary file not shown.
@ -967,6 +967,17 @@ div.card-overlay {
|
||||
max-width: unset;
|
||||
}
|
||||
|
||||
// Preformatted text blocks
|
||||
td pre {
|
||||
margin-bottom: 0
|
||||
}
|
||||
pre.block {
|
||||
padding: $spacer;
|
||||
background-color: var(--nbx-pre-bg);
|
||||
border: 1px solid var(--nbx-pre-border-color);
|
||||
border-radius: $border-radius;
|
||||
}
|
||||
|
||||
#django-messages {
|
||||
position: fixed;
|
||||
right: $spacer;
|
||||
|
@ -7,11 +7,7 @@ body {
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: $spacer;
|
||||
white-space: pre;
|
||||
background-color: var(--nbx-pre-bg);
|
||||
border: 1px solid var(--nbx-pre-border-color);
|
||||
border-radius: $border-radius;
|
||||
}
|
||||
|
||||
// Force <small/> elements to make text smaller.
|
||||
|
@ -26,7 +26,7 @@
|
||||
<p>
|
||||
The complete exception is provided below:
|
||||
</p>
|
||||
<pre><strong>{{ exception }}</strong><br />
|
||||
<pre class="block"><strong>{{ exception }}</strong><br />
|
||||
{{ error }}
|
||||
|
||||
Python version: {{ python_version }}
|
||||
|
@ -64,7 +64,7 @@
|
||||
NAPALM Arguments
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<pre>{{ object.napalm_args }}</pre>
|
||||
<pre>{{ object.napalm_args|render_json }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
{% include 'inc/panels/custom_fields.html' %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% load helpers %}
|
||||
|
||||
<div class="rendered-context-data">
|
||||
<pre>{% if format == 'json' %}{{ data|render_json }}{% elif format == 'yaml' %}{{ data|render_yaml }}{% else %}{{ data }}{% endif %}</pre>
|
||||
<pre class="block">{% if format == 'json' %}{{ data|render_json }}{% elif format == 'yaml' %}{{ data|render_yaml }}{% else %}{{ data }}{% endif %}</pre>
|
||||
</div>
|
||||
|
@ -69,7 +69,7 @@
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="source">
|
||||
<code class="h6 my-3 d-block">{{ script.filename }}</code>
|
||||
<pre>{{ script.source }}</pre>
|
||||
<pre class="block">{{ script.source }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content-wrapper %}
|
||||
|
@ -102,11 +102,11 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="output">
|
||||
<pre>{{ result.data.output }}</pre>
|
||||
<pre class="block">{{ result.data.output }}</pre>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="source">
|
||||
<p><code>{{ script.filename }}</code></p>
|
||||
<pre>{{ script.source }}</pre>
|
||||
<pre class="block">{{ script.source }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content-wrapper %}
|
||||
|
Loading…
Reference in New Issue
Block a user