style.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. #search_result {
  2. position: absolute;
  3. background: wheat;
  4. max-width: 95%;
  5. width: 24em;
  6. }
  7. .icon {
  8. width: 15px;
  9. height: 15px;
  10. margin-top: 4px;
  11. margin-bottom: -2px;
  12. }
  13. .submenu_title {
  14. font-size: 120%;
  15. font-weight: 700;
  16. }
  17. #head_bar {
  18. display: flex;
  19. justify-content: space-between;
  20. /*height: 5em;*/
  21. background-color: var(--tool-bg-color1);
  22. border-bottom: 1px solid var(--tool-line-color);
  23. padding: 0.5vh 0.5vw;
  24. margin-top: 50px;
  25. position: fixed;
  26. top: 0;
  27. left: 0;
  28. width: 100%;
  29. z-index: 100;
  30. }
  31. #pali_pedia {
  32. font-size: 200%;
  33. margin-top: auto;
  34. margin-bottom: auto;
  35. padding-left: 0.5em;
  36. }
  37. .main_view {
  38. padding: 0 1em;
  39. padding-top: 7em;
  40. /*max-width: 1280px;*/
  41. /*margin-left: 270px;*/
  42. margin-right: auto;
  43. }
  44. #left_pannal_inner {
  45. position: fixed;
  46. top: 0;
  47. left: 0;
  48. padding-top: 90px;
  49. height: 100%;
  50. /*width:300px;*/
  51. overflow-x: hidden;
  52. overflow-x: scroll;
  53. }
  54. #toc_content{
  55. max-height: calc(100vh - 90px);
  56. width: max-content;
  57. max-width:calc(20vw - 24px);
  58. background-color: var(--bg-color);
  59. border-bottom: 1px solid var(--border-line-color);
  60. overflow-y: scroll;
  61. }
  62. .fun_frame {
  63. border-bottom: 1px solid gray;
  64. margin-right: 10px;
  65. margin-bottom: 10px;
  66. width: calc(30% - 1em)
  67. }
  68. .fun_frame .title {
  69. padding: 6px;
  70. font-weight: 700;
  71. align-self: center;
  72. }
  73. .fun_frame > .content {
  74. padding: 4em 6px 6px 6px;
  75. max-height: 6em;
  76. overflow-y: scroll;
  77. /*max-width: 260px;*/
  78. }
  79. .fixed {
  80. position: fixed;
  81. right: 0;
  82. top: 0;
  83. }
  84. .when_right_fixed {
  85. padding-right: 20em;
  86. }
  87. #contents_view {
  88. display: flex;
  89. }
  90. #contents_div {
  91. /*flex: 7;*/
  92. padding: 0 1em 0 30px;
  93. width: calc(70vw - 30px - 1em);
  94. }
  95. #contents {
  96. min-height: 400px;
  97. }
  98. #contents li {
  99. white-space: normal;
  100. }
  101. #right_pannal {
  102. /*flex: 3;*/
  103. /*max-width: 270px;*/
  104. }
  105. #head_bar {
  106. height: unset;
  107. }
  108. #contents_foot {
  109. margin-bottom: 70vh;
  110. }
  111. #toc_content .level_2 {
  112. padding-left: 0.5em;
  113. }
  114. #toc_content .level_3 {
  115. padding-left: 1em;
  116. }
  117. #toc_content .level_4 {
  118. padding-left: 1.5em;
  119. }
  120. #toc_content .level_5 {
  121. padding-left: 2em;
  122. }
  123. .ui-dialog-titlebar {
  124. display: flex;
  125. justify-content: space-between;
  126. background-color: var(--btn-bg-color);
  127. padding: 5px;
  128. }
  129. .ui-widget-content {
  130. background-color: var(--bg-color);
  131. }
  132. .ui-dialog {
  133. box-shadow: 8px 8px 20px var(--border-shadow);
  134. }
  135. .active {
  136. background-color: var(--btn-hover-bg-color);
  137. }
  138. .icon_btn a {
  139. color: var(--main-color);
  140. }
  141. .icon_btn:hover a {
  142. color: var(--btn-hover-color);
  143. }
  144. .tran img {
  145. max-width: 100%;
  146. max-height: 200px;
  147. width: auto;
  148. height: auto;
  149. object-fit: cover;
  150. background-size: contain;
  151. }
  152. .channal_list {
  153. white-space: nowrap;
  154. overflow-x: hidden;
  155. }
  156. .userinfo_channal {
  157. display: none;
  158. }
  159. .userinfo_channal:hover {
  160. display: block;
  161. }
  162. .sent_tran img{
  163. width: 40%;
  164. max-width: 40%;
  165. }
  166. img {
  167. width: 90%;
  168. /*max-width: 40%;*/
  169. }
  170. /*
  171. 左右对读
  172. .note_shell {
  173. display: flex;
  174. }
  175. .note_shell > .palitext{
  176. flex: 5;
  177. }
  178. .note_shell>note {
  179. flex: 5;
  180. }
  181. */
  182. .tool_bar {
  183. display: flex;
  184. }
  185. .page_number {
  186. padding: 2px 2px;
  187. position: absolute;
  188. margin-top: 0;
  189. margin-left: -30px;
  190. font-family: "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Padauk", Arial, Verdana;
  191. color: var(--main-color1);
  192. font-size: 80%;
  193. }
  194. #article_edition {
  195. padding: 8px;
  196. margin: 0 4px;
  197. border-bottom: 1px solid var(--border-line-color);
  198. display: flex;
  199. min-width: 18em;
  200. }
  201. #edition_dropdown {
  202. margin-left: 1em;
  203. }
  204. #head_nav {
  205. display: flex;
  206. justify-content: space-between;
  207. }
  208. #head_bar {
  209. display: flex;
  210. flex-direction: initial;
  211. }
  212. .hidden{
  213. display:none;
  214. }
  215. #main_view.edit_mode{
  216. max-width: 100%;
  217. }
  218. #article_path chapter{
  219. color: var(--link-color);
  220. }
  221. #article_path chapter:hover {
  222. color: var(--link-hover-color);
  223. text-decoration: underline;
  224. }
  225. .right_float_min #right_float_pannal {
  226. left: calc(100% - 30vw + 0.6em);
  227. }
  228. #right_float_pannal {
  229. position: fixed;
  230. height: calc(100% - 7.3em);
  231. top: 7.3em;
  232. left: 100%;
  233. width: calc(30vw - 0.6em);
  234. min-width: 20vw;
  235. color: var(--btn-color);
  236. background-color: var(--tool-bg-color);
  237. z-index: 20;
  238. -webkit-transition-duration: 0.4s;
  239. transition-duration: 0.4s;
  240. -webkit-contain: strict;
  241. contain: strict;
  242. z-index: 51;
  243. }
  244. #right_float_pannal > iframe {
  245. width: 100%;
  246. height: 100%;
  247. }
  248. .right_float_max #right_float_pannal {
  249. left: 50%;
  250. width: 50%;
  251. }
  252. #right_float_pannal > #tool_bar {
  253. /*position: absolute;*/
  254. display: flex;
  255. width: 100%;
  256. justify-content: space-between;
  257. }
  258. #right_float_pannal > #tool_bar svg {
  259. fill: var(--bg-color);
  260. height: 2em;
  261. width: 2em;
  262. }
  263. #head_nav_right{
  264. display: flex;
  265. }
  266. .nav_bnt{
  267. min-width: 20em;
  268. padding: 15px;
  269. border: 1px solid var(--border-line-color);
  270. border-radius: 5px;
  271. cursor: pointer;
  272. margin: 10px;
  273. }
  274. .nav_right{
  275. text-align: right;
  276. }
  277. .nav_bnt:hover {
  278. background-color: var(--tool-link-hover-color);
  279. color: var(--btn-hover-color);
  280. }
  281. #contents_nav{
  282. display: flex;
  283. justify-content: space-between;
  284. }