Commit 3e021ae7f3c9ce84ffc85b05367f3f0a882363f2

Authored by William Daniau
1 parent 8acad7fc67
Exists in master

Utilisation des variables dans Default_with_index.html

Showing 2 changed files with 8 additions and 7 deletions Side-by-side Diff

templates/html/Default_with_index.html
... ... @@ -45,18 +45,18 @@
45 45 .menu{
46 46 /*float:left; */
47 47 width: 0;
48   - color:#4e9a06;
  48 + color:var(--main-header-color);
49 49 overflow-x: hidden;
50 50 position: absolute;
51 51 transition:.3s;
52   - background: #fafafa;
  52 + background: var(--main-menu-background-color);
53 53 border-style: solid;
54 54 border-width: 1px;
55 55 margin-left:-20px;
56 56 }
57 57  
58 58 .menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited {
59   - color: #4e9a06;
  59 + color: var(--main-header-color);
60 60 }
61 61  
62 62 .menuOpen {
... ... @@ -80,7 +80,7 @@
80 80 clear:both;
81 81 border-style: solid;
82 82 border-width: 1px;
83   - border-color: #4e9a06;
  83 + border-color: var(--main-header-color);
84 84 }
85 85  
86 86 body {
... ... @@ -88,7 +88,7 @@
88 88 display:block;
89 89 margin-left:auto;
90 90 margin-right:auto;
91   - background: lightslategrey;
  91 + background: var(--main-body-color);
92 92 }
93 93  
94 94 .intercalaire {
... ... @@ -98,7 +98,7 @@
98 98 }
99 99  
100 100 .bold-footer {
101   - color: #4e9a06;
  101 + color: var(--main-header-color);
102 102 }
103 103  
104 104 </style>
... ... @@ -141,7 +141,7 @@
141 141 <table class='navigation' style="float:left">
142 142 <tr class='navigation'>
143 143 <td class='navigation'>
144   -<span style="font-size:30px;cursor:pointer;color: #4e9a06;" onclick="openNav()">&#9776;</span>
  144 +<span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">&#9776;</span>
145 145 </td>
146 146 <td class='navigation'>
147 147 [% IF navigation.prev %]
templates/html/common/zim-variables.css
... ... @@ -10,6 +10,7 @@
10 10 --main-tt-color: darkmagenta; /* Inline verbatim */
11 11 --main-code-color: saddlebrown; /* Code color (if hljs not used) */
12 12 --main-body-color: lightslategrey; /* Color of the background body */
  13 + --main-menu-background-color: #fafafa; /* Backroung color of side menu */
13 14  
14 15 /* Tables */
15 16 /* Table headers */