style.css 4.7 KB

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