blog.css 5.2 KB

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