index.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <?php
  2. require_once '../pcdl/html_head.php';
  3. ?>
  4. <body>
  5. <script language="javascript" src="../pcdl/index.js"></script>
  6. <style>
  7. .content_block {
  8. flex: 0 0 auto;
  9. width: 25%;
  10. padding: 10px;
  11. }
  12. .content_inner {
  13. display: flex;
  14. }
  15. .title_bar {
  16. justify-content: space-between;
  17. display: flex;
  18. margin: 1em 0;
  19. }
  20. .h3 {
  21. font-size: 18px;
  22. font-weight: 700;
  23. }
  24. .index_list_categories {
  25. padding: 1rem;
  26. }
  27. .index_list_categories a:hover {
  28. color: var(--tool-link-hover-color);
  29. }
  30. /*.index_list_categories a,a:link{
  31. color: var(--main-color);
  32. }*/
  33. .index_list_categories button {
  34. border: none;
  35. }
  36. .pd-10 {
  37. padding: 10px;
  38. }
  39. #footer_nav {
  40. display: none;
  41. }
  42. .index_article {
  43. background-color: #e0e0e0;
  44. }
  45. .index_course {
  46. background-color: #313131;
  47. }
  48. .index_course .h3 {
  49. color: white;
  50. }
  51. .article_right {
  52. width: calc(100% - 80px);
  53. }
  54. .course_right a,
  55. .article_right a {
  56. color: var(--main-color);
  57. }
  58. .title a,
  59. .course_right title {
  60. font-size: 120%;
  61. font-weight: 700;
  62. display: -webkit-box;
  63. -webkit-box-orient: vertical;
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. -webkit-line-clamp: 2;
  67. }
  68. #course_list_new .card {
  69. height: 150px;
  70. padding: 0;
  71. display: grid;
  72. grid-template-columns: 120px 1fr;
  73. }
  74. .card_photo {
  75. height: 100%;
  76. background: gray;
  77. border-radius: 20px 0 0 20px;
  78. }
  79. .course_right {
  80. padding: 10px;
  81. display: flex;
  82. flex-direction: column;
  83. width: calc(100% - 10px);
  84. }
  85. .summary {
  86. margin-top: auto;
  87. display: -webkit-box;
  88. -webkit-box-orient: vertical;
  89. overflow: hidden;
  90. text-overflow: ellipsis;
  91. width: 100%;
  92. -webkit-line-clamp: 2;
  93. }
  94. #pali_pedia .card {
  95. background-color: #F9F9F9;
  96. box-shadow: unset;
  97. display: grid;
  98. grid-template-columns: 2fr 1fr;
  99. grid-template-areas:
  100. "title author"
  101. "summary author";
  102. }
  103. #pali_pedia .title {
  104. grid-area: title;
  105. font-size: 120%;
  106. }
  107. #pali_pedia .summary {
  108. grid-area: summary;
  109. }
  110. #pali_pedia .author {
  111. grid-area: author;
  112. color: gray;
  113. }
  114. .author {
  115. text-overflow: ellipsis;
  116. overflow: hidden;
  117. white-space: nowrap;
  118. }
  119. </style>
  120. <style media="screen and (min-width:800px)">
  121. .index_list_content {
  122. display: flex;
  123. margin: auto;
  124. max-width: 900px;
  125. }
  126. .index_course .index_list_content {
  127. flex-direction: row-reverse;
  128. }
  129. .title_bar {
  130. flex: 4;
  131. position: relative;
  132. margin: 2em;
  133. }
  134. #article_new {
  135. flex: 9;
  136. }
  137. #course_list_new {
  138. flex: 8;
  139. }
  140. #pali_pedia .card {
  141. margin: 0;
  142. }
  143. #pali_pedia {
  144. flex: 12;
  145. display: grid;
  146. grid-template-columns: 1fr 1fr;
  147. grid-gap: 10px;
  148. }
  149. .title_bar .h3 {
  150. font-size: 250%;
  151. }
  152. .title_more {
  153. position: absolute;
  154. right: 30px;
  155. bottom: 0;
  156. }
  157. .index_pedia .index_list_content {
  158. flex-direction: column;
  159. }
  160. .index_pedia .title_bar {
  161. display: grid;
  162. justify-content: unset;
  163. text-align: center;
  164. }
  165. .index_pedia .title_more {
  166. all: unset;
  167. }
  168. </style>
  169. <!--
  170. <style media="screen and (max-width:800px)">
  171. #right_pannal {
  172. display: none;
  173. }
  174. .when_right_fixed {
  175. padding-right: 0;
  176. }
  177. .index_toolbar {
  178. position: unset;
  179. }
  180. #pali_pedia {
  181. font-size: 200%;
  182. margin-top: auto;
  183. margin-bottom: auto;
  184. padding-left: 0.5em;
  185. }
  186. .content_inner {
  187. display: block;
  188. }
  189. .article_list {}
  190. </style>-->
  191. <a name="pagetop"></a>
  192. <!-- tool bar begin-->
  193. <?php
  194. require_once("head_bar.php");
  195. ?>
  196. <!--tool bar end -->
  197. <div class="index_inner">
  198. <div class="index_list_categories index_article">
  199. <div class="index_list_content">
  200. <div class="title_bar">
  201. <span class="title h3"><?php echo $_local->gui->composition; ?></span>
  202. <span class="title_more"><a href="../collect"><?php echo $_local->gui->more; ?></a></span>
  203. </div>
  204. <div id="article_new">
  205. </div>
  206. </div>
  207. </div>
  208. <div class="index_list_categories index_course">
  209. <div class="index_list_content">
  210. <div class="title_bar">
  211. <span class="title h3"><?php echo $_local->gui->lesson; ?></span>
  212. <span class="title_more"><a href="../course"><?php echo $_local->gui->more; ?></a></span>
  213. </div>
  214. <div id="course_list_new">
  215. </div>
  216. </div>
  217. </div>
  218. <div class="index_list_categories index_pedia">
  219. <div class="index_list_content">
  220. <div class="title_bar">
  221. <span class="title h3"><?php echo $_local->gui->encyclopedia; ?></span>
  222. <span class="title_more"><a href="../wiki"><?php echo $_local->gui->more; ?></a></span>
  223. </div>
  224. <div id="pali_pedia">
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <script>
  230. $(document).ready(function() {
  231. index_onload();
  232. });
  233. </script>
  234. <?php
  235. include "../pcdl/html_foot.php";
  236. ?>