index.php 5.1 KB

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