LazyGuideJP

Yomitan Custom CSS

Mar 30th, 2025
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. :root {
  2. --background-color: #DEE4E7;
  3. --text-color: #000000;
  4. --tag-frequency-background-color: #8181C1;
  5. --tag-part-of-speech-background-color: #8181C1;
  6. --tag-text-color: #FFFFFF;
  7. --reason-text-color: #808080;
  8. --notification-text-color: #000000;
  9. --notification-background-color: #E5E9F0;
  10. --sidebar-background-color: #CFD9DC;
  11. --sidebar-button-background-color-hover: #9283C1;
  12. --sidebar-button-danger-background-color-hover: #BF616A;
  13. --sidebar-button-icon-color: #A89BD0;
  14. --accent-color: #8181C1;
  15. --dict-color: #9057AD;
  16. --dict-text-color: #FFFFFF;
  17. }
  18.  
  19. :root[data-theme="dark"] {
  20. --background-color: #2E303E;
  21. --text-color: #FFFFFF;
  22. --tag-frequency-background-color: #67679A;
  23. --tag-part-of-speech-background-color: #67679A;
  24. --reason-text-color: #808080;
  25. --notification-text-color: #FFFFFF;
  26. --notification-background-color: #3B4252;
  27. --sidebar-background-color: #262733;
  28. --sidebar-button-background-color-hover: #644EA7;
  29. --sidebar-button-danger-background-color-hover: #BF616A;
  30. --sidebar-button-icon-color: #A89BD0;
  31. --accent-color: #67679A;
  32. --dict-color: #9057AD;
  33. --dict-text-color: #FFFFFF;
  34. }
  35.  
  36. .definition-tag-list {
  37. line-height: 1;
  38. height: 1em;
  39. }
  40.  
  41. .definition-list {
  42. padding: 0;
  43. }
  44.  
  45. .definition-item {
  46. display: inline-block;
  47. margin-bottom: 10px;
  48. border-bottom: 1px solid;
  49. margin: 0 calc(0px - var(--entry-horizontal-padding));
  50. width: 100%;
  51. padding: 10px calc(var(--entry-horizontal-padding)) 10px calc(var(--entry-horizontal-padding));
  52. padding-top: 0.5px !important;
  53. }
  54.  
  55. span.headword-term {
  56. font-family: "UD Digi Kyokasho N-R";
  57. }
  58.  
  59. span.query-parser-term {
  60. font-family: "UD Digi Kyokasho N-R";
  61. }
  62.  
  63. .gloss-content {
  64. font-family: "kaikoku PM M9N Medium";
  65. line-height: 1.3;
  66. font-size: 16px;
  67. }
  68.  
  69. .tag-label-content {
  70. font-family: "DF教科書体W4";
  71. font-size: 11px;
  72. }
  73.  
  74. .tag {
  75. --tag-height: 0;
  76. }
  77.  
  78. .tag[data-details*="Jitendex.org"] {
  79. --tag-color: var(--dict-color);
  80. --tag-text-color: var(--dict-text-color);
  81. }
  82.  
  83. .definition-item-content:has(.tag[data-details*="Jitendex.org"]) .gloss-sc-span {
  84. display: inline-block !important;
  85. padding: 0.1px 5px 3px 5px !important;
  86. }
  87.  
  88. .definition-item-content:has(.tag[data-details*="Jitendex.org"]) .gloss-content {
  89. line-height: 1.1 !important;
  90. }
  91.  
  92. /* Firefox */
  93. .definition-item-content .tag[data-details*="Jitendex.org"] + .gloss-sc-span {
  94. display: inline-block !important;
  95. padding: 0.1px 5px 3px 5px !important;
  96. }
  97.  
  98. .definition-item-content .tag[data-details*="Jitendex.org"] + .gloss-content {
  99. line-height: 1.1 !important;
  100. }
  101. /* Firefox */
  102.  
  103. .tag[data-details*="JMdict (English)"] {
  104. --tag-color: var(--dict-color);
  105. --tag-text-color: var(--dict-text-color);
  106. display: none;
  107. }
  108.  
  109. .tag[data-details*="旺文社国語辞典"] {
  110. --tag-color: var(--dict-color);
  111. --tag-text-color: var(--dict-text-color);
  112. }
  113.  
  114. .tag[data-details*="三省堂国語辞典"] {
  115. --tag-color: var(--dict-color);
  116. --tag-text-color: var(--dict-text-color);
  117. }
  118.  
  119. .tag[data-details*="実用日本語表現辞典"] {
  120. --tag-color: var(--dict-color);
  121. --tag-text-color: var(--dict-text-color);
  122. }
  123.  
  124. .tag[data-details*="新明解国語辞典"] {
  125. --tag-color: var(--dict-color);
  126. --tag-text-color: var(--dict-text-color);
  127. }
  128.  
  129. .tag[data-details*="明鏡国語辞典"] {
  130. --tag-color: var(--dict-color);
  131. --tag-text-color: var(--dict-text-color);
  132. }
  133.  
  134. .tag[data-details*="JMdict Forms"] {
  135. --tag-color: var(--dict-color);
  136. --tag-text-color: var(--dict-text-color);
  137. display: none;
  138. }
  139.  
  140. .tag[data-details*="アクセント辞典"] {
  141. --tag-color: var(--accent-color);
  142. --tag-text-color: var(--dict-text-color);
  143. }
  144.  
  145. .tag[data-details*="JPDB Kanji"] {
  146. --tag-color: var(--dict-color);
  147. --tag-text-color: var(--dict-text-color);
  148. }
  149.  
  150. .tag[data-details*="KANJIDIC (English)"] {
  151. --tag-color: var(--dict-color);
  152. --tag-text-color: var(--dict-text-color);
  153. }
  154.  
  155. .tag[data-details*="TheKanjiMap Kanji Radicals/Composition"] {
  156. --tag-color: var(--dict-color);
  157. --tag-text-color: var(--dict-text-color);
  158. }
  159.  
  160. .top-progress-bar-container {
  161. display: none !important;
  162. }
  163.  
  164. .kanji-glyph-data > tbody > tr:nth-child(n + 3) {
  165. display: none;
  166. }
  167.  
  168. div.entry[data-type='kanji']:nth-child(n + 2) .kanji-glyph-container,
  169. div.entry[data-type='kanji']:nth-child(n + 2) [data-section-type='frequencies'],
  170. div.entry[data-type='kanji']:nth-child(n + 2) table.kanji-glyph-data > tbody > tr:first-child {
  171. display: none;
  172. }
  173.  
  174. .kanji-info-table-item-value-empty {
  175. display: none;
  176. }
  177.  
  178. .kanji-glyph-data,
  179. div.entry[data-type='kanji'],
  180. div.entry[data-type='kanji']:nth-child(n + 2) .kanji-glyph-data > tbody > tr > *,
  181. .kanji-glyph-data dl.kanji-readings-japanese,
  182. div.entry[data-type='kanji']:nth-child(n + 2)
  183. .kanji-glyph-data
  184. dl.kanji-readings-chinese[data-count='0'] {
  185. padding-top: 0 !important;
  186. padding-bottom: 0 !important;
  187. margin-bottom: 0em;
  188. margin-top: 0 !important;
  189. }
  190.  
  191. .entry + .entry[data-type='kanji'],
  192. div#dictionary-entries > div.entry:nth-child(n + 2) .kanji-glyph-data > tbody > tr > * {
  193. border-top: none !important;
  194. }
  195.  
  196. .kanji-gloss-list {
  197. list-style-type: circle;
  198. }
  199.  
  200. #content-scroll::-webkit-scrollbar {
  201. width: 0; /* Hides the scrollbar */
  202. height: 0;
  203. }
  204.  
  205. #content-scroll {
  206. scrollbar-width: none; /* Firefox */
  207. }
Add Comment
Please, Sign In to add comment