{% macro render_difference_styles() -%}
  <style>
    .difference {
      display: block;
      max-width: 920px;
      overflow-x: auto;
    }

    table.diff {
      border: #cccccc solid 1px;;
      font-size: 0.875rem; /* 14px / 16px */
      width: 100%;
    }

    table.diff tbody {
      font-family: monospace;
    }

    .diff_next {
      display: none;
    }

    .diff_header {
      background-color: #e0e0e0;
      padding-left: 0.5rem;
    }
    td.diff_header {
      text-align: right;
      width: 1%;
    }

    .diff_add {
      background-color: #88ee88;
      border-color: #1fd81f;
    }
    .diff_chg {
      background-color: #ffff77;
      border: #eeee1a solid 1px;
    }
    .diff_sub {
      background-color: #ff9999;
      border: #ff1a1a solid 1px;
    }
  </style>
{%- endmacro %}


{% macro render_difference(diff) -%}
  {%- if diff is not none %}
  <div class="difference">
{{- diff|safe }}
  </div>
  {%- else %}
  <p>{{ 'no differences'|dim }}</p>
  {%- endif %}
{%- endmacro %}

{% macro render_difference_styles() -%}
  <style>
    .difference {
      display: block;
      max-width: 920px;
      overflow-x: auto;
    }

    table.diff {
      border: #cccccc solid 1px;;
      font-size: 0.75rem; /* 12px / 16px */
      width: 100%;
    }

    table.diff tbody {
      font-family: monospace;
    }

    .diff_next {
      display: none;
    }

    .diff_header {
      background-color: #e0e0e0;
      padding-left: 0.5rem;
    }
    td.diff_header {
      text-align: right;
      width: 1%;
    }

    .diff_add {
      background-color: #88ee88;
      border-color: #1fd81f;
    }
    .diff_chg {
      background-color: #ffff77;
      border: #eeee1a solid 1px;
    }
    .diff_sub {
      background-color: #ff9999;
      border: #ff1a1a solid 1px;
    }
  </style>
{%- endmacro %}


{% macro render_difference(diff) -%}
  {%- if diff is not none %}
  <div class="difference">
{{- diff|safe }}
  </div>
  {%- else %}
  <p>{{ 'no differences'|dim }}</p>
  {%- endif %}
{%- endmacro %}

Decrease font size of snippet diff
Decrease font size of snippet diff
