header-site-branding.css

Same filename in other branches
  1. 10 core/themes/olivero/css/components/header-site-branding.css
  2. 11.x core/themes/olivero/css/components/header-site-branding.css

Site branding in header.

File

core/themes/olivero/css/components/header-site-branding.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. * Site branding in header.
  10. */
  11. [dir="ltr"] .site-branding {
  12. margin-right: 1.125rem;
  13. margin-left: -1.125rem;
  14. }
  15. [dir="rtl"] .site-branding {
  16. margin-right: -1.125rem;
  17. margin-left: 1.125rem;
  18. }
  19. [dir="ltr"] .site-branding {
  20. padding-left: 1.125rem;
  21. }
  22. [dir="rtl"] .site-branding {
  23. padding-right: 1.125rem;
  24. }
  25. [dir="ltr"] .site-branding {
  26. padding-right: 1.125rem;
  27. }
  28. [dir="rtl"] .site-branding {
  29. padding-left: 1.125rem;
  30. }
  31. .site-branding {
  32. display: flex;
  33. flex-shrink: 1;
  34. align-items: flex-end;
  35. min-width: calc(33.33333vw + 0.75rem);
  36. min-height: 3.375rem;
  37. padding-top: 0;
  38. padding-bottom: 0.5625rem;
  39. /* @todo - #0d7ab8 isn't currently a variable. */
  40. background-image: linear-gradient(160deg, #2494db 0%, #0d7ab8 78.66%);
  41. }
  42. @media (min-width: 31.25rem) {
  43. .site-branding {
  44. min-height: 4.5rem;
  45. }
  46. }
  47. @media (min-width: 43.75rem) {
  48. .site-branding {
  49. min-height: 6.75rem;
  50. padding-bottom: 1.125rem;
  51. }
  52. }
  53. @media (min-width: 62.5rem) {
  54. .site-branding {
  55. min-width: calc(14.28571vw + 0.99107rem);
  56. }
  57. }
  58. @media (min-width: 75rem) {
  59. [dir="ltr"] .site-branding {
  60. margin-left: -2.25rem;
  61. }
  62. [dir="rtl"] .site-branding {
  63. margin-right: -2.25rem;
  64. }
  65. [dir="ltr"] .site-branding {
  66. padding-left: 2.25rem;
  67. }
  68. [dir="rtl"] .site-branding {
  69. padding-right: 2.25rem;
  70. }
  71. [dir="ltr"] .site-branding {
  72. padding-right: 2.25rem;
  73. }
  74. [dir="rtl"] .site-branding {
  75. padding-left: 2.25rem;
  76. }
  77. .site-branding {
  78. min-width: calc(14.28571vw + 0.99107rem);
  79. min-height: 11.25rem;
  80. padding-top: 0;
  81. padding-bottom: 0;
  82. }
  83. }
  84. @media (min-width: 90rem) {
  85. .site-branding {
  86. min-width: 13.98214rem;
  87. }
  88. }
  89. [dir="rtl"] .site-branding {
  90. background-image: linear-gradient(-160deg, #2494db 0%, #0d7ab8 78.66%);
  91. }
  92. .site-branding--bg-gray {
  93. background: #f7f9fa;
  94. }
  95. .site-branding--bg-white {
  96. background: #fff;
  97. }
  98. .site-branding__inner {
  99. display: flex;
  100. align-items: center;
  101. }
  102. .site-branding__inner a {
  103. text-decoration: none;
  104. }
  105. @media (min-width: 75rem) {
  106. [dir="ltr"] .site-branding__inner {
  107. padding-left: 0;
  108. }
  109. [dir="rtl"] .site-branding__inner {
  110. padding-right: 0;
  111. }
  112. [dir="ltr"] .site-branding__inner {
  113. padding-right: 0;
  114. }
  115. [dir="rtl"] .site-branding__inner {
  116. padding-left: 0;
  117. }
  118. .site-branding__inner {
  119. height: 6.75rem;
  120. padding-top: 0.5625rem;
  121. padding-bottom: 0.5625rem;
  122. }
  123. }
  124. .site-branding__logo {
  125. flex-shrink: 0;
  126. max-width: 100%;
  127. }
  128. .site-branding__logo img {
  129. width: auto;
  130. max-width: 100%;
  131. max-height: 2.25rem;
  132. }
  133. @media (min-width: 31.25rem) {
  134. .site-branding__logo img {
  135. max-height: 3.375rem;
  136. }
  137. }
  138. @media (min-width: 43.75rem) {
  139. .site-branding__logo img {
  140. max-height: 4.5rem;
  141. }
  142. }
  143. @media (min-width: 75rem) {
  144. .site-branding__logo img {
  145. max-height: 5.625rem;
  146. }
  147. }
  148. .site-branding__text {
  149. color: #fff;
  150. font-size: 1.125rem;
  151. font-weight: bold;
  152. }
  153. .site-branding__text a {
  154. color: inherit;
  155. }
  156. @media (min-width: 43.75rem) {
  157. .site-branding__text {
  158. font-size: 1.75rem;
  159. line-height: 1.75rem;
  160. }
  161. }
  162. @media (min-width: 75rem) {
  163. .site-branding__text {
  164. letter-spacing: 0.02em;
  165. font-size: 2rem;
  166. line-height: 2.25rem;
  167. }
  168. }
  169. .site-branding--bg-gray .site-branding__text,
  170. .site-branding--bg-white .site-branding__text {
  171. color: #2494db;
  172. }
  173. [dir="ltr"] .site-branding__logo + .site-branding__text {
  174. margin-left: 0.75rem;
  175. }
  176. [dir="rtl"] .site-branding__logo + .site-branding__text {
  177. margin-right: 0.75rem;
  178. }

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