list.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. .paginator {
  60. width: -moz-fit-content;
  61. width: fit-content;
  62. margin: auto;
  63. }
  64. .paginator .page-item > a {
  65. color: #248aaa;
  66. }
  67. .paginator .page-item.active > a {
  68. background-color: #248aaa;
  69. color: #f9fafc;
  70. }
  71. .navbar-toggler {
  72. display: none;
  73. }
  74. .pagination {
  75. margin-left: auto;
  76. margin-right: auto;
  77. margin-top: 0.5rem;
  78. margin-bottom: 0.5rem;
  79. width: -moz-fit-content;
  80. width: fit-content;
  81. }
  82. /* ============= Device specific fixes ======= */
  83. /* Large screens such as TV */
  84. @media only screen and (min-width: 1824px) {
  85. .content-section {
  86. padding-left: 1rem;
  87. padding-right: 1rem;
  88. flex: 85%;
  89. max-width: 85%;
  90. }
  91. .post-card-holder .post-card {
  92. width: calc(100% / 5);
  93. }
  94. }
  95. /* Extra large devices (large desktops, 1200px and up) */
  96. @media (max-width: 1400px) {
  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. .navbar-collapse.lang-selector {
  131. display: block !important;
  132. position: absolute;
  133. right: 0;
  134. top: 0.5rem;
  135. }
  136. .post-card-holder {
  137. margin: 0;
  138. margin-top: 1.5rem;
  139. padding-left: 0.5rem;
  140. padding-right: 0.5rem;
  141. position: relative;
  142. transition: all ease-out 0.3s;
  143. }
  144. .post-card-holder .post-card {
  145. width: calc(100% / 3);
  146. }
  147. .content-section.hide .post-card-holder .post-card {
  148. width: 50%;
  149. }
  150. }
  151. /* Large devices (desktops, 992px and up) */
  152. @media (max-width: 992px) {
  153. .post-card-holder .post-card {
  154. width: 50%;
  155. }
  156. .content-section.hide .post-card-holder .post-card {
  157. width: 100%;
  158. }
  159. }
  160. /* Medium devices (tablets, 768px and up) */
  161. @media only screen and (max-width: 768px) {
  162. }
  163. /* Small devices (landscape phones, 576px and up) */
  164. @media only screen and (max-width: 576px) {
  165. .wrapper {
  166. padding-left: 0px;
  167. padding-right: 0px;
  168. flex-flow: column;
  169. overflow: hidden;
  170. }
  171. .content-section {
  172. flex: 100%;
  173. max-width: 100%;
  174. padding-left: 0;
  175. width: 100%;
  176. }
  177. .content {
  178. width: 100%;
  179. padding-left: 0;
  180. padding-right: 0;
  181. transition: all ease-out 0.3s;
  182. }
  183. .content-section.hide .content {
  184. margin-top: 0;
  185. padding-top: 0;
  186. transition: all ease-out 0.3s;
  187. }
  188. .content-section.hide .post-card-holder {
  189. margin-top: 0.5rem;
  190. transition: all ease-out 0.3s;
  191. }
  192. .post-card-holder .post-card {
  193. margin-left: 1%;
  194. margin-right: 1%;
  195. width: 98%;
  196. }
  197. }
  198. /* iPhoneX, iPhone 6,7,8 */
  199. @media only screen and (max-width: 375px) {
  200. }
  201. /* Galaxy S5, Moto G4 */
  202. @media only screen and (max-width: 360px) {
  203. }
  204. /* iPhone 5 or before */
  205. @media only screen and (max-width: 320px) {
  206. }