paragraphs_demo.css

paragraph demo styles.

File

paragraphs/modules/paragraphs_demo/css/paragraphs_demo.css
View source
  1. /**
  2. * @file
  3. * paragraph demo styles.
  4. */
  5. /**
  6. * 50/50 flex grid for image/text paragraph.
  7. */
  8. @media (min-width: 560px) {
  9. .paragraph--type--image-text {
  10. display: flex;
  11. flex-flow: row wrap;
  12. }
  13. .paragraph--type--image-text .field-type-image {
  14. flex: 1 1 0px;
  15. margin: 0;
  16. }
  17. .paragraph--type--image-text .field-name-field-text-demo {
  18. flex: 1 1 0px;
  19. }
  20. }
  21. /**
  22. * Flex row flow for images paragraph.
  23. */
  24. .paragraph--type--images .field-items {
  25. display: flex;
  26. flex-direction: row;
  27. flex-wrap: wrap;
  28. }
  29. .paragraph--type--images .field-item {
  30. margin: 0 1em 1em 0;
  31. }
  32. /**
  33. *50/50 flex grid for image/text paragraph.
  34. */
  35. @media (min-width: 560px) {
  36. .paragraph--type--text-image {
  37. display: flex;
  38. flex-flow: row wrap;
  39. }
  40. .paragraph--type--text-image .field-name-field-text-demo {
  41. flex: 1 1 0px;
  42. margin: 0 1em 0 0;
  43. }
  44. .paragraph--type--text-image .field-type-image {
  45. flex: 1 1 0px;
  46. }
  47. }