stable

Clone or download

Read-only

fix: white space in TOC

We should use --tlp-*-spacing instead of absolute rem units in margin and padding so that the white space is adapted from user preferences: some users prefer higher density than another ones, the white space can be based either on 12px or on 16px. If we use rem, then only 16px is used as a base. The white space between TOC items is reduced to --tlp-small-spacing to have a more dense table of contents. Proposition has been validated by Design Team and mockups have been updated accordingly. Right padding for li is removed since the parent container .table-of-contents has already defined its padding. Took the opportunity to fix the underline color for TOC items: they should have the same color than the text. Note: other margins and paddings in artidoc should be based on --tlp-*-spacing, but to not conflict with parallel developments, it will be done in separate contributions. Part of story #37542: display a read only Document Change-Id: I310ae68924d6de89c993fb3453bfeb28026b2207

Modified Files

Name
M plugins/artidoc/scripts/artidoc/src/components/TableOfContents.vue +4 −5 Go to diff View file