| 1 |
{% extends "layout.html" %} |
| 2 |
|
| 3 |
{% block htmltitle %}<title>Styles{{ titlesuffix }}</title>{% endblock %} |
| 4 |
|
| 5 |
{% block body %} |
| 6 |
<style> |
| 7 |
.style-gallery { |
| 8 |
display: flex; |
| 9 |
flex-wrap: wrap; |
| 10 |
justify-content: space-around; |
| 11 |
} |
| 12 |
h2 { |
| 13 |
margin-top: 2em; |
| 14 |
} |
| 15 |
.style-gallery h3 { |
| 16 |
margin-bottom: 0.1em; |
| 17 |
} |
| 18 |
.style-gallery pre { |
| 19 |
background-color: inherit; |
| 20 |
} |
| 21 |
</style> |
| 22 |
{{ body }} |
| 23 |
|
| 24 |
<h1>Styles</h1> |
| 25 |
|
| 26 |
<p>Pygments comes with the following builtin styles. |
| 27 |
For more information about styles refer to <a href="{{ pathto('docs/styles') }}">the documentation</a>. |
| 28 |
</p> |
| 29 |
|
| 30 |
<div class=style-gallery> |
| 31 |
{% for style in styles_aa %} |
| 32 |
<div> |
| 33 |
<h3 id="{{style.name}}">{{style.name}}</h3> |
| 34 |
{{style.html|safe}} |
| 35 |
</div> |
| 36 |
{% endfor %} |
| 37 |
</div> |
| 38 |
|
| 39 |
<h2>Styles with a lower contrast</h2> |
| 40 |
<p> |
| 41 |
The following styles do not meet the <a href="https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html">WCAG 2.1 AA contrast minimum</a>, |
| 42 |
so they might be difficult to read for people with suboptimal vision. |
| 43 |
If you want your highlighted code to be well readable for other people, you |
| 44 |
should use one of the earlier styles instead. |
| 45 |
</p> |
| 46 |
<div class=style-gallery> |
| 47 |
{% for style in styles_sub_aa %} |
| 48 |
<div> |
| 49 |
<h3 id="{{style.name}}">{{style.name}}</h3> |
| 50 |
{{style.html|safe}} |
| 51 |
</div> |
| 52 |
{% endfor %} |
| 53 |
</div> |
| 54 |
|
| 55 |
{% endblock %} |