Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change spacing of tables #62

Closed
Hakker opened this issue Jan 23, 2024 · 2 comments
Closed

change spacing of tables #62

Hakker opened this issue Jan 23, 2024 · 2 comments

Comments

@Hakker
Copy link

Hakker commented Jan 23, 2024

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
Copy link
Owner

nomadjimbob commented Jan 23, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants