Fix #1 : Better CSS

This commit is contained in:
Alexis Hassler
2019-05-04 18:37:29 +02:00
parent 460d7e3ef4
commit be7a29f8ae
17 changed files with 310 additions and 669 deletions

View File

@@ -3,30 +3,17 @@
{% include head.html %}
</head>
<body class="mediawiki skin-monobook action-view">
<div id="globalWrapper">
<div id="column-content">
<div id="content" class="wiki-body" role="main">
<h1 id="firstHeading" class="firstHeading">
<span dir="auto">{{ page.title }}</span>
</h1>
<div id="bodyContent" class="wiki-body-content">
<div id="mw-content-text" dir="ltr">
{{ content | inject_anchors }}
</div>
</div>
</div>
</div>
<div id="column-one">
{% include logo.html %}
{% include user.html %}
{% include toc.html %}
{% include links.html %}
{% include tags.html %}
</div>
<body>
<div id="main">
<h1 id="title">{{ page.title }}</h1>
<div id="content">{{ content | inject_anchors }}</div>
</div>
<div id="menu">
{% include logo.html %}
{% include user.html %}
{% include toc.html %}
{% include links.html %}
{% include tags.html %}
</div>
{% include footer.html %}

View File

@@ -1,35 +1,27 @@
<html>
{% include /functions/redirect-page.html %}
<html dir="ltr" class="client-js" lang="fr">
{%- include /functions/redirect-page.html -%}
<head>
{% assign redirect_url = redirect_page.url | append: ".html" %}
{% include head.html redirect_url = redirect_url %}
{%- assign redirect_url = redirect_page.url | default: site.data.i18n[site.lang].home | append: ".html" -%}
{%- include head.html redirect_url = redirect_url -%}
</head>
<body>
<div id="globalWrapper">
<div id="column-content">
<div id="content" class="wiki-body" role="main">
<h1 id="firstHeading" class="firstHeading" lang="fr">
<span dir="auto">{{ redirect_page.title }}</span>
</h1>
<div id="bodyContent" class="wiki-body-content">
<div id="mw-content-text" dir="ltr" class="mw-content-ltr" lang="fr">
<div class="redirectMsg">
<p>{{ site.data.i18n[site.lang].label.redirect }} :</p>
<ul class="redirectText">
<li><a href="{{ redirect_page.url }}.html" title="{{ redirect_page.name }}">{{ redirect_page.title }}</a></li>
</ul>
</div>
</div>
</div>
<div id="main">
<h1 id="title">{{ redirect_page.title }}</h1>
<div id="content">
<div class="redirectMsg">
<p>{{ site.data.i18n[site.lang].label.redirect }} :</p>
<ul class="redirectText">
<li><a href="{{ redirect_page.url }}.html" title="{{ redirect_page.name }}">{{ redirect_page.title }}</a></li>
</ul>
</div>
</div>
<div id="column-one">
{% include logo.html %}
</div>
</div>
{% include footer.html %}
</div>
<div id="menu">
{%- include logo.html -%}
</div>
{%- include footer.html -%}
</body>
</html>

View File

@@ -1,56 +1,34 @@
<html dir="ltr" class="client-js" lang="fr">
<head>
<meta charset="UTF-8">
<title>{{ page.title }}</title>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="/css/main.css">
<style>
.columns {
-webkit-columns: 3;
-moz-columns: 3;
columns: 3;
width: 100%;
}
</style>
{% include head.html %}
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-monobook action-view">
<div id="globalWrapper">
<div id="column-content">
<div id="content" class="wiki-body" role="main">
<h1 id="firstHeading" class="firstHeading" lang="fr">
<span dir="auto">{{ page.tags }}</span>
</h1>
<div id="bodyContent" class="wiki-body-content">
<div id="mw-content-text" dir="ltr" class="mw-content-ltr" lang="fr">
{{ content }}
</div>
</div>
<div>
<h3>{{ site.data.i18n[site.lang].label.tag_pages }} {{ page.tags }}</h3>
<div class="columns">
<ul>
{% include /functions/wiki-pages.html %}
{% for tag in page.tags %}
{% for other_page in wiki_pages %}
{% if other_page.tags contains tag and other_page.slug != page.slug %}
<li><a href="{{ other_page.url }}">{{ other_page.title }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
<body>
<div id="main">
<h1 id="title">{{ page.tags }}</h1>
<div id="content">
{{ content | inject_anchors }}
</div>
<div id="pages">
<h3>{{ site.data.i18n[site.lang].label.tag_pages }} {{ page.tags }}</h3>
<div class="columns">
<ul>
{% include /functions/wiki-pages.html %}
{% for tag in page.tags %}
{% for other_page in wiki_pages %}
{% if other_page.tags contains tag and other_page.slug != page.slug %}
<li><a href="{{ other_page.url }}">{{ other_page.title }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
<div id="column-one">
{% include logo.html %}
</div>
</div>
</div>
<div id="menu">
{% include logo.html %}
</div>
{% include footer.html %}
</body>
</html>