|
| 1 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a { |
| 2 | + /* TODO remove --rh-color-link-inline-on-dark for v2 */ |
| 3 | + /* stylelint-disable-next-line */ |
| 4 | + color: var(--rh-color-link-inline-on-dark, var(--rh-color-interactive-blue-lighter, #92c5f9)); |
| 5 | + text-decoration: none; |
| 6 | +} |
| 7 | + |
| 8 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a:hover { |
| 9 | + /* TODO remove --rh-color-link-inline-hover-on-dark for v2 */ |
| 10 | + /* stylelint-disable-next-line */ |
| 11 | + color: var(--rh-color-link-inline-hover-on-dark, var(--rh-color-interactive-blue-lightest, #b9dafc)); |
| 12 | + text-decoration: underline; |
| 13 | +} |
| 14 | + |
| 15 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a:is(:focus, :focus-within) { |
| 16 | + /* TODO remove --rh-color-link-inline-focus-on-dark for v2 */ |
| 17 | + /* stylelint-disable-next-line */ |
| 18 | + color: var(--rh-color-link-inline-focus-on-dark, var(--rh-color-interactive-blue-lightest, #b9dafc)); |
| 19 | + text-decoration: underline; |
| 20 | +} |
| 21 | + |
| 22 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a:visited { |
| 23 | + /* TODO remove --rh-color-link-inline-visited-on-dark for v2 */ |
| 24 | + /* stylelint-disable-next-line */ |
| 25 | + color: var(--rh-color-link-inline-visited-on-dark, var(--rh-color-interactive-blue-lightest, #b9dafc)); |
| 26 | + text-decoration: none; |
| 27 | +} |
| 28 | + |
| 29 | +/* ensure links fully wrap img tags */ |
| 30 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) a[slot^="logo"] { |
| 31 | + display: block; |
| 32 | +} |
| 33 | + |
| 34 | +:is(rh-footer) a[slot^="logo"] > img { |
| 35 | + display: block; |
| 36 | + width: auto; |
| 37 | + height: 100%; |
| 38 | + height: var(--rh-size-icon-04, 40px); |
| 39 | +} |
| 40 | + |
| 41 | +:is(rh-footer, rh-footer-universal, rh-global-footer) :is(h1, h2, h3, h4, h5, h6) { |
| 42 | + font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif); |
| 43 | + line-height: var(--rh-line-height-heading, 1.3); |
| 44 | +} |
| 45 | + |
| 46 | +rh-footer [slot="links"]:is(h1, h2, h3, h4, h5):nth-of-type(n+5) { |
| 47 | + --_link-header-margin: calc(var(--rh-space-2xl, 32px) - var(--rh-space-lg, 16px)); |
| 48 | +} |
| 49 | + |
| 50 | +rh-footer [slot^="links"] a { |
| 51 | + gap: var(--rh-footer-links-gap, var(--rh-space-md, 8px)); |
| 52 | +} |
| 53 | + |
| 54 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) [slot^="links"] li { |
| 55 | + margin: 0; |
| 56 | + padding: 0; |
| 57 | + display: contents; |
| 58 | +} |
| 59 | + |
| 60 | +:is(rh-footer, :is(rh-footer-universal, rh-global-footer)) [slot^="links"] a { |
| 61 | + display: block; |
| 62 | + color: var(--rh-color-text-primary-on-dark, #ffffff) !important; |
| 63 | + font-size: var(--rh-footer-link-font-size, var(--rh-font-size-body-text-sm, 0.875rem)); |
| 64 | + width: fit-content; |
| 65 | +} |
| 66 | + |
| 67 | +:is(rh-footer-universal, rh-global-footer) [slot^="links"] a { |
| 68 | + font-size: inherit; |
| 69 | +} |
| 70 | + |
| 71 | +/** |
| 72 | + * Section side gap |
| 73 | + */ |
| 74 | +:is(rh-footer, rh-footer-universal, rh-global-footer) { |
| 75 | + --rh-footer-section-side-gap: var(--rh-space-lg, 16px); |
| 76 | +} |
| 77 | + |
| 78 | +/* (min-width: --rh-breakpoint-sm) */ |
| 79 | +@media screen and (min-width: 768px) { |
| 80 | + :is(rh-footer, rh-footer-universal, rh-global-footer) { |
| 81 | + --rh-footer-section-side-gap: var(--rh-space-2xl, 32px); |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | +/* (min-width: --rh-breakpoint-xl) */ |
| 86 | +@media screen and (min-width: 1440px) { |
| 87 | + :is(rh-footer, rh-footer-universal, rh-global-footer) { |
| 88 | + --rh-footer-section-side-gap: var(--rh-space-4xl, 64px); |
| 89 | + } |
| 90 | +} |
| 91 | + |
| 92 | +/** |
| 93 | + * No JS Experience |
| 94 | + */ |
| 95 | +rh-footer:not(:defined) { |
| 96 | + background-color: var(--rh-color-surface-darker, #1f1f1f); |
| 97 | + width: 100%; |
| 98 | + display: grid; |
| 99 | + grid-template-areas: |
| 100 | + "footer" |
| 101 | + "global"; |
| 102 | + grid-template-rows: 1fr auto; |
| 103 | + min-height: var(--rh-footer-nojs-min-height, 750px); |
| 104 | +} |
| 105 | + |
| 106 | +:is(rh-footer-universal, rh-global-footer):not(:defined):before { |
| 107 | + grid-area: global; |
| 108 | +} |
| 109 | + |
| 110 | +/* Adding styles to logo */ |
| 111 | +rh-footer:not(:defined) > [slot="logo"] { |
| 112 | + padding: var(--rh-space-2xl, 32px) var(--_section-side-gap); |
| 113 | +} |
| 114 | + |
| 115 | +/* A11y hide child components */ |
| 116 | +rh-footer:not(:defined) > :not([slot="logo"], :is(rh-footer-universal, rh-global-footer)), |
| 117 | +:is(rh-footer-universal, rh-global-footer):not(:defined) > * { |
| 118 | + border: 0; |
| 119 | + clip: rect(1px, 1px, 1px, 1px); |
| 120 | + height: 1px; |
| 121 | + margin: -1px; |
| 122 | + overflow: hidden; |
| 123 | + padding: 0; |
| 124 | + position: absolute; |
| 125 | + width: 1px; |
| 126 | +} |
| 127 | + |
| 128 | +:is(rh-footer-universal, rh-global-footer):not(:defined) { |
| 129 | + background-color: var(--rh-color-surface-darkest, #151515); |
| 130 | + display: block; |
| 131 | + width: 100%; |
| 132 | + min-height: 176px; |
| 133 | +} |
| 134 | + |
| 135 | +rh-footer-universal rh-footer-copyright { |
| 136 | + grid-column: -1/1; |
| 137 | +} |
0 commit comments