nomadjimbob / mikio

Customizable, Bootstrap 4 inspired template for Dokuwiki
GNU General Public License v2.0
22 stars 6 forks source link

change spacing of tables #62

Closed Hakker closed 2 months ago

Hakker commented 5 months ago

It appears the spacing in tables vertically seem like a double new line. One before and one after the actual entry. would it be possible to change that through a setting in a future update? Personally I like my tables a bit more condensed than they are now.

Beyond that I find this Dokuwiki theme really good.

nomadjimbob commented 5 months ago

It can be changed using a custom theme, overriding the mikio table cell padding.

In the mikio template on your server, create a file style.css inside a directory called mine inside themes (screenshot attached, you will need to create the mine directory, you can ignore the noshadow if you do not have it).

Screenshot 2024-01-24 at 7 51 58 am

Inside style.css add the following text:

td, th {
    padding: inherit !important;
}

This overrides mikio table cell padding, back to the original dokuwiki setting (you could also replace inherit with 0px).

Next to enable the custom theme, in Admin > Configuration Settings > Mikio (could be worded slightly different), set customTheme to mine (matching the directory we created earlier).

Screenshot 2024-01-24 at 7 54 13 am

Save the settings and it should take affect (may need to clear cache or reload the page)

Custom themes are not overridden in template updates.

nomadjimbob commented 2 months ago

Added ability to change the padding in the style config page in version 2024-05-03