2016-04-15 03:36:00 +00:00
|
|
|
/*
|
2021-01-01 19:50:41 +00:00
|
|
|
* Copyright (C) 2016-2021 Yomichan Authors
|
2016-04-15 03:36:00 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
*/
|
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Variables */
|
2020-05-10 18:07:25 +00:00
|
|
|
:root {
|
2021-02-25 23:48:42 +00:00
|
|
|
/* Strings */
|
|
|
|
--compact-list-separator: ' | ';
|
|
|
|
|
|
|
|
--disambiguation-prefix: '(';
|
|
|
|
--disambiguation-suffix: ' only)';
|
|
|
|
--disambiguation-separator: ', ';
|
|
|
|
--disambiguation-reading-separator: ':';
|
|
|
|
|
2021-02-27 19:04:52 +00:00
|
|
|
--expression-separator: '\3001';
|
|
|
|
|
2021-02-27 22:58:28 +00:00
|
|
|
--inflection-separator: '\00AB';
|
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Layout */
|
|
|
|
--font-size-no-units: 14;
|
|
|
|
--font-size: calc(1px * var(--font-size-no-units));
|
|
|
|
--query-parser-font-size-no-units: 2;
|
|
|
|
--query-parser-font-size: calc(1em * var(--query-parser-font-size-no-units));
|
2021-02-27 20:28:40 +00:00
|
|
|
--h2-font-size-no-units: 1.25;
|
|
|
|
--h2-font-size: calc(1em * var(--h2-font-size-no-units));
|
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
--expression-font-size-no-units: 2;
|
|
|
|
--expression-font-size: calc(1em * var(--expression-font-size-no-units));
|
2021-02-27 20:28:40 +00:00
|
|
|
--expression-reading-font-size-no-units: 0.75;
|
|
|
|
--expression-reading-font-size: calc(var(--expression-reading-font-size-no-units) * var(--expression-font-size));
|
2021-02-27 19:04:52 +00:00
|
|
|
--expression-reading-space: 0.5em;
|
2021-02-27 20:28:40 +00:00
|
|
|
--expression-list-end-space: 0.5em;
|
|
|
|
--expression-thin-border-size: calc(1em / (var(--expression-font-size-no-units) * var(--font-size-no-units)));
|
2020-11-14 20:23:20 +00:00
|
|
|
|
|
|
|
--line-height-no-units: 20;
|
|
|
|
--line-height: calc(var(--line-height-no-units) / var(--font-size-no-units));
|
|
|
|
|
|
|
|
--thin-border-size: calc(1em / var(--font-size-no-units));
|
|
|
|
|
|
|
|
--action-button-size-no-units: 16;
|
2020-12-19 20:42:44 +00:00
|
|
|
--action-button-size: calc(1em * (var(--action-button-size-no-units) / var(--font-size-no-units)));
|
|
|
|
--action-button-padding: 0.3em;
|
2020-11-14 20:23:20 +00:00
|
|
|
|
2020-11-19 01:15:30 +00:00
|
|
|
--list-margin: 0.72em;
|
2020-12-30 04:38:44 +00:00
|
|
|
--main-content-size: 100%;
|
2020-11-19 01:15:30 +00:00
|
|
|
--main-content-vertical-padding: 0em;
|
|
|
|
--main-content-horizontal-padding: 0em;
|
|
|
|
--entry-horizontal-padding: 0.72em;
|
|
|
|
--entry-vertical-padding: 0.72em;
|
2020-11-14 20:23:20 +00:00
|
|
|
|
2020-11-15 19:12:48 +00:00
|
|
|
--sidebar-width-no-units: 40;
|
|
|
|
--sidebar-width: calc(1em * (var(--sidebar-width-no-units) / var(--font-size-no-units)));
|
|
|
|
--sidebar-button-height-no-units: 30;
|
|
|
|
--sidebar-button-height: calc(1em * (var(--sidebar-button-height-no-units) / var(--font-size-no-units)));
|
|
|
|
--sidebar-button-icon-size-no-units: 16;
|
|
|
|
--sidebar-button-icon-size: calc(1em * (var(--sidebar-button-icon-size-no-units) / var(--font-size-no-units)));
|
|
|
|
|
2020-11-19 01:06:02 +00:00
|
|
|
--progress-bar-height-no-units: 4;
|
|
|
|
--progress-bar-height: calc(1em * (var(--progress-bar-height-no-units) / var(--font-size-no-units)));
|
|
|
|
--progress-bar-active-transition-duration: 0.125s;
|
|
|
|
--progress-bar-active-transition-start-delay: 0.0625s;
|
|
|
|
--progress-bar-animation-duration: 2s;
|
|
|
|
|
2020-12-19 15:58:02 +00:00
|
|
|
--entry-current-indicator-width-no-units: 4;
|
|
|
|
--entry-current-indicator-width: calc(1em * var(--entry-current-indicator-width-no-units) / var(--font-size-no-units));
|
2020-11-19 23:34:41 +00:00
|
|
|
--entry-current-indicator-transition-duration: 0.125s;
|
|
|
|
|
2021-03-06 20:08:21 +00:00
|
|
|
--tag-height-no-units: 20;
|
|
|
|
--tag-height: calc(1em * var(--tag-height-no-units) / var(--font-size-no-units));
|
2021-02-21 16:34:55 +00:00
|
|
|
--tag-font-size-no-units: 11;
|
|
|
|
--tag-font-size: calc(1em * var(--tag-font-size-no-units) / var(--font-size-no-units));
|
2021-02-21 22:47:46 +00:00
|
|
|
--tag-border-size-no-units: 1;
|
|
|
|
--tag-border-size: calc(1em * (var(--tag-border-size-no-units) / var(--font-size-no-units)));
|
|
|
|
--tag-border-style: solid;
|
2020-11-27 20:22:06 +00:00
|
|
|
--tag-font-weight: bold;
|
2021-02-23 23:42:04 +00:00
|
|
|
--tag-border-radius: 0.25em;
|
2020-11-27 20:22:06 +00:00
|
|
|
|
|
|
|
--list-padding1: 1.4em;
|
|
|
|
--list-padding2: var(--list-padding1);
|
|
|
|
|
2020-12-19 20:42:44 +00:00
|
|
|
--entry-current-indicator-triangle-size-no-units: 6;
|
|
|
|
--entry-current-indicator-triangle-size: calc(1em * (var(--entry-current-indicator-triangle-size-no-units) / var(--font-size-no-units)));
|
|
|
|
|
2020-12-30 18:49:48 +00:00
|
|
|
--overlay-panel-translate-distance: 4em;
|
|
|
|
|
2021-02-25 23:48:42 +00:00
|
|
|
--disambiguation-space: 0.25em;
|
|
|
|
|
2020-11-25 17:39:09 +00:00
|
|
|
--animation-duration: 0.125s;
|
2020-12-30 04:38:44 +00:00
|
|
|
--animation-duration2: calc(2 * var(--animation-duration));
|
2020-11-25 17:39:09 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Colors */
|
2020-05-10 18:07:25 +00:00
|
|
|
--background-color: #ffffff;
|
|
|
|
--glossary-image-background-color: #eeeeee;
|
2020-11-25 00:56:42 +00:00
|
|
|
--link-color: var(--accent-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2020-12-30 02:33:57 +00:00
|
|
|
--text-color: #000000;
|
2021-01-23 21:24:05 +00:00
|
|
|
--reason-text-color: var(--text-color-light3);
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2021-02-27 20:28:40 +00:00
|
|
|
--expression-text-color: var(--text-color);
|
|
|
|
--expression-text-color-popular: var(--accent-color);
|
|
|
|
--expression-text-color-rare: var(--text-color-light4);
|
2021-02-27 22:29:59 +00:00
|
|
|
--expression-furigana-text-color: var(--expression-text-color);
|
|
|
|
--expression-furigana-text-color-popular: var(--expression-text-color-popular);
|
|
|
|
--expression-furigana-text-color-rare: var(--expression-text-color-rare);
|
|
|
|
--expression-reading-text-color: var(--expression-furigana-text-color);
|
|
|
|
--expression-reading-text-color-popular: var(--expression-furigana-text-color-popular);
|
|
|
|
--expression-reading-text-color-rare: var(--expression-furigana-text-color-rare);
|
2021-02-28 19:23:51 +00:00
|
|
|
--expression-kanji-text-color: var(--expression-text-color);
|
|
|
|
--expression-kanji-text-color-popular: var(--expression-text-color-popular);
|
|
|
|
--expression-kanji-text-color-rare: var(--expression-text-color-rare);
|
2021-02-27 20:28:40 +00:00
|
|
|
--expression-kanji-border-color: var(--dark-border-color);
|
2021-02-28 19:23:51 +00:00
|
|
|
--expression-kanji-border-color-popular: var(--expression-kanji-border-color);
|
|
|
|
--expression-kanji-border-color-rare: var(--expression-kanji-border-color);
|
2021-02-27 20:28:40 +00:00
|
|
|
|
2020-05-10 18:07:25 +00:00
|
|
|
--light-border-color: #eeeeee;
|
|
|
|
--medium-border-color: #dddddd;
|
|
|
|
--dark-border-color: #777777;
|
|
|
|
|
|
|
|
--pitch-accent-annotation-color: #000000;
|
|
|
|
|
|
|
|
--tag-text-color: #ffffff;
|
2020-11-27 20:22:06 +00:00
|
|
|
--tag-border-color: transparent;
|
2020-05-10 18:07:25 +00:00
|
|
|
--tag-default-background-color: #8a8a91;
|
2021-02-28 04:19:16 +00:00
|
|
|
--tag-name-background-color: #b6327a;
|
2020-05-10 18:07:25 +00:00
|
|
|
--tag-expression-background-color: #f0ad4e;
|
|
|
|
--tag-popular-background-color: #0275d8;
|
|
|
|
--tag-frequent-background-color: #5bc0de;
|
|
|
|
--tag-archaism-background-color: #d9534f;
|
|
|
|
--tag-dictionary-background-color: #aa66cc;
|
|
|
|
--tag-frequency-background-color: #5cb85c;
|
|
|
|
--tag-part-of-speech-background-color: #565656;
|
|
|
|
--tag-search-background-color: #8a8a91;
|
|
|
|
--tag-pitch-accent-dictionary-background-color: #6640be;
|
2020-11-15 19:12:48 +00:00
|
|
|
|
|
|
|
--sidebar-background-color: #f8f9fa;
|
|
|
|
|
|
|
|
--sidebar-button-background-color: transparent;
|
|
|
|
--sidebar-button-background-color-hover: #cccccc;
|
|
|
|
--sidebar-button-background-color-active: #aaaaaa;
|
|
|
|
--sidebar-button-danger-background-color: transparent;
|
|
|
|
--sidebar-button-danger-background-color-hover: #dd2222;
|
|
|
|
--sidebar-button-danger-background-color-active: #bb2222;
|
|
|
|
--sidebar-button-icon-color: #333333;
|
|
|
|
--sidebar-button-disabled-icon-color: #888888;
|
|
|
|
--sidebar-button-danger-icon-color: #ffffff;
|
2020-11-15 19:39:37 +00:00
|
|
|
|
|
|
|
--scrollbar-thumb-color: #c1c1c1;
|
|
|
|
--scrollbar-track-color: #f1f1f1;
|
2021-01-30 03:12:24 +00:00
|
|
|
--scrollbar-inverse-thumb-color: #444444;
|
|
|
|
--scrollbar-inverse-track-color: #2f2f2f;
|
2020-11-19 01:06:02 +00:00
|
|
|
|
|
|
|
--progress-bar-track-color: #cccccc;
|
2020-11-25 00:56:42 +00:00
|
|
|
--progress-bar-indicator-color: var(--accent-color);
|
|
|
|
--entry-current-indicator-color: var(--accent-color);
|
2020-12-18 14:43:54 +00:00
|
|
|
|
|
|
|
--notification-text-color: #ffffff;
|
|
|
|
--notification-background-color: #333333;
|
2021-02-21 01:56:20 +00:00
|
|
|
--notification-background-color-light: #555555;
|
|
|
|
--notification-background-color-lighter: #666666;
|
2020-12-18 14:43:54 +00:00
|
|
|
--notification-shadow-color: rgba(0, 0, 0, 0.5);
|
2020-12-30 02:33:57 +00:00
|
|
|
|
2021-02-21 01:56:20 +00:00
|
|
|
--action-button-hover-color: #dddddd;
|
|
|
|
--action-button-active-color: #c1c1c1;
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root[data-theme=dark] {
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Colors */
|
2020-05-10 18:07:25 +00:00
|
|
|
--background-color: #1e1e1e;
|
|
|
|
--glossary-image-background-color: #2f2f2f;
|
2020-11-25 00:56:42 +00:00
|
|
|
--link-color: var(--accent-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2020-12-30 02:33:57 +00:00
|
|
|
--text-color: #d4d4d4;
|
2021-01-23 21:24:05 +00:00
|
|
|
--reason-text-color: var(--text-color-light3);
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2021-02-27 20:28:40 +00:00
|
|
|
--expression-text-color: var(--text-color);
|
|
|
|
--expression-text-color-popular: var(--accent-color);
|
|
|
|
--expression-text-color-rare: var(--text-color-light4);
|
2021-02-27 22:29:59 +00:00
|
|
|
--expression-furigana-text-color: var(--expression-text-color);
|
|
|
|
--expression-furigana-text-color-popular: var(--expression-text-color-popular);
|
|
|
|
--expression-furigana-text-color-rare: var(--expression-text-color-rare);
|
|
|
|
--expression-reading-text-color: var(--expression-furigana-text-color);
|
|
|
|
--expression-reading-text-color-popular: var(--expression-furigana-text-color-popular);
|
|
|
|
--expression-reading-text-color-rare: var(--expression-furigana-text-color-rare);
|
2021-02-27 20:28:40 +00:00
|
|
|
--expression-kanji-border-color: var(--dark-border-color);
|
|
|
|
|
2020-05-10 18:07:25 +00:00
|
|
|
--light-border-color: #2f2f2f;
|
|
|
|
--medium-border-color: #3f3f3f;
|
|
|
|
--dark-border-color: #888888;
|
|
|
|
|
|
|
|
--pitch-accent-annotation-color: #ffffff;
|
|
|
|
|
2020-12-31 22:26:10 +00:00
|
|
|
--tag-text-color: #f1f1f1;
|
2020-11-27 20:22:06 +00:00
|
|
|
--tag-border-color: transparent;
|
2020-05-10 18:07:25 +00:00
|
|
|
--tag-default-background-color: #69696e;
|
2021-02-28 04:19:16 +00:00
|
|
|
--tag-name-background-color: #992a67;
|
2020-05-10 18:07:25 +00:00
|
|
|
--tag-expression-background-color: #b07f39;
|
|
|
|
--tag-popular-background-color: #025caa;
|
|
|
|
--tag-frequent-background-color: #4490a7;
|
|
|
|
--tag-archaism-background-color: #b04340;
|
|
|
|
--tag-dictionary-background-color: #9057ad;
|
|
|
|
--tag-frequency-background-color: #489148;
|
|
|
|
--tag-part-of-speech-background-color: #565656;
|
|
|
|
--tag-search-background-color: #69696e;
|
|
|
|
--tag-pitch-accent-dictionary-background-color: #6640be;
|
2020-11-15 19:12:48 +00:00
|
|
|
|
|
|
|
--sidebar-background-color: #282828;
|
|
|
|
|
|
|
|
--sidebar-button-background-color: transparent;
|
|
|
|
--sidebar-button-background-color-hover: #3a3a3a;
|
|
|
|
--sidebar-button-background-color-active: #5a5a5a;
|
|
|
|
--sidebar-button-danger-background-color: transparent;
|
|
|
|
--sidebar-button-danger-background-color-hover: #dd2222;
|
|
|
|
--sidebar-button-danger-background-color-active: #bb2222;
|
|
|
|
--sidebar-button-icon-color: #cccccc;
|
|
|
|
--sidebar-button-disabled-icon-color: #777777;
|
|
|
|
--sidebar-button-danger-icon-color: #ffffff;
|
2020-11-15 19:39:37 +00:00
|
|
|
|
|
|
|
--scrollbar-thumb-color: #444444;
|
|
|
|
--scrollbar-track-color: #2f2f2f;
|
2021-01-30 03:12:24 +00:00
|
|
|
--scrollbar-inverse-thumb-color: #c1c1c1;
|
|
|
|
--scrollbar-inverse-track-color: #f1f1f1;
|
2020-11-19 01:06:02 +00:00
|
|
|
|
|
|
|
--progress-bar-track-color: #3a3a3a;
|
2020-11-25 00:56:42 +00:00
|
|
|
--progress-bar-indicator-color: var(--accent-color);
|
|
|
|
--entry-current-indicator-color: var(--accent-color);
|
2020-12-18 14:43:54 +00:00
|
|
|
|
|
|
|
--notification-text-color: #2f2f2f;
|
|
|
|
--notification-background-color: #e1e1e1;
|
2021-02-21 01:56:20 +00:00
|
|
|
--notification-background-color-light: #bbbbbb;
|
|
|
|
--notification-background-color-lighter: #aaaaaa;
|
2020-12-18 14:43:54 +00:00
|
|
|
--notification-shadow-color: rgba(255, 255, 255, 0.25);
|
2020-12-30 02:33:57 +00:00
|
|
|
|
2021-02-21 01:56:20 +00:00
|
|
|
--action-button-hover-color: #282828;
|
|
|
|
--action-button-active-color: #444444;
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
|
2017-03-04 04:25:14 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Fonts */
|
2017-01-07 20:21:47 +00:00
|
|
|
@font-face {
|
|
|
|
font-family: kanji-stroke-orders;
|
2021-02-13 01:37:43 +00:00
|
|
|
src: url('/data/fonts/kanji-stroke-orders.ttf');
|
2017-01-07 20:21:47 +00:00
|
|
|
}
|
2017-03-04 04:25:14 +00:00
|
|
|
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* General */
|
2020-11-26 04:22:05 +00:00
|
|
|
:root[data-page-type=popup]:not([data-theme]),
|
|
|
|
:root[data-page-type=popup]:not([data-theme]) body {
|
2019-10-12 21:06:03 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
2019-12-23 15:53:47 +00:00
|
|
|
:root {
|
2021-01-03 20:30:38 +00:00
|
|
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
2020-11-14 20:23:20 +00:00
|
|
|
font-size: var(--font-size);
|
|
|
|
line-height: var(--line-height);
|
2020-11-14 23:12:06 +00:00
|
|
|
height: 100%;
|
2019-12-23 15:53:47 +00:00
|
|
|
}
|
|
|
|
body {
|
2019-10-12 20:27:49 +00:00
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2020-11-14 23:12:06 +00:00
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
2020-05-10 18:07:25 +00:00
|
|
|
background-color: var(--background-color);
|
2020-12-30 02:33:57 +00:00
|
|
|
color: var(--text-color);
|
2020-11-14 20:23:20 +00:00
|
|
|
font-size: inherit;
|
2019-10-12 20:27:49 +00:00
|
|
|
}
|
|
|
|
ol, ul {
|
|
|
|
margin-top: 0;
|
2020-11-19 01:15:30 +00:00
|
|
|
margin-bottom: var(--list-padding);
|
2016-04-15 03:36:00 +00:00
|
|
|
}
|
2020-03-01 19:04:54 +00:00
|
|
|
h2 {
|
2020-11-14 20:23:20 +00:00
|
|
|
font-size: var(--h2-font-size);
|
2020-03-01 19:04:54 +00:00
|
|
|
font-weight: normal;
|
|
|
|
margin: 0.25em 0 0;
|
2020-11-14 20:23:20 +00:00
|
|
|
border-bottom: calc(1em / (var(--font-size-no-units) * var(--h2-font-size-no-units))) solid var(--light-border-color);
|
2020-03-01 19:04:54 +00:00
|
|
|
}
|
2020-12-30 04:38:44 +00:00
|
|
|
h3 {
|
|
|
|
font-size: 1em;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0.25em 0 0.375em;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-01-09 15:41:17 +00:00
|
|
|
h5 {
|
2021-02-21 16:34:55 +00:00
|
|
|
font-size: calc(12em / var(--font-size-no-units));
|
2021-01-09 15:41:17 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2020-11-14 00:48:22 +00:00
|
|
|
a {
|
2020-11-25 00:56:42 +00:00
|
|
|
color: var(--link-color);
|
2020-11-14 00:48:22 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2020-12-28 22:41:59 +00:00
|
|
|
/* Selection */
|
|
|
|
#content-scroll-focus {
|
|
|
|
opacity: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
outline: none;
|
|
|
|
background-color: transparent;
|
|
|
|
display: inline;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
line-height: 0;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
#content-scroll-focus::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-15 19:39:37 +00:00
|
|
|
/* Scrollbars */
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar {
|
2020-11-15 19:39:37 +00:00
|
|
|
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
|
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar {
|
2020-11-15 19:39:37 +00:00
|
|
|
width: auto;
|
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-button {
|
2020-11-15 19:39:37 +00:00
|
|
|
height: 0;
|
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-thumb {
|
2020-11-15 19:39:37 +00:00
|
|
|
background-color: var(--scrollbar-thumb-color);
|
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-track {
|
2020-11-15 19:39:37 +00:00
|
|
|
background-color: var(--scrollbar-thumb-color);
|
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-track-piece {
|
2020-11-15 19:39:37 +00:00
|
|
|
background-color: var(--scrollbar-track-color);
|
|
|
|
}
|
2020-11-26 04:22:05 +00:00
|
|
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-corner {
|
2020-11-15 19:39:37 +00:00
|
|
|
background-color: var(--scrollbar-track-color);
|
|
|
|
}
|
2021-01-30 03:12:24 +00:00
|
|
|
:root .scrollbar-inverse {
|
|
|
|
scrollbar-color: var(--scrollbar-inverse-humb-color) var(--scrollbar-inverse-track-color);
|
|
|
|
}
|
|
|
|
:root .scrollbar-inverse::-webkit-scrollbar {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
:root .scrollbar-inverse::-webkit-scrollbar-button {
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
:root .scrollbar-inverse::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbar-inverse-thumb-color);
|
|
|
|
}
|
|
|
|
:root .scrollbar-inverse::-webkit-scrollbar-track {
|
|
|
|
background-color: var(--scrollbar-inverse-thumb-color);
|
|
|
|
}
|
|
|
|
:root .scrollbar-inverse::-webkit-scrollbar-track-piece {
|
|
|
|
background-color: var(--scrollbar-inverse-track-color);
|
|
|
|
}
|
|
|
|
:root .scrollbar-inverse::-webkit-scrollbar-corner {
|
|
|
|
background-color: var(--scrollbar-inverse-track-color);
|
|
|
|
}
|
2020-12-18 14:43:54 +00:00
|
|
|
.scrollbar-spacer {
|
|
|
|
display: inline-block;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
visibility: hidden;
|
|
|
|
flex: 0 1 auto;
|
|
|
|
}
|
2020-11-15 19:39:37 +00:00
|
|
|
|
|
|
|
|
2020-11-14 23:12:06 +00:00
|
|
|
/* Main layout */
|
|
|
|
.content {
|
2020-12-31 19:58:48 +00:00
|
|
|
flex: 1 1 auto;
|
2020-11-21 03:42:49 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.content-scroll {
|
2020-12-31 19:58:48 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2020-11-14 23:12:06 +00:00
|
|
|
display: flex;
|
2020-11-17 01:41:12 +00:00
|
|
|
flex-flow: column nowrap;
|
2020-11-14 23:12:06 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
align-items: stretch;
|
2020-11-17 01:41:12 +00:00
|
|
|
justify-content: flex-start;
|
2020-11-14 23:12:06 +00:00
|
|
|
}
|
|
|
|
.content-body {
|
|
|
|
flex: 1 1 auto;
|
2020-11-17 01:41:12 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.content-body-inner {
|
2020-12-30 04:38:44 +00:00
|
|
|
width: var(--main-content-size);
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
2020-11-19 01:15:30 +00:00
|
|
|
padding: var(--main-content-vertical-padding) var(--main-content-horizontal-padding);
|
2020-11-14 23:12:06 +00:00
|
|
|
}
|
2020-12-18 14:43:54 +00:00
|
|
|
.content-footer-container1 {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
max-height: 100%;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 5;
|
|
|
|
}
|
|
|
|
.content-footer-container2 {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
justify-content: center;
|
|
|
|
flex: 1 1 auto;
|
2021-01-30 03:12:24 +00:00
|
|
|
max-width: 100%;
|
2020-12-18 14:43:54 +00:00
|
|
|
}
|
|
|
|
.content-footer {
|
2020-12-30 04:38:44 +00:00
|
|
|
width: var(--main-content-size);
|
|
|
|
max-width: 100%;
|
2020-12-18 14:43:54 +00:00
|
|
|
}
|
2020-11-14 23:12:06 +00:00
|
|
|
|
|
|
|
|
2020-11-15 19:12:48 +00:00
|
|
|
/* Sidebar layout */
|
|
|
|
.content-outer {
|
2019-12-25 02:45:57 +00:00
|
|
|
width: 100%;
|
2020-11-15 19:12:48 +00:00
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
align-items: stretch;
|
2020-12-31 19:58:48 +00:00
|
|
|
align-content: stretch;
|
2020-11-15 19:12:48 +00:00
|
|
|
justify-content: center;
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2020-11-15 19:12:48 +00:00
|
|
|
.content-sidebar {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
height: 100%;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
background-color: var(--sidebar-background-color);
|
2020-12-30 04:38:44 +00:00
|
|
|
z-index: 10;
|
2020-11-15 19:12:48 +00:00
|
|
|
position: relative;
|
|
|
|
display: none;
|
|
|
|
}
|
2021-01-10 21:48:31 +00:00
|
|
|
:root[data-has-navigation-previous=true] .content-sidebar,
|
|
|
|
:root[data-has-navigation-next=true] .content-sidebar,
|
2021-01-10 21:06:00 +00:00
|
|
|
:root[data-popup-action-bar-visibility=always] .content-sidebar,
|
|
|
|
:root[data-profile-panel-visible=true] .content-sidebar {
|
2020-11-15 19:12:48 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.content-sidebar-inner {
|
2019-12-25 02:45:57 +00:00
|
|
|
display: flex;
|
2020-11-15 19:12:48 +00:00
|
|
|
flex-flow: column nowrap;
|
|
|
|
width: var(--sidebar-width);
|
|
|
|
height: 100%;
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2020-12-20 01:07:55 +00:00
|
|
|
.content-sidebar-top-pre {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
}
|
2020-11-15 19:12:48 +00:00
|
|
|
.content-sidebar-top {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2020-11-15 19:12:48 +00:00
|
|
|
.content-sidebar-bottom {
|
|
|
|
position: sticky;
|
|
|
|
bottom: 0;
|
|
|
|
background-color: var(--sidebar-background-color);
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
2019-11-28 16:06:24 +00:00
|
|
|
}
|
2020-12-20 01:07:55 +00:00
|
|
|
:root[data-popup-action-bar-location=top] .content-outer,
|
|
|
|
:root[data-popup-action-bar-location=bottom] .content-outer {
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=top] .content-sidebar,
|
|
|
|
:root[data-popup-action-bar-location=bottom] .content-sidebar {
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=left] .content-sidebar,
|
|
|
|
:root[data-popup-action-bar-location=top] .content-sidebar {
|
|
|
|
order: -1;
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=top] .content-sidebar-inner,
|
|
|
|
:root[data-popup-action-bar-location=bottom] .content-sidebar-inner {
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
width: auto;
|
|
|
|
height: var(--sidebar-button-height);
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=top] .content-sidebar-top-pre,
|
|
|
|
:root[data-popup-action-bar-location=bottom] .content-sidebar-top-pre {
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=top] .content-sidebar-top,
|
|
|
|
:root[data-popup-action-bar-location=bottom] .content-sidebar-top {
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=top] .content-sidebar-bottom,
|
|
|
|
:root[data-popup-action-bar-location=bottom] .content-sidebar-bottom {
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
}
|
2019-11-28 16:06:24 +00:00
|
|
|
|
2020-11-15 19:12:48 +00:00
|
|
|
|
|
|
|
/* Sidebar buttons */
|
|
|
|
button.sidebar-button {
|
2021-02-21 05:18:43 +00:00
|
|
|
--button-content-color: var(--sidebar-button-icon-color);
|
|
|
|
--button-border-color: transparent;
|
|
|
|
--button-background-color: var(--sidebar-button-background-color);
|
|
|
|
--button-shadow: none;
|
|
|
|
|
|
|
|
--button-hover-border-color: transparent;
|
|
|
|
--button-hover-background-color: var(--sidebar-button-background-color-hover);
|
|
|
|
--button-hover-shadow: none;
|
|
|
|
|
|
|
|
--button-active-border-color: transparent;
|
|
|
|
--button-active-background-color: var(--sidebar-button-background-color-active);
|
|
|
|
--button-active-shadow: none;
|
|
|
|
|
|
|
|
--button-disabled-content-color: var(--sidebar-button-disabled-icon-color);
|
|
|
|
--button-disabled-border-color: transparent;
|
|
|
|
--button-disabled-background-color: var(--sidebar-button-background-color);
|
|
|
|
--button-disabled-shadow: none;
|
|
|
|
|
2020-11-15 19:12:48 +00:00
|
|
|
width: 100%;
|
|
|
|
height: var(--sidebar-button-height);
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2021-02-21 05:18:43 +00:00
|
|
|
border-style: none;
|
|
|
|
border-width: 0;
|
2020-11-15 19:12:48 +00:00
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
transition: background-color 0.125s ease-in-out;
|
|
|
|
outline: none;
|
|
|
|
font-size: inherit;
|
2020-12-30 03:22:56 +00:00
|
|
|
border-radius: 0;
|
2020-11-14 20:23:20 +00:00
|
|
|
}
|
2021-01-03 20:30:38 +00:00
|
|
|
:root[data-popup-action-bar-location=top] button.sidebar-button,
|
|
|
|
:root[data-popup-action-bar-location=bottom] button.sidebar-button {
|
|
|
|
width: var(--sidebar-width);
|
|
|
|
height: 100%;
|
|
|
|
}
|
2020-11-15 19:12:48 +00:00
|
|
|
button.sidebar-button.danger {
|
2021-02-21 05:18:43 +00:00
|
|
|
--button-content-color: var(--sidebar-button-icon-color);
|
|
|
|
--button-border-color: transparent;
|
|
|
|
--button-background-color: var(--sidebar-button-danger-background-color);
|
|
|
|
--button-shadow: none;
|
|
|
|
|
|
|
|
--button-hover-content-color: var(--sidebar-button-danger-icon-color);
|
|
|
|
--button-hover-border-color: transparent;
|
|
|
|
--button-hover-background-color: var(--sidebar-button-danger-background-color-hover);
|
|
|
|
--button-hover-shadow: none;
|
|
|
|
|
|
|
|
--button-active-content-color: var(--sidebar-button-danger-icon-color);
|
|
|
|
--button-active-border-color: transparent;
|
|
|
|
--button-active-background-color: var(--sidebar-button-danger-background-color-active);
|
|
|
|
--button-active-shadow: none;
|
2021-02-20 22:09:58 +00:00
|
|
|
}
|
2020-11-15 19:12:48 +00:00
|
|
|
.sidebar-button-icon {
|
2021-01-23 18:48:54 +00:00
|
|
|
--icon-size: var(--sidebar-button-icon-size) var(--sidebar-button-icon-size);
|
|
|
|
|
2020-11-15 19:12:48 +00:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-02-21 05:18:43 +00:00
|
|
|
background-color: var(--button-current-content-color);
|
2020-11-15 19:12:48 +00:00
|
|
|
transition: background-color 0.125s ease-in-out;
|
|
|
|
}
|
2021-02-21 05:18:43 +00:00
|
|
|
button.sidebar-button.sidebar-button-highlight {
|
|
|
|
--button-content-color: var(--accent-color);
|
|
|
|
--button-hover-content-color: var(--accent-color);
|
|
|
|
--button-active-content-color: var(--accent-color);
|
2020-12-30 04:38:44 +00:00
|
|
|
}
|
2017-03-04 04:25:14 +00:00
|
|
|
|
2019-11-10 01:15:55 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Search page */
|
2020-11-19 01:15:30 +00:00
|
|
|
#query-parser-container {
|
|
|
|
padding-left: var(--entry-horizontal-padding);
|
|
|
|
padding-right: var(--entry-horizontal-padding);
|
|
|
|
padding-bottom: 0.25em;
|
|
|
|
border-bottom: var(--expression-thin-border-size) solid var(--light-border-color);
|
|
|
|
}
|
2020-02-06 02:00:02 +00:00
|
|
|
#query-parser-content {
|
2019-12-25 02:45:57 +00:00
|
|
|
margin-top: 0.5em;
|
2020-11-14 20:23:20 +00:00
|
|
|
font-size: var(--query-parser-font-size);
|
2020-11-08 17:43:41 +00:00
|
|
|
white-space: pre-wrap;
|
2019-10-29 21:49:36 +00:00
|
|
|
}
|
2020-02-06 02:00:02 +00:00
|
|
|
#query-parser-content[data-term-spacing=true] .query-parser-term {
|
2019-12-25 02:45:57 +00:00
|
|
|
margin-right: 0.2em;
|
2019-10-30 10:06:25 +00:00
|
|
|
}
|
2020-08-02 22:59:35 +00:00
|
|
|
|
2019-11-10 01:15:55 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Action buttons */
|
2020-12-19 20:42:44 +00:00
|
|
|
.actions {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
float: right;
|
|
|
|
margin: -0.25em;
|
2020-12-30 02:52:04 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
.actions::after {
|
|
|
|
clear: both;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button {
|
|
|
|
cursor: pointer;
|
2020-11-25 17:39:09 +00:00
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
2020-12-19 20:42:44 +00:00
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: var(--action-button-padding);
|
|
|
|
background: transparent;
|
|
|
|
font-size: inherit;
|
2020-12-30 02:52:04 +00:00
|
|
|
box-shadow: none;
|
2021-01-24 01:24:52 +00:00
|
|
|
position: relative;
|
2020-11-25 17:39:09 +00:00
|
|
|
transition:
|
|
|
|
opacity var(--animation-duration) linear,
|
|
|
|
visibility 0s linear 0s,
|
|
|
|
filter var(--animation-duration) linear,
|
2020-12-30 02:33:57 +00:00
|
|
|
-webkit-filter var(--animation-duration) linear,
|
|
|
|
background-color var(--animation-duration) linear;
|
2020-11-25 17:39:09 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button[hidden] {
|
2020-11-25 17:39:09 +00:00
|
|
|
display: block;
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
transition:
|
|
|
|
opacity var(--animation-duration) linear,
|
|
|
|
visibility 0s linear var(--animation-duration),
|
|
|
|
filter var(--animation-duration) linear,
|
2020-12-30 02:33:57 +00:00
|
|
|
-webkit-filter var(--animation-duration) linear,
|
|
|
|
background-color var(--animation-duration) linear;
|
2020-11-25 17:39:09 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button:disabled {
|
2016-05-05 02:10:28 +00:00
|
|
|
pointer-events: none;
|
2017-03-04 04:25:14 +00:00
|
|
|
cursor: default;
|
2016-05-04 05:07:05 +00:00
|
|
|
-webkit-filter: grayscale(100%);
|
2019-10-12 20:27:49 +00:00
|
|
|
filter: grayscale(100%);
|
2020-12-30 02:33:57 +00:00
|
|
|
background-color: transparent;
|
2016-05-04 05:07:05 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button:disabled:not([hidden]) {
|
2020-11-25 17:39:09 +00:00
|
|
|
opacity: 0.25;
|
2017-01-04 06:17:53 +00:00
|
|
|
}
|
2020-12-30 02:52:04 +00:00
|
|
|
button.action-button:hover,
|
|
|
|
button.action-button:focus {
|
2020-12-30 02:33:57 +00:00
|
|
|
background-color: transparent;
|
2020-12-30 02:52:04 +00:00
|
|
|
box-shadow: none;
|
2020-12-30 02:33:57 +00:00
|
|
|
}
|
2021-02-21 01:56:20 +00:00
|
|
|
button.action-button:focus-visible {
|
|
|
|
background-color: var(--action-button-hover-color);
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button:active {
|
|
|
|
background-color: var(--action-button-active-color);
|
2020-12-30 02:52:04 +00:00
|
|
|
box-shadow: none;
|
2020-12-30 02:33:57 +00:00
|
|
|
}
|
|
|
|
button.action-button::before {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: '';
|
2020-12-19 20:42:44 +00:00
|
|
|
width: var(--action-button-size);
|
|
|
|
height: var(--action-button-size);
|
2019-12-25 02:45:57 +00:00
|
|
|
display: block;
|
2020-05-24 17:37:23 +00:00
|
|
|
background-color: transparent;
|
|
|
|
background-repeat: no-repeat;
|
2020-06-06 21:08:20 +00:00
|
|
|
background-size: contain;
|
2020-05-24 17:37:23 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button[data-icon=view-note]::before {
|
2021-02-13 01:27:43 +00:00
|
|
|
background-image: url('/images/view-note.svg');
|
2020-05-24 17:37:23 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button[data-icon=add-term-kanji]::before {
|
2021-02-13 01:27:43 +00:00
|
|
|
background-image: url('/images/add-term-kanji.svg');
|
2020-05-24 17:37:23 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button[data-icon=add-term-kana]::before {
|
2021-02-13 01:27:43 +00:00
|
|
|
background-image: url('/images/add-term-kana.svg');
|
2020-05-24 17:37:23 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button[data-icon=play-audio]::before {
|
2021-02-13 01:27:43 +00:00
|
|
|
background-image: url('/images/play-audio.svg');
|
2020-05-24 17:37:23 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
button.action-button[data-icon=source-term]::before {
|
2021-02-13 01:27:43 +00:00
|
|
|
background-image: url('/images/source-term.svg');
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2020-12-30 02:33:57 +00:00
|
|
|
.entry[data-type=term][data-expression-multi=true] .actions>button.action-button.action-play-audio {
|
2019-12-25 02:45:57 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-01-24 01:24:52 +00:00
|
|
|
.action-button-badge {
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: calc(8em / var(--font-size-no-units));
|
|
|
|
height: calc(8em / var(--font-size-no-units));
|
|
|
|
}
|
|
|
|
.action-button-badge[data-icon=cross] {
|
|
|
|
background-color: var(--danger-color);
|
|
|
|
}
|
|
|
|
.action-button-badge[data-icon=plus-thick] {
|
|
|
|
background-color: var(--success-color);
|
|
|
|
}
|
2019-12-25 02:45:57 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
|
|
|
|
/* Tags */
|
2019-12-25 02:45:57 +00:00
|
|
|
.tag {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-default-background-color);
|
|
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: stretch;
|
|
|
|
border: none;
|
|
|
|
border-right: none;
|
|
|
|
font-size: 1em;
|
2021-03-06 20:08:21 +00:00
|
|
|
height: var(--tag-height);
|
2021-02-21 18:57:28 +00:00
|
|
|
margin: calc(1em / var(--font-size-no-units)) 0.375em calc(1em / var(--font-size-no-units)) 0;
|
|
|
|
}
|
|
|
|
.tag-label {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
|
|
|
background-color: var(--tag-color);
|
2021-02-23 23:42:04 +00:00
|
|
|
border-radius: var(--tag-border-radius);
|
2021-02-21 18:57:28 +00:00
|
|
|
padding: calc(2.5em / var(--font-size-no-units)) 0.375em calc(2.5em / var(--font-size-no-units)) 0.375em;
|
2020-05-10 18:07:25 +00:00
|
|
|
color: var(--tag-text-color);
|
2020-12-18 14:43:54 +00:00
|
|
|
cursor: pointer;
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
2021-02-21 18:57:28 +00:00
|
|
|
.tag-label-content {
|
2021-02-21 22:47:46 +00:00
|
|
|
display: block;
|
2021-02-21 18:57:28 +00:00
|
|
|
font-size: var(--tag-font-size);
|
|
|
|
font-weight: var(--tag-font-weight);
|
|
|
|
}
|
|
|
|
.tag-body {
|
2021-02-25 22:48:39 +00:00
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
2021-02-21 18:57:28 +00:00
|
|
|
position: relative;
|
|
|
|
padding: 0 0.375em 0 0.375em;
|
2021-02-25 22:48:39 +00:00
|
|
|
border-radius: var(--tag-border-radius);
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2021-02-21 18:57:28 +00:00
|
|
|
}
|
|
|
|
.tag-body::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
2021-02-23 23:42:04 +00:00
|
|
|
border-radius: var(--tag-border-radius);
|
2021-02-21 18:57:28 +00:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2021-02-25 22:48:39 +00:00
|
|
|
border: var(--tag-border-size) var(--tag-border-style) var(--tag-color);
|
|
|
|
border-left: none;
|
2021-02-21 22:47:46 +00:00
|
|
|
pointer-events: none;
|
2021-02-21 18:57:28 +00:00
|
|
|
}
|
|
|
|
.tag-body-content {
|
2021-02-21 22:47:46 +00:00
|
|
|
display: block;
|
2021-02-21 18:57:28 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.tag:not(.tag-has-body)>.tag-body {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.tag.tag-has-body>.tag-label {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
2020-05-10 18:07:25 +00:00
|
|
|
.tag[data-category=name] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-name-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=expression] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-expression-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=popular] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-popular-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=frequent] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-frequent-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=archaism] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-archaism-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=dictionary] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-dictionary-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=frequency] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-frequency-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=partOfSpeech] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-part-of-speech-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=search] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-search-background-color);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
|
|
|
.tag[data-category=pitch-accent-dictionary] {
|
2021-02-21 18:57:28 +00:00
|
|
|
--tag-color: var(--tag-pitch-accent-dictionary-background-color);
|
2021-01-09 21:02:03 +00:00
|
|
|
}
|
2020-01-26 19:00:19 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
|
|
|
|
/* Entries */
|
|
|
|
.entry {
|
2020-11-19 01:15:30 +00:00
|
|
|
padding: var(--entry-vertical-padding) var(--entry-horizontal-padding);
|
|
|
|
position: relative;
|
2020-11-14 20:23:20 +00:00
|
|
|
}
|
2021-02-27 21:54:15 +00:00
|
|
|
.entry+.entry {
|
|
|
|
border-top: var(--thin-border-size) solid var(--light-border-color);
|
|
|
|
}
|
|
|
|
.entry-body {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.entry[data-definition-count='0'] .entry-body-section[data-section-type=definitions],
|
|
|
|
.entry[data-frequency-count='0'] .entry-body-section[data-section-type=frequencies],
|
|
|
|
.entry[data-pitch-accent-count='0'] .entry-body-section[data-section-type=pitch-accents] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Inflections */
|
|
|
|
.inflection-list {
|
|
|
|
display: inline-block;
|
|
|
|
color: var(--reason-text-color);
|
|
|
|
}
|
|
|
|
.inflection-list:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.inflection-list>.inflection+.inflection-separator+.inflection::before {
|
2021-02-27 22:58:28 +00:00
|
|
|
content: var(--inflection-separator);
|
|
|
|
padding: 0 0.25em;
|
2021-02-27 21:54:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Expressions */
|
|
|
|
.expression-list {
|
|
|
|
display: inline;
|
|
|
|
margin-right: var(--expression-list-end-space);
|
|
|
|
}
|
|
|
|
.expression {
|
2021-02-27 22:29:59 +00:00
|
|
|
--expression-current-text-color: var(--expression-text-color);
|
|
|
|
--expression-current-reading-text-color: var(--expression-reading-text-color);
|
|
|
|
--expression-current-furigana-text-color: var(--expression-furigana-text-color);
|
2021-02-28 19:23:51 +00:00
|
|
|
--expression-current-kanji-text-color: var(--expression-kanji-text-color);
|
|
|
|
--expression-current-kanji-border-color: var(--expression-kanji-border-color);
|
2021-02-27 22:29:59 +00:00
|
|
|
|
2021-02-27 21:54:15 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-02-27 22:29:59 +00:00
|
|
|
.entry[data-expression-multi=true] .expression[data-frequency=popular] {
|
|
|
|
--expression-current-text-color: var(--expression-text-color-popular);
|
|
|
|
--expression-current-reading-text-color: var(--expression-reading-text-color-popular);
|
|
|
|
--expression-current-furigana-text-color: var(--expression-furigana-text-color-popular);
|
2021-02-28 19:23:51 +00:00
|
|
|
--expression-current-kanji-text-color: var(--expression-kanji-text-color-popular);
|
|
|
|
--expression-current-kanji-border-color: var(--expression-kanji-border-color-popular);
|
2021-02-27 22:29:59 +00:00
|
|
|
}
|
|
|
|
.entry[data-expression-multi=true] .expression[data-frequency=rare] {
|
|
|
|
--expression-current-text-color: var(--expression-text-color-rare);
|
|
|
|
--expression-current-reading-text-color: var(--expression-reading-text-color-rare);
|
|
|
|
--expression-current-furigana-text-color: var(--expression-furigana-text-color-rare);
|
2021-02-28 19:23:51 +00:00
|
|
|
--expression-current-kanji-text-color: var(--expression-kanji-text-color-rare);
|
|
|
|
--expression-current-kanji-border-color: var(--expression-kanji-border-color-rare);
|
2021-02-27 22:29:59 +00:00
|
|
|
}
|
2021-02-27 21:54:15 +00:00
|
|
|
.expression-details {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.expression-tag-list {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.expression-list-details {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.expression-list-tag-list {
|
|
|
|
display: inline;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-text-container {
|
2020-12-19 20:42:44 +00:00
|
|
|
display: inline-block;
|
2021-02-27 19:04:52 +00:00
|
|
|
margin-left: calc(-1 * var(--expression-reading-space));
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-text-outer {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
margin-left: var(--expression-reading-space);
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-reading-outer {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: none;
|
|
|
|
position: relative;
|
|
|
|
margin-left: var(--expression-reading-space);
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-text {
|
2021-02-27 22:29:59 +00:00
|
|
|
color: var(--expression-current-text-color);
|
2020-12-19 20:42:44 +00:00
|
|
|
font-size: var(--expression-font-size);
|
2021-02-27 19:04:52 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-reading {
|
2021-02-27 22:29:59 +00:00
|
|
|
color: var(--expression-current-reading-text-color);
|
2021-02-27 19:04:52 +00:00
|
|
|
font-size: var(--expression-reading-font-size);
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-list>.expression:not(:last-of-type)>.expression-text-container>.expression-text-outer::after {
|
2021-02-27 19:04:52 +00:00
|
|
|
content: var(--expression-separator);
|
|
|
|
font-size: var(--expression-font-size);
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-list>.expression:not(:last-of-type)>.expression-text-container>.expression-reading-outer::after {
|
2021-02-27 19:04:52 +00:00
|
|
|
content: var(--expression-separator);
|
|
|
|
font-size: var(--expression-reading-font-size);
|
2020-11-27 20:22:06 +00:00
|
|
|
}
|
2021-02-27 21:54:15 +00:00
|
|
|
.expression-text>ruby>rt {
|
2021-02-27 22:29:59 +00:00
|
|
|
color: var(--expression-current-furigana-text-color);
|
2020-11-14 20:23:20 +00:00
|
|
|
}
|
2021-02-27 22:29:59 +00:00
|
|
|
.expression-kanji-link {
|
|
|
|
border-bottom: var(--expression-thin-border-size) dashed var(--expression-current-kanji-border-color);
|
|
|
|
color: var(--expression-current-kanji-text-color);
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
2020-11-26 04:22:05 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-expression-multi=true] .expression-list-details {
|
2021-01-09 21:02:03 +00:00
|
|
|
display: block;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-term-display-mode=ruby-and-reading] .expression-text-outer::after,
|
|
|
|
:root[data-term-display-mode=term-and-reading] .expression-text-outer::after {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-term-display-mode=ruby-and-reading] .expression-reading-outer,
|
|
|
|
:root[data-term-display-mode=term-and-reading] .expression-reading-outer {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-term-display-mode=ruby-and-reading] .expression[data-reading-is-same=true] .expression-text-outer::after,
|
|
|
|
:root[data-term-display-mode=term-and-reading] .expression[data-reading-is-same=true] .expression-text-outer::after {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-term-display-mode=ruby-and-reading] .expression[data-reading-is-same=true] .expression-reading-outer,
|
|
|
|
:root[data-term-display-mode=term-and-reading] .expression[data-reading-is-same=true] .expression-reading-outer {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-term-display-mode=term-and-reading] .expression-text>ruby>rt {
|
2021-02-27 19:04:52 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2019-12-25 02:45:57 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
|
2020-12-19 20:42:44 +00:00
|
|
|
/* Entry indicator */
|
|
|
|
.entry-current-indicator {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: calc(-1 * var(--main-content-horizontal-padding));
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 0;
|
|
|
|
background-color: var(--entry-current-indicator-color);
|
|
|
|
visibility: hidden;
|
|
|
|
transition:
|
|
|
|
width var(--entry-current-indicator-transition-duration) linear,
|
|
|
|
visibility 0s linear var(--entry-current-indicator-transition-duration);
|
|
|
|
}
|
|
|
|
.entry.entry-current .entry-current-indicator {
|
|
|
|
width: var(--entry-current-indicator-width);
|
|
|
|
visibility: visible;
|
|
|
|
transition:
|
|
|
|
width var(--entry-current-indicator-transition-duration) linear,
|
|
|
|
visibility 0s linear 0s;
|
|
|
|
}
|
|
|
|
:root[data-popup-current-indicator-mode=bar-right] .entry-current-indicator,
|
|
|
|
:root[data-popup-current-indicator-mode=dot-right] .entry-current-indicator {
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
.entry-current-indicator-inner {
|
|
|
|
display: none;
|
|
|
|
pointer-events: auto;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
top: 0;
|
|
|
|
background-color: var(--entry-current-indicator-color);
|
2020-12-19 20:57:20 +00:00
|
|
|
transition: none;
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
.entry.entry-current .entry-current-indicator-inner {
|
|
|
|
height: var(--entry-current-indicator-width);
|
2021-01-03 20:30:38 +00:00
|
|
|
transition: height var(--entry-current-indicator-transition-duration) linear;
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
:root[data-popup-current-indicator-mode=dot-left] .entry-current-indicator,
|
|
|
|
:root[data-popup-current-indicator-mode=dot-right] .entry-current-indicator {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
:root[data-popup-current-indicator-mode=dot-left] .entry-current-indicator-inner,
|
|
|
|
:root[data-popup-current-indicator-mode=dot-right] .entry-current-indicator-inner {
|
|
|
|
display: block;
|
|
|
|
position: sticky;
|
2021-01-03 20:30:38 +00:00
|
|
|
transition: height var(--entry-current-indicator-transition-duration) linear;
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
:root[data-popup-current-indicator-mode=none] .entry-current-indicator,
|
|
|
|
:root[data-popup-current-indicator-mode=asterisk] .entry-current-indicator,
|
|
|
|
:root[data-popup-current-indicator-mode=triangle] .entry-current-indicator {
|
|
|
|
display: none;
|
2020-12-19 20:57:20 +00:00
|
|
|
transition: none;
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Triangle entry indicator */
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-current-indicator {
|
2020-12-19 20:42:44 +00:00
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
left: calc(-1 * var(--main-content-horizontal-padding));
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
opacity: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
transition:
|
|
|
|
opacity var(--entry-current-indicator-transition-duration) linear,
|
|
|
|
visibility 0s linear var(--entry-current-indicator-transition-duration);
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-text .expression-current-indicator {
|
2020-12-20 01:16:45 +00:00
|
|
|
font-size: calc(1em / var(--expression-font-size-no-units));
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry.entry-current .expression-current-indicator {
|
2020-12-19 20:42:44 +00:00
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
transition:
|
|
|
|
opacity var(--entry-current-indicator-transition-duration) linear,
|
|
|
|
visibility 0s linear 0s;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression-current-indicator::after {
|
2020-12-19 20:42:44 +00:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
width: var(--entry-current-indicator-triangle-size);
|
|
|
|
height: calc(2 * var(--entry-current-indicator-triangle-size));
|
|
|
|
left: calc(-1 * var(--entry-horizontal-padding));
|
|
|
|
top: calc(50% - var(--entry-current-indicator-triangle-size));
|
|
|
|
background-color: var(--entry-current-indicator-color);
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center center;
|
|
|
|
mask-mode: alpha;
|
|
|
|
mask-size: contain;
|
2021-02-13 01:27:43 +00:00
|
|
|
mask-image: url(/images/material-right-arrow.svg);
|
2020-12-19 20:42:44 +00:00
|
|
|
-webkit-mask-repeat: no-repeat;
|
|
|
|
-webkit-mask-position: center center;
|
|
|
|
-webkit-mask-mode: alpha;
|
|
|
|
-webkit-mask-size: contain;
|
2021-02-13 01:27:43 +00:00
|
|
|
-webkit-mask-image: url(/images/material-right-arrow.svg);
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.expression:not(:first-of-type) .expression-current-indicator,
|
|
|
|
:root:not([data-popup-current-indicator-mode=triangle]) .expression-current-indicator {
|
2020-12-19 20:42:44 +00:00
|
|
|
display: none;
|
2020-12-19 20:57:20 +00:00
|
|
|
transition: none;
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Old entry indicator */
|
|
|
|
.entry-current-indicator-icon {
|
|
|
|
display: block;
|
|
|
|
padding: var(--action-button-padding);
|
|
|
|
}
|
|
|
|
.entry-current-indicator-icon[hidden],
|
|
|
|
.entry:not(.entry-current) .entry-current-indicator-icon,
|
|
|
|
:root:not([data-popup-current-indicator-mode=asterisk]) .entry-current-indicator-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.entry-current-indicator-icon::before {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: '';
|
2020-12-19 20:42:44 +00:00
|
|
|
width: var(--action-button-size);
|
|
|
|
height: var(--action-button-size);
|
|
|
|
display: block;
|
|
|
|
background-color: transparent;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
2021-02-13 01:27:43 +00:00
|
|
|
background-image: url('/images/entry-current.svg');
|
2020-12-19 20:42:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Merged term styles */
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-expression-multi=true] .expression-list .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;
|
2020-03-28 16:01:55 +00:00
|
|
|
z-index: 1;
|
2017-10-07 04:02:50 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-expression-multi=true] .expression-list>.expression:not(:last-of-type) .expression-details {
|
2020-11-14 20:23:20 +00:00
|
|
|
left: calc(-1 * var(--expression-font-size));
|
2020-11-14 02:11:29 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-expression-multi=true] .expression:hover .expression-details {
|
2019-12-25 02:45:57 +00:00
|
|
|
visibility: visible;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-expression-multi=true] .expression-list .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
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry:not([data-expression-multi=true]) .expression-list .expression-details>.action-play-audio {
|
2020-03-01 19:45:57 +00:00
|
|
|
display: none;
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-expression-multi=true] .expression-list .expression-tag-list {
|
2019-12-25 02:45:57 +00:00
|
|
|
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
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.entry[data-type=term][data-expression-multi=true] .expression-list-tag-list>.tag[data-category=search] {
|
2021-02-17 02:19:52 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2017-10-09 21:56:47 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
|
|
|
|
/* Definitions */
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-list {
|
2019-12-25 02:45:57 +00:00
|
|
|
margin: 0;
|
2020-11-27 20:22:06 +00:00
|
|
|
padding: 0 0 0 var(--list-padding1);
|
2019-12-25 02:45:57 +00:00
|
|
|
list-style-type: decimal;
|
2016-04-29 03:36:55 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-list[data-count='0'],
|
|
|
|
.definition-list[data-count='1'] {
|
2020-11-27 20:22:06 +00:00
|
|
|
padding-left: 0;
|
2019-12-25 02:45:57 +00:00
|
|
|
list-style-type: none;
|
2017-10-24 20:30:55 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-list {
|
2020-11-27 20:22:06 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0 0 0 var(--list-padding2);
|
2019-12-25 02:45:57 +00:00
|
|
|
list-style-type: circle;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-list[data-count='0'],
|
|
|
|
.glossary-list[data-count='1'] {
|
2020-11-27 20:22:06 +00:00
|
|
|
padding-left: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-item::marker,
|
|
|
|
.glossary-item::marker {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary {
|
2021-02-08 22:52:35 +00:00
|
|
|
white-space: pre-line;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-disambiguation-list {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2021-02-25 23:48:42 +00:00
|
|
|
padding-right: var(--disambiguation-space);
|
2020-12-06 02:17:42 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-disambiguation-list[data-count='0'] {
|
2019-12-25 02:45:57 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-disambiguation-list::before {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-prefix);
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-disambiguation-list::after {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-suffix);
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.definition-disambiguation+.definition-disambiguation::before {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-separator);
|
2019-12-25 02:45:57 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-separator,
|
|
|
|
.inflection-separator {
|
2020-11-14 20:23:20 +00:00
|
|
|
display: inline;
|
|
|
|
font-size: 0;
|
|
|
|
opacity: 0;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2019-12-25 02:45:57 +00:00
|
|
|
|
2021-01-09 15:41:17 +00:00
|
|
|
/* Frequencies */
|
2021-02-25 22:48:39 +00:00
|
|
|
.frequency-group-item {
|
|
|
|
display: inline;
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
.frequency-item {
|
|
|
|
display: inline;
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
|
|
|
.frequency-disambiguation {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2021-02-25 23:48:42 +00:00
|
|
|
padding-right: var(--disambiguation-space);
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
|
|
|
.frequency-disambiguation-separator::before {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-reading-separator);
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
|
|
|
.frequency-disambiguation::before {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-prefix);
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
|
|
|
.frequency-disambiguation::after {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-suffix);
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
2021-01-09 21:07:47 +00:00
|
|
|
.frequency-disambiguation-reading {
|
|
|
|
display: inline;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
.frequency-body::after {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
display: inline;
|
|
|
|
color: var(--text-color-light3);
|
|
|
|
}
|
2021-01-09 15:41:17 +00:00
|
|
|
.entry[data-unique-expression-count='1'] .frequency-item[data-has-reading=false] .frequency-disambiguation,
|
|
|
|
.entry[data-unique-reading-count='1'][data-unique-expression-count='1'] .frequency-disambiguation,
|
|
|
|
.frequency-item[data-reading-is-same=true] .frequency-disambiguation-separator,
|
|
|
|
.frequency-item[data-reading-is-same=true] .frequency-disambiguation-reading,
|
|
|
|
.frequency-item[data-has-reading=false] .frequency-disambiguation-separator,
|
|
|
|
.frequency-item[data-has-reading=false] .frequency-disambiguation-reading,
|
|
|
|
.entry[data-unique-expression-count='1'] .frequency-disambiguation-separator,
|
|
|
|
.entry[data-unique-expression-count='1'] .frequency-disambiguation-expression,
|
|
|
|
.entry[data-unique-reading-count='1'] .frequency-disambiguation-separator,
|
|
|
|
.entry[data-unique-reading-count='1'] .frequency-disambiguation-reading {
|
2020-03-28 16:31:41 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
:root[data-frequency-display-mode=tags] .frequency-group-tag,
|
|
|
|
:root[data-frequency-display-mode=split-tags] .frequency-group-tag {
|
|
|
|
margin: 0;
|
2021-01-09 15:41:17 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
:root[data-frequency-display-mode=tags] .frequency-group-tag>.tag-label,
|
|
|
|
:root[data-frequency-display-mode=split-tags] .frequency-group-tag>.tag-label {
|
|
|
|
display: none;
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
:root[data-frequency-display-mode=tags] .frequency-group-tag>.tag-body,
|
|
|
|
:root[data-frequency-display-mode=split-tags] .frequency-group-tag>.tag-body {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
2021-01-09 15:41:17 +00:00
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
:root[data-frequency-display-mode=tags] .frequency-group-tag>.tag-body::before,
|
|
|
|
:root[data-frequency-display-mode=split-tags] .frequency-group-tag>.tag-body::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-list,
|
|
|
|
:root[data-frequency-display-mode=split-tags] .frequency-list {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-tag,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-tag,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-tag,
|
|
|
|
:root[data-frequency-display-mode=split-tags-grouped] .frequency-tag {
|
|
|
|
margin: 0;
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-tag>.tag-label,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-tag>.tag-label,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-tag>.tag-label,
|
|
|
|
:root[data-frequency-display-mode=split-tags-grouped] .frequency-tag>.tag-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-tag>.tag-body,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-tag>.tag-body,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-tag>.tag-body,
|
|
|
|
:root[data-frequency-display-mode=split-tags-grouped] .frequency-tag>.tag-body {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-tag>.tag-body::before,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-tag>.tag-body::before,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-tag>.tag-body::before,
|
|
|
|
:root[data-frequency-display-mode=split-tags-grouped] .frequency-tag>.tag-body::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-body,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-body,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-body,
|
|
|
|
:root[data-frequency-display-mode=split-tags-grouped] .frequency-body {
|
2021-01-09 15:41:17 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-item:not(:last-child)>.frequency-tag>.tag-body>.frequency-body::after,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-item:not(:last-child)>.frequency-tag>.tag-body>.frequency-body::after,
|
|
|
|
:root[data-frequency-display-mode=split-tags-grouped] .frequency-item:not(:last-child)>.frequency-tag>.tag-body>.frequency-body::after {
|
2021-01-09 15:41:17 +00:00
|
|
|
content: var(--compact-list-separator);
|
2021-02-25 22:48:39 +00:00
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-tag>.tag-body::before,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-group-tag>.tag-body::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-tag.tag.tag-has-body>.tag-label,
|
|
|
|
:root[data-frequency-display-mode=inline-list] .frequency-group-tag.tag.tag-has-body>.tag-label {
|
|
|
|
border-radius: var(--tag-border-radius);
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-tag>.tag-body::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-tag>.tag-body {
|
|
|
|
background-color: var(--tag-color);
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-body {
|
|
|
|
font-size: var(--tag-font-size);
|
|
|
|
font-weight: var(--tag-font-weight);
|
|
|
|
color: var(--tag-text-color);
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-tag>.tag-label>.tag-label-content::after {
|
|
|
|
content: ':';
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-group-tag>.tag-body::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-group-tag>.tag-body {
|
|
|
|
background-color: var(--tag-color);
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-list {
|
|
|
|
font-size: var(--tag-font-size);
|
|
|
|
font-weight: var(--tag-font-weight);
|
|
|
|
color: var(--tag-text-color);
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-group-tag>.tag-label>.tag-label-content::after {
|
|
|
|
content: ':';
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-disambiguation,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-disambiguation,
|
|
|
|
:root[data-frequency-display-mode=tags] .frequency-body::after,
|
|
|
|
:root[data-frequency-display-mode=tags-grouped] .frequency-body::after {
|
|
|
|
color: inherit;
|
|
|
|
font-weight: normal;
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-list {
|
|
|
|
list-style-type: decimal;
|
|
|
|
padding: 0 0 0 var(--list-padding1);
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-item {
|
|
|
|
display: list-item;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-item::marker {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-03-28 16:31:41 +00:00
|
|
|
}
|
2021-02-25 22:48:39 +00:00
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-tag {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-tag>.tag-label {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-list {
|
|
|
|
list-style-type: circle;
|
|
|
|
padding: 0 0 0 var(--list-padding2);
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-item {
|
|
|
|
display: list-item;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-item::marker {
|
|
|
|
color: var(--text-color-light3);
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-list[data-count='1'] {
|
|
|
|
list-style-type: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-list[data-count='1']>.frequency-group-item {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-item[data-count='1']>.frequency-group-tag>.tag-body {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-item[data-count='1']>.frequency-group-tag>.tag-body>.frequency-body {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-item[data-count='1'] .frequency-list {
|
|
|
|
list-style-type: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
:root[data-frequency-display-mode=list] .frequency-group-item[data-count='1'] .frequency-item {
|
2021-01-09 15:41:17 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Pitch accent styles */
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-group-list {
|
2020-03-01 19:15:28 +00:00
|
|
|
margin: 0;
|
2020-11-27 20:22:06 +00:00
|
|
|
padding: 0 0 0 var(--list-padding1);
|
2020-03-01 19:15:28 +00:00
|
|
|
list-style-type: decimal;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-group-list[data-count='0'],
|
|
|
|
.pitch-accent-group-list[data-count='1'] {
|
2020-11-27 20:22:06 +00:00
|
|
|
padding-left: 0;
|
2020-03-01 19:15:28 +00:00
|
|
|
list-style-type: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-list {
|
2020-11-27 20:22:06 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0 0 0 var(--list-padding2);
|
2020-03-01 19:15:28 +00:00
|
|
|
list-style-type: circle;
|
|
|
|
display: block;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-list[data-count='0'],
|
|
|
|
.pitch-accent-list[data-count='1'] {
|
2020-11-27 20:22:06 +00:00
|
|
|
padding-left: 0;
|
|
|
|
list-style-type: none;
|
2020-03-01 19:15:28 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-group::marker,
|
|
|
|
.pitch-accent::marker {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-11-27 20:22:06 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent {
|
2020-03-01 19:15:28 +00:00
|
|
|
display: list-item;
|
2020-11-27 20:22:06 +00:00
|
|
|
line-height: 1.5;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-list[data-count='0'] .pitch-accent,
|
|
|
|
.pitch-accent-list[data-count='1'] .pitch-accent {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: inline;
|
2020-03-01 19:15:28 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-group-tag-list {
|
2020-03-01 19:15:28 +00:00
|
|
|
margin-right: 0.375em;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-disambiguation-list {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2021-02-25 23:48:42 +00:00
|
|
|
padding-right: var(--disambiguation-space);
|
2020-03-28 18:52:44 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-disambiguation-list::before {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-prefix);
|
2020-03-01 19:15:28 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-disambiguation-list::after {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-suffix);
|
2020-03-28 18:52:44 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-disambiguation+.pitch-accent-disambiguation::before {
|
2021-02-25 23:48:42 +00:00
|
|
|
content: var(--disambiguation-separator);
|
2020-03-01 19:15:28 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-disambiguation-list[data-count='0'] {
|
2020-03-29 15:27:35 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-tag-list:not([data-count='0']) {
|
2020-03-01 19:15:28 +00:00
|
|
|
margin-right: 0.375em;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-character {
|
2020-03-01 19:15:28 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-character::before {
|
2020-05-10 18:07:25 +00:00
|
|
|
border-color: var(--pitch-accent-annotation-color);
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-character[data-pitch='high']::before {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: '';
|
2020-03-01 19:15:28 +00:00
|
|
|
display: block;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 0.1em;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 0;
|
|
|
|
border-top-width: 0.1em;
|
|
|
|
border-top-style: solid;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-character[data-pitch='high'][data-pitch-next='low']::before {
|
2020-03-01 19:15:28 +00:00
|
|
|
right: -0.1em;
|
|
|
|
height: 0.4em;
|
|
|
|
border-right-width: 0.1em;
|
|
|
|
border-right-style: solid;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-character[data-pitch='high'][data-pitch-next='low'] {
|
2020-03-01 19:15:28 +00:00
|
|
|
padding-right: 0.1em;
|
|
|
|
margin-right: 0.1em;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-position::before {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: ' [';
|
2020-03-01 19:15:28 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-position::after {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: ']';
|
2020-03-01 19:15:28 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-details {
|
2020-03-01 19:15:28 +00:00
|
|
|
display: inline-block;
|
|
|
|
height: 0;
|
|
|
|
padding: 0 0.25em;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2020-03-01 19:38:16 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Pitch accent graph styles */
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-graph {
|
2020-03-01 19:20:11 +00:00
|
|
|
display: block;
|
|
|
|
height: 1.5em;
|
|
|
|
transform: translateY(-0.875em);
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-graph-line,
|
|
|
|
.pitch-accent-graph-line-tail {
|
2020-03-01 19:20:11 +00:00
|
|
|
fill: none;
|
2020-05-10 18:07:25 +00:00
|
|
|
stroke: var(--pitch-accent-annotation-color);
|
2020-03-01 19:20:11 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.pitch-accent-graph-line-tail {
|
2020-03-01 19:20:11 +00:00
|
|
|
stroke-dasharray: 5 5;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
#pitch-accent-graph-dot {
|
2020-05-10 18:07:25 +00:00
|
|
|
fill: var(--pitch-accent-annotation-color);
|
|
|
|
stroke: var(--pitch-accent-annotation-color);
|
2020-03-01 19:20:11 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
#pitch-accent-graph-dot-downstep {
|
2020-03-01 19:20:11 +00:00
|
|
|
fill: none;
|
2020-05-10 18:07:25 +00:00
|
|
|
stroke: var(--pitch-accent-annotation-color);
|
2020-03-01 19:20:11 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
#pitch-accent-graph-dot-downstep>circle:last-of-type {
|
2020-05-10 18:07:25 +00:00
|
|
|
fill: var(--pitch-accent-annotation-color);
|
2020-03-01 19:20:11 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
#pitch-accent-graph-triangle {
|
2020-03-01 19:20:11 +00:00
|
|
|
fill: none;
|
2020-05-10 18:07:25 +00:00
|
|
|
stroke: var(--pitch-accent-annotation-color);
|
2020-03-01 19:20:11 +00:00
|
|
|
stroke-width: 5;
|
|
|
|
}
|
|
|
|
|
2020-05-10 18:07:25 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Glossary images */
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-container {
|
2020-04-11 18:23:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
white-space: nowrap;
|
|
|
|
max-width: 100%;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: top;
|
|
|
|
line-height: 0;
|
2020-11-14 20:23:20 +00:00
|
|
|
font-size: calc(1em / var(--font-size-no-units));
|
2020-04-11 18:23:49 +00:00
|
|
|
overflow: hidden;
|
2020-05-10 18:07:25 +00:00
|
|
|
background-color: var(--glossary-image-background-color);
|
2020-04-11 18:23:49 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-link {
|
2020-04-11 18:23:49 +00:00
|
|
|
cursor: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-link[href]:hover {
|
2020-04-11 18:23:49 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-container-overlay {
|
2020-04-11 18:23:49 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-11-14 20:23:20 +00:00
|
|
|
font-size: calc(1em * var(--font-size-no-units));
|
|
|
|
line-height: var(--line-height);
|
2020-04-11 18:23:49 +00:00
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
white-space: normal;
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-04-11 18:23:49 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-item[data-has-image=true][data-image-load-state=load-error] .glossary-image-container-overlay::after {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: 'Image failed to load';
|
2020-04-11 18:23:49 +00:00
|
|
|
display: table-cell;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
padding: 0.25em;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image {
|
2020-04-11 18:23:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: top;
|
|
|
|
object-fit: contain;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image:not([src]) {
|
2020-04-11 18:23:49 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image[data-pixelated=true] {
|
2020-04-11 18:23:49 +00:00
|
|
|
image-rendering: auto;
|
|
|
|
image-rendering: -moz-crisp-edges;
|
|
|
|
image-rendering: -webkit-optimize-contrast;
|
|
|
|
image-rendering: pixelated;
|
|
|
|
image-rendering: crisp-edges;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-aspect-ratio-sizer {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: '';
|
2020-04-11 18:23:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
vertical-align: top;
|
|
|
|
font-size: 0;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-link-text::before {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: '[';
|
2020-04-11 18:23:49 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-link-text::after {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: ']';
|
2020-04-11 18:23:49 +00:00
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
.glossary-image-description {
|
2021-02-08 22:52:35 +00:00
|
|
|
white-space: pre-line;
|
|
|
|
}
|
2020-04-11 18:23:49 +00:00
|
|
|
|
2020-03-01 19:20:11 +00:00
|
|
|
|
2020-11-14 20:23:20 +00:00
|
|
|
/* Kanji */
|
2020-12-20 01:16:45 +00:00
|
|
|
.kanji-glyph-container {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
}
|
2019-12-25 02:45:57 +00:00
|
|
|
.kanji-glyph {
|
2021-01-03 20:30:38 +00:00
|
|
|
font-family: kanji-stroke-orders, sans-serif;
|
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;
|
2020-12-31 20:07:45 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: -1;
|
2016-08-08 02:56:50 +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>* {
|
2020-11-14 20:23:20 +00:00
|
|
|
border-top: var(--thin-border-size) solid var(--medium-border-color);
|
2019-12-25 02:45:57 +00:00
|
|
|
text-align: left;
|
|
|
|
vertical-align: top;
|
|
|
|
padding: 0.36em;
|
|
|
|
margin: 0;
|
2017-09-15 21:03:05 +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-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-12-25 02:45:57 +00:00
|
|
|
.kanji-glyph-data dd {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.kanji-glossary-list {
|
|
|
|
margin: 0;
|
2020-11-27 20:22:06 +00:00
|
|
|
padding: 0 0 0 var(--list-padding1);
|
2019-12-25 02:45:57 +00:00
|
|
|
list-style-type: decimal;
|
2019-10-12 20:27:49 +00:00
|
|
|
}
|
2021-01-03 20:30:38 +00:00
|
|
|
.kanji-glossary-list[data-count='0'],
|
|
|
|
.kanji-glossary-list[data-count='1'] {
|
2020-11-27 20:22:06 +00:00
|
|
|
padding-left: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
.kanji-glossary-item::marker {
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-05-10 18:07:25 +00:00
|
|
|
}
|
2021-02-08 22:52:35 +00:00
|
|
|
.kanji-glossary {
|
|
|
|
white-space: pre-line;
|
|
|
|
}
|
2020-11-19 01:06:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Progress bar */
|
|
|
|
@keyframes progress-bar-indeterminant1a {
|
|
|
|
0% { left: 0; }
|
|
|
|
25% { left: 0; }
|
|
|
|
75% { left: 100%; }
|
|
|
|
100% { left: 100%; }
|
|
|
|
}
|
|
|
|
@keyframes progress-bar-indeterminant1b {
|
|
|
|
0% { right: 100%; }
|
|
|
|
50% { right: 0; }
|
|
|
|
100% { right: 0; }
|
|
|
|
}
|
|
|
|
@keyframes progress-bar-indeterminant2a {
|
|
|
|
0% { left: 0; }
|
|
|
|
25% { left: 0; }
|
|
|
|
100% { left: 100%; }
|
|
|
|
}
|
|
|
|
@keyframes progress-bar-indeterminant2b {
|
|
|
|
0% { right: 100%; }
|
|
|
|
75% { right: 0; }
|
|
|
|
100% { right: 0; }
|
|
|
|
}
|
|
|
|
.progress-bar-indeterminant {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
background-color: var(--progress-bar-indicator-color);
|
|
|
|
position: relative;
|
|
|
|
transition:
|
|
|
|
height var(--progress-bar-active-transition-duration) linear var(--progress-bar-active-transition-duration),
|
|
|
|
background-color var(--progress-bar-active-transition-duration) linear;
|
|
|
|
}
|
|
|
|
.progress-bar-indeterminant[data-active=true] {
|
|
|
|
height: var(--progress-bar-height);
|
|
|
|
background-color: var(--progress-bar-track-color);
|
|
|
|
transition:
|
|
|
|
height var(--progress-bar-active-transition-duration) linear var(--progress-bar-active-transition-start-delay),
|
|
|
|
background-color 0s linear;
|
|
|
|
}
|
|
|
|
.progress-bar-indeterminant[hidden]:not([data-active=true]) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.progress-bar-indeterminant::before,
|
|
|
|
.progress-bar-indeterminant::after {
|
2021-01-03 20:30:38 +00:00
|
|
|
content: '';
|
2020-11-19 01:06:02 +00:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 100%;
|
|
|
|
background-color: var(--progress-bar-indicator-color);
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
.progress-bar-indeterminant:not([hidden])::before {
|
|
|
|
animation:
|
|
|
|
progress-bar-indeterminant1a var(--progress-bar-animation-duration) infinite ease-in-out var(--progress-bar-active-transition-start-delay),
|
|
|
|
progress-bar-indeterminant1b var(--progress-bar-animation-duration) infinite ease-in-out var(--progress-bar-active-transition-start-delay);
|
|
|
|
}
|
|
|
|
.progress-bar-indeterminant:not([hidden])::after {
|
|
|
|
animation:
|
|
|
|
progress-bar-indeterminant2a var(--progress-bar-animation-duration) infinite ease-in-out calc(var(--progress-bar-active-transition-start-delay) + 0.375 * var(--progress-bar-animation-duration)),
|
|
|
|
progress-bar-indeterminant2b var(--progress-bar-animation-duration) infinite ease-in-out calc(var(--progress-bar-active-transition-start-delay) + 0.375 * var(--progress-bar-animation-duration));
|
|
|
|
}
|
|
|
|
.top-progress-bar-container {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
height: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
2020-11-27 20:22:06 +00:00
|
|
|
|
|
|
|
|
2020-12-09 01:31:02 +00:00
|
|
|
/* Frame resizer */
|
|
|
|
.frame-resizer-container {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 100;
|
|
|
|
background: transparent;
|
|
|
|
pointer-events: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
.frame-resizer-sizer1 {
|
|
|
|
padding-top: 100%;
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
.frame-resizer-sizer2 {
|
|
|
|
display: inline-block;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
.frame-resizer-sizer2.frame-resizer-sizer2-with-min-size {
|
|
|
|
min-width: 1em;
|
|
|
|
}
|
|
|
|
.frame-resizer-svg {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 75%;
|
|
|
|
height: 75%;
|
|
|
|
}
|
|
|
|
.frame-resizer-handle {
|
2020-12-30 02:33:57 +00:00
|
|
|
fill: var(--text-color);
|
2020-12-09 01:31:02 +00:00
|
|
|
opacity: 0.125;
|
|
|
|
cursor: se-resize;
|
|
|
|
pointer-events: auto;
|
|
|
|
transition:
|
|
|
|
fill var(--animation-duration) linear,
|
|
|
|
opacity var(--animation-duration) linear;
|
|
|
|
}
|
2020-12-18 17:06:39 +00:00
|
|
|
.frame-resizer-handle:hover,
|
|
|
|
:root[data-is-resizing=true] .frame-resizer-handle {
|
2020-12-09 01:31:02 +00:00
|
|
|
fill: var(--accent-color);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-12-18 14:43:54 +00:00
|
|
|
/* Footer notifications */
|
|
|
|
.footer-notification {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
2021-01-30 03:12:24 +00:00
|
|
|
align-items: flex-start;
|
2020-12-18 14:43:54 +00:00
|
|
|
pointer-events: auto;
|
|
|
|
border-radius: 0.25em;
|
|
|
|
background-color: var(--notification-background-color);
|
|
|
|
box-shadow: 0 0.125em 0.25em 0 var(--notification-shadow-color);
|
|
|
|
color: var(--notification-text-color);
|
|
|
|
margin: 0.5em;
|
2021-01-30 03:12:24 +00:00
|
|
|
padding: 0;
|
2020-12-18 14:43:54 +00:00
|
|
|
transition: opacity var(--animation-duration) ease-out;
|
2021-01-30 03:12:24 +00:00
|
|
|
position: relative;
|
|
|
|
overflow: auto;
|
|
|
|
max-height: calc(0.5em * 2 + var(--line-height) * 4 * 1em);
|
2020-12-18 14:43:54 +00:00
|
|
|
}
|
|
|
|
.footer-notification[hidden] {
|
|
|
|
display: flex;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity var(--animation-duration) ease-in;
|
|
|
|
}
|
|
|
|
.footer-notification-body {
|
|
|
|
flex: 1 1 auto;
|
2021-01-30 03:12:24 +00:00
|
|
|
padding: 0.5em 0.75em;
|
|
|
|
}
|
|
|
|
.footer-notification-close-button-container {
|
|
|
|
align-self: stretch;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0.25em 0.75em 0.25em 0;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2020-12-18 14:43:54 +00:00
|
|
|
}
|
2021-02-21 05:18:43 +00:00
|
|
|
button.footer-notification-close-button {
|
|
|
|
--button-content-color: var(--notification-text-color);
|
|
|
|
--button-border-color: transparent;
|
|
|
|
--button-background-color: transparent;
|
|
|
|
--button-shadow: none;
|
|
|
|
|
|
|
|
--button-hover-border-color: transparent;
|
|
|
|
--button-hover-background-color: transparent;
|
|
|
|
--button-hover-shadow: none;
|
|
|
|
|
|
|
|
--button-active-border-color: transparent;
|
|
|
|
--button-active-background-color: transparent;
|
|
|
|
--button-active-shadow: none;
|
|
|
|
|
|
|
|
--button-focus-visible-border-color: transparent;
|
|
|
|
--button-focus-visible-background-color: var(--notification-background-color-light);
|
|
|
|
--button-focus-visible-shadow: none;
|
|
|
|
|
2020-12-18 14:43:54 +00:00
|
|
|
flex: 0 0 auto;
|
|
|
|
margin: -0.25em;
|
|
|
|
padding: 0.5em;
|
2021-02-21 05:18:43 +00:00
|
|
|
border-style: none;
|
|
|
|
border-width: 0;
|
2020-12-18 14:43:54 +00:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: inherit;
|
2021-02-21 01:56:20 +00:00
|
|
|
}
|
2020-12-18 14:43:54 +00:00
|
|
|
.footer-notification-close-button-icon {
|
|
|
|
display: block;
|
2020-12-31 04:00:52 +00:00
|
|
|
width: calc(16em / var(--font-size-no-units));
|
|
|
|
height: calc(16em / var(--font-size-no-units));
|
2021-02-21 05:18:43 +00:00
|
|
|
background-color: var(--button-content-color);
|
2020-12-18 14:43:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-12-30 04:38:44 +00:00
|
|
|
/* Overlays */
|
|
|
|
.overlay-panel-container {
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 6;
|
|
|
|
}
|
|
|
|
.overlay-panel {
|
|
|
|
pointer-events: auto;
|
|
|
|
background-color: var(--background-color);
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: var(--main-content-size);
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: var(--main-content-vertical-padding) var(--main-content-horizontal-padding);
|
|
|
|
overflow-y: scroll;
|
|
|
|
transform: none;
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
transition:
|
|
|
|
opacity var(--animation-duration2) ease-out,
|
|
|
|
visibility 0s linear,
|
|
|
|
transform var(--animation-duration2) ease-out;
|
|
|
|
}
|
|
|
|
.overlay-panel[hidden] {
|
2020-12-30 18:49:48 +00:00
|
|
|
transform: translate(var(--overlay-panel-translate-distance), 0);
|
2020-12-30 04:38:44 +00:00
|
|
|
opacity: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
transition:
|
|
|
|
opacity var(--animation-duration2) ease-in,
|
|
|
|
visibility 0s linear var(--animation-duration2),
|
|
|
|
transform var(--animation-duration2) ease-in;
|
|
|
|
}
|
|
|
|
.overlay-panel[hidden]:not(.hidden-animating) {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-12-30 18:49:48 +00:00
|
|
|
:root[data-popup-action-bar-location=left] .overlay-panel[hidden] {
|
|
|
|
transform: translate(calc(-1 * var(--overlay-panel-translate-distance)), 0);
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=top] .overlay-panel[hidden] {
|
|
|
|
transform: translate(0, calc(-1 * var(--overlay-panel-translate-distance)));
|
|
|
|
}
|
|
|
|
:root[data-popup-action-bar-location=bottom] .overlay-panel[hidden] {
|
|
|
|
transform: translate(0, var(--overlay-panel-translate-distance));
|
|
|
|
}
|
2020-12-30 04:38:44 +00:00
|
|
|
.overlay-panel-inner {
|
|
|
|
padding: var(--entry-vertical-padding) var(--entry-horizontal-padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Profile panel */
|
|
|
|
.profile-list {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
.profile-list-item {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.profile-list-item-selection {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
text-align: center;
|
|
|
|
padding: 0.25em 0.5em 0.25em 0;
|
|
|
|
}
|
|
|
|
.profile-list-item-name {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
padding: 0.25em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-01-24 02:13:01 +00:00
|
|
|
/* Audio menu */
|
2021-02-16 02:34:10 +00:00
|
|
|
.audio-button-popup-menu[data-show-icons=false] .popup-menu-item-audio-button .popup-menu-item-icon {
|
2021-01-24 02:13:01 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-15 19:31:16 +00:00
|
|
|
.audio-button-popup-menu .popup-menu-item-icon[data-icon=checkmark] {
|
2021-01-24 02:13:01 +00:00
|
|
|
background-color: var(--success-color);
|
|
|
|
}
|
2021-02-15 19:31:16 +00:00
|
|
|
.audio-button-popup-menu .popup-menu-item-icon[data-icon=cross] {
|
2021-01-24 02:13:01 +00:00
|
|
|
background-color: var(--danger-color);
|
|
|
|
}
|
2021-02-15 19:31:16 +00:00
|
|
|
.audio-button-popup-menu .popup-menu-item-group[data-source-in-options=false][data-valid=null] .popup-menu-item {
|
2021-01-24 02:13:01 +00:00
|
|
|
color: var(--text-color-light1);
|
|
|
|
}
|
2021-02-16 02:34:10 +00:00
|
|
|
.popup-menu-item-audio-button .popup-menu-item-label {
|
|
|
|
padding-right: 2.5em;
|
|
|
|
}
|
|
|
|
.popup-menu-item-set-primary-audio-button {
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 2.5em;
|
|
|
|
}
|
|
|
|
.popup-menu-item-set-primary-audio-button:not([hidden]) {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.popup-menu-item-set-primary-audio-button .popup-menu-item-icon {
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity var(--animation-duration) linear;
|
|
|
|
}
|
|
|
|
.popup-menu-item-group:hover .popup-menu-item-set-primary-audio-button .popup-menu-item-icon {
|
|
|
|
opacity: 0.25;
|
|
|
|
}
|
|
|
|
.popup-menu-item-group .popup-menu-item-set-primary-audio-button:hover .popup-menu-item-icon,
|
|
|
|
.popup-menu-item-group .popup-menu-item-set-primary-audio-button:active .popup-menu-item-icon,
|
|
|
|
.popup-menu-item-group .popup-menu-item-set-primary-audio-button:focus .popup-menu-item-icon {
|
|
|
|
opacity: 0.375;
|
|
|
|
}
|
2021-02-21 01:56:20 +00:00
|
|
|
.popup-menu-item-group .popup-menu-item-set-primary-audio-button:focus:not(:focus-visible) .popup-menu-item-icon {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
.popup-menu-item-group .popup-menu-item-set-primary-audio-button:hover:not(:focus-visible) .popup-menu-item-icon,
|
|
|
|
.popup-menu-item-group .popup-menu-item-set-primary-audio-button:active:not(:focus-visible) .popup-menu-item-icon {
|
|
|
|
opacity: 0.375;
|
2021-02-16 02:34:10 +00:00
|
|
|
}
|
2021-02-21 01:56:20 +00:00
|
|
|
.popup-menu-item-group[data-is-primary-card-audio=true] .popup-menu-item-set-primary-audio-button .popup-menu-item-icon,
|
2021-02-16 02:34:10 +00:00
|
|
|
.popup-menu-item-group[data-is-primary-card-audio=true] .popup-menu-item-set-primary-audio-button:hover .popup-menu-item-icon,
|
|
|
|
.popup-menu-item-group[data-is-primary-card-audio=true] .popup-menu-item-set-primary-audio-button:active .popup-menu-item-icon,
|
|
|
|
.popup-menu-item-group[data-is-primary-card-audio=true] .popup-menu-item-set-primary-audio-button:focus .popup-menu-item-icon {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-01-24 02:13:01 +00:00
|
|
|
|
|
|
|
|
2021-01-30 17:33:29 +00:00
|
|
|
/* Anki errors */
|
|
|
|
.anki-note-error-list {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
list-style: disc;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-11-27 20:22:06 +00:00
|
|
|
/* Conditional styles */
|
|
|
|
:root:not([data-enable-search-tags=true]) .tag[data-category=search] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:root[data-compact-tags=true] .tag[data-redundant=true] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root:not([data-debug=true]) .debug-info {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
: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;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .definition-tag-list,
|
|
|
|
:root[data-glossary-layout-mode=compact] .definition-disambiguation-list:not([data-count='0']) {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-list {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: inline;
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-item {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-item:not(:first-child)::before {
|
2020-11-27 20:22:06 +00:00
|
|
|
white-space: pre-wrap;
|
|
|
|
content: var(--compact-list-separator);
|
|
|
|
display: inline;
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-11-27 20:22:06 +00:00
|
|
|
}
|
2021-01-09 15:41:17 +00:00
|
|
|
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-show-pitch-accent-downstep-notation=true] .pitch-accent-disambiguation-list[data-expression-count='0'],
|
|
|
|
:root[data-show-pitch-accent-downstep-notation=true] .pitch-accent-disambiguation[data-type=reading] {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-show-pitch-accent-downstep-notation=false] .pitch-accent-characters {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-show-pitch-accent-position-notation=false] .pitch-accent-position {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-show-pitch-accent-graph=false] .pitch-accent-details {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact][data-show-pitch-accent-graph=false] .pitch-accent-list:not([data-has-tags=true]) {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: inline;
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact][data-show-pitch-accent-graph=false] .pitch-accent-list:not([data-has-tags=true]) .pitch-accent {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact][data-show-pitch-accent-graph=false] .pitch-accent-list:not([data-has-tags=true]) .pitch-accent:not(:first-child)::before {
|
2020-11-27 20:22:06 +00:00
|
|
|
white-space: pre-wrap;
|
|
|
|
content: var(--compact-list-separator);
|
|
|
|
display: inline;
|
2021-01-23 21:24:05 +00:00
|
|
|
color: var(--text-color-light3);
|
2020-11-27 20:22:06 +00:00
|
|
|
}
|
|
|
|
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-image-container {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 100%;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .entry:nth-last-of-type(1):not(:nth-of-type(1)) .glossary-image-container {
|
2020-11-27 20:22:06 +00:00
|
|
|
bottom: 100%;
|
|
|
|
top: auto;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-image-link {
|
2020-11-27 20:22:06 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-image-link:hover .glossary-image-container,
|
|
|
|
:root[data-glossary-layout-mode=compact] .glossary-image-link:focus .glossary-image-container {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: block;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root:not([data-glossary-layout-mode=compact]) .glossary-image-link-text {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-02-27 21:32:44 +00:00
|
|
|
:root:not([data-glossary-layout-mode=compact]) .glossary-image-description {
|
2020-11-27 20:22:06 +00:00
|
|
|
display: block;
|
|
|
|
}
|
2020-12-09 01:31:02 +00:00
|
|
|
|
|
|
|
:root[data-popup-display-mode=full-width] .frame-resizer-container {
|
|
|
|
display: none;
|
|
|
|
}
|