2016-04-15 03:36:00 +00:00
|
|
|
/*
|
2020-01-01 17:00:00 +00:00
|
|
|
* Copyright (C) 2016-2020 Alex Yatskov <alex@foosoft.net>
|
2016-04-15 03:36:00 +00:00
|
|
|
* Author: Alex Yatskov <alex@foosoft.net>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2017-03-04 04:25:14 +00:00
|
|
|
* it under the entrys of the GNU General Public License as published by
|
2016-04-15 03:36:00 +00:00
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2020-01-01 17:00:31 +00:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-04-15 03:36:00 +00:00
|
|
|
*/
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Fonts
|
|
|
|
*/
|
2016-04-29 03:36:55 +00:00
|
|
|
|
2017-01-07 20:21:47 +00:00
|
|
|
@font-face {
|
|
|
|
font-family: kanji-stroke-orders;
|
2017-03-04 20:27:05 +00:00
|
|
|
src: url('/mixed/ttf/kanji-stroke-orders.ttf');
|
2017-01-07 20:21:47 +00:00
|
|
|
}
|
2017-03-04 04:25:14 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* General
|
|
|
|
*/
|
|
|
|
|
2019-10-13 15:57:40 +00:00
|
|
|
html:root[data-yomichan-page=float]:not([data-yomichan-theme]),
|
|
|
|
html:root[data-yomichan-page=float]:not([data-yomichan-theme]) body {
|
2019-10-12 21:06:03 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2019-10-12 20:27:49 +00:00
|
|
|
body {
|
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
font-size: 14px;
|
2019-12-25 02:45:57 +00:00
|
|
|
line-height: 1.42857143; /* 14px => 20px */
|
2019-10-12 20:27:49 +00:00
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2019-12-27 23:15:16 +00:00
|
|
|
overflow-y: scroll; /* always show scroll bar */
|
2019-10-12 20:27:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ol, ul {
|
|
|
|
margin-top: 0;
|
2019-12-25 02:45:57 +00:00
|
|
|
margin-bottom: 0.72em;
|
2016-04-15 03:36:00 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 19:53:55 +00:00
|
|
|
#spinner {
|
2017-03-04 04:25:14 +00:00
|
|
|
position: fixed;
|
2019-12-25 02:45:57 +00:00
|
|
|
z-index: 1;
|
|
|
|
right: 0.36em;
|
|
|
|
bottom: 0.36em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#spinner>img {
|
|
|
|
width: 2.28571428em; /* 14px => 32px */
|
|
|
|
height: 2.28571428em; /* 14px => 32px */
|
2017-03-04 04:25:14 +00:00
|
|
|
}
|
|
|
|
|
2017-10-08 00:37:28 +00:00
|
|
|
.invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2019-11-28 16:06:24 +00:00
|
|
|
/*
|
|
|
|
* Navigation
|
|
|
|
*/
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.navigation-header {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 2.1em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
border-bottom-width: 0.07142857em; /* 14px => 1px */
|
|
|
|
border-bottom-style: solid;
|
|
|
|
}
|
|
|
|
|
2019-12-28 21:07:03 +00:00
|
|
|
html:root[data-yomichan-page=search] .navigation-header {
|
|
|
|
position: sticky;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
html:root[data-yomichan-page=float] .navigation-header {
|
2019-11-28 16:06:24 +00:00
|
|
|
position: fixed;
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
|
|
|
|
2019-12-28 21:07:03 +00:00
|
|
|
html:root[data-yomichan-page=float] .navigation-header:not([hidden])~.navigation-header-spacer {
|
2019-12-25 02:45:57 +00:00
|
|
|
height: 2.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation-header-actions {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navigation-header:not([data-has-previous=true]) .navigation-header-actions .action-previous>img,
|
|
|
|
.navigation-header:not([data-has-next=true]) .navigation-header-actions .action-next>img {
|
|
|
|
opacity: 0.25;
|
|
|
|
-webkit-filter: grayscale(100%);
|
|
|
|
filter: grayscale(100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-next>img {
|
|
|
|
transform: scaleX(-1);
|
2019-11-28 16:06:24 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
|
2019-11-10 01:15:55 +00:00
|
|
|
/*
|
|
|
|
* Search page
|
|
|
|
*/
|
|
|
|
|
|
|
|
.icon-checkbox {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.icon-checkbox+label {
|
2019-11-10 01:15:55 +00:00
|
|
|
cursor: pointer;
|
2019-12-25 02:45:57 +00:00
|
|
|
font-size: 1.6em;
|
|
|
|
padding: 0.1em;
|
2019-11-10 01:15:55 +00:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2019-10-29 21:49:36 +00:00
|
|
|
#query-parser {
|
2019-12-25 02:45:57 +00:00
|
|
|
margin-top: 0.5em;
|
|
|
|
font-size: 2em;
|
2019-10-29 21:49:36 +00:00
|
|
|
}
|
|
|
|
|
2019-10-31 21:56:44 +00:00
|
|
|
.query-parser-term {
|
2019-12-25 02:45:57 +00:00
|
|
|
margin-right: 0.2em;
|
2019-10-30 10:06:25 +00:00
|
|
|
}
|
|
|
|
|
2019-11-10 01:15:55 +00:00
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
/*
|
|
|
|
* Entries
|
|
|
|
*/
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.entry {
|
|
|
|
padding-top: 0.72em;
|
|
|
|
padding-bottom: 0.72em;
|
2017-03-19 00:40:48 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
html:root[data-yomichan-page=float] .entry {
|
|
|
|
padding-left: 0.72em;
|
|
|
|
padding-right: 0.72em;
|
2019-10-12 20:27:49 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
.actions .disabled {
|
2016-05-05 02:10:28 +00:00
|
|
|
pointer-events: none;
|
2017-03-04 04:25:14 +00:00
|
|
|
cursor: default;
|
2016-05-05 02:10:28 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
.actions .disabled img {
|
2016-05-04 05:07:05 +00:00
|
|
|
-webkit-filter: grayscale(100%);
|
2019-10-12 20:27:49 +00:00
|
|
|
filter: grayscale(100%);
|
2017-03-04 04:25:14 +00:00
|
|
|
opacity: 0.25;
|
2016-05-04 05:07:05 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
.actions .pending {
|
2017-01-04 06:17:53 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
.actions {
|
2019-12-25 02:45:57 +00:00
|
|
|
display: flex;
|
2017-03-04 04:25:14 +00:00
|
|
|
float: right;
|
2019-12-25 02:45:57 +00:00
|
|
|
margin: -0.25em;
|
2017-01-09 03:03:48 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
.actions:after {
|
|
|
|
clear: both;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2017-02-06 00:39:40 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.action-button {
|
2017-03-04 04:25:14 +00:00
|
|
|
display: inline-block;
|
2019-12-25 02:45:57 +00:00
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.25em;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.action-button {
|
|
|
|
cursor: pointer;
|
2016-04-29 03:36:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.icon-image {
|
|
|
|
width: 1.14285714em; /* 14px => 16px */
|
|
|
|
height: 1.14285714em; /* 14px => 16px */
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression .kanji-link {
|
|
|
|
border-bottom-width: 0.03571428em; /* 28px => 1px */
|
2019-10-12 21:06:03 +00:00
|
|
|
border-bottom-style: dashed;
|
2016-04-29 03:36:55 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.entry:not(.entry-current) .current {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
display: inline;
|
|
|
|
padding: 0.2em 0.6em 0.3em;
|
|
|
|
font-size: 75%;
|
|
|
|
font-weight: 700;
|
|
|
|
line-height: 1;
|
|
|
|
text-align: center;
|
2017-10-07 04:02:50 +00:00
|
|
|
white-space: nowrap;
|
2019-12-25 02:45:57 +00:00
|
|
|
vertical-align: baseline;
|
|
|
|
border-radius: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag-list>.tag+.tag {
|
|
|
|
margin-left: 0.375em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.entry-header2,
|
|
|
|
.entry-header3 {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-frequency-separator::before {
|
|
|
|
content: ":";
|
|
|
|
}
|
|
|
|
|
|
|
|
.entry+.entry {
|
|
|
|
border-top-width: 0.07142857em; /* 14px => 1px */
|
|
|
|
border-top-style: solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.entry[data-type=term][data-multi-expression=true] .actions>.action-play-audio {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-reasons {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-reasons>.term-reason+.term-reason:before {
|
|
|
|
content: " \00AB "; /* The two spaces is not a typo */
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-list {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-text {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-details {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-details>.action-play-audio {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-details>.tags {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-details>.frequencies {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-list>.term-expression:not(:last-of-type):after {
|
|
|
|
font-size: 2em;
|
|
|
|
content: "\3001";
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-list[data-multi=true] .term-expression-details {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-list[data-multi=true] .term-expression-details {
|
2017-10-07 04:02:50 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2019-12-25 02:45:57 +00:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2017-10-07 04:02:50 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-expression-list[data-multi=true] .term-expression:hover .term-expression-details {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-list[data-multi=true] .term-expression-details>.action-play-audio {
|
2017-10-09 21:56:47 +00:00
|
|
|
position: absolute;
|
2019-12-25 02:45:57 +00:00
|
|
|
left: 0;
|
|
|
|
bottom: 0.5em;
|
2017-10-09 21:56:47 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-expression-list[data-multi=true] .term-expression-details>.action-play-audio {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-expression-list[data-multi=true] .term-expression-details>.tags {
|
|
|
|
display: block;
|
2017-10-09 21:56:47 +00:00
|
|
|
position: absolute;
|
2019-12-25 02:45:57 +00:00
|
|
|
left: 0;
|
|
|
|
bottom: -0.5em;
|
|
|
|
white-space: nowrap;
|
2017-10-09 21:56:47 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-expression-list[data-multi=true] .term-expression-details>.frequencies {
|
|
|
|
display: block;
|
2017-10-09 21:56:47 +00:00
|
|
|
position: absolute;
|
2019-12-25 02:45:57 +00:00
|
|
|
left: 0;
|
|
|
|
bottom: -1.9em;
|
|
|
|
white-space: nowrap;
|
2017-10-09 21:56:47 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-definition-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
2017-10-07 04:02:50 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-definition-list:not([data-count="0"]):not([data-count="1"]) {
|
|
|
|
padding-left: 1.4em;
|
|
|
|
list-style-type: decimal;
|
2016-04-29 03:36:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-glossary-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
2017-10-24 20:30:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.term-glossary-list:not([data-count="0"]):not([data-count="1"]) {
|
2016-08-08 02:56:50 +00:00
|
|
|
padding-left: 1.4em;
|
2019-12-25 02:45:57 +00:00
|
|
|
list-style-type: circle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-definition-only-list[data-count="0"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-definition-only-list:before {
|
|
|
|
content: "(";
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-definition-only-list:after {
|
|
|
|
content: " only)";
|
|
|
|
}
|
|
|
|
|
|
|
|
.term-definition-only+.term-definition-only:before {
|
|
|
|
content: ", ";
|
|
|
|
}
|
|
|
|
|
|
|
|
.debug-info {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[data-debug=true] .debug-info {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[data-anki-enabled=false] .action-view-note,
|
|
|
|
:root[data-anki-enabled=false] .action-add-note {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[data-audio-enabled=false] .action-play-audio {
|
|
|
|
display: none;
|
2016-04-15 03:36:00 +00:00
|
|
|
}
|
2016-04-16 05:33:13 +00:00
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
:root[data-compact-glossaries=true] .term-definition-tag-list,
|
|
|
|
:root[data-compact-glossaries=true] .term-definition-only-list:not([data-count="0"]) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[data-compact-glossaries=true] .term-glossary-list {
|
2017-10-15 06:45:00 +00:00
|
|
|
display: inline;
|
|
|
|
list-style: none;
|
2019-12-25 02:45:57 +00:00
|
|
|
padding-left: 0;
|
2017-10-15 06:45:00 +00:00
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
:root[data-compact-glossaries=true] .term-glossary-list>li {
|
2017-10-15 06:45:00 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
:root[data-compact-glossaries=true] .term-glossary-list>li:not(:first-child):before {
|
2017-10-15 06:45:00 +00:00
|
|
|
content: " | ";
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
/*
|
|
|
|
* Kanji
|
|
|
|
*/
|
2017-10-15 06:45:00 +00:00
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-glyph {
|
2017-03-04 04:25:14 +00:00
|
|
|
font-family: kanji-stroke-orders;
|
2019-12-25 02:45:57 +00:00
|
|
|
font-size: 8.5em;
|
|
|
|
line-height: 1;
|
2017-03-04 04:25:14 +00:00
|
|
|
padding: 0.01em;
|
2016-08-08 02:56:50 +00:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
2017-09-15 21:03:05 +00:00
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-glyph-data {
|
|
|
|
margin-top: 0.75em;
|
|
|
|
border-spacing: 0;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanji-glyph-data>tbody>tr>* {
|
|
|
|
border-top-width: 0.07142857em; /* 14px => 1px */
|
|
|
|
border-top-style: solid;
|
|
|
|
text-align: left;
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 0.36em;
|
|
|
|
margin: 0;
|
2017-09-15 21:03:05 +00:00
|
|
|
}
|
2017-09-18 02:16:08 +00:00
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-info-table {
|
2017-09-18 02:16:08 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-info-table>tbody>tr>th,
|
|
|
|
.kanji-info-table>tbody>tr>td {
|
|
|
|
text-align: left;
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanji-info-table>tbody>tr>td {
|
2017-09-18 02:16:08 +00:00
|
|
|
text-align: right;
|
|
|
|
}
|
2019-09-15 22:44:49 +00:00
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-glyph-data dl {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 1.4em;
|
2019-09-15 22:44:49 +00:00
|
|
|
}
|
2019-10-12 20:27:49 +00:00
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-glyph-data dd {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanji-glossary-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kanji-glossary-list:not([data-count="0"]):not([data-count="1"]) {
|
|
|
|
padding-left: 1.4em;
|
|
|
|
list-style-type: decimal;
|
2019-10-12 20:27:49 +00:00
|
|
|
}
|