list.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. border-radius: 5px;
  29. background-color: #e5e9f2;
  30. transition: all 0.3s ease-out;
  31. -webkit-transition: all 0.3s ease-out;
  32. border: 1px solid #c0ccda;
  33. }
  34. #search-box:focus {
  35. border: 1pt solid #248aaa;
  36. outline: none;
  37. }
  38. .sidebar-tree {
  39. margin-left: 2rem;
  40. margin-top: 2.5rem;
  41. position: fixed;
  42. }
  43. #list-heading {
  44. padding-left: 0px !important;
  45. }
  46. .tree,
  47. .tree ul {
  48. margin: 0;
  49. margin-top: 10px;
  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: -20px;
  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. }
  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. .navbar-toggler {
  179. display: none;
  180. }
  181. /*-------------- Media Queries ---------- */
  182. @media (max-width: 1200px) {
  183. .sidebar-tree {
  184. margin-left: 1rem;
  185. }
  186. .content-cards {
  187. padding-left: 0px;
  188. }
  189. .post-cards {
  190. margin-left: 15px;
  191. }
  192. .post-cards .filtr-item {
  193. width: 22rem !important;
  194. padding: 3px;
  195. }
  196. }
  197. @media only screen and (max-width: 768px) {
  198. .content {
  199. width: 100vw;
  200. padding-left: 15px;
  201. }
  202. .content.overley {
  203. width: 60vw;
  204. padding-left: 3px;
  205. }
  206. .navbar-toggler {
  207. display: block;
  208. }
  209. .sidebar {
  210. width: 0;
  211. }
  212. .sidebar nav {
  213. display: none;
  214. transition: all ease-out 0.3s;
  215. -webkit-transition: all ease-out 0.3s;
  216. }
  217. .sidebar.hide {
  218. position: relative;
  219. z-index: 1001;
  220. width: 40vw;
  221. }
  222. .sidebar-tree {
  223. margin-left: -20rem;
  224. transition: all 0.3s ease-out;
  225. -webkit-transition: all 0.3s ease-out;
  226. }
  227. .sidebar.hide .sidebar-tree {
  228. margin-left: 1.5rem;
  229. transition: all 0.3s ease-out;
  230. }
  231. .content-cards {
  232. padding-top: 20px;
  233. width: 100%;
  234. padding-left: 0px;
  235. }
  236. .post-cards {
  237. margin: 0;
  238. margin-top: 32px;
  239. }
  240. .post-cards .filtr-item {
  241. margin: 10px;
  242. width: 47vw !important;
  243. }
  244. .post-cards .card {
  245. max-width: 47vw !important;
  246. }
  247. .content.overley .post-cards .filtr-item {
  248. margin: 10px;
  249. width: 55vw !important;
  250. }
  251. .content.overley .post-cards .card {
  252. max-width: 55vw !important;
  253. }
  254. }
  255. @media only screen and (max-width: 576px) {
  256. .wrapper {
  257. display: block;
  258. }
  259. #search-box {
  260. width: 85vw;
  261. height: 35px;
  262. padding-left: 5px;
  263. margin-top: 30px;
  264. }
  265. .content {
  266. width: 100vw;
  267. left: 0;
  268. display: block;
  269. padding-left: 2vw;
  270. }
  271. .content.overley {
  272. width: 100vw;
  273. left: 0;
  274. padding-left: 2vw;
  275. }
  276. .sidebar {
  277. position: relative;
  278. max-height: 0;
  279. width: 100vw;
  280. min-height: 0;
  281. overflow: hidden;
  282. transition: all ease-out 0.5s;
  283. -webkit-transition: all ease-out 0.5s;
  284. }
  285. .sidebar-tree {
  286. position: relative;
  287. }
  288. .sidebar.hide {
  289. position: relative;
  290. z-index: 1001;
  291. width: 100vw;
  292. max-height: 100vh;
  293. overflow: hidden;
  294. transition: all ease-out 0.5s;
  295. -webkit-transition: all ease-out 0.5s;
  296. }
  297. .sidebar-tree {
  298. margin-left: 1.5rem;
  299. }
  300. .sidebar.hide .sidebar-tree {
  301. margin-left: 1.5rem;
  302. transition: all 0.3s ease-out;
  303. -webkit-transition: all 0.3s ease-out;
  304. }
  305. .content-cards {
  306. padding-top: 20px;
  307. padding-left: 0px;
  308. transition: all ease-out 0.5s;
  309. -webkit-transition: all ease-out 0.5s;
  310. }
  311. .content.overley .content-cards {
  312. padding-top: 0px;
  313. padding-left: 0px;
  314. transition: all ease-out 0.5s;
  315. -webkit-transition: all ease-out 0.5s;
  316. }
  317. .post-cards {
  318. margin: 0;
  319. margin-top: 32px;
  320. transition: all ease-out 0.5s;
  321. -webkit-transition: all ease-out 0.5s;
  322. }
  323. .content.overley .post-cards {
  324. margin: 0;
  325. transition: all ease-out 0.5s;
  326. -webkit-transition: all ease-out 0.5s;
  327. }
  328. .post-cards .filtr-item {
  329. margin: 0px;
  330. width: 95vw !important;
  331. }
  332. .post-cards .card {
  333. max-width: 90vw !important;
  334. }
  335. .content.overley .post-cards .filtr-item {
  336. margin: 0px;
  337. width: 95vw !important;
  338. }
  339. .content.overley .post-cards .card {
  340. max-width: 95vw !important;
  341. }
  342. }