Skip to content

slack qa team 2020 02 19

akabeko edited this page Mar 16, 2020 · 1 revision

2020-02-19

Time (UTC) Icon Name Message
06:09 yamasy1549 FAQ更新しました 👍
https://vivliostyle-org.yamasy1549.now.sh/faq
https://vivliostyle-org.yamasy1549.now.sh/ja/faq
Vivliostyle — open source, web browser based CSS typesetting engine project

Vivliostyle — open source, web browser based CSS typesetting engine project
06:09 Kiara Translation 🇬🇧: FAQ updated: +1:
https://vivliostyle-org.yamasy1549.now.sh/faq
https://vivliostyle-org.yamasy1549.now.sh/ja/faq
06:22 akabeko すばらしいのですが、少しだけ気になる点があります。h2 (Vivliostyle License FAQ の部分) に指定された margin: 64px 0 30px; によりスクロール位置が最上段の際に h2 と右にあるメニューの水平が揃わず h2 が下がります。

おそらくこれは先行要素に対する margin-top 用だと思いますので h2:first-child { margin-top: 0; } を追加するなどして、先頭のものだけ打ち消すと更によいと思います。
06:23 Kiara Translation 🇬🇧: It's great, but there are a few things to worry about. According to margin: 64px 0 30px; specified in h2 (Vivliostyle License FAQ part), h2 is lowered when h2 and the menu on the right are not aligned when the scroll position is at the top. .

Probably this is for margin-top for the preceding element, so it is better to cancel only the first one by addingh2: first-child {margin-top: 0;}etc. .
06:27 akabeko 打ち消しなどを避ける方法として、スクロール方向が下 or 右だけと仮定して、top/left 方向の margin は指定せず常に bottom/right 方向だけ指定してゆく、というのもありますね。
06:27 Kiara Translation 🇬🇧: One way to avoid cancellation is to assume that the scroll direction is only down or right, and always specify only the bottom direction without specifying the top margin.
06:34 yamasy1549 コメントありがとうございます。他のページと揃えているので、h2の位置は合っています。ページ先頭で目次の高さがh2と合っていないのは、スクロール時の目次の見た目を優先しているからです
06:34 Kiara Translation 🇬🇧: Thank you for your comment. Since it is aligned with other pages, the position of h2 is correct. The reason that the height of the table of contents does not match h2 at the top of the page is because the appearance of the table of contents when scrolling is given priority
06:34 akabeko 理由があったのですね。承知しました。
06:34 Kiara Translation 🇬🇧: There was a reason. I've acknowledged.
Clone this wiki locally