bin/templates/paste.html
Egor Tensin 6e29e2578d Same line height on paste submission & view
The line-height on the paste submission form & the paste display page is
currently effectively different (due to <code>::before padding-bottom).
This commit makes the line height uniform on both pages (leaning towards
a higher value for better readability).
2023-12-24 08:01:10 +00:00

32 lines
749 B
HTML

{% extends "base.html" %}
{% block styles %}
pre {
height: 100%;
width: 100%;
margin: 0;
overflow: auto;
font-family: inherit;
font-size: 1rem;
line-height: inherit;
counter-reset: line;
}
code {
counter-increment: line;
}
code::before {
content: counter(line);
display: inline-block;
width: 2em; /* Fixed width */
padding: 0 1em 0 0;
margin-right: .5em;
color: #888;
-webkit-user-select: none;
}
{% endblock styles %}
{% block head %}
<link rel="stylesheet" type="text/css" href="highlight.css" />
{% endblock head %}
{% block content %}<pre>{{ content|safe }}</pre>{% endblock content %}