Commit 0aa18fe4558fc6033d0976cb1fa3bd6c94dbcca0

Authored by William Daniau
1 parent d98de862ab
Exists in master

Changement du nome de variable pour le body-background

Showing 2 changed files with 9 additions and 9 deletions Inline Diff

templates/html/Default_with_index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<link rel="stylesheet" 7 7 <link rel="stylesheet"
href="[% resource('common/zim-variables.css') %]" > 8 8 href="[% resource('common/zim-variables.css') %]" >
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="[% resource('common/zim-style.css') %]" > 10 10 href="[% resource('common/zim-style.css') %]" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="[% resource('common/zim-table-style.css') %]" > 12 12 href="[% resource('common/zim-table-style.css') %]" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="[% resource('common/zim-special.css') %]" > 14 14 href="[% resource('common/zim-special.css') %]" >
<link rel="stylesheet" 15 15 <link rel="stylesheet"
href="[% resource('common/zim-hljs.css') %]" > 16 16 href="[% resource('common/zim-hljs.css') %]" >
17 17
<style type='text/css'> 18 18 <style type='text/css'>
* { font-family: sans-serif } 19 19 * { font-family: sans-serif }
20 20
a:hover { text-decoration: underline; } 21 21 a:hover { text-decoration: underline; }
22 22
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 23 23 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
img { 24 24 img {
display: block; 25 25 display: block;
margin-left: auto; 26 26 margin-left: auto;
margin-right: auto; 27 27 margin-right: auto;
} 28 28 }
29 29
/* Specifique au with index */ 30 30 /* Specifique au with index */
span.insen { color: grey } 31 31 span.insen { color: grey }
32 32
.pages { 33 33 .pages {
/*max-width: 1000px;*/ 34 34 /*max-width: 1000px;*/
/*padding-left: 320px;*/ 35 35 /*padding-left: 320px;*/
width: inherit; 36 36 width: inherit;
transition: margin-left .3s; 37 37 transition: margin-left .3s;
background: white; 38 38 background: white;
padding-left: 10px; 39 39 padding-left: 10px;
padding-right: 10px; 40 40 padding-right: 10px;
padding-bottom: 20px; 41 41 padding-bottom: 20px;
padding-top: 10px; 42 42 padding-top: 10px;
} 43 43 }
44 44
.menu{ 45 45 .menu{
/*float:left; */ 46 46 /*float:left; */
width: 0; 47 47 width: 0;
color:var(--main-header-color); 48 48 color:var(--main-header-color);
overflow-x: hidden; 49 49 overflow-x: hidden;
position: absolute; 50 50 position: absolute;
transition:.3s; 51 51 transition:.3s;
background: var(--main-menu-background-color); 52 52 background: var(--main-menu-background-color);
border-style: solid; 53 53 border-style: solid;
border-width: 1px; 54 54 border-width: 1px;
margin-left:-20px; 55 55 margin-left:-20px;
} 56 56 }
57 57
.menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited { 58 58 .menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited {
color: var(--main-header-color); 59 59 color: var(--main-header-color);
} 60 60 }
61 61
.menuOpen { 62 62 .menuOpen {
/*display: block;*/ 63 63 /*display: block;*/
} 64 64 }
65 65
.menuClosed { 66 66 .menuClosed {
border-style: unset; 67 67 border-style: unset;
} 68 68 }
69 69
.header{ 70 70 .header{
max-width: 63em; 71 71 max-width: 63em;
position: fixed; 72 72 position: fixed;
width: 100%; 73 73 width: 100%;
top:0; 74 74 top:0;
background:white; 75 75 background:white;
z-index: 1; 76 76 z-index: 1;
} 77 77 }
78 78
hr{ 79 79 hr{
clear:both; 80 80 clear:both;
border-style: solid; 81 81 border-style: solid;
border-width: 1px; 82 82 border-width: 1px;
border-color: var(--main-header-color); 83 83 border-color: var(--main-header-color);
} 84 84 }
85 85
body { 86 86 body {
max-width:63em; 87 87 max-width:63em;
display:block; 88 88 display:block;
margin-left:auto; 89 89 margin-left:auto;
margin-right:auto; 90 90 margin-right:auto;
background: var(--main-body-color); 91 91 background: var(--main-body-background-color);
} 92 92 }
93 93
.intercalaire { 94 94 .intercalaire {
background:white; 95 95 background:white;
margin-top: 48px; 96 96 margin-top: 48px;
padding: 10px; 97 97 padding: 10px;
} 98 98 }
99 99
.bold-footer { 100 100 .bold-footer {
color: var(--main-header-color); 101 101 color: var(--main-header-color);
} 102 102 }
103 103
</style> 104 104 </style>
105 105
<!-- Themes clair : 106 106 <!-- Themes clair :
atom-one-light.css, vs.css googlecode.css github.css 107 107 atom-one-light.css, vs.css googlecode.css github.css
qtcreator_light.css 108 108 qtcreator_light.css
Themes sombres : 109 109 Themes sombres :
agate.css vs2015.css atom-one-dark.css hybrid.css 110 110 agate.css vs2015.css atom-one-dark.css hybrid.css
ir-black.css sunburst.css tomorrow-night-bright.css 111 111 ir-black.css sunburst.css tomorrow-night-bright.css
qtcreator_dark.css 112 112 qtcreator_dark.css
Demo live : https://highlightjs.org/static/demo/ --> 113 113 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 114 114 <link rel="stylesheet"
href="[% resource('common/hljs/styles/sunburst.css') %]" > 115 115 href="[% resource('common/hljs/styles/sunburst.css') %]" >
116 116
<!-- hljs --> 117 117 <!-- hljs -->
<script src="[% resource('common/hljs/highlight.pack.js') %]"></script> 118 118 <script src="[% resource('common/hljs/highlight.pack.js') %]"></script>
119 119
<script> 120 120 <script>
function openNav() { 121 121 function openNav() {
if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") { 122 122 if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") {
document.getElementById("mySidenav").style.width = "300px"; 123 123 document.getElementById("mySidenav").style.width = "300px";
/*document.getElementById("main").style.marginLeft = "300px";*/ 124 124 /*document.getElementById("main").style.marginLeft = "300px";*/
document.getElementById("mySidenav").setAttribute("class","menu menuOpen"); 125 125 document.getElementById("mySidenav").setAttribute("class","menu menuOpen");
/* Scroll to top when opening menu */ 126 126 /* Scroll to top when opening menu */
document.body.scrollTop = 0 127 127 document.body.scrollTop = 0
document.documentElement.scrollTop = 0; 128 128 document.documentElement.scrollTop = 0;
} else { 129 129 } else {
document.getElementById("mySidenav").style.width = "0"; 130 130 document.getElementById("mySidenav").style.width = "0";
/*document.getElementById("main").style.marginLeft = "0";*/ 131 131 /*document.getElementById("main").style.marginLeft = "0";*/
document.getElementById("mySidenav").setAttribute("class","menu menuClosed"); 132 132 document.getElementById("mySidenav").setAttribute("class","menu menuClosed");
} 133 133 }
} 134 134 }
</script> 135 135 </script>
</head> 136 136 </head>
<body> 137 137 <body>
138 138
<!-- Header --> 139 139 <!-- Header -->
<div class='header'> 140 140 <div class='header'>
<table class='navigation' style="float:left"> 141 141 <table class='navigation' style="float:left">
<tr class='navigation'> 142 142 <tr class='navigation'>
<td class='navigation'> 143 143 <td class='navigation'>
<span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span> 144 144 <span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span>
</td> 145 145 </td>
<td class='navigation'> 146 146 <td class='navigation'>
[% IF navigation.prev %] 147 147 [% IF navigation.prev %]
<a href='[% uri(navigation.prev) %]'> 148 148 <a href='[% uri(navigation.prev) %]'>
<img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 149 149 <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
</a> 150 150 </a>
[% ELSE %] 151 151 [% ELSE %]
<img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> 152 152 <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
[% END %] 153 153 [% END %]
</td> 154 154 </td>
<td class='navigation'> 155 155 <td class='navigation'>
[% IF links.get("index") %] 156 156 [% IF links.get("index") %]
<a href='[% uri(links.get("index")) %]'> 157 157 <a href='[% uri(links.get("index")) %]'>
<img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 158 158 <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
</a> 159 159 </a>
[% ELSE %] 160 160 [% ELSE %]
<img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> 161 161 <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
[% END %] 162 162 [% END %]
</td> 163 163 </td>
<td class='navigation'> 164 164 <td class='navigation'>
[% IF navigation.next %] 165 165 [% IF navigation.next %]
<a href='[% uri(navigation.next) %]'> 166 166 <a href='[% uri(navigation.next) %]'>
<img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 167 167 <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
</a> 168 168 </a>
[% ELSE %] 169 169 [% ELSE %]
<img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> 170 170 <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
[% END %] 171 171 [% END %]
</td> 172 172 </td>
</tr> 173 173 </tr>
</table> 174 174 </table>
175 175
<span> 176 176 <span>
[% FOR page IN pages %] 177 177 [% FOR page IN pages %]
<a name='[% anchor(page) %]'></a> 178 178 <a name='[% anchor(page) %]'></a>
<h1 style="display:inline-block;margin-left:20px;margin-top:5px;"> 179 179 <h1 style="display:inline-block;margin-left:20px;margin-top:5px;">
[% page.title %]</h1> 180 180 [% page.title %]</h1>
[% END %] 181 181 [% END %]
</span> 182 182 </span>
183 183
<table class='navigation' style="float:right;margin-right:10px;"> 184 184 <table class='navigation' style="float:right;margin-right:10px;">
<tr class='navigation'> 185 185 <tr class='navigation'>
<td class='navigation'> 186 186 <td class='navigation'>
[% FOR page IN pages %] 187 187 [% FOR page IN pages %]
[% FOR link IN page.backlinks %] 188 188 [% FOR link IN page.backlinks %]
[% IF loop.first %]<a href="#backlinks"> 189 189 [% IF loop.first %]<a href="#backlinks">
<img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'> 190 190 <img src='[% resource("common/backlink.png") %]' alt='[% gettext("Backlinks:") %]' title='[% gettext("Backlinks:") %]'>
</a>[% END %] 191 191 </a>[% END %]
[% END %] 192 192 [% END %]
[% END %] 193 193 [% END %]
</td> 194 194 </td>
<td class='navigation'> 195 195 <td class='navigation'>
[% FOR page IN pages %] 196 196 [% FOR page IN pages %]
[% FOR file IN page.attachments %] 197 197 [% FOR file IN page.attachments %]
[% IF loop.first %]<a href="#attach"> 198 198 [% IF loop.first %]<a href="#attach">
<img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'> 199 199 <img src='[% resource("common/attachment.png") %]' alt='[% gettext("Attachments:") %]' title='[% gettext("Attachments:") %]'>
</a>[% END %] 200 200 </a>[% END %]
[% END %] 201 201 [% END %]
[% END %] 202 202 [% END %]
</td> 203 203 </td>
</tr> 204 204 </tr>
</table> 205 205 </table>
</div> 206 206 </div>
207 207
<div class="intercalaire"> 208 208 <div class="intercalaire">
<hr /> 209 209 <hr />
</div> 210 210 </div>
211 211
<div id="mySidenav" class="menu menuClosed"> 212 212 <div id="mySidenav" class="menu menuClosed">
[% index() %] 213 213 [% index() %]
</div> 214 214 </div>
215 215
[% options.empty_lines = "default" %] 216 216 [% options.empty_lines = "default" %]
217 217
<!-- Wiki content --> 218 218 <!-- Wiki content -->
219 219
<div id="main" class='pages'> 220 220 <div id="main" class='pages'>
<!--[% FOR page IN pages %]--> 221 221 <!--[% FOR page IN pages %]-->
<!-- 222 222 <!--
<div class='heading'> 223 223 <div class='heading'>
<h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1> 224 224 <h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1>
</div> 225 225 </div>
--> 226 226 -->
<div class='content'> 227 227 <div class='content'>
[% page.body %] 228 228 [% page.body %]
</div> 229 229 </div>
230 230
<br /> 231 231 <br />
232 232
<div style="padding-bottom:10px;"> 233 233 <div style="padding-bottom:10px;">
<hr /> 234 234 <hr />
</div> 235 235 </div>
templates/html/common/zim-variables.css
1 1
/* Variables */ 2 2 /* Variables */
3 3
:root { 4 4 :root {
/* General */ 5 5 /* General */
--main-header-color: #4e9a06; /* Headers color */ 6 6 --main-header-color: #4e9a06; /* Headers color */
--main-link-color: blue; /* Links color */ 7 7 --main-link-color: blue; /* Links color */
--main-strike-color: grey; /* Strike color */ 8 8 --main-strike-color: grey; /* Strike color */
--main-pre-color: darkmagenta; /* Verbatim bloc color */ 9 9 --main-pre-color: darkmagenta; /* Verbatim bloc color */
--main-tt-color: darkmagenta; /* Inline verbatim */ 10 10 --main-tt-color: darkmagenta; /* Inline verbatim */
--main-code-color: saddlebrown; /* Code color (if hljs not used) */ 11 11 --main-code-color: saddlebrown; /* Code color (if hljs not used) */
--main-body-color: lightslategrey; /* Color of the background body */ 12 12 --main-body-background-color: lightslategrey; /* Color of the background body */
--main-menu-background-color: #fafafa; /* Backroung color of side menu */ 13 13 --main-menu-background-color: #fafafa; /* Backroung color of side menu */
/* Underline really underlined */ 14 14 /* Underline really underlined */
--main-menu-u-decoration: underline; 15 15 --main-menu-u-decoration: underline;
--main-menu-u-background-color: white; 16 16 --main-menu-u-background-color: white;
/* Underline Stabilo Version */ 17 17 /* Underline Stabilo Version */
/*--main-menu-u-decoration: none; 18 18 /*--main-menu-u-decoration: none;
--main-menu-u-background-color: yellow;*/ 19 19 --main-menu-u-background-color: yellow;*/
20 20
21 21
/* Tables */ 22 22 /* Tables */
/* Table headers */ 23 23 /* Table headers */
--main-th-color: black; /* Table header text color */ 24 24 --main-th-color: black; /* Table header text color */
--main-th-background-color: #bbb; /* Table header background */ 25 25 --main-th-background-color: #bbb; /* Table header background */
/* Table Row and Data */ 26 26 /* Table Row and Data */
--main-tr-even-background-color: #f2f2f2; /* Even row background color */ 27 27 --main-tr-even-background-color: #f2f2f2; /* Even row background color */
--main-tr-odd-background-color: white; /* Odd row background color */ 28 28 --main-tr-odd-background-color: white; /* Odd row background color */
--main-tr-hover-background-color: #ddd; /* Row background color when hover */ 29 29 --main-tr-hover-background-color: #ddd; /* Row background color when hover */
--main-td-th-border-color: #ddd; /* Cell's Border color */ 30 30 --main-td-th-border-color: #ddd; /* Cell's Border color */
} 31 31 }
32 32