wide-image.css

Wide image component.

File

core/themes/olivero/css/components/wide-image.css

View source
  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. * Wide image component.
  10. */
  11. [dir="ltr"] .wide-image {
  12. margin-left: 0;
  13. }
  14. [dir="rtl"] .wide-image {
  15. margin-right: 0;
  16. }
  17. [dir="ltr"] .wide-image {
  18. margin-right: 0;
  19. }
  20. [dir="rtl"] .wide-image {
  21. margin-left: 0;
  22. }
  23. .wide-image {
  24. margin-top: 0.5625rem;
  25. margin-bottom: 2.25rem;
  26. }
  27. @media (min-width: 43.75rem) {
  28. [dir="ltr"] .wide-image {
  29. margin-left: -7.14286vw;
  30. }
  31. [dir="rtl"] .wide-image {
  32. margin-right: -7.14286vw;
  33. }
  34. .wide-image {
  35. width: calc(100vw - 2.25rem);
  36. margin-top: 2.25rem;
  37. margin-bottom: 4.5rem;
  38. }
  39. }
  40. @media (min-width: 62.5rem) {
  41. [dir="ltr"] .wide-image {
  42. margin-left: calc(-7.14286vw - -0.06696rem);
  43. }
  44. [dir="rtl"] .wide-image {
  45. margin-right: calc(-7.14286vw - -0.06696rem);
  46. }
  47. .wide-image {
  48. width: calc(85.71429vw - 3.05357rem);
  49. }
  50. }
  51. @media (min-width: 75rem) {
  52. [dir="ltr"] .wide-image {
  53. margin-left: calc(-7.14286vw - -0.62946rem);
  54. }
  55. [dir="rtl"] .wide-image {
  56. margin-right: calc(-7.14286vw - -0.62946rem);
  57. }
  58. .wide-image {
  59. width: calc(85.71429vw - 9.80357rem);
  60. }
  61. }
  62. @media (min-width: 90rem) {
  63. [dir="ltr"] .wide-image {
  64. margin-left: -5.86607rem;
  65. }
  66. [dir="rtl"] .wide-image {
  67. margin-right: -5.86607rem;
  68. }
  69. .wide-image {
  70. width: 68.14286rem;
  71. }
  72. }
  73. /* Ensure that image doesn't overlap sidebar. */
  74. @media (min-width: 62.5rem) {
  75. .sidebar-grid .wide-image {
  76. width: calc(64.28571vw - 2.85268rem);
  77. }
  78. }
  79. @media (min-width: 75rem) {
  80. .sidebar-grid .wide-image {
  81. width: calc(64.28571vw - 7.91518rem);
  82. }
  83. }
  84. @media (min-width: 81.25rem) {
  85. .sidebar-grid .wide-image {
  86. width: calc(71.42857vw - 8.54464rem);
  87. }
  88. }
  89. @media (min-width: 90rem) {
  90. .sidebar-grid .wide-image {
  91. width: 56.41071rem;
  92. }
  93. }
  94. /* Ensure that image doesn't overlap layout builder sections when editing layouts. */
  95. [dir="ltr"] .layout-builder .wide-image {
  96. margin-left: 0;
  97. }
  98. [dir="rtl"] .layout-builder .wide-image {
  99. margin-right: 0;
  100. }
  101. [dir="ltr"] .layout-builder .wide-image {
  102. margin-right: 0;
  103. }
  104. [dir="rtl"] .layout-builder .wide-image {
  105. margin-left: 0;
  106. }
  107. .layout-builder .wide-image {
  108. max-width: 100%;
  109. }

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