style.css 4.9 KB

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