term.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  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. left: calc(100% - 65vw);
  110. right: 0;
  111. box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 10px;
  112. white-space: normal;
  113. max-width: 80vw;
  114. }
  115. .ref .tooltip .tooltip-bottom::after {
  116. left: 90%;
  117. border-color: transparent transparent seashell transparent;
  118. }
  119. .ref .tooltip-bottom {
  120. top: 100%;
  121. left: unset;
  122. margin-left: unset;
  123. }
  124. note:hover chapter {
  125. display: inline;
  126. /*position: absolute;*/
  127. }
  128. .ref > .book_name > chapter:first-child {
  129. display: inline;
  130. }
  131. chapter {
  132. display: none;
  133. color: var(--box-bg-color1);
  134. text-decoration: none;
  135. cursor: pointer;
  136. }
  137. chapter::after {
  138. content: " > ";
  139. }
  140. chapter:hover {
  141. color: var(--link-color);
  142. /*text-decoration: underline;*/
  143. }
  144. .tooltiptext chapter {
  145. display: inline;
  146. }
  147. para {
  148. background-color: var(--drop-bg-color);
  149. padding: 0 4px;
  150. text-decoration: none;
  151. cursor: pointer;
  152. color: var(--btn-border-color);
  153. border-radius: 5px;
  154. display: none;
  155. }
  156. .tooltiptext para {
  157. display: inline;
  158. }
  159. para:hover {
  160. text-decoration: underline;
  161. }
  162. commentary,
  163. com,
  164. nt,
  165. blockquote {
  166. margin: 0;
  167. margin-left: 1.5em;
  168. display: block;
  169. border-left: 3px solid gray;
  170. padding-left: 5px;
  171. }
  172. note > .tran {
  173. color: #5c5c5c;
  174. padding-left: 1em;
  175. padding: 0;
  176. position: relative;
  177. margin-top: -0.5em;
  178. line-height: 1.8em;
  179. }
  180. note > .tran > .text {
  181. margin-bottom: 1em;
  182. }
  183. .tran_text_tool_botton {
  184. border-radius: 50%;
  185. border: 2px solid var(--btn-bg-color);
  186. width: fit-content;
  187. padding: 2px;
  188. height: fit-content;
  189. margin-left: -1em;
  190. margin-right: 1em;
  191. background-color: var(--nocolor);
  192. visibility: hidden;
  193. }
  194. .tran_text_tool_botton > .icon_expand {
  195. width: 0.8em;
  196. height: 0.8em;
  197. min-width: 0.8em;
  198. min-height: 0.8em;
  199. }
  200. note > .tran .tran_text_tool_bar,
  201. .tran_text_tool_bar {
  202. padding: 0.5em 1em;
  203. position: absolute;
  204. display: none;
  205. color: var(--border-line-color);
  206. z-index: 40;
  207. width: auto;
  208. font-size: 14px;
  209. height: auto;
  210. line-height: 28px;
  211. background-color: var(--box-bg-color1);
  212. border-radius: 5px;
  213. }
  214. note > .tran:lang(my) .tran_text_tool_bar {
  215. margin-top: -2.5em;
  216. }
  217. note > .tran .tran_text_tool_bar::after,
  218. .tran .tran_text_tool_bar::after {
  219. content: " ";
  220. position: absolute;
  221. left: 1.4em;
  222. bottom: 100%;
  223. border-width: 5px;
  224. border-style: solid;
  225. border-color: transparent transparent var(--box-bg-color1) transparent;
  226. }
  227. .tran:hover > .tran_text_tool_botton {
  228. visibility: visible;
  229. }
  230. .tran_text_tool_bar li {
  231. list-style: none;
  232. display: flex;
  233. white-space: nowrap !important;
  234. }
  235. .tran_text_tool_bar .icon {
  236. margin: auto 0.4em auto 0;
  237. }
  238. .tip_buttom {
  239. padding: 0 0.2em;
  240. margin: 0 0.2em;
  241. cursor: pointer;
  242. background-color: inherit;
  243. border-radius: 5px;
  244. }
  245. .tip_buttom:hover {
  246. background-color: var(--btn-border-color);
  247. }
  248. .tran:hover .edit_button {
  249. display: inline-block;
  250. }
  251. .edit_button {
  252. display: inline-block;
  253. width: auto;
  254. min-width: 24px;
  255. height: auto;
  256. min-height: 24px;
  257. cursor: pointer;
  258. fill: var(--tool-color);
  259. background: url(edit.svg);
  260. background-repeat: no-repeat;
  261. background-size: contain;
  262. color: var(--tool-color);
  263. margin-top: -2em;
  264. }
  265. note > .palitext,
  266. .palitext {
  267. font-family: Noto serif;
  268. line-height: 1.5em;
  269. color: #9f3a01;
  270. font-weight: 500;
  271. margin: 4px;
  272. }
  273. note n {
  274. display: inline;
  275. color: blue;
  276. }
  277. .term_word_head_pali {
  278. text-transform: capitalize;
  279. font-size: 200%;
  280. margin-top: 0.5em;
  281. }
  282. .term_word_head {
  283. border-bottom: 1px solid #cecece;
  284. padding: 5px 0;
  285. }
  286. .term_block {
  287. border-bottom: 1px solid #cecece;
  288. padding: 5px 0;
  289. }
  290. .term_word_head_authors a {
  291. color: blue;
  292. margin: 0 3px;
  293. }
  294. .term_word_head_authors a:hover {
  295. text-decoration: underline;
  296. cursor: pointer;
  297. }
  298. note .ref {
  299. font-size: 75%;
  300. white-space: nowrap;
  301. max-width: 45%;
  302. text-align: right;
  303. /*position: absolute;
  304. right: 1em;*/
  305. }
  306. note:hover .ref {
  307. /*border-top: solid 1px var(--border-line-color);*/
  308. }
  309. .progress_bar_done {
  310. stroke-width: 0;
  311. fill: royalblue;
  312. }
  313. .progress_bar_undone {
  314. stroke-width: 0;
  315. fill: #c0c0c052;
  316. }
  317. .progress_bar_bg {
  318. stroke-width: 0;
  319. fill: #ffffff;
  320. }
  321. .progress_bar_percent {
  322. stroke-width: 0;
  323. fill: limegreen;
  324. }
  325. r {
  326. text-align: right;
  327. display: block;
  328. }
  329. note {
  330. padding: 0.5em 0 0 0;
  331. margin-bottom: 0.4em;
  332. border-radius: 5px;
  333. line-height: 1.3em;
  334. display: block;
  335. background-color: #80808014;
  336. position: relative;
  337. }
  338. note > .bottm_tool_button {
  339. border-radius: 5px;
  340. border: 4px dotted var(--border-line-color);
  341. display: none;
  342. transition: all 0.3s ease;
  343. }
  344. note:hover > .bottm_tool_button {
  345. display: block;
  346. }
  347. .add_new {
  348. display: inline-block;
  349. position: absolute;
  350. min-width: 1.4vw;
  351. display: none;
  352. }
  353. note:hover .add_new {
  354. display: inline-block;
  355. position: absolute;
  356. }
  357. .icon_add {
  358. width: 1.5vw;
  359. min-width: 1.4vw;
  360. height: 1.5vw;
  361. cursor: pointer;
  362. background: url(add.svg);
  363. background-repeat: no-repeat;
  364. background-size: contain;
  365. left: 0;
  366. bottom: 1em;
  367. }
  368. .tool_bar > .more_tran {
  369. display: inline-block;
  370. margin-right: 5px;
  371. transform: rotate(-90deg);
  372. transition: all 0.2s ease;
  373. }
  374. .icon_expand {
  375. width: auto;
  376. min-width: 14px;
  377. height: auto;
  378. min-height: 14px;
  379. cursor: pointer;
  380. background: url(expand.svg);
  381. background-repeat: no-repeat;
  382. background-size: contain;
  383. }
  384. .icon_fold {
  385. width: auto;
  386. min-width: 14px;
  387. height: auto;
  388. min-height: 14px;
  389. cursor: pointer;
  390. background: url(fold.svg);
  391. background-repeat: no-repeat;
  392. background-size: contain;
  393. }
  394. .other_tran_div {
  395. min-height: 1em;
  396. border-top: 1px solid var(--border-line-color);
  397. }
  398. .other_tran_div > .tool_bar {
  399. background-color: var(--btn-bg-color);
  400. padding: 0 6px;
  401. border-radius: 0 0 4px 4px;
  402. cursor: pointer;
  403. justify-content: space-between;
  404. line-height: 1.5em;
  405. }
  406. .other_tran_div > .tool_bar > .tool_left {
  407. white-space: nowrap;
  408. }
  409. .other_tran_div > .tool_bar > .tool_right {
  410. white-space: pre-wrap;
  411. margin-left: auto;
  412. }
  413. .other_tran_div > .other_tran {
  414. min-height: 1em;
  415. transition: all 0.2s ease;
  416. display: none;
  417. }
  418. .tool_bar {
  419. display: flex;
  420. }
  421. .bg_color_1 {
  422. background-color: #ebebeb66;
  423. }
  424. .bg_color_2 {
  425. background: linear-gradient(to left, #6afdb033, #ebebeb66);
  426. }
  427. .bg_color_3 {
  428. background: linear-gradient(to left, #6a95fd26, #ebebeb66);
  429. }
  430. .bg_color_4 {
  431. background: linear-gradient(to left, #f9e7911c, #ebebeb66);
  432. }
  433. .bg_color_5 {
  434. background: linear-gradient(to left, #fe99b91c, #ebebeb66);
  435. }
  436. pre {
  437. white-space: pre-line;
  438. font-family: auto;
  439. border-left: 3px solid var(--border-shadow);
  440. margin-left: 1em;
  441. padding-left: 0.5em;
  442. }
  443. .note_tool_bar {
  444. position: relative;
  445. display: none;
  446. z-index: 50;
  447. margin-right: 1em;
  448. }
  449. note:hover .note_tool_bar {
  450. display: block;
  451. }
  452. .sent_menu {
  453. right: 0;
  454. }
  455. .para_menu {
  456. left: 0;
  457. }
  458. .ui-widget input,
  459. .ui-widget select,
  460. .ui-widget textarea,
  461. .ui-widget button {
  462. font-family: unset;
  463. font-size: 1.1em;
  464. }
  465. .tran p {
  466. margin: 0;
  467. }
  468. .note_tool_context {
  469. position: absolute;
  470. right: -1vw;
  471. width: 1.5em;
  472. text-align: right;
  473. margin-top: -0.3em;
  474. }
  475. .note_tool_context .icon {
  476. fill: var(--link-color);
  477. }
  478. .note_tool_context:hover .icon {
  479. fill: (--link-hover-color);
  480. }
  481. .channel_select {
  482. display: none;
  483. }
  484. #channal_list .selected {
  485. background: linear-gradient(to right, #6afdb033, #ebebeb66);
  486. padding: 5px;
  487. border-radius: 5px;
  488. }
  489. #channal_list .noselect {
  490. background-color: unset;
  491. padding: 5px;
  492. border-radius: 5px;
  493. }
  494. .other_tran_num,
  495. .similar_sent_num {
  496. -webkit-border-radius: 7px;
  497. border-radius: 7px;
  498. background-color: cornflowerblue;
  499. position: relative;
  500. min-width: 14px;
  501. height: 14px;
  502. display: inline-flex;
  503. justify-content: center;
  504. text-align: center;
  505. line-height: 14px;
  506. display: none;
  507. margin: auto 2px;
  508. color: whitesmoke;
  509. padding: 0 3px;
  510. }
  511. .similar_sent_num {
  512. display: inline-flex;
  513. }
  514. .separate_line {
  515. border: solid 1px #e8e8e8;
  516. border-radius: 3px;
  517. margin: 1px 5px;
  518. width: 1px;
  519. background: #c6c6c6;
  520. text-decoration: none;
  521. }
  522. pw {
  523. padding-right: 0.5em;
  524. }
  525. .slider_show_shell {
  526. position: fixed;
  527. z-index: 1000;
  528. top: 0;
  529. left: 0;
  530. width: 100%;
  531. height: 85%;
  532. background-color: #000000f5;
  533. font-size: 180%;
  534. padding-top: 2em;
  535. }
  536. .slider_show_shell .bg_color_1 {
  537. background-color: unset;
  538. }
  539. /*编辑框*/
  540. .sent_tran {
  541. padding: 5px;
  542. margin-bottom: 2px;
  543. }
  544. .sent_tran_inner {
  545. display: flex;
  546. }
  547. .sent_tran:hover {
  548. background-color: rgba(0.5, 0.5, 0.5, 0.02);
  549. }
  550. .left_bar {
  551. flex: 1;
  552. display: flex;
  553. margin-right: 5px;
  554. }
  555. .sent_tran .left_bar > .face {
  556. display: block;
  557. margin: auto 0.5em auto auto;
  558. }
  559. .compact .left_bar > .face {
  560. display: none;
  561. }
  562. .left_bar > .date {
  563. display: none;
  564. }
  565. .compact .left_bar > .date {
  566. display: block;
  567. font-size: 80%;
  568. color: var(--main-color1);
  569. }
  570. .sent_tran_inner > .body {
  571. width: 100%;
  572. display: block;
  573. flex: 20;
  574. }
  575. .preview {
  576. font-size: 110%;
  577. }
  578. .compact .body > .head_bar {
  579. display: flex;
  580. }
  581. .compact .body > .head_bar > .date {
  582. display: none;
  583. }
  584. .head_bar > .info {
  585. display: none;
  586. }
  587. .head_bar > .info > .name {
  588. font-weight: 700;
  589. white-space: nowrap;
  590. margin-right: 0.5em;
  591. }
  592. .head_bar > .info > .date {
  593. font-size: 0.8em;
  594. color: gray;
  595. }
  596. .compact .head_bar > .info {
  597. display: block;
  598. }
  599. .compact .head_bar > .info > .date {
  600. display: none;
  601. }
  602. .foot_bar .info {
  603. color: var(--btn-border-line-color);
  604. }
  605. .tool_bar > .right {
  606. position: absolute;
  607. right: 0;
  608. margin-top: calc(-1.8em - 8px);
  609. display: none;
  610. width: auto;
  611. background-color: var(--bg-color);
  612. border: 1px solid var(--border-line-color);
  613. border-radius: 6px;
  614. padding: 3px;
  615. /*margin-right: 20px;*/
  616. }
  617. .sent_tran_inner:hover .tool_bar > .right {
  618. display: block;
  619. }
  620. .body > .edit {
  621. display: none;
  622. }
  623. .body > .edit textarea {
  624. color: var(--main-color);
  625. width: 100%;
  626. background-color: var(--drop-bg-color);
  627. border: unset;
  628. border-radius: 8px;
  629. padding: 5px;
  630. line-height: 1.5em;
  631. height: 90px;
  632. font-size: 120%;
  633. }
  634. .foot_bar {
  635. font-size: 90%;
  636. }
  637. .foot_bar > .info {
  638. display: flex;
  639. }
  640. .foot_bar > .info span {
  641. margin-right: 4px;
  642. }
  643. .compact .foot_bar {
  644. display: none;
  645. }
  646. .edit_mode {
  647. background-color: #fafafa;
  648. }
  649. .edit_mode > .sent_tran_inner > .body > .head_bar > .preview {
  650. display: none;
  651. }
  652. .edit_mode > .sent_tran_inner > .body > .edit {
  653. display: block;
  654. }
  655. .pop_menu {
  656. display: flex;
  657. }
  658. .tag_list {
  659. display: flex;
  660. list-style-type: none;
  661. }
  662. .tag_list li {
  663. border-radius: 6px;
  664. margin-right: 5px;
  665. background-color: var(--bookx);
  666. padding: 2px 5px;
  667. cursor: pointer;
  668. }
  669. li.active {
  670. background-color: var(--booka);
  671. }
  672. .tag_list li:hover {
  673. background-color: var(--booka);
  674. }
  675. .sent_tran .preview p {
  676. margin: 0;
  677. }
  678. .pop_menu .icon {
  679. fill: var(--main-color);
  680. }
  681. .pr_content {
  682. margin-left: 3em;
  683. border-left: 3px solid var(--border-line-color);
  684. }
  685. .menu_space_between a {
  686. display: flex;
  687. justify-content: space-between;
  688. }
  689. .body > .head_bar > .loading {
  690. color: gray;
  691. }
  692. .tooltip {
  693. display: inline-flex;
  694. }
  695. .disable {
  696. cursor: not-allowed;
  697. }
  698. .channel_name {
  699. white-space: nowrap;
  700. }
  701. .channel_name:hover {
  702. background-color: var(--btn-border-color);
  703. }
  704. .channel_list {
  705. margin-right: 4px;
  706. }
  707. .pali_div {
  708. padding: 0 10px 5px 10px;
  709. }
  710. .case_dropdown {
  711. min-width: unset;
  712. }
  713. .channel_list > li:first-child {
  714. border-bottom: solid 1px;
  715. justify-content: center;
  716. font-weight: bold;
  717. }
  718. w {
  719. cursor: pointer;
  720. }
  721. w:hover {
  722. text-decoration: underline;
  723. }
  724. /*纵向*/
  725. .vertical .para_div {
  726. flex-direction: column;
  727. }
  728. .vertical .note_shell > note > .note_body {
  729. flex-direction: column;
  730. }
  731. .para_div {
  732. display: flex;
  733. }
  734. .note_shell > note > .note_body {
  735. display: flex;
  736. }
  737. /*段落模式 横向*/
  738. .horizontal .para_div {
  739. flex-direction: row;
  740. }
  741. .horizontal .palitext_div {
  742. flex: 5;
  743. }
  744. .horizontal .para_tran_div {
  745. flex: 5;
  746. }
  747. /*句子模式 横向*/
  748. .horizontal .note_shell > note > .note_body {
  749. flex-direction: row;
  750. }
  751. .horizontal .palitext_div {
  752. flex: 5;
  753. }
  754. .horizontal .sent_tran_div {
  755. flex: 5;
  756. }
  757. /*段落模式*/
  758. .para_mode .para_div {
  759. display: flex;
  760. }
  761. .para_mode .note_shell {
  762. display: none;
  763. }
  764. /*句子模式*/
  765. .sent_mode .para_div {
  766. display: none;
  767. }
  768. .sent_mode .note_shell {
  769. display: block;
  770. }
  771. .tran_sent p {
  772. display: inline;
  773. }