index.php 4.9 KB

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