スタイルの調整

gh-pages
Rui 2018-06-09 14:16:38 +09:00
parent 2618f09922
commit 46fe58d052
12 changed files with 145 additions and 130 deletions

View File

@ -7,6 +7,22 @@
{% endcomment %}
{% assign details = "" | split: "|" %}
{% comment %}
製作者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "製作者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
リンク
{% endcomment %}
@ -24,22 +40,6 @@
{% assign details = details | push: links %}
{% endif %}
{% comment %}
製作者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "製作者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
テンプレートをインクルード
{% endcomment %}

View File

@ -7,39 +7,6 @@
{% endcomment %}
{% assign details = "" | split: "|" %}
{% comment %}
リンク
{% endcomment %}
{% if data.links %}
{% capture link_list %}
{% for link_data in data.links %}
{% if forloop.first != true %}/{% endif %}
<a href="{{ link_data.url }}">{{ link_data.text }}</a>
{% endfor %}
{% endcapture %}
{% assign links = "" | split: "|" %}
{% assign links = links | push: "リンク" %}
{% assign links = links | push: link_list %}
{% assign details = details | push: links %}
{% endif %}
{% comment %}
開発者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "開発者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
依存Mod
{% endcomment %}
@ -80,6 +47,39 @@
{% assign details = details | push: depends_optional %}
{% endif %}
{% comment %}
開発者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "開発者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
リンク
{% endcomment %}
{% if data.links %}
{% capture link_list %}
{% for link_data in data.links %}
{% if forloop.first != true %}/{% endif %}
<a href="{{ link_data.url }}">{{ link_data.text }}</a>
{% endfor %}
{% endcapture %}
{% assign links = "" | split: "|" %}
{% assign links = links | push: "リンク" %}
{% assign links = links | push: link_list %}
{% assign details = details | push: links %}
{% endif %}
{% comment %}
テンプレートをインクルード
{% endcomment %}

View File

@ -7,6 +7,22 @@
{% endcomment %}
{% assign details = "" | split: "|" %}
{% comment %}
開発者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "開発者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
リンク
{% endcomment %}
@ -24,22 +40,6 @@
{% assign details = details | push: links %}
{% endif %}
{% comment %}
開発者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "開発者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
テンプレートをインクルード
{% endcomment %}

View File

@ -7,6 +7,22 @@
{% endcomment %}
{% assign details = "" | split: "|" %}
{% comment %}
製作者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "製作者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
リンク
{% endcomment %}
@ -24,22 +40,6 @@
{% assign details = details | push: links %}
{% endif %}
{% comment %}
製作者
{% endcomment %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "製作者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% comment %}
説明
{% endcomment %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% comment %}
テンプレートをインクルード
{% endcomment %}

View File

@ -8,20 +8,13 @@
{% assign details = "" | split: "|" %}
{% comment %}
リンク
プラットフォーム
{% endcomment %}
{% if data.links %}
{% capture link_list %}
{% for link_data in data.links %}
{% if forloop.first != true %}/{% endif %}
<a href="{{ link_data.url }}">{{ link_data.text }}</a>
{% endfor %}
{% endcapture %}
{% assign links = "" | split: "|" %}
{% assign links = links | push: "リンク" %}
{% assign links = links | push: link_list %}
{% assign details = details | push: links %}
{% if data.platform %}
{% assign platform = "" | split: "|" %}
{% assign platform = platform | push: "プラットフォーム" %}
{% assign platform = platform | push: data.platform %}
{% assign details = details | push: platform %}
{% endif %}
{% comment %}
@ -41,13 +34,20 @@
{% assign details = details | push: description %}
{% comment %}
プラットフォーム
リンク
{% endcomment %}
{% if data.platform %}
{% assign platform = "" | split: "|" %}
{% assign platform = platform | push: "プラットフォーム" %}
{% assign platform = platform | push: data.platform %}
{% assign details = details | push: platform %}
{% if data.links %}
{% capture link_list %}
{% for link_data in data.links %}
{% if forloop.first != true %}/{% endif %}
<a href="{{ link_data.url }}">{{ link_data.text }}</a>
{% endfor %}
{% endcapture %}
{% assign links = "" | split: "|" %}
{% assign links = links | push: "リンク" %}
{% assign links = links | push: link_list %}
{% assign details = details | push: links %}
{% endif %}
{% comment %}

View File

@ -19,14 +19,14 @@ $font-color: #333;
$font-family: "Hiragino Kaku Gothic ProN", "Helvetica Neue", "meiryo", "arial", "sans-serif";
$font-size: 18px;
$font-size-mobile: 16px;
$letter-spacing: 0.075em;
$line-height: 1.3;
$letter-spacing: 0.005em;
$line-height: 1.5;
$selection-background: #659b4b;
$selection-font-color: #fff;
//
$container-box-shadow: 0 0 10px 0 #ddd;
$container-columns: 30% 70%;
$container-columns: 25% 75%;
$container-padding-top-mobile: 1em;
$container-max-width: 1024px;
@ -55,13 +55,18 @@ $article-h6-border-bottom: none;
$article-h6-font-size: 1em;
// -
$article-code-background: #f5f5f5;
$article-code-background: #fcfcfc;
$article-code-border: 1px solid #ccc;
$article-code-border-radius: 4px;
$article-code-border-radius: 10px;
$article-code-color: #333;
$article-code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
$article-pre-code-padding: 9.5px;
// -
$toc-background: #fcfcfc;
$toc-border: 1px solid #ccc;
$toc-border-radius: 10px;
//
$footer-background: #333;
$footer-text-color: #fff;
@ -69,10 +74,8 @@ $footer-text-color: #fff;
//
$mobile-menu-background: #555;
$mobile-menu-text-color: #fff;
$mobile-menu-width: 70vw;
// Mod
$screenshot-background: #eee;
$screenshot-max-height: 250px;
$screenshot-max-width: 500px;
@ -85,4 +88,6 @@ $screenshot-max-width: 500px;
@import "article";
@import "footer";
@import "mobile";
@import "toc";
@import "screenshot";

View File

@ -125,5 +125,11 @@
display: block;
padding: $article-pre-code-padding;
}
dl {
dt {
font-style: normal;
}
}
}
}

View File

@ -3,8 +3,6 @@ amp-sidebar {
background: $mobile-menu-background;
color: $mobile-menu-text-color;
padding: 1em;
text-align: center;
width: $mobile-menu-width;
a {
&:link,
@ -19,12 +17,7 @@ amp-sidebar {
button {
background: transparent;
border: none;
display: block;
left: 0;
object-fit: contain;
padding: 1em;
position: absolute;
top: 0;
}
h1,

View File

@ -1,10 +1,10 @@
//
.screenshot {
background: $screenshot-background;
max-height: $screenshot-max-height;
max-width: $screenshot-max-width;
img {
object-fit: contain;
object-position: 0%;
}
}

17
_sass/_toc.scss Normal file
View File

@ -0,0 +1,17 @@
#markdown-toc {
background: $toc-background;
border: $toc-border;
border-radius: $toc-border-radius;
display: inline-block;
padding-top: 1em;
padding-right: 1em;
padding-bottom: 1em;
&::before {
content: "目次";
display: block;
font-weight: bold;
margin-left: calc(1em - 40px);
padding-bottom: 0.5em;
}
}

View File

@ -25,15 +25,15 @@ custom-head: >-
# Minetestとは
[Minetest](http://www.minetest.net)は、InfiniMinerや[Minecraft](https://minecraft.net)に似たフリーゲームです。
**Minetest** (マインテスト) は、InfiniMinerやMinecraftに似たフリーゲームです。
ソースコードは[GitHub](https://github.com/minetest/minetest)にあり、LGPLライセンスのもとで公開されています。
Minetestは厳密にはゲームエンジンであり、Minetest Gameと呼ばれるゲームが同梱されています。
Minetestは**厳密にはゲームエンジン**であり、**Minetest Game**と呼ばれるゲームが同梱されています。
Minetest Gameでは、ブロックで建築したり、洞窟を探検したり、作物を育てたりできます。
公式フォーラムではMinetest Game以外のゲームも配布されています。
MinetestはModとテクスチャパックに対応しています。
Minetestは**Modとテクスチャパックに対応**しています。
Modにはブロックを追加するものからワールド全体を変えるものまで様々です。
このWikiのModリストや、公式フォーラムから探してみましょう。
現在のMinetestのバージョンは{{ site.minetest.latest_version }}です。アップデートの内容は[アップデート情報](changelog)をご覧ください。
現在のMinetestのバージョンは**{{ site.minetest.latest_version }}**です。アップデートの内容は[アップデート情報](changelog)をご覧ください。

View File

@ -182,34 +182,28 @@ MeseconsとDigilinesに依存していますが、無い場合は必要な機能
<dl>
<dt>単純な文字列による指定</dt>
<dd>
<pre><code class="lua">
"default:wood 2" -- default:woodが2個
</code></pre>
<pre><code class="lua">"default:wood 2" -- default:woodが2個</code></pre>
</dd>
<dt>テーブルによる指定その1</dt>
<dd>
<pre><code class="lua">
{
<pre><code class="lua">{
exmatch=false, -- Exact matchがOFF
"default:wood 2", -- default:woodが2個
"default:pine_wood" -- default:pine_woodが1個
}
</code></pre>
}</code></pre>
</dd>
<dt>テーブルによる指定その2</dt>
<dd>
<pre><code class="lua">
{
<pre><code class="lua">{
slotseq="random", -- Sequence slots Randomly
nofire=false, -- nofireがtrueの場合、アイテムを搬出しない
exmatch=true, -- Exact matchがON
{name="default:wood",count=2}, -- default:woodが2個
{name="default:pine_wood"}, -- default:pine_woodが1スタック全部
{group="wood", count=3} -- woodグループのものが3個
}
</code></pre>
}</code></pre>
</dd>
</dl>