term.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. .term_link:hover .guide_contence {
  2. display: inline-block;
  3. }
  4. .term_meaning {
  5. font-weight: 700;
  6. }
  7. .term_author {
  8. font-size: 80%;
  9. color: gray;
  10. }
  11. .term_tag {
  12. font-size: 80%;
  13. font-weight: 500;
  14. margin: 0 8px;
  15. }
  16. .term_link {
  17. cursor: pointer;
  18. position: relative;
  19. }
  20. .term_link,
  21. .term_link_new {
  22. color: blue;
  23. padding-left: 2px;
  24. padding-right: 2px;
  25. }
  26. .term_link_new {
  27. color: red;
  28. }
  29. .tran {
  30. line-height: 1.5em;
  31. }
  32. .tran ul {
  33. list-style-type: circle;
  34. margin-left: 2em;
  35. }
  36. .tran li {
  37. list-style: inherit;
  38. }
  39. .tran ol {
  40. list-style-type: decimal;
  41. margin: 0;
  42. padding: 0;
  43. margin-left: 2em;
  44. }
  45. .tran:lang(en) > ol {
  46. list-style-type: decimal;
  47. }
  48. /*中文*/
  49. .tran:lang(zh) > ol {
  50. list-style-type: cjk-ideographic;
  51. margin-left: 2.5em;
  52. }
  53. /*简体中文*/
  54. .tran:lang(zh-cn) > ol {
  55. list-style-type: trad-chinese-formal;
  56. margin-left: 2.5em;
  57. }
  58. .tran:lang(zh-hans) > ol {
  59. list-style-type: trad-chinese-formal;
  60. margin-left: 2.5em;
  61. }
  62. /*繁体中文*/
  63. .tran:lang(zh-tw) > ol {
  64. list-style-type: trad-chinese-formal;
  65. margin-left: 2.5em;
  66. }
  67. .tran:lang(zh-hant) > ol {
  68. list-style-type: trad-chinese-formal;
  69. margin-left: 2.5em;
  70. }
  71. /*japanese*/
  72. .tran:lang(jp) > ol {
  73. list-style-type: hiragana;
  74. margin-left: 2.5em;
  75. }
  76. /*kora*/
  77. .tran:lang(ko) > ol {
  78. list-style-type: korean-hangul-formal;
  79. margin-left: 2.5em;
  80. }
  81. /*thai*/
  82. .tran:lang(ti) > ol {
  83. list-style-type: thai;
  84. margin-left: 2em;
  85. }
  86. /*myanmar*/
  87. .tran:lang(my) > ol {
  88. list-style-type: myanmar;
  89. margin-left: 2em;
  90. }
  91. /*myanmar*/
  92. .tran:lang(my) {
  93. font-size: 120%;
  94. line-height: 2em;
  95. }
  96. .tran_div {
  97. margin-bottom: 1em;
  98. padding-bottom: 1em;
  99. padding-top: 0.5em;
  100. border-bottom: 1px solid var(--border-line-color);
  101. }
  102. .tran_div:last-child {
  103. border-bottom: none;
  104. }
  105. .ref .tooltiptext {
  106. background-color: seashell;
  107. }
  108. .ref .tooltip .tooltiptext {
  109. right: 0;
  110. box-shadow: 0 0 10px rgb(0 0 0 / 15%);
  111. }
  112. .ref .tooltip .tooltip-bottom::after {
  113. left: 90%;
  114. border-color: transparent transparent seashell transparent;
  115. }
  116. .ref .tooltip-bottom {
  117. top: 100%;
  118. left: unset;
  119. margin-left: unset;
  120. }
  121. note:hover chapter {
  122. /*display: inline;*/
  123. }
  124. .ref > .book_name > chapter:first-child {
  125. display: inline;
  126. }
  127. chapter {
  128. display: none;
  129. color: var(--box-bg-color1);
  130. text-decoration: none;
  131. cursor: pointer;
  132. }
  133. chapter::after {
  134. content: " > ";
  135. }
  136. chapter:hover {
  137. color: var(--link-color);
  138. /*text-decoration: underline;*/
  139. }
  140. .tooltiptext chapter {
  141. display: inline;
  142. }
  143. para {
  144. background-color: var(--drop-bg-color);
  145. padding: 0 4px;
  146. text-decoration: none;
  147. cursor: pointer;
  148. color: var(--btn-border-color);
  149. border-radius: 5px;
  150. display: none;
  151. }
  152. .tooltiptext para {
  153. display: inline;
  154. }
  155. para:hover {
  156. text-decoration: underline;
  157. }
  158. commentary,
  159. com,
  160. nt,
  161. blockquote {
  162. margin: 0;
  163. margin-left: 1.5em;
  164. display: block;
  165. border-left: 3px solid gray;
  166. padding-left: 5px;
  167. }
  168. note > .tran {
  169. color: #5c5c5c;
  170. padding-left: 1em;
  171. padding: 0;
  172. position: relative;
  173. margin-top: -0.5em;
  174. line-height: 1.8em;
  175. }
  176. note > .tran > .text {
  177. margin-bottom: 1em;
  178. }
  179. .tran_text_tool_botton {
  180. border-radius: 50%;
  181. border: 2px solid var(--btn-bg-color);
  182. width: fit-content;
  183. padding: 2px;
  184. height: fit-content;
  185. margin-left: -1em;
  186. margin-right: 1em;
  187. background-color: var(--nocolor);
  188. visibility: hidden;
  189. }
  190. .tran_text_tool_botton > .icon_expand {
  191. width: 0.8em;
  192. height: 0.8em;
  193. min-width: 0.8em;
  194. min-height: 0.8em;
  195. }
  196. note > .tran .tran_text_tool_bar,
  197. .tran_text_tool_bar {
  198. padding: 0.5em 1em;
  199. position: absolute;
  200. display: none;
  201. color: var(--border-line-color);
  202. z-index: 40;
  203. width: auto;
  204. font-size: 14px;
  205. height: auto;
  206. line-height: 28px;
  207. background-color: var(--box-bg-color1);
  208. border-radius: 5px;
  209. }
  210. note > .tran:lang(my) .tran_text_tool_bar {
  211. margin-top: -2.5em;
  212. }
  213. note > .tran .tran_text_tool_bar::after,
  214. .tran .tran_text_tool_bar::after {
  215. content: " ";
  216. position: absolute;
  217. left: 1.4em;
  218. bottom: 100%;
  219. border-width: 5px;
  220. border-style: solid;
  221. border-color: transparent transparent var(--box-bg-color1) transparent;
  222. }
  223. .tran:hover > .tran_text_tool_botton {
  224. visibility: visible;
  225. }
  226. .tran_text_tool_bar li {
  227. list-style: none;
  228. display: flex;
  229. white-space: nowrap !important;
  230. }
  231. .tran_text_tool_bar .icon {
  232. margin: auto 0.4em auto 0;
  233. }
  234. .tip_buttom {
  235. padding: 0 0.2em;
  236. margin: 0 0.2em;
  237. cursor: pointer;
  238. background-color: inherit;
  239. border-radius: 5px;
  240. }
  241. .tip_buttom:hover {
  242. background-color: var(--btn-border-color);
  243. }
  244. .tran:hover .edit_button {
  245. display: inline-block;
  246. }
  247. .edit_button {
  248. display: inline-block;
  249. width: auto;
  250. min-width: 24px;
  251. height: auto;
  252. min-height: 24px;
  253. cursor: pointer;
  254. fill: var(--tool-color);
  255. background: url(edit.svg);
  256. background-repeat: no-repeat;
  257. background-size: contain;
  258. color: var(--tool-color);
  259. margin-top: -2em;
  260. }
  261. note > .palitext,
  262. .palitext {
  263. font-family: Noto serif;
  264. line-height: 1.5em;
  265. color: #9f3a01;
  266. font-weight: 500;
  267. margin: 4px;
  268. }
  269. note n {
  270. display: inline;
  271. color: blue;
  272. }
  273. .term_word_head_pali {
  274. text-transform: capitalize;
  275. font-size: 200%;
  276. margin: 0.5em 0;
  277. }
  278. .term_word_head {
  279. border-bottom: 1px solid #cecece;
  280. padding: 5px 0;
  281. }
  282. .term_block {
  283. border-bottom: 1px solid #cecece;
  284. padding: 5px 0;
  285. }
  286. .term_word_head_authors a {
  287. color: blue;
  288. margin: 0 3px;
  289. }
  290. .term_word_head_authors a:hover {
  291. text-decoration: underline;
  292. cursor: pointer;
  293. }
  294. note .ref {
  295. font-size: 75%;
  296. white-space: nowrap;
  297. overflow-x: scroll;
  298. max-width: 100%;
  299. white-space: nowrap;
  300. text-align: right;
  301. }
  302. note:hover .ref {
  303. /*border-top: solid 1px var(--border-line-color);*/
  304. /*
  305. margin-left: -45vw;
  306. width: 45vw;
  307. max-width: 45vw;
  308. overflow: hidden;
  309. white-space: nowrap;
  310. overflow-x: scroll;
  311. */
  312. }
  313. .progress_bar_done {
  314. stroke-width: 0;
  315. fill: royalblue;
  316. }
  317. .progress_bar_undone {
  318. stroke-width: 0;
  319. fill: #c0c0c052;
  320. }
  321. .progress_bar_bg {
  322. stroke-width: 0;
  323. fill: #ffffff;
  324. }
  325. .progress_bar_percent {
  326. stroke-width: 0;
  327. fill: limegreen;
  328. }
  329. r {
  330. text-align: right;
  331. display: block;
  332. }
  333. note {
  334. padding: 0.5em 0 0 0;
  335. margin-bottom: 0.4em;
  336. border-radius: 5px;
  337. line-height: 1.3em;
  338. display: block;
  339. background-color: #80808014;
  340. position: relative;
  341. }
  342. note > .bottm_tool_button {
  343. border-radius: 5px;
  344. border: 4px dotted var(--border-line-color);
  345. display: none;
  346. transition: all 0.3s ease;
  347. }
  348. note:hover > .bottm_tool_button {
  349. display: block;
  350. }
  351. .add_new {
  352. display: inline-block;
  353. position: absolute;
  354. min-width: 1.4vw;
  355. display: none;
  356. }
  357. note:hover .add_new {
  358. display: inline-block;
  359. position: absolute;
  360. }
  361. .icon_add {
  362. width: 1.5vw;
  363. min-width: 1.4vw;
  364. height: 1.5vw;
  365. cursor: pointer;
  366. background: url(add.svg);
  367. background-repeat: no-repeat;
  368. background-size: contain;
  369. left: 0;
  370. bottom: 1em;
  371. }
  372. .tool_bar > .more_tran {
  373. display: inline-block;
  374. margin-right: 5px;
  375. transform: rotate(-90deg);
  376. transition: all 0.2s ease;
  377. }
  378. .icon_expand {
  379. width: auto;
  380. min-width: 14px;
  381. height: auto;
  382. min-height: 14px;
  383. cursor: pointer;
  384. background: url(expand.svg);
  385. background-repeat: no-repeat;
  386. background-size: contain;
  387. }
  388. .icon_fold {
  389. width: auto;
  390. min-width: 14px;
  391. height: auto;
  392. min-height: 14px;
  393. cursor: pointer;
  394. background: url(fold.svg);
  395. background-repeat: no-repeat;
  396. background-size: contain;
  397. }
  398. .other_tran_div {
  399. min-height: 1em;
  400. border-top: 1px solid var(--border-line-color);
  401. }
  402. .other_tran_div > .tool_bar {
  403. background-color: var(--btn-bg-color);
  404. padding: 0 6px;
  405. border-radius: 0 0 4px 4px;
  406. cursor: pointer;
  407. justify-content: space-between;
  408. line-height: 1.5em;
  409. }
  410. .other_tran_div > .tool_bar > .tool_left {
  411. white-space: nowrap;
  412. }
  413. .other_tran_div > .tool_bar > .tool_right {
  414. white-space: pre-wrap;
  415. margin-left: auto;
  416. }
  417. .other_tran_div > .other_tran {
  418. min-height: 1em;
  419. transition: all 0.2s ease;
  420. display: none;
  421. }
  422. .tool_bar {
  423. display: flex;
  424. }
  425. .bg_color_1 {
  426. background-color: #ebebeb66;
  427. }
  428. .bg_color_2 {
  429. background: linear-gradient(to right, #6afdb033, #ebebeb66);
  430. }
  431. .bg_color_3 {
  432. background: linear-gradient(to right, #6a95fd26, #ebebeb66);
  433. }
  434. .bg_color_4 {
  435. background: linear-gradient(to right, #f9e7911c, #ebebeb66);
  436. }
  437. .bg_color_5 {
  438. background: linear-gradient(to right, #fe99b91c, #ebebeb66);
  439. }
  440. pre {
  441. white-space: pre-line;
  442. font-family: auto;
  443. border-left: 3px solid var(--border-shadow);
  444. margin-left: 1em;
  445. padding-left: 0.5em;
  446. }
  447. .note_tool_bar {
  448. position: relative;
  449. display: none;
  450. z-index: 50;
  451. margin-right: 1em;
  452. }
  453. note:hover .note_tool_bar {
  454. display: block;
  455. }
  456. .sent_menu {
  457. right: 0;
  458. }
  459. .para_menu {
  460. left: 0;
  461. }
  462. .ui-widget input,
  463. .ui-widget select,
  464. .ui-widget textarea,
  465. .ui-widget button {
  466. font-family: unset;
  467. font-size: 1.1em;
  468. }
  469. .tran p {
  470. margin: 0;
  471. }
  472. .note_tool_context {
  473. position: absolute;
  474. right: -1vw;
  475. width: 1.5em;
  476. text-align: right;
  477. margin-top: -0.3em;
  478. }
  479. .note_tool_context .icon {
  480. fill: var(--link-color);
  481. }
  482. .note_tool_context:hover .icon {
  483. fill: (--link-hover-color);
  484. }
  485. .channel_select {
  486. display: none;
  487. }
  488. #channal_list .selected {
  489. background: linear-gradient(to right, #6afdb033, #ebebeb66);
  490. padding: 5px;
  491. border-radius: 5px;
  492. }
  493. #channal_list .noselect {
  494. background-color: unset;
  495. padding: 5px;
  496. border-radius: 5px;
  497. }
  498. .other_tran_num,
  499. .similar_sent_num {
  500. -webkit-border-radius: 7px;
  501. border-radius: 7px;
  502. background-color: cornflowerblue;
  503. position: relative;
  504. min-width: 14px;
  505. height: 14px;
  506. display: inline-flex;
  507. justify-content: center;
  508. text-align: center;
  509. line-height: 14px;
  510. display: none;
  511. margin: auto 2px;
  512. color: whitesmoke;
  513. padding: 0 3px;
  514. }
  515. .similar_sent_num {
  516. display: inline-flex;
  517. }
  518. .separate_line {
  519. border: solid 1px #e8e8e8;
  520. border-radius: 3px;
  521. margin: 1px 5px;
  522. width: 1px;
  523. background: #c6c6c6;
  524. text-decoration: none;
  525. }
  526. pw {
  527. padding-right: 0.5em;
  528. }
  529. .slider_show_shell {
  530. position: fixed;
  531. z-index: 1000;
  532. top: 0;
  533. left: 0;
  534. width: 100%;
  535. height: 85%;
  536. background-color: #000000f5;
  537. font-size: 180%;
  538. padding-top: 2em;
  539. }
  540. .slider_show_shell .bg_color_1 {
  541. background-color: unset;
  542. }
  543. /*编辑框*/
  544. .sent_tran {
  545. padding: 5px;
  546. margin-bottom: 2px;
  547. }
  548. .sent_tran_inner {
  549. display: flex;
  550. }
  551. .sent_tran:hover {
  552. background-color: rgba(0.5, 0.5, 0.5, 0.02);
  553. }
  554. .left_bar {
  555. flex: 1;
  556. display: flex;
  557. margin-right: 5px;
  558. }
  559. .sent_tran .left_bar > .face {
  560. display: block;
  561. margin: auto 0.5em auto auto;
  562. }
  563. .compact .left_bar > .face {
  564. display: none;
  565. }
  566. .left_bar > .date {
  567. display: none;
  568. }
  569. .compact .left_bar > .date {
  570. display: block;
  571. font-size: 80%;
  572. color: var(--main-color1);
  573. }
  574. .sent_tran_inner > .body {
  575. width: 100%;
  576. display: block;
  577. flex: 20;
  578. }
  579. .preview {
  580. font-size: 110%;
  581. }
  582. .compact .body > .head_bar {
  583. display: flex;
  584. }
  585. .compact .body > .head_bar > .date {
  586. display: none;
  587. }
  588. .head_bar > .info {
  589. display: none;
  590. }
  591. .head_bar > .info > .name {
  592. font-weight: 700;
  593. white-space: nowrap;
  594. margin-right: 0.5em;
  595. }
  596. .head_bar > .info > .date {
  597. font-size: 0.8em;
  598. color: gray;
  599. }
  600. .compact .head_bar > .info {
  601. display: block;
  602. }
  603. .compact .head_bar > .info > .date {
  604. display: none;
  605. }
  606. .foot_bar .info {
  607. color: var(--main-color);
  608. }
  609. .tool_bar > .right {
  610. position: absolute;
  611. right: 0;
  612. margin-top: -18px;
  613. display: none;
  614. width: auto;
  615. background-color: var(--bg-color);
  616. border: 1px solid var(--border-line-color);
  617. border-radius: 6px;
  618. padding: 3px;
  619. margin-right: 20px;
  620. }
  621. .sent_tran_inner:hover .tool_bar > .right {
  622. display: block;
  623. }
  624. .body > .edit {
  625. display: none;
  626. }
  627. .body > .edit textarea {
  628. color: var(--main-color);
  629. width: 100%;
  630. background-color: var(--drop-bg-color);
  631. border: unset;
  632. border-radius: 8px;
  633. padding: 5px;
  634. line-height: 1.5em;
  635. height: 90px;
  636. font-size: 120%;
  637. }
  638. .foot_bar {
  639. font-size: 90%;
  640. }
  641. .foot_bar > .info {
  642. display: flex;
  643. }
  644. .foot_bar > .info span {
  645. margin-right: 4px;
  646. }
  647. .compact .foot_bar {
  648. display: none;
  649. }
  650. .edit_mode {
  651. background-color: #fafafa;
  652. }
  653. .edit_mode > .sent_tran_inner > .body > .head_bar > .preview {
  654. display: none;
  655. }
  656. .edit_mode > .sent_tran_inner > .body > .edit {
  657. display: block;
  658. }
  659. .pop_menu {
  660. display: flex;
  661. }
  662. .tag_list {
  663. display: flex;
  664. list-style-type: none;
  665. }
  666. .tag_list li {
  667. border-radius: 6px;
  668. margin-right: 5px;
  669. background-color: var(--bookx);
  670. padding: 2px 5px;
  671. cursor: pointer;
  672. }
  673. li.active {
  674. background-color: var(--booka);
  675. }
  676. .tag_list li:hover {
  677. background-color: var(--booka);
  678. }
  679. .sent_tran .preview p {
  680. margin: 0;
  681. }
  682. .pop_menu .icon {
  683. fill: var(--main-color);
  684. }
  685. .pr_content {
  686. margin-left: 3em;
  687. border-left: 3px solid var(--border-line-color);
  688. }
  689. .menu_space_between a {
  690. display: flex;
  691. justify-content: space-between;
  692. }
  693. .body > .head_bar > .loading {
  694. color: gray;
  695. }
  696. .tooltip {
  697. display: inline-flex;
  698. }
  699. .disable {
  700. cursor: not-allowed;
  701. }
  702. .pali_div {
  703. padding: 0 10px 5px 10px;
  704. }