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