recipe.css

Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css
  2. 11.x core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css
  3. 9 core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css
  4. 8.9.x core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css

This file is used to style the recipe using the 'full' view mode.

File

core/profiles/demo_umami/themes/umami/css/components/content-types/recipe/recipe.css

View source
  1. /**
  2. * @file
  3. * This file is used to style the recipe using the 'full' view mode.
  4. */
  5. /* The image alongside the four badges. */
  6. .recipe__overview {
  7. display: flex;
  8. flex-wrap: wrap;
  9. }
  10. .recipe__overview > .recipe__overview-media {
  11. flex: 0 1 100%;
  12. }
  13. .recipe__overview > .recipe__badges {
  14. display: flex;
  15. flex-direction: column;
  16. gap: 0.96rem;
  17. }
  18. /* Large */
  19. @media screen and (min-width: 60rem) {
  20. /* 960px */
  21. .recipe__overview {
  22. margin-right: -1.5%;
  23. margin-left: -1.5%;
  24. }
  25. .recipe__overview > .recipe__overview-media {
  26. flex: 0 1 47%;
  27. margin-right: 1.5%;
  28. margin-left: 1.5%;
  29. }
  30. .recipe__overview > .recipe__badges {
  31. flex: 0 1 50%;
  32. flex-direction: row;
  33. flex-wrap: wrap;
  34. gap: 0;
  35. }
  36. .recipe__badges > .recipe__badge {
  37. flex: 0 1 44%;
  38. margin-right: 3%;
  39. margin-left: 3%;
  40. }
  41. }
  42. /* The ingredients alongside the instructions. */
  43. .recipe__detail {
  44. display: flex;
  45. flex-wrap: wrap;
  46. }
  47. .recipe__detail > .recipe__ingredients,
  48. .recipe__detail > .recipe__instructions {
  49. flex: 0 1 100%;
  50. }
  51. /* Medium */
  52. @media screen and (min-width: 48em) {
  53. /* 768px */
  54. .recipe__detail {
  55. margin-right: -1.5%;
  56. margin-left: -1.5%;
  57. }
  58. .recipe__detail > .recipe__ingredients,
  59. .recipe__detail > .recipe__instructions {
  60. margin-right: 1.5%;
  61. margin-left: 1.5%;
  62. }
  63. .recipe__detail > .recipe__ingredients {
  64. flex: 0 1 30%;
  65. }
  66. .recipe__detail > .recipe__instructions {
  67. flex: 0 1 64%;
  68. }
  69. }
  70. .node--type-recipe.node--view-mode-full .recipe__related {
  71. margin-top: 2rem;
  72. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.