Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

twocol_section.css

Same filename in this branch
  1. 11.1.x core/profiles/demo_umami/themes/umami/layouts/twocol_section/twocol_section.css
  2. 11.1.x core/modules/layout_builder/layouts/twocol_section/twocol_section.css
/*
 * @file
 * Provides the layout styles for two-column layout section.
 */

.layout--twocol-section {
  display: flex;
  flex-wrap: wrap;
}

.layout--twocol-section > .layout__region {
  flex: 0 1 100%;
}

@media screen and (min-width: 40em) {
  .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--first,
  .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--second {
    flex: 0 1 50%;
  }

  .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--first,
  .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--second {
    flex: 0 1 33%;
  }

  .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--second,
  .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--first {
    flex: 0 1 67%;
  }

  .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--first,
  .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--second {
    flex: 0 1 25%;
  }

  .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--second,
  .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--first {
    flex: 0 1 75%;
  }
}

File

core/themes/stable9/layouts/layout_builder/twocol_section/twocol_section.css

View source
  1. /*
  2. * @file
  3. * Provides the layout styles for two-column layout section.
  4. */
  5. .layout--twocol-section {
  6. display: flex;
  7. flex-wrap: wrap;
  8. }
  9. .layout--twocol-section > .layout__region {
  10. flex: 0 1 100%;
  11. }
  12. @media screen and (min-width: 40em) {
  13. .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--first,
  14. .layout--twocol-section.layout--twocol-section--50-50 > .layout__region--second {
  15. flex: 0 1 50%;
  16. }
  17. .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--first,
  18. .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--second {
  19. flex: 0 1 33%;
  20. }
  21. .layout--twocol-section.layout--twocol-section--33-67 > .layout__region--second,
  22. .layout--twocol-section.layout--twocol-section--67-33 > .layout__region--first {
  23. flex: 0 1 67%;
  24. }
  25. .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--first,
  26. .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--second {
  27. flex: 0 1 25%;
  28. }
  29. .layout--twocol-section.layout--twocol-section--25-75 > .layout__region--second,
  30. .layout--twocol-section.layout--twocol-section--75-25 > .layout__region--first {
  31. flex: 0 1 75%;
  32. }
  33. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal