|
| 1 | +@keyframes overlay-appear { |
| 2 | + 0% { |
| 3 | + opacity: 0; |
| 4 | + } |
| 5 | + |
| 6 | + 100% { |
| 7 | + opacity: 1; |
| 8 | + } |
| 9 | +} |
| 10 | + |
| 11 | +.Overlay { |
| 12 | + position: absolute; |
| 13 | + width: auto; |
| 14 | + min-width: 192px; |
| 15 | + height: auto; |
| 16 | + overflow: hidden; |
| 17 | + background-color: var(--overlay-bgColor); |
| 18 | + border-radius: var(--borderRadius-large); |
| 19 | + box-shadow: var(--shadow-floating-small); |
| 20 | + animation: overlay-appear 200ms cubic-bezier(0.33, 1, 0.68, 1); |
| 21 | + |
| 22 | + &:focus { |
| 23 | + outline: none; |
| 24 | + } |
| 25 | + |
| 26 | + @media (forced-colors: active) { |
| 27 | + /* Support for Windows high contrast https://sarahmhigley.com/writing/whcm-quick-tips */ |
| 28 | + outline: solid 1px transparent; |
| 29 | + } |
| 30 | + |
| 31 | + &:where([data-reflow-container='true']) { |
| 32 | + max-width: calc(100vw - 2rem); |
| 33 | + } |
| 34 | + |
| 35 | + &:where([data-overflow-auto]) { |
| 36 | + overflow: auto; |
| 37 | + } |
| 38 | + |
| 39 | + &:where([data-overflow-hidden]) { |
| 40 | + overflow: hidden; |
| 41 | + } |
| 42 | + |
| 43 | + &:where([data-overflow-scroll]) { |
| 44 | + overflow: scroll; |
| 45 | + } |
| 46 | + |
| 47 | + &:where([data-overflow-visible]) { |
| 48 | + overflow: visible; |
| 49 | + } |
| 50 | + |
| 51 | + &:where([data-height-xsmall]) { |
| 52 | + height: 192px; |
| 53 | + } |
| 54 | + |
| 55 | + &:where([data-height-small]) { |
| 56 | + height: 256px; |
| 57 | + } |
| 58 | + |
| 59 | + &:where([data-height-medium]) { |
| 60 | + height: 320px; |
| 61 | + } |
| 62 | + |
| 63 | + &:where([data-height-large]) { |
| 64 | + height: 432px; |
| 65 | + } |
| 66 | + |
| 67 | + &:where([data-height-xlarge]) { |
| 68 | + height: 600px; |
| 69 | + } |
| 70 | + |
| 71 | + &:where([data-height-auto]), |
| 72 | + &:where([data-height-initial]) { |
| 73 | + height: auto; |
| 74 | + } |
| 75 | + |
| 76 | + &:where([data-height-fit-content]) { |
| 77 | + height: fit-content; |
| 78 | + } |
| 79 | + |
| 80 | + &:where([data-max-height-xsmall]) { |
| 81 | + max-height: 192px; |
| 82 | + } |
| 83 | + |
| 84 | + &:where([data-max-height-small]) { |
| 85 | + max-height: 256px; |
| 86 | + } |
| 87 | + |
| 88 | + &:where([data-max-height-medium]) { |
| 89 | + max-height: 320px; |
| 90 | + } |
| 91 | + |
| 92 | + &:where([data-max-height-large]) { |
| 93 | + max-height: 432px; |
| 94 | + } |
| 95 | + |
| 96 | + &:where([data-max-height-xlarge]) { |
| 97 | + max-height: 600px; |
| 98 | + } |
| 99 | + |
| 100 | + &:where([data-max-height-fit-content]) { |
| 101 | + max-height: fit-content; |
| 102 | + } |
| 103 | + |
| 104 | + &:where([data-width-small]) { |
| 105 | + width: 256px; |
| 106 | + } |
| 107 | + |
| 108 | + &:where([data-width-medium]) { |
| 109 | + width: 320px; |
| 110 | + } |
| 111 | + |
| 112 | + &:where([data-width-large]) { |
| 113 | + /* stylelint-disable-next-line primer/responsive-widths */ |
| 114 | + width: 480px; |
| 115 | + } |
| 116 | + |
| 117 | + &:where([data-width-xlarge]) { |
| 118 | + /* stylelint-disable-next-line primer/responsive-widths */ |
| 119 | + width: 640px; |
| 120 | + } |
| 121 | + |
| 122 | + &:where([data-width-xxlarge]) { |
| 123 | + /* stylelint-disable-next-line primer/responsive-widths */ |
| 124 | + width: 960px; |
| 125 | + } |
| 126 | + |
| 127 | + &:where([data-width-auto]) { |
| 128 | + width: auto; |
| 129 | + } |
| 130 | + |
| 131 | + &:where([data-max-width-small]) { |
| 132 | + max-width: 256px; |
| 133 | + } |
| 134 | + |
| 135 | + &:where([data-max-width-medium]) { |
| 136 | + max-width: 320px; |
| 137 | + } |
| 138 | + |
| 139 | + &:where([data-max-width-large]) { |
| 140 | + max-width: 480px; |
| 141 | + } |
| 142 | + |
| 143 | + &:where([data-max-width-xlarge]) { |
| 144 | + max-width: 640px; |
| 145 | + } |
| 146 | + |
| 147 | + &:where([data-max-width-xxlarge]) { |
| 148 | + max-width: 960px; |
| 149 | + } |
| 150 | + |
| 151 | + &:where([data-visibility-visible]) { |
| 152 | + visibility: visible; |
| 153 | + } |
| 154 | + |
| 155 | + &:where([data-visibility-hidden]) { |
| 156 | + visibility: hidden; |
| 157 | + } |
| 158 | +} |
0 commit comments