Fixes #752 - Make the TOC responsive for the order page #930

已合并
max.mehl 2019-05-27 13:56:35 +00:00 将 1 次代码提交从 :order_toc_small_screen 合并至 master
普通成员
没有提供说明。
vincent2019-05-25 10:36:22 +00:00 添加了里程碑 Hackathon1905
普通成员

Thank you Vincent! I think the PR fixes the actual issue and should be merged.

However, it does not fix the underlying root of the issue: that our standard CSS does not contain gernal, reusable classes for a table of contents, resulting in a number of pages constructing their individual TOC design. Let's keep in mind that this is soemthing we should change.

Thank you Vincent! I think the PR fixes the actual issue and should be merged. However, it does not fix the underlying root of the issue: that our standard CSS does not contain gernal, reusable classes for a table of contents, resulting in a number of pages constructing their individual TOC design. Let's keep in mind that this is soemthing we should change.
作者
普通成员

I'd suggest to put this in style.less and make sure every TOC has the #toc id

#toc {
  float: right;
  clear: right;
  border: solid 1px;
  margin: .5em;
  background: rgb(240,240,240);
  width: 30%;
}

@media only screen and (max-width: 600px) {
  div#toc {
    width: 100%;
  }
}

Edit: Created an issue here

I'd suggest to put this in style.less and make sure every TOC has the `#toc` id ```css #toc { float: right; clear: right; border: solid 1px; margin: .5em; background: rgb(240,240,240); width: 30%; } @media only screen and (max-width: 600px) { div#toc { width: 100%; } } ``` Edit: Created an issue [here](https://git.fsfe.org/FSFE/fsfe-website/issues/942)
普通成员

In principle I agree with the above CSS, however I think it could be better integrated with some bootstrap features.

In principle I agree with the above CSS, however I think it could be better integrated with some bootstrap features.
管理员

@reinhard @vincent @mweimann Would you like to take another look at how to make it more bootstrap-native, or shall I merge for now to make it at least a bit better?

I tend toward coming up with a decent TOC layout for all kind of pages (and update those), so I'd love to have a quite optimal one

@reinhard @vincent @mweimann Would you like to take another look at how to make it more bootstrap-native, or shall I merge for now to make it at least a bit better? I tend toward coming up with a decent TOC layout for all kind of pages (and update those), so I'd love to have a quite optimal one
作者
普通成员

I think we should merge this and use #942 to explore possibilities for a global css class.

I think we should merge this and use [#942](https://git.fsfe.org/FSFE/fsfe-website/issues/942) to explore possibilities for a global css class.
普通成员

I agree with @vincent.

I agree with @vincent.
管理员

Fine for me. However, @vincent, could you please undo the changes for the da, fr, sq and tr version, or delete these files? They are currently outdated and should not be made up-to-date by these changes:

$ tools/check-translation-status.sh -a -f order/order.en.xhtml 
Basefile: order/order.en.xhtml ( 2019-05-22 )
  STATUS      LANG    DATE
  --------    ----   ----------
  OUTDATED     da    2017-06-13
  OUTDATED     fr    2017-06-13
  OUTDATED     sq    2017-06-13
  OUTDATED     tr    2018-09-06
  Up-to-date   de    2019-05-22
  Up-to-date   it    2019-05-22
  Up-to-date   nl    2019-05-22
Fine for me. However, @vincent, could you please undo the changes for the da, fr, sq and tr version, or delete these files? They are currently outdated and should not be made up-to-date by these changes: ``` $ tools/check-translation-status.sh -a -f order/order.en.xhtml Basefile: order/order.en.xhtml ( 2019-05-22 ) STATUS LANG DATE -------- ---- ---------- OUTDATED da 2017-06-13 OUTDATED fr 2017-06-13 OUTDATED sq 2017-06-13 OUTDATED tr 2018-09-06 Up-to-date de 2019-05-22 Up-to-date it 2019-05-22 Up-to-date nl 2019-05-22 ```
max.mehl 添加了一个新的依赖项 2019-05-27 13:54:37 +00:00
作者
普通成员

Done!

Done!
管理员

Excellent, thanks!

Excellent, thanks!
max.mehl "于 2019-05-27 13:56:35 +00:00 关闭此合并请求 "
vincent2019-05-27 13:57:27 +00:00 删除了分支 order_toc_small_screen
登录 并参与到对话中。
没有提供说明。