| 1 |
@use '../sass-utilities' as *; |
| 2 |
|
| 3 |
// Normalize |
| 4 |
@if $pf-v6-global--enable-normalize { |
| 5 |
// stylelint-disable selector-max-type |
| 6 |
*, |
| 7 |
*::before, |
| 8 |
*::after { |
| 9 |
box-sizing: border-box; |
| 10 |
scrollbar-color: var(--pf-t--global--border--color--default) transparent; |
| 11 |
} |
| 12 |
|
| 13 |
// styling scrollbar color in Safari requires setting max-width and max-height |
| 14 |
*::-webkit-scrollbar-thumb { |
| 15 |
background-color: var(--pf-t--global--border--color--default); |
| 16 |
border-radius: var(--pf-t--global--spacer--xs); |
| 17 |
} |
| 18 |
|
| 19 |
*::-webkit-scrollbar-track { |
| 20 |
background-color: transparent; |
| 21 |
} |
| 22 |
|
| 23 |
*::-webkit-scrollbar { |
| 24 |
max-width: var(--pf-t--global--spacer--sm); |
| 25 |
max-height: var(--pf-t--global--spacer--sm); |
| 26 |
} |
| 27 |
|
| 28 |
:where(html) { |
| 29 |
background-image: var(--pf-t--global--background--image--default); |
| 30 |
background-repeat: no-repeat; |
| 31 |
background-attachment: fixed; |
| 32 |
background-position: center; |
| 33 |
background-size: cover; |
| 34 |
} |
| 35 |
|
| 36 |
:where( |
| 37 |
html, |
| 38 |
body |
| 39 |
) { |
| 40 |
height: 100%; |
| 41 |
} |
| 42 |
|
| 43 |
:where(body) { |
| 44 |
font-family: var(--pf-t--global--font--family--body); |
| 45 |
font-size: var(--pf-t--global--font--size--body--default); |
| 46 |
font-weight: var(--pf-t--global--font--weight--body--default); |
| 47 |
line-height: var(--pf-t--global--font--line-height--body); |
| 48 |
color: var(--pf-t--global--text--color--regular); |
| 49 |
} |
| 50 |
|
| 51 |
:where( |
| 52 |
h1, |
| 53 |
h2, |
| 54 |
h3, |
| 55 |
h4, |
| 56 |
h5, |
| 57 |
h6 |
| 58 |
) { |
| 59 |
font-size: 100%; |
| 60 |
font-weight: var(--pf-t--global--font--weight--body--default); |
| 61 |
} |
| 62 |
|
| 63 |
:where(ul) { |
| 64 |
list-style: none; |
| 65 |
} |
| 66 |
|
| 67 |
:where( |
| 68 |
button, |
| 69 |
input, |
| 70 |
optgroup, |
| 71 |
select, |
| 72 |
textarea |
| 73 |
) { |
| 74 |
margin: 0; |
| 75 |
font-family: inherit; |
| 76 |
font-size: 100%; |
| 77 |
line-height: var(--pf-t--global--font--line-height--body); |
| 78 |
color: var(--pf-t--global--text--color--regular); |
| 79 |
} |
| 80 |
|
| 81 |
:where( |
| 82 |
img, |
| 83 |
embed, |
| 84 |
iframe, |
| 85 |
object, |
| 86 |
audio, |
| 87 |
video |
| 88 |
) { |
| 89 |
max-width: 100%; |
| 90 |
height: auto; |
| 91 |
} |
| 92 |
|
| 93 |
:where(iframe) { |
| 94 |
border: 0; |
| 95 |
} |
| 96 |
|
| 97 |
:where(table) { |
| 98 |
border-spacing: 0; |
| 99 |
border-collapse: collapse; |
| 100 |
} |
| 101 |
|
| 102 |
:where( |
| 103 |
td, |
| 104 |
th |
| 105 |
) { |
| 106 |
padding: 0; |
| 107 |
text-align: start; |
| 108 |
} |
| 109 |
|
| 110 |
:where( |
| 111 |
code, |
| 112 |
pre |
| 113 |
) { |
| 114 |
font-family: var(--pf-t--global--font--family--mono); |
| 115 |
} |
| 116 |
|
| 117 |
:where(a) { |
| 118 |
color: var(--pf-t--global--text--color--link--default); |
| 119 |
text-decoration-line: var(--pf-t--global--text-decoration--link--line--default); |
| 120 |
text-decoration-style: var(--pf-t--global--text-decoration--link--style--default); |
| 121 |
text-decoration-color: var(--pf-t--global--text-decoration--color--default); |
| 122 |
text-underline-offset: max(var(--pf-t--global--text-decoration--offset--default), 0.28em); |
| 123 |
transition: ease text-underline-offset 0.3s; |
| 124 |
} |
| 125 |
|
| 126 |
:where(a:hover, a:focus) { |
| 127 |
color: var(--pf-t--global--text--color--link--hover); |
| 128 |
text-decoration-line: var(--pf-t--global--text-decoration--link--line--hover); |
| 129 |
text-decoration-style: var(--pf-t--global--text-decoration--link--style--hover); |
| 130 |
text-decoration-color: var(--pf-t--global--text-decoration--color--hover); |
| 131 |
text-underline-offset: max(var(--pf-t--global--text-decoration--offset--hover), 0.33em); |
| 132 |
} |
| 133 |
|
| 134 |
:where( |
| 135 |
a, |
| 136 |
button |
| 137 |
) { |
| 138 |
cursor: pointer; |
| 139 |
} |
| 140 |
|
| 141 |
:where(:root) { |
| 142 |
color-scheme: light; |
| 143 |
} |
| 144 |
|
| 145 |
:where(.pf-v6-theme-dark) { |
| 146 |
color-scheme: dark; |
| 147 |
} |
| 148 |
// stylelint-enable selector-max-type |
| 149 |
} |