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

Kanji page css that worked before stopped working #1744

Closed
Wyzmic opened this issue Jan 3, 2025 · 2 comments
Closed

Kanji page css that worked before stopped working #1744

Wyzmic opened this issue Jan 3, 2025 · 2 comments
Labels
kind/bug The issue or PR is regarding a bug

Comments

@Wyzmic
Copy link

Wyzmic commented Jan 3, 2025

The css I used before to hide unnecessary data apparently stopped working, is anybody else experiencing this issue?
image

Microsoft Edge
Version 131.0.2903.112

Yomitan version
24.12.18.1

The css I use for it:

/* remove misc dict classifications/codepoints/stats */
.kanji-glyph-data > tbody > tr:nth-child(n + 3) {
  display: none;
}

/* remove stroke diagram, freq, header for next entries */
div.entry[data-type='kanji']:nth-child(n + 2) .kanji-glyph-container,
div.entry[data-type='kanji']:nth-child(n + 2) [data-section-type='frequencies'],
div.entry[data-type='kanji']:nth-child(n + 2) table.kanji-glyph-data > tbody > tr:first-child {
  display: none;
}

/* remove 'No data found' */
.kanji-info-table-item-value-empty {
  display: none;
}

/* reduce extra padding */
.kanji-glyph-data,
div.entry[data-type='kanji'],
div.entry[data-type='kanji']:nth-child(n + 2) .kanji-glyph-data > tbody > tr > *,
.kanji-glyph-data dl.kanji-readings-japanese,
div.entry[data-type='kanji']:nth-child(n + 2)
  .kanji-glyph-data
  dl.kanji-readings-chinese[data-count='0'] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 8px;
  margin-top: 0 !important;
}
/* remove horizontal lines */
.entry + .entry[data-type='kanji'],
div#dictionary-entries > div.entry:nth-child(n + 2) .kanji-glyph-data > tbody > tr > * {
  border-top: none !important;
}
/* change decimal list */
.kanji-gloss-list {
  list-style-type: none;
  margin-left: -23px;
}
@Wyzmic Wyzmic added the kind/bug The issue or PR is regarding a bug label Jan 3, 2025
@khaitruong922
Copy link

Try replacing .kanji-glyph-data with .kanji-glyph-table

@Wyzmic
Copy link
Author

Wyzmic commented Jan 4, 2025

Wow that fully fixed it! Appreciate it 🔥

@Wyzmic Wyzmic closed this as completed Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

No branches or pull requests

2 participants