layout-builder-threecol-section.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /*
  8. * @file
  9. * Provides the layout styles for three-column layout section.
  10. */
  11. .layout--threecol-section {
  12. display: flex;
  13. flex-wrap: wrap;
  14. }
  15. .layout--threecol-section > .layout__region {
  16. flex: 1 0 100%;
  17. margin-bottom: 1.125rem;
  18. }
  19. @media (min-width: 62.5rem) {
  20. .layout--threecol-section > .layout__region {
  21. flex-grow: 0;
  22. flex-shrink: 0;
  23. margin-bottom: 0;
  24. }
  25. }
  26. @media (min-width: 62.5rem) {
  27. [dir="ltr"] .layout--threecol-section > .layout__region--first {
  28. margin-right: 1.125rem;
  29. }
  30. [dir="rtl"] .layout--threecol-section > .layout__region--first {
  31. margin-left: 1.125rem;
  32. }
  33. .layout--threecol-section > .layout__region--second {
  34. margin-right: 1.125rem;
  35. margin-left: 1.125rem;
  36. }
  37. [dir="ltr"] .layout--threecol-section > .layout__region--third {
  38. margin-left: 1.125rem;
  39. }
  40. [dir="rtl"] .layout--threecol-section > .layout__region--third {
  41. margin-right: 1.125rem;
  42. }
  43. .layout--threecol-section--25-50-25 > .layout__region--first,
  44. .layout--threecol-section--25-50-25 > .layout__region--third {
  45. flex-basis: calc(25% - 1.125rem);
  46. }
  47. .layout--threecol-section--25-50-25 > .layout__region--second {
  48. flex-basis: calc(50% - 2.25rem);
  49. }
  50. .layout--threecol-section--25-25-50 > .layout__region--first,
  51. .layout--threecol-section--25-25-50 > .layout__region--second {
  52. flex-basis: calc(25% - 1.125rem);
  53. }
  54. .layout--threecol-section--25-25-50 > .layout__region--third {
  55. flex-basis: calc(50% - 2.25rem);
  56. }
  57. .layout--threecol-section--50-25-25 > .layout__region--first {
  58. flex-basis: calc(50% - 2.25rem);
  59. }
  60. .layout--threecol-section--50-25-25 > .layout__region--second,
  61. .layout--threecol-section--50-25-25 > .layout__region--third {
  62. flex-basis: calc(25% - 1.125rem);
  63. }
  64. .layout--threecol-section--33-34-33 > .layout__region--first,
  65. .layout--threecol-section--33-34-33 > .layout__region--second,
  66. .layout--threecol-section--33-34-33 > .layout__region--third {
  67. flex-basis: calc(33.33% - 1.50075rem);
  68. }
  69. }