index.php 4.4 KB

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