|
5 | 5 | * LICENSE file in the root directory of this source tree. |
6 | 6 | */ |
7 | 7 |
|
| 8 | +/* |
| 9 | +The popup looks like an Infima secondary alert when the theme loads Infima, |
| 10 | +and falls back to Infima's default values otherwise. |
| 11 | + */ |
| 12 | + |
8 | 13 | .popup { |
9 | 14 | position: fixed; |
10 | 15 | bottom: 16px; |
11 | 16 | right: 16px; |
| 17 | + box-sizing: border-box; |
12 | 18 | width: 344px; |
13 | 19 | display: flex; |
14 | 20 | align-items: center; |
15 | 21 | justify-content: space-between; |
16 | 22 | z-index: 999; |
| 23 | + padding: var(--ifm-alert-padding-vertical, 1rem) |
| 24 | + var(--ifm-alert-padding-horizontal, 1rem); |
| 25 | + border: var(--ifm-alert-border-width, 0) solid |
| 26 | + var(--ifm-color-secondary-dark, rgb(212 213 216)); |
| 27 | + border-left-width: var(--ifm-alert-border-left-width, 5px); |
| 28 | + border-radius: var(--ifm-alert-border-radius, 0.4rem); |
| 29 | + box-shadow: var(--ifm-alert-shadow, 0 1px 2px 0 rgb(0 0 0 / 10%)); |
| 30 | + background-color: var( |
| 31 | + --ifm-color-secondary-contrast-background, |
| 32 | + rgb(253 253 254) |
| 33 | + ); |
| 34 | + color: var(--ifm-color-secondary-contrast-foreground, rgb(71 71 72)); |
17 | 35 | } |
18 | 36 |
|
19 | 37 | .popup p { |
|
33 | 51 | align-items: center; |
34 | 52 | } |
35 | 53 |
|
36 | | -.buttonContainer :global(.close) { |
| 54 | +.refreshButton { |
| 55 | + padding: var(--ifm-button-padding-vertical, 0.375rem) |
| 56 | + var(--ifm-button-padding-horizontal, 1.5rem); |
| 57 | + border: var(--ifm-button-border-width, 1px) solid transparent; |
| 58 | + border-radius: var(--ifm-button-border-radius, 0.4rem); |
| 59 | + background-color: transparent; |
| 60 | + color: inherit; |
| 61 | + font-size: 0.875rem; |
| 62 | + font-weight: var(--ifm-button-font-weight, 700); |
| 63 | + line-height: 1.5; |
| 64 | + text-decoration: underline; |
| 65 | + white-space: nowrap; |
| 66 | + cursor: pointer; |
| 67 | + user-select: none; |
| 68 | +} |
| 69 | + |
| 70 | +.closeButton { |
37 | 71 | margin: 0; |
38 | 72 | padding: 0; |
| 73 | + color: inherit; |
| 74 | + font-size: 1.5rem; |
| 75 | + font-weight: 700; |
| 76 | + line-height: 1; |
| 77 | + opacity: 0.75; |
| 78 | + transition: opacity var(--ifm-transition-fast, 200ms) |
| 79 | + var(--ifm-transition-timing-default, cubic-bezier(0.08, 0.52, 0.52, 1)); |
| 80 | +} |
| 81 | + |
| 82 | +.closeButton:hover, |
| 83 | +.closeButton:focus { |
| 84 | + opacity: 1; |
39 | 85 | } |
0 commit comments