list.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. .wrapper {
  2. display: flex;
  3. padding: 0;
  4. margin: 0;
  5. width: 100%;
  6. overflow: hidden;
  7. }
  8. .sidebar {
  9. width: 400px;
  10. background: #f9fafc;
  11. min-height: 100vh;
  12. overflow: auto;
  13. transition: all ease-out 0.3s;
  14. -webkit-transition: all ease-out 0.3s;
  15. }
  16. .sidebar.hide {
  17. position: relative;
  18. width: 0;
  19. transition: all ease-out 0.3s;
  20. -webkit-transition: all ease-out 0.3s;
  21. z-index: -1001;
  22. }
  23. #search-box {
  24. width: 250px;
  25. height: 35px;
  26. padding-left: 15px;
  27. margin-top: 30px;
  28. margin-bottom: 10px;
  29. border-radius: 5px;
  30. background-color: #e5e9f2;
  31. transition: all 0.3s ease-out;
  32. -webkit-transition: all 0.3s ease-out;
  33. border: 1px solid #c0ccda;
  34. }
  35. #search-box:focus {
  36. border: 1pt solid #248aaa;
  37. outline: none;
  38. }
  39. .sidebar-tree {
  40. margin-left: 2rem;
  41. margin-top: 2.5rem;
  42. position: fixed;
  43. }
  44. #list-heading {
  45. padding-left: 0px !important;
  46. }
  47. .tree,
  48. .tree ul {
  49. margin: 0;
  50. padding: 0;
  51. list-style: none;
  52. }
  53. .tree ul {
  54. margin-left: 0.5rem;
  55. position: relative;
  56. }
  57. .tree ul ul {
  58. margin-left: 0.5em;
  59. }
  60. .tree ul:before {
  61. content: "";
  62. display: block;
  63. width: 0;
  64. position: absolute;
  65. top: -10px;
  66. left: -3px;
  67. bottom: 16px;
  68. border-left: 1px solid;
  69. }
  70. .subtree {
  71. padding-left: 0.7rem;
  72. }
  73. .subtree:before {
  74. content: "";
  75. display: block;
  76. width: 0;
  77. position: absolute;
  78. top: 6.5rem;
  79. left: 0.5rem;
  80. bottom: 16px;
  81. border-left: 1px solid;
  82. }
  83. .tree li {
  84. margin: 0;
  85. padding: 0 1em;
  86. line-height: 2em;
  87. color: #3c4858;
  88. font-weight: 700;
  89. position: relative;
  90. }
  91. .subtree li:before {
  92. content: "";
  93. display: block;
  94. width: 20px;
  95. height: 0;
  96. border-top: 1px solid;
  97. margin-top: -1px;
  98. position: absolute;
  99. top: 18px;
  100. left: -3px;
  101. }
  102. .subtree li:last-child:before {
  103. background: #f9fafc;
  104. height: auto;
  105. top: 1em;
  106. bottom: 0;
  107. }
  108. .tree li a {
  109. text-decoration: none;
  110. color: #131313;
  111. transition: all 0.3s ease-out;
  112. -webkit-transition: all 0.3s ease-out;
  113. }
  114. .tree li a:hover {
  115. margin-left: 3px;
  116. color: #2098d1;
  117. transition: all 0.3s ease-out;
  118. -webkit-transition: all 0.3s ease-out;
  119. }
  120. .tree i {
  121. color: #3c4858;
  122. font-size: 12px;
  123. margin-right: 5px;
  124. }
  125. .tree .shift-right {
  126. margin-left: 5px;
  127. }
  128. .tree ul {
  129. display: none;
  130. }
  131. .tree .expand,
  132. .tree .expand > ul {
  133. display: block;
  134. }
  135. a.focused {
  136. color: #2098d1 !important;
  137. }
  138. .content {
  139. width: 100%;
  140. background: #e5e9f2;
  141. padding: 0;
  142. position: relative;
  143. }
  144. .content-cards {
  145. padding-top: 30px;
  146. width: 100%;
  147. padding-left: 28px;
  148. padding-bottom: 20px;
  149. }
  150. .post-cards {
  151. margin: 32px;
  152. }
  153. .post-cards .filtr-item {
  154. width: 23rem !important;
  155. }
  156. .post-cards .card {
  157. margin: 5px;
  158. position: relative;
  159. }
  160. .post-cards .card .card-footer span {
  161. font-size: 10pt;
  162. color: #6c757d !important;
  163. padding-top: 5px;
  164. }
  165. .post-cards .card .card-footer {
  166. background: #fff;
  167. margin-top: auto;
  168. }
  169. .post-summery {
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. display: -webkit-box;
  173. max-height: 144px;
  174. /* fallback */
  175. -webkit-line-clamp: 5;
  176. /* number of lines to show */
  177. -webkit-box-orient: vertical;
  178. }
  179. .post-cards .post-card-link{
  180. text-decoration: none;
  181. }
  182. .content-cards .paginator{
  183. width: fit-content;
  184. margin: auto;
  185. }
  186. .content-cards .paginator .page-item>a{
  187. color: #248aaa;
  188. }
  189. .content-cards .paginator .page-item.active>a{
  190. background-color: #248aaa;
  191. color: #f9fafc;
  192. }
  193. .navbar-toggler {
  194. display: none;
  195. }
  196. /*-------------- Media Queries ---------- */
  197. @media (max-width: 1200px) {
  198. .sidebar-tree {
  199. margin-left: 1rem;
  200. }
  201. .content-cards {
  202. padding-left: 0px;
  203. }
  204. .post-cards {
  205. margin-left: 15px;
  206. }
  207. .post-cards .filtr-item {
  208. width: 22rem !important;
  209. padding: 3px;
  210. }
  211. }
  212. @media only screen and (max-width: 768px) {
  213. .content {
  214. width: 100vw;
  215. padding-left: 15px;
  216. }
  217. .content.overley {
  218. width: 60vw;
  219. padding-left: 3px;
  220. }
  221. .navbar-toggler {
  222. display: block;
  223. }
  224. .sidebar {
  225. width: 0;
  226. }
  227. .sidebar nav {
  228. display: none;
  229. transition: all ease-out 0.3s;
  230. -webkit-transition: all ease-out 0.3s;
  231. }
  232. .sidebar.hide {
  233. position: relative;
  234. z-index: 1001;
  235. width: 40vw;
  236. }
  237. .sidebar-tree {
  238. margin-left: -20rem;
  239. transition: all 0.3s ease-out;
  240. -webkit-transition: all 0.3s ease-out;
  241. }
  242. .sidebar.hide .sidebar-tree {
  243. margin-left: 1.5rem;
  244. transition: all 0.3s ease-out;
  245. }
  246. .content-cards {
  247. padding-top: 20px;
  248. width: 100%;
  249. padding-left: 0px;
  250. }
  251. .post-cards {
  252. margin: 0;
  253. margin-top: 32px;
  254. }
  255. .post-cards .filtr-item {
  256. margin: 10px;
  257. width: 47vw !important;
  258. }
  259. .post-cards .card {
  260. max-width: 47vw !important;
  261. }
  262. .content.overley .post-cards .filtr-item {
  263. margin: 10px;
  264. width: 55vw !important;
  265. }
  266. .content.overley .post-cards .card {
  267. max-width: 55vw !important;
  268. }
  269. }
  270. @media only screen and (max-width: 576px) {
  271. .wrapper {
  272. display: block;
  273. }
  274. #search-box {
  275. width: 85vw;
  276. height: 35px;
  277. padding-left: 5px;
  278. margin-top: 30px;
  279. }
  280. .content {
  281. width: 100vw;
  282. left: 0;
  283. display: block;
  284. padding-left: 2vw;
  285. }
  286. .content.overley {
  287. width: 100vw;
  288. left: 0;
  289. padding-left: 2vw;
  290. }
  291. .sidebar {
  292. position: relative;
  293. max-height: 0;
  294. width: 100vw;
  295. min-height: 0;
  296. overflow: hidden;
  297. transition: all ease-out 0.5s;
  298. -webkit-transition: all ease-out 0.5s;
  299. }
  300. .sidebar-tree {
  301. position: relative;
  302. }
  303. .sidebar.hide {
  304. position: relative;
  305. z-index: 1001;
  306. width: 100vw;
  307. max-height: 100vh;
  308. overflow: hidden;
  309. transition: all ease-out 0.5s;
  310. -webkit-transition: all ease-out 0.5s;
  311. }
  312. .sidebar-tree {
  313. margin-left: 1.5rem;
  314. }
  315. .sidebar.hide .sidebar-tree {
  316. margin-left: 1.5rem;
  317. transition: all 0.3s ease-out;
  318. -webkit-transition: all 0.3s ease-out;
  319. }
  320. .content-cards {
  321. padding-top: 20px;
  322. padding-left: 0px;
  323. transition: all ease-out 0.5s;
  324. -webkit-transition: all ease-out 0.5s;
  325. }
  326. .content.overley .content-cards {
  327. padding-top: 0px;
  328. padding-left: 0px;
  329. transition: all ease-out 0.5s;
  330. -webkit-transition: all ease-out 0.5s;
  331. }
  332. .post-cards {
  333. margin: 0;
  334. margin-top: 32px;
  335. transition: all ease-out 0.5s;
  336. -webkit-transition: all ease-out 0.5s;
  337. }
  338. .content.overley .post-cards {
  339. margin: 0;
  340. transition: all ease-out 0.5s;
  341. -webkit-transition: all ease-out 0.5s;
  342. }
  343. .post-cards .filtr-item {
  344. margin: 0px;
  345. width: 95vw !important;
  346. }
  347. .post-cards .card {
  348. max-width: 90vw !important;
  349. }
  350. .content.overley .post-cards .filtr-item {
  351. margin: 0px;
  352. width: 95vw !important;
  353. }
  354. .content.overley .post-cards .card {
  355. max-width: 95vw !important;
  356. }
  357. }