list.css 5.4 KB

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