Commit 228a863ab4a028a56edb24a45344a0ef24fb27ec

Authored by William Daniau
1 parent 41bb6f1283
Exists in master

Forçage de monospace dans les classes hljs

Showing 5 changed files with 17 additions and 83 deletions Side-by-side Diff

templates/html/Default.html
... ... @@ -91,6 +91,11 @@
91 91 .migrated-box {list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAANOgAADMQBiN+4gQAAAAd0SU1FB+AKHREFA8vJSnkAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAC1klEQVRIx+2VT0hUURTGf/e958w4Tc3TYowMw1GyEgwr1MqsFmbZIrIWQZsWJUjbdoHQpl3Qps0swnCRECQFYkR/TC1iKkqmfzAKTo2Vf8hoRsfR995tkRMT87RRWkUHHhy495zvnvvu933wP/75EKkkEAjIYDCIaZpIKRFCZN0kfX9xcTGtra2/irVUEolECIfDlJeXo+s6hmFkDaCqKoZhEAqFSCaTv60pqcSyLAoLC/F4PEtqDmCaJkIIKisrMybX0sdUVRWA5ubmPzdNjjI1cpXkZC/O1fV03PXgdDqRUtpPIITAsqxsDz0Z/3CZQv8uqo4N4C8/Tp2/DdM0MiZQlvk41OTkI/LW1SGtCVb5drD3eCc71wcA+VcAHA5vDd8+3UGakxiJV7i9pdQevU5T1R35pJ3MV5QW1pf+0kWBheJ2SWua8EQXZXsu4fVVYEz1sEKvof5EuxjoPvzpcRvrdp9C2gGMx6cpOHBmbImMesds7BZubwMVDTfXDnQ3vQfK7AC8wLfExMX5whyQc3q2OEnjGm5vE76SQxsfBLr77a7CNf+n0r/l6sSMtsBSnurckiIILCobAtVZhpF4gZF4jubaymj4Ch/fd380LE7bAnjc0NPxk2yqpmEuwGxF0ag+0k5uTpzZeBeaazvj0We8fXojainsb2xh2BZgbe0gSIllzSIUh63wfQ6dZ/O2fbjcKlOj58jJ3cVENESw5yErc9nf2MLQ4jwQAkV1Lqiq37/cZ9WaahJjF9AcmxiPDhLs7ePe23oOnmUwg2hSShQle96tKDjA2HAniusgo9FxnvY9Jxw7RWzGYy92QghM00x5g53qp9sHmtB58/o2umOI2NwGolMnMYUHIb7aAyiKwsjICLqu2/qBEIKUUAohMaSHSLyBSMoPTINQ6CX5+fn2AEVFRZSUlBCPx4nFYhl3L4RESjF/GEgX3pSj+Xw+/H7/b3U/AEOZFnp7O5+5AAAAAElFTkSuQmCC)}
92 92 ul {list-style-image: none}
93 93 /* ul rule needed to reset style for sub-bullets */
  94 +
  95 + /* Pour forcer la police dans la coloration syntaxique */
  96 + .hljs { font-family: monospace; }
  97 + span[class^='hljs'], span[class*=' hljs'] { font-family: monospace; }
  98 +
94 99 </style>
95 100  
96 101 <!-- Themes clair :
... ... @@ -100,9 +105,7 @@
100 105 Demo live : https://highlightjs.org/static/demo/ -->
101 106 <link rel="stylesheet"
102 107 href="[% resource('styles/atom-one-light.css') %]" >
103   - <!-- Pour redefinir la police à monospace dans hljs -->
104   - <link rel="stylesheet"
105   - href="[% resource('hljs-zim.css') %]" >
  108 +
106 109 <!-- hljs -->
107 110 <script src="[% resource('highlight.pack.js') %]"></script>
108 111  
templates/html/Default/hljs-zim.css
1   -/* Il faut redéfinir la font-family qui se retrouve à la valeur par défaut */
2   -
3   - .hljs,
4   - .hljs-subst,
5   - .hljs-comment,
6   - .hljs-keyword,
7   - .hljs-attribute,
8   - .hljs-selector-tag,
9   - .hljs-meta-keyword,
10   - .hljs-doctag,
11   - .hljs-name,
12   - .hljs-type,
13   - .hljs-string,
14   - .hljs-number,
15   - .hljs-selector-id,
16   - .hljs-selector-class,
17   - .hljs-quote,
18   - .hljs-template-tag,
19   - .hljs-deletion,
20   - .hljs-title,
21   - .hljs-section,
22   - .hljs-regexp,
23   - .hljs-symbol,
24   - .hljs-variable,
25   - .hljs-template-variable,
26   - .hljs-link,
27   - .hljs-selector-attr,
28   - .hljs-selector-pseudo,
29   - .hljs-literal,
30   - .hljs-built_in,
31   - .hljs-bullet,
32   - .hljs-code,
33   - .hljs-addition,
34   - .hljs-meta,
35   - .hljs-meta-string,
36   - .hljs-emphasis,
37   - .hljs-strong { font-family: monospace; }
templates/html/Default_with_index.html
... ... @@ -90,6 +90,10 @@
90 90 .migrated-box {list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAANOgAADMQBiN+4gQAAAAd0SU1FB+AKHREFA8vJSnkAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAC1klEQVRIx+2VT0hUURTGf/e958w4Tc3TYowMw1GyEgwr1MqsFmbZIrIWQZsWJUjbdoHQpl3Qps0swnCRECQFYkR/TC1iKkqmfzAKTo2Vf8hoRsfR995tkRMT87RRWkUHHhy495zvnvvu933wP/75EKkkEAjIYDCIaZpIKRFCZN0kfX9xcTGtra2/irVUEolECIfDlJeXo+s6hmFkDaCqKoZhEAqFSCaTv60pqcSyLAoLC/F4PEtqDmCaJkIIKisrMybX0sdUVRWA5ubmPzdNjjI1cpXkZC/O1fV03PXgdDqRUtpPIITAsqxsDz0Z/3CZQv8uqo4N4C8/Tp2/DdM0MiZQlvk41OTkI/LW1SGtCVb5drD3eCc71wcA+VcAHA5vDd8+3UGakxiJV7i9pdQevU5T1R35pJ3MV5QW1pf+0kWBheJ2SWua8EQXZXsu4fVVYEz1sEKvof5EuxjoPvzpcRvrdp9C2gGMx6cpOHBmbImMesds7BZubwMVDTfXDnQ3vQfK7AC8wLfExMX5whyQc3q2OEnjGm5vE76SQxsfBLr77a7CNf+n0r/l6sSMtsBSnurckiIILCobAtVZhpF4gZF4jubaymj4Ch/fd380LE7bAnjc0NPxk2yqpmEuwGxF0ag+0k5uTpzZeBeaazvj0We8fXojainsb2xh2BZgbe0gSIllzSIUh63wfQ6dZ/O2fbjcKlOj58jJ3cVENESw5yErc9nf2MLQ4jwQAkV1Lqiq37/cZ9WaahJjF9AcmxiPDhLs7ePe23oOnmUwg2hSShQle96tKDjA2HAniusgo9FxnvY9Jxw7RWzGYy92QghM00x5g53qp9sHmtB58/o2umOI2NwGolMnMYUHIb7aAyiKwsjICLqu2/qBEIKUUAohMaSHSLyBSMoPTINQ6CX5+fn2AEVFRZSUlBCPx4nFYhl3L4RESjF/GEgX3pSj+Xw+/H7/b3U/AEOZFnp7O5+5AAAAAElFTkSuQmCC)}
91 91 ul {list-style-image: none}
92 92 /* ul rule needed to reset style for sub-bullets */
  93 +
  94 + /* Pour forcer la police dans la coloration syntaxique */
  95 + .hljs { font-family: monospace; }
  96 + span[class^='hljs'], span[class*=' hljs'] { font-family: monospace; }
93 97  
94 98 span.insen { color: grey }
95 99  
... ... @@ -110,9 +114,7 @@
110 114 Demo live : https://highlightjs.org/static/demo/ -->
111 115 <link rel="stylesheet"
112 116 href="[% resource('styles/atom-one-light.css') %]" >
113   - <!-- Pour redefinir la police à monospace dans hljs -->
114   - <link rel="stylesheet"
115   - href="[% resource('hljs-zim.css') %]" >
  117 +
116 118 <!-- hljs -->
117 119 <script src="[% resource('highlight.pack.js') %]"></script>
118 120  
templates/html/Default_with_index/hljs-zim.css
1   -/* Il faut redéfinir la font-family qui se retrouve à la valeur par défaut */
2   -
3   - .hljs,
4   - .hljs-subst,
5   - .hljs-comment,
6   - .hljs-keyword,
7   - .hljs-attribute,
8   - .hljs-selector-tag,
9   - .hljs-meta-keyword,
10   - .hljs-doctag,
11   - .hljs-name,
12   - .hljs-type,
13   - .hljs-string,
14   - .hljs-number,
15   - .hljs-selector-id,
16   - .hljs-selector-class,
17   - .hljs-quote,
18   - .hljs-template-tag,
19   - .hljs-deletion,
20   - .hljs-title,
21   - .hljs-section,
22   - .hljs-regexp,
23   - .hljs-symbol,
24   - .hljs-variable,
25   - .hljs-template-variable,
26   - .hljs-link,
27   - .hljs-selector-attr,
28   - .hljs-selector-pseudo,
29   - .hljs-literal,
30   - .hljs-built_in,
31   - .hljs-bullet,
32   - .hljs-code,
33   - .hljs-addition,
34   - .hljs-meta,
35   - .hljs-meta-string,
36   - .hljs-emphasis,
37   - .hljs-strong { font-family: monospace; }
templates/html/Print.html
... ... @@ -90,6 +90,11 @@
90 90 .migrated-box {list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAANOgAADMQBiN+4gQAAAAd0SU1FB+AKHREFA8vJSnkAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAC1klEQVRIx+2VT0hUURTGf/e958w4Tc3TYowMw1GyEgwr1MqsFmbZIrIWQZsWJUjbdoHQpl3Qps0swnCRECQFYkR/TC1iKkqmfzAKTo2Vf8hoRsfR995tkRMT87RRWkUHHhy495zvnvvu933wP/75EKkkEAjIYDCIaZpIKRFCZN0kfX9xcTGtra2/irVUEolECIfDlJeXo+s6hmFkDaCqKoZhEAqFSCaTv60pqcSyLAoLC/F4PEtqDmCaJkIIKisrMybX0sdUVRWA5ubmPzdNjjI1cpXkZC/O1fV03PXgdDqRUtpPIITAsqxsDz0Z/3CZQv8uqo4N4C8/Tp2/DdM0MiZQlvk41OTkI/LW1SGtCVb5drD3eCc71wcA+VcAHA5vDd8+3UGakxiJV7i9pdQevU5T1R35pJ3MV5QW1pf+0kWBheJ2SWua8EQXZXsu4fVVYEz1sEKvof5EuxjoPvzpcRvrdp9C2gGMx6cpOHBmbImMesds7BZubwMVDTfXDnQ3vQfK7AC8wLfExMX5whyQc3q2OEnjGm5vE76SQxsfBLr77a7CNf+n0r/l6sSMtsBSnurckiIILCobAtVZhpF4gZF4jubaymj4Ch/fd380LE7bAnjc0NPxk2yqpmEuwGxF0ag+0k5uTpzZeBeaazvj0We8fXojainsb2xh2BZgbe0gSIllzSIUh63wfQ6dZ/O2fbjcKlOj58jJ3cVENESw5yErc9nf2MLQ4jwQAkV1Lqiq37/cZ9WaahJjF9AcmxiPDhLs7ePe23oOnmUwg2hSShQle96tKDjA2HAniusgo9FxnvY9Jxw7RWzGYy92QghM00x5g53qp9sHmtB58/o2umOI2NwGolMnMYUHIb7aAyiKwsjICLqu2/qBEIKUUAohMaSHSLyBSMoPTINQ6CX5+fn2AEVFRZSUlBCPx4nFYhl3L4RESjF/GEgX3pSj+Xw+/H7/b3U/AEOZFnp7O5+5AAAAAElFTkSuQmCC)}
91 91 ul {list-style-image: none}
92 92 /* ul rule needed to reset style for sub-bullets */
  93 +
  94 + /* Pour forcer la police dans la coloration syntaxique */
  95 + .hljs { font-family: monospace; }
  96 + span[class^='hljs'], span[class*=' hljs'] { font-family: monospace; }
  97 +
93 98 </style>
94 99  
95 100 <!-- ATTENTION Le template Print ne supporte pas les ressources,
... ... @@ -101,9 +106,7 @@
101 106 Demo live : https://highlightjs.org/static/demo/ -->
102 107 <link rel="stylesheet"
103 108 href="file:////home/daniau/.local/share/zim/templates/html/Print_via_export/styles/atom-one-light.css" >
104   - <!-- Pour redefinir la police à monospace dans hljs -->
105   - <link rel="stylesheet"
106   - href="file:////home/daniau/.local/share/zim/templates/html/Print_via_export/hljs-zim.css" >
  109 +
107 110 <!-- hljs -->
108 111 <script src="file:////home/daniau/.local/share/zim/templates/html/Print_via_export/highlight.pack.js"></script>
109 112