term.css 12 KB

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