スタイルの調整

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 %} {% endcomment %}
{% assign details = "" | split: "|" %} {% 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 %} {% comment %}
リンク リンク
{% endcomment %} {% endcomment %}
@ -24,22 +40,6 @@
{% assign details = details | push: links %} {% assign details = details | push: links %}
{% endif %} {% 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 %} {% comment %}
テンプレートをインクルード テンプレートをインクルード
{% endcomment %} {% endcomment %}

View File

@ -7,39 +7,6 @@
{% endcomment %} {% endcomment %}
{% assign details = "" | split: "|" %} {% 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 %} {% comment %}
依存Mod 依存Mod
{% endcomment %} {% endcomment %}
@ -80,6 +47,39 @@
{% assign details = details | push: depends_optional %} {% assign details = details | push: depends_optional %}
{% endif %} {% 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 %} {% comment %}
テンプレートをインクルード テンプレートをインクルード
{% endcomment %} {% endcomment %}

View File

@ -7,6 +7,22 @@
{% endcomment %} {% endcomment %}
{% assign details = "" | split: "|" %} {% 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 %} {% comment %}
リンク リンク
{% endcomment %} {% endcomment %}
@ -24,22 +40,6 @@
{% assign details = details | push: links %} {% assign details = details | push: links %}
{% endif %} {% 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 %} {% comment %}
テンプレートをインクルード テンプレートをインクルード
{% endcomment %} {% endcomment %}

View File

@ -7,6 +7,22 @@
{% endcomment %} {% endcomment %}
{% assign details = "" | split: "|" %} {% 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 %} {% comment %}
リンク リンク
{% endcomment %} {% endcomment %}
@ -24,22 +40,6 @@
{% assign details = details | push: links %} {% assign details = details | push: links %}
{% endif %} {% 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 %} {% comment %}
テンプレートをインクルード テンプレートをインクルード
{% endcomment %} {% endcomment %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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