list.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. .wrapper {
  2. display: flex;
  3. padding: 0;
  4. margin: 0;
  5. width: 100%;
  6. }
  7. .content-section {
  8. flex: 80%;
  9. order: 2;
  10. /* background-color: lightseagreen; */
  11. padding: 0;
  12. position: relative;
  13. padding-left: 0.5rem;
  14. padding-right: 0.5rem;
  15. }
  16. .content {
  17. padding: 0;
  18. position: relative;
  19. padding-top: 2rem;
  20. min-height: 130vh;
  21. }
  22. .post-card-holder {
  23. margin-top: 32px;
  24. margin-left: auto;
  25. padding: 0;
  26. display: flex;
  27. flex-flow: wrap;
  28. }
  29. .post-card-holder .post-card {
  30. width: calc(100% / 3);
  31. display: inline-flex;
  32. }
  33. .post-card-holder .card {
  34. margin: 5px;
  35. position: relative;
  36. }
  37. .post-card-holder .card .card-footer span {
  38. font-size: 10pt;
  39. color: #6c757d !important;
  40. padding-top: 5px;
  41. }
  42. .post-card-holder .card .card-footer {
  43. background: #fff;
  44. margin-top: auto;
  45. }
  46. .post-summary {
  47. overflow: hidden;
  48. text-overflow: ellipsis;
  49. display: -webkit-box;
  50. max-height: 144px;
  51. /* fallback */
  52. -webkit-line-clamp: 5;
  53. /* number of lines to show */
  54. -webkit-box-orient: vertical;
  55. }
  56. .post-card-holder .post-card-link {
  57. text-decoration: none;
  58. }
  59. .content-cards .paginator {
  60. width: fit-content;
  61. margin: auto;
  62. }
  63. .content-cards .paginator .page-item > a {
  64. color: #248aaa;
  65. }
  66. .content-cards .paginator .page-item.active > a {
  67. background-color: #248aaa;
  68. color: #f9fafc;
  69. }
  70. .navbar-toggler {
  71. display: none;
  72. }
  73. .pagination {
  74. margin-left: auto;
  75. margin-right: auto;
  76. margin-top: 0.5rem;
  77. margin-bottom: 0.5rem;
  78. width: fit-content;
  79. }
  80. /* ============= Device specific fixes ======= */
  81. /* Large screens such as TV */
  82. @media only screen and (min-width: 1824px) {
  83. .content-section {
  84. padding-left: 1rem;
  85. padding-right: 1rem;
  86. flex: 85%;
  87. }
  88. .post-card-holder .post-card {
  89. width: calc(100% / 5);
  90. }
  91. }
  92. /* Extra large devices (large desktops, 1200px and up) */
  93. @media (max-width: 1400px) {
  94. .content-cards {
  95. padding-left: 0px;
  96. }
  97. .post-card-holder {
  98. margin-left: 0px;
  99. }
  100. .post-card-holder .post-card {
  101. width: calc(100% / 3);
  102. }
  103. }
  104. @media (max-width: 1200px) {
  105. }
  106. /* IPad Pro */
  107. @media (max-width: 1024px) {
  108. .wrapper {
  109. padding-left: 0px;
  110. padding-right: 0px;
  111. }
  112. .content-section {
  113. padding: 0;
  114. flex: 60%;
  115. order: 2;
  116. padding-bottom: 0.5rem;
  117. }
  118. .content {
  119. overflow: hidden;
  120. }
  121. .container {
  122. max-width: 100%;
  123. }
  124. .navbar-toggler {
  125. display: block;
  126. }
  127. #toc-toggler {
  128. visibility: hidden;
  129. }
  130. .content-cards {
  131. padding-top: 20px;
  132. width: 100%;
  133. padding-left: 0px;
  134. }
  135. .post-card-holder {
  136. margin: 0;
  137. margin-top: 1.5rem;
  138. padding-left: 0.5rem;
  139. padding-right: 0.5rem;
  140. position: relative;
  141. }
  142. .post-card-holder .post-card {
  143. width: calc(100% / 3);
  144. }
  145. .content-section.hide .post-card-holder .post-card {
  146. width: 50%;
  147. }
  148. }
  149. /* Large devices (desktops, 992px and up) */
  150. @media (max-width: 992px) {
  151. .wrapper {
  152. padding-left: 0px;
  153. padding-right: 0px;
  154. }
  155. .content-section {
  156. padding: 0;
  157. flex: 60%;
  158. order: 2;
  159. padding-bottom: 0.5rem;
  160. }
  161. .content {
  162. overflow: hidden;
  163. }
  164. .container {
  165. max-width: 100%;
  166. }
  167. .navbar-toggler {
  168. display: block;
  169. }
  170. #toc-toggler {
  171. visibility: hidden;
  172. }
  173. .content-cards {
  174. padding-top: 20px;
  175. width: 100%;
  176. padding-left: 0px;
  177. }
  178. .post-card-holder {
  179. margin: 0;
  180. margin-top: 1.5rem;
  181. padding-left: 0.5rem;
  182. padding-right: 0.5rem;
  183. position: relative;
  184. }
  185. .post-card-holder .post-card {
  186. width: 50%;
  187. }
  188. .content-section.hide .post-card-holder .post-card {
  189. width: 100%;
  190. }
  191. }
  192. /* Medium devices (tablets, 768px and up) */
  193. @media only screen and (max-width: 768px) {
  194. .wrapper {
  195. padding-left: 0px;
  196. padding-right: 0px;
  197. }
  198. .content-section {
  199. padding: 0;
  200. flex: 60%;
  201. order: 2;
  202. padding-bottom: 0.5rem;
  203. }
  204. .content {
  205. overflow: hidden;
  206. }
  207. .container {
  208. max-width: 100%;
  209. }
  210. .navbar-toggler {
  211. display: block;
  212. }
  213. #toc-toggler {
  214. visibility: hidden;
  215. }
  216. .content-cards {
  217. padding-top: 20px;
  218. width: 100%;
  219. padding-left: 0px;
  220. }
  221. .post-card-holder {
  222. margin: 0;
  223. margin-top: 1.5rem;
  224. padding-left: 0.5rem;
  225. padding-right: 0.5rem;
  226. position: relative;
  227. }
  228. .post-card-holder .post-card {
  229. width: 50%;
  230. }
  231. .content-section.hide .post-card-holder .post-card {
  232. width: 100%;
  233. }
  234. }
  235. /* Small devices (landscape phones, 576px and up) */
  236. @media only screen and (max-width: 576px) {
  237. .wrapper {
  238. padding-left: 0px;
  239. padding-right: 0px;
  240. flex-flow: column;
  241. overflow: hidden;
  242. }
  243. .content-section {
  244. flex: 100%;
  245. padding-left: 0;
  246. width: 100%;
  247. }
  248. .content {
  249. width: 100%;
  250. padding-left: 0;
  251. padding-right: 0;
  252. }
  253. .content-section.hide .content {
  254. margin-top: 0;
  255. padding-top: 0;
  256. }
  257. #toc-toggler {
  258. visibility: hidden;
  259. }
  260. .content-cards {
  261. padding-top: 20px;
  262. padding-left: 0px;
  263. transition: all ease-out 0.5s;
  264. -webkit-transition: all ease-out 0.5s;
  265. }
  266. .post-card-holder {
  267. margin: 0;
  268. margin-top: 1.5rem;
  269. padding-right: 0;
  270. padding-left: 0;
  271. transition: all ease-out 0.5s;
  272. -webkit-transition: all ease-out 0.5s;
  273. }
  274. .post-card-holder.hide {
  275. margin-top: 0;
  276. }
  277. .post-card-holder .post-card {
  278. margin-left: 1%;
  279. margin-right: 1%;
  280. width: 98%;
  281. }
  282. }
  283. /* iPhoneX, iPhone 6,7,8 */
  284. @media only screen and (max-width: 375px) {
  285. }
  286. /* Galaxy S5, Moto G4 */
  287. @media only screen and (max-width: 360px) {
  288. }
  289. /* iPhone 5 or before */
  290. @media only screen and (max-width: 320px) {
  291. }