block.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .flex {
  2. display: flex;
  3. flex-flow: row wrap;
  4. }
  5. .flex .block:not(.subheader) {
  6. flex: 0 1 50%;
  7. overflow: hidden;
  8. padding: 0;
  9. }
  10. .flex.card .block:not(.subheader) {
  11. margin: 0.75rem;
  12. flex: 0 1 calc(50% - 1.5rem);
  13. min-height: 5rem;
  14. padding-top: 1.5rem;
  15. padding-bottom: 1.5rem;
  16. }
  17. .flex.stacked .block:not(.subheader) {
  18. margin-bottom: 0;
  19. }
  20. .flex.third {
  21. flex-flow: row wrap;
  22. }
  23. .flex.third .block:not(.large) {
  24. flex: 0 1 calc(33.33% - 1.5rem);
  25. max-width: calc(33.33% - 1.5rem);
  26. }
  27. .flex .block.large,
  28. .flex.card .block.large {
  29. flex: 0 1 100%;
  30. }
  31. .column {
  32. column-count: 3;
  33. margin: 1rem 0;
  34. }
  35. .column.half {
  36. column-count: 2;
  37. }
  38. .column > * {
  39. display: inline-block;
  40. width: 100%;
  41. }
  42. @media screen and (max-width: 612px) {
  43. .flex.card .block:not(.subheader),
  44. .flex .block:not(.subheader),
  45. .flex.third .block:not(.subheader) {
  46. margin-bottom: 0;
  47. flex: 0 1 100%;
  48. max-width: 100%;
  49. }
  50. .column,
  51. .column.half {
  52. column-count: 1;
  53. }
  54. }
  55. @media screen and (min-width: 613px) and (max-width: 1024px) {
  56. .flex.card .block:not(.subheader),
  57. .flex .block:not(.subheader),
  58. .flex.third .block:not(.subheader) {
  59. flex: 0 1 calc(50% - 1.5rem);
  60. max-width: 100%;
  61. }
  62. .column {
  63. column-count: 2;
  64. }
  65. }