| 1 |
.pf-v6-c-skeleton { |
| 2 |
--pf-v6-c-skeleton--BackgroundColor: var(--pf-t--global--background--color--secondary--default); |
| 3 |
--pf-v6-c-skeleton--Width: auto; |
| 4 |
--pf-v6-c-skeleton--Height: auto; |
| 5 |
--pf-v6-c-skeleton--BorderRadius: var(--pf-t--global--spacer--sm); |
| 6 |
--pf-v6-c-skeleton--before--PaddingBlockEnd: 0; |
| 7 |
--pf-v6-c-skeleton--before--Height: auto; |
| 8 |
--pf-v6-c-skeleton--before--Content: "\00a0"; |
| 9 |
--pf-v6-c-skeleton--after--LinearGradientAngle: 90deg; |
| 10 |
--pf-v6-c-skeleton--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default); |
| 11 |
--pf-v6-c-skeleton--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover); |
| 12 |
--pf-v6-c-skeleton--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default); |
| 13 |
--pf-v6-c-skeleton--after--TranslateX: 0; |
| 14 |
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading-reduced-motion; |
| 15 |
--pf-v6-c-skeleton--after--AnimationDuration: 3s; |
| 16 |
--pf-v6-c-skeleton--after--AnimationIterationCount: infinite; |
| 17 |
--pf-v6-c-skeleton--after--AnimationTimingFunction: linear; |
| 18 |
--pf-v6-c-skeleton--after--AnimationDelay: .5s; |
| 19 |
} |
| 20 |
@media screen and (prefers-reduced-motion: no-preference) { |
| 21 |
.pf-v6-c-skeleton { |
| 22 |
--pf-v6-c-skeleton--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default); |
| 23 |
--pf-v6-c-skeleton--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover); |
| 24 |
--pf-v6-c-skeleton--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default); |
| 25 |
--pf-v6-c-skeleton--after--TranslateX: -100%; |
| 26 |
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading; |
| 27 |
} |
| 28 |
} |
| 29 |
.pf-v6-c-skeleton { |
| 30 |
--pf-v6-c-skeleton--m-circle--BorderRadius: var(--pf-t--global--border--radius--pill); |
| 31 |
--pf-v6-c-skeleton--m-circle--before--PaddingBlockEnd: 100%; |
| 32 |
--pf-v6-c-skeleton--m-text-4xl--Height: calc(var(--pf-t--global--font--size--4xl) * var(--pf-t--global--font--line-height--heading)); |
| 33 |
--pf-v6-c-skeleton--m-text-3xl--Height: calc(var(--pf-t--global--font--size--3xl) * var(--pf-t--global--font--line-height--heading)); |
| 34 |
--pf-v6-c-skeleton--m-text-2xl--Height: calc(var(--pf-t--global--font--size--2xl) * var(--pf-t--global--font--line-height--heading)); |
| 35 |
--pf-v6-c-skeleton--m-text-xl--Height: calc(var(--pf-t--global--font--size--xl) * var(--pf-t--global--font--line-height--heading)); |
| 36 |
--pf-v6-c-skeleton--m-text-lg--Height: calc(var(--pf-t--global--font--size--lg) * var(--pf-t--global--font--line-height--body)); |
| 37 |
--pf-v6-c-skeleton--m-text-md--Height: calc(var(--pf-t--global--font--size--md) * var(--pf-t--global--font--line-height--body)); |
| 38 |
--pf-v6-c-skeleton--m-text-sm--Height: calc(var(--pf-t--global--font--size--sm) * var(--pf-t--global--font--line-height--body)); |
| 39 |
--pf-v6-c-skeleton--m-width-sm--Width: 6.25rem; |
| 40 |
--pf-v6-c-skeleton--m-width-md--Width: 12.5rem; |
| 41 |
--pf-v6-c-skeleton--m-width-lg--Width: 18.75rem; |
| 42 |
--pf-v6-c-skeleton--m-width-25--Width: 25%; |
| 43 |
--pf-v6-c-skeleton--m-width-33--Width: calc(100% / 3); |
| 44 |
--pf-v6-c-skeleton--m-width-50--Width: 50%; |
| 45 |
--pf-v6-c-skeleton--m-width-66--Width: calc(100% / 3 * 2); |
| 46 |
--pf-v6-c-skeleton--m-width-75--Width: 75%; |
| 47 |
--pf-v6-c-skeleton--m-height-sm--Height: 6.25rem; |
| 48 |
--pf-v6-c-skeleton--m-height-md--Height: 12.5rem; |
| 49 |
--pf-v6-c-skeleton--m-height-lg--Height: 18.75rem; |
| 50 |
--pf-v6-c-skeleton--m-height-25--Height: 25%; |
| 51 |
--pf-v6-c-skeleton--m-height-33--Height: calc(100% / 3); |
| 52 |
--pf-v6-c-skeleton--m-height-50--Height: 50%; |
| 53 |
--pf-v6-c-skeleton--m-height-66--Height: calc(100% / 3 * 2); |
| 54 |
--pf-v6-c-skeleton--m-height-75--Height: 75%; |
| 55 |
--pf-v6-c-skeleton--m-height-100--Height: 100%; |
| 56 |
} |
| 57 |
|
| 58 |
.pf-v6-c-skeleton { |
| 59 |
position: relative; |
| 60 |
width: var(--pf-v6-c-skeleton--Width); |
| 61 |
height: var(--pf-v6-c-skeleton--Height); |
| 62 |
overflow: hidden; |
| 63 |
background-color: var(--pf-v6-c-skeleton--BackgroundColor); |
| 64 |
border-radius: var(--pf-v6-c-skeleton--BorderRadius); |
| 65 |
transform: translate(0); |
| 66 |
} |
| 67 |
.pf-v6-c-skeleton::before { |
| 68 |
display: block; |
| 69 |
height: var(--pf-v6-c-skeleton--before--Height); |
| 70 |
padding-block-end: var(--pf-v6-c-skeleton--before--PaddingBlockEnd); |
| 71 |
content: var(--pf-v6-c-skeleton--before--Content); |
| 72 |
} |
| 73 |
:where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-skeleton::after { |
| 74 |
scale: -1 1; |
| 75 |
} |
| 76 |
|
| 77 |
.pf-v6-c-skeleton::after { |
| 78 |
position: absolute; |
| 79 |
inset: 0; |
| 80 |
display: block; |
| 81 |
content: ""; |
| 82 |
background: linear-gradient(var(--pf-v6-c-skeleton--after--LinearGradientAngle), var(--pf-v6-c-skeleton--after--LinearGradientColorStop1), var(--pf-v6-c-skeleton--after--LinearGradientColorStop2), var(--pf-v6-c-skeleton--after--LinearGradientColorStop3)); |
| 83 |
transform: translate3d(var(--pf-v6-c-skeleton--after--TranslateX), 0, 0); |
| 84 |
animation: var(--pf-v6-c-skeleton--after--AnimationName) var(--pf-v6-c-skeleton--after--AnimationDuration) var(--pf-v6-c-skeleton--after--AnimationTimingFunction) var(--pf-v6-c-skeleton--after--AnimationDelay) var(--pf-v6-c-skeleton--after--AnimationIterationCount); |
| 85 |
} |
| 86 |
.pf-v6-c-skeleton.pf-m-circle { |
| 87 |
--pf-v6-c-skeleton--BorderRadius: var(--pf-v6-c-skeleton--m-circle--BorderRadius); |
| 88 |
} |
| 89 |
.pf-v6-c-skeleton.pf-m-square, .pf-v6-c-skeleton.pf-m-circle { |
| 90 |
--pf-v6-c-skeleton--before--Height: 0; |
| 91 |
--pf-v6-c-skeleton--before--PaddingBlockEnd: var(--pf-v6-c-skeleton--m-circle--before--PaddingBlockEnd); |
| 92 |
} |
| 93 |
.pf-v6-c-skeleton.pf-m-width-sm { |
| 94 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-sm--Width); |
| 95 |
} |
| 96 |
.pf-v6-c-skeleton.pf-m-width-md { |
| 97 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-md--Width); |
| 98 |
} |
| 99 |
.pf-v6-c-skeleton.pf-m-width-lg { |
| 100 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-lg--Width); |
| 101 |
} |
| 102 |
.pf-v6-c-skeleton.pf-m-width-25 { |
| 103 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-25--Width); |
| 104 |
} |
| 105 |
.pf-v6-c-skeleton.pf-m-width-33 { |
| 106 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-33--Width); |
| 107 |
} |
| 108 |
.pf-v6-c-skeleton.pf-m-width-50 { |
| 109 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-50--Width); |
| 110 |
} |
| 111 |
.pf-v6-c-skeleton.pf-m-width-66 { |
| 112 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-66--Width); |
| 113 |
} |
| 114 |
.pf-v6-c-skeleton.pf-m-width-75 { |
| 115 |
--pf-v6-c-skeleton--Width: var(--pf-v6-c-skeleton--m-width-75--Width); |
| 116 |
} |
| 117 |
.pf-v6-c-skeleton.pf-m-height-sm { |
| 118 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-sm--Height); |
| 119 |
} |
| 120 |
.pf-v6-c-skeleton.pf-m-height-md { |
| 121 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-md--Height); |
| 122 |
} |
| 123 |
.pf-v6-c-skeleton.pf-m-height-lg { |
| 124 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-lg--Height); |
| 125 |
} |
| 126 |
.pf-v6-c-skeleton.pf-m-height-25 { |
| 127 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-25--Height); |
| 128 |
} |
| 129 |
.pf-v6-c-skeleton.pf-m-height-33 { |
| 130 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-33--Height); |
| 131 |
} |
| 132 |
.pf-v6-c-skeleton.pf-m-height-50 { |
| 133 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-50--Height); |
| 134 |
} |
| 135 |
.pf-v6-c-skeleton.pf-m-height-66 { |
| 136 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-66--Height); |
| 137 |
} |
| 138 |
.pf-v6-c-skeleton.pf-m-height-75 { |
| 139 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-75--Height); |
| 140 |
} |
| 141 |
.pf-v6-c-skeleton.pf-m-height-100 { |
| 142 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-height-100--Height); |
| 143 |
} |
| 144 |
.pf-v6-c-skeleton.pf-m-text-4xl { |
| 145 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-4xl--Height); |
| 146 |
} |
| 147 |
.pf-v6-c-skeleton.pf-m-text-3xl { |
| 148 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-3xl--Height); |
| 149 |
} |
| 150 |
.pf-v6-c-skeleton.pf-m-text-2xl { |
| 151 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-2xl--Height); |
| 152 |
} |
| 153 |
.pf-v6-c-skeleton.pf-m-text-xl { |
| 154 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-xl--Height); |
| 155 |
} |
| 156 |
.pf-v6-c-skeleton.pf-m-text-lg { |
| 157 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-lg--Height); |
| 158 |
} |
| 159 |
.pf-v6-c-skeleton.pf-m-text-md { |
| 160 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-md--Height); |
| 161 |
} |
| 162 |
.pf-v6-c-skeleton.pf-m-text-sm { |
| 163 |
--pf-v6-c-skeleton--Height: var(--pf-v6-c-skeleton--m-text-sm--Height); |
| 164 |
} |
| 165 |
|
| 166 |
@keyframes pf-v6-c-skeleton-loading { |
| 167 |
0% { |
| 168 |
transform: translateX(-100%); |
| 169 |
} |
| 170 |
60% { |
| 171 |
transform: translateX(100%); |
| 172 |
} |
| 173 |
100% { |
| 174 |
transform: translateX(100%); |
| 175 |
} |
| 176 |
} |
| 177 |
@keyframes pf-v6-c-skeleton-loading-reduced-motion { |
| 178 |
0% { |
| 179 |
opacity: 0.25; |
| 180 |
} |
| 181 |
60% { |
| 182 |
opacity: 1; |
| 183 |
} |
| 184 |
100% { |
| 185 |
opacity: 0.25; |
| 186 |
} |
| 187 |
} |