list.css 6.5 KB

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