| 1 |
/** |
| 2 |
* WDesignKit skin for the shared deactivation survey. |
| 3 |
* |
| 4 |
* Design only — no behaviour, no selectors the SDK's JS binds to. The dialog markup and base rules |
| 5 |
* live in includes/posimyth-sdk/class-posimyth-deactivation-survey.php, which is sync-managed and |
| 6 |
* must not be edited here; that file documents `.posi-deact-p-{slug}` as the parent class a product |
| 7 |
* targets from its OWN stylesheet, so every rule below hangs off `.posi-deact-p-wdesignkit`. |
| 8 |
* |
| 9 |
* Colours are literal hex rather than the var(--wdkit_*) tokens used elsewhere. Those custom |
| 10 |
* properties are declared in build/index.css, which is only enqueued on WDesignKit's own screens — |
| 11 |
* this dialog opens on wp-admin's Plugins page, where they would resolve to nothing. The values are |
| 12 |
* kept in step with src/style/variable.scss by hand: |
| 13 |
* |
| 14 |
* #020202 --wdkit_blk_shade primary / accent / body text |
| 15 |
* #282828 --wdkit_blk_hover |
| 16 |
* #C22076 $Wdkit_pink_normal link hover only |
| 17 |
* #020202 --wdkit_blk_shade body text |
| 18 |
* #808080 --wdkit_gray_txt muted text |
| 19 |
* #F1F1F1 --wdkit_gray_border borders |
| 20 |
* 8px $wdkit_radius_lg |
| 21 |
* |
| 22 |
* The accent (top border, selected card, focus ring) comes from the `accent` config in |
| 23 |
* class-wdkit-deactivate-survey.php, now --wdkit_blk_shade. What is restyled here is everything the |
| 24 |
* shared sheet hard-codes: radii, borders, typography and the two footer buttons. |
| 25 |
*/ |
| 26 |
|
| 27 |
/* Outfit is WDesignKit's UI face. It is NOT loaded on the Plugins screen, so it is named first and |
| 28 |
allowed to fall through to the admin stack rather than being force-loaded for one dialog. */ |
| 29 |
.posi-deact-p-wdesignkit .posi-deact-dialog { |
| 30 |
font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; |
| 31 |
color: #020202; |
| 32 |
border-radius: 8px; |
| 33 |
padding: 28px 30px; |
| 34 |
/* Anchor for the close button, which is appended to this element by the companion JS. */ |
| 35 |
position: relative; |
| 36 |
} |
| 37 |
|
| 38 |
/** |
| 39 |
* Close button. |
| 40 |
* |
| 41 |
* Injected by wdkit-deactivate-survey.js rather than printed, because the dialog markup is |
| 42 |
* sync-managed. Absolutely positioned so it sits in the corner without being part of the heading |
| 43 |
* row's flex flow — the SDK's h3 is display:flex and would otherwise stretch to meet it. |
| 44 |
*/ |
| 45 |
.posi-deact-p-wdesignkit .wdkit-deact-close { |
| 46 |
position: absolute; |
| 47 |
top: 18px; |
| 48 |
right: 18px; |
| 49 |
display: flex; |
| 50 |
align-items: center; |
| 51 |
justify-content: center; |
| 52 |
width: 28px; |
| 53 |
height: 28px; |
| 54 |
padding: 0; |
| 55 |
background: transparent; |
| 56 |
border: 0; |
| 57 |
border-radius: 6px; |
| 58 |
color: #808080; |
| 59 |
cursor: pointer; |
| 60 |
transition: 0.3s all linear; |
| 61 |
} |
| 62 |
|
| 63 |
.posi-deact-p-wdesignkit .wdkit-deact-close:hover, |
| 64 |
.posi-deact-p-wdesignkit .wdkit-deact-close:focus-visible { |
| 65 |
background: #F1F1F1; |
| 66 |
color: #020202; |
| 67 |
} |
| 68 |
|
| 69 |
.posi-deact-p-wdesignkit .posi-deact-dialog h2, |
| 70 |
.posi-deact-p-wdesignkit .posi-deact-title { |
| 71 |
color: #020202; |
| 72 |
font-weight: 600; |
| 73 |
} |
| 74 |
|
| 75 |
.posi-deact-p-wdesignkit .posi-deact-sub { |
| 76 |
color: #808080; |
| 77 |
} |
| 78 |
|
| 79 |
/* Reason cards: WDesignKit's border colour and 8px radius in place of the shared #d9d9d9 / 5px. */ |
| 80 |
.posi-deact-p-wdesignkit .posi-deact-cards label { |
| 81 |
border: 1px solid #F1F1F1; |
| 82 |
border-radius: 8px; |
| 83 |
color: #020202; |
| 84 |
font-size: 14px; |
| 85 |
font-weight: 400; |
| 86 |
transition: 0.3s all linear; |
| 87 |
} |
| 88 |
|
| 89 |
.posi-deact-p-wdesignkit .posi-deact-cards label:hover { |
| 90 |
border-color: #020202; |
| 91 |
} |
| 92 |
|
| 93 |
.posi-deact-p-wdesignkit .posi-deact-opt { |
| 94 |
border: 1px solid #F1F1F1; |
| 95 |
border-radius: 8px; |
| 96 |
color: #020202; |
| 97 |
font-size: 14px; |
| 98 |
transition: 0.3s all linear; |
| 99 |
} |
| 100 |
|
| 101 |
.posi-deact-p-wdesignkit .posi-deact-opts { |
| 102 |
border-top-color: #F1F1F1; |
| 103 |
} |
| 104 |
|
| 105 |
/* Primary button — neutral black, as the dialog has always used. */ |
| 106 |
.posi-deact-p-wdesignkit .posi-deact-submit { |
| 107 |
background: #020202; |
| 108 |
border: 1px solid #020202; |
| 109 |
border-radius: 6px; |
| 110 |
padding: 10px 22px; |
| 111 |
font-size: 14px; |
| 112 |
font-weight: 500; |
| 113 |
transition: 0.3s all linear; |
| 114 |
} |
| 115 |
|
| 116 |
.posi-deact-p-wdesignkit .posi-deact-submit:hover:not(:disabled) { |
| 117 |
background: #282828; |
| 118 |
border-color: #282828; |
| 119 |
} |
| 120 |
|
| 121 |
/* Same hue, dimmed — not a separate grey. */ |
| 122 |
.posi-deact-p-wdesignkit .posi-deact-submit:disabled { |
| 123 |
background: #020202; |
| 124 |
border-color: #020202; |
| 125 |
opacity: 0.5; |
| 126 |
} |
| 127 |
|
| 128 |
/** |
| 129 |
* Secondary action — plain text at rest that becomes an outlined button on hover. |
| 130 |
* |
| 131 |
* The SDK's base rule underlines this button; that is overridden to none, not merely left alone. |
| 132 |
* No border at all at rest, and the box is drawn with `outline` rather than `border` on hover. |
| 133 |
* Outlines are painted outside the box model, so the button neither grows nor shifts the footer |
| 134 |
* when it appears — which is the only reason a transparent placeholder border would be wanted. |
| 135 |
* |
| 136 |
* The focus ring is given the same shape deliberately. A plain <button> here otherwise takes the |
| 137 |
* browser's own ring when the dialog moves focus to it, which reads as a stray border at rest. |
| 138 |
*/ |
| 139 |
.posi-deact-p-wdesignkit .posi-deact-skip { |
| 140 |
background: transparent; |
| 141 |
border: 0; |
| 142 |
border-radius: 6px; |
| 143 |
padding: 10px 22px; |
| 144 |
color: #020202; |
| 145 |
font-size: 14px; |
| 146 |
font-weight: 500; |
| 147 |
line-height: 1.4; |
| 148 |
text-decoration: none; |
| 149 |
outline: none; |
| 150 |
box-shadow: none; |
| 151 |
transition: 0.3s all linear; |
| 152 |
} |
| 153 |
|
| 154 |
.posi-deact-p-wdesignkit .posi-deact-skip:hover, |
| 155 |
.posi-deact-p-wdesignkit .posi-deact-skip:focus-visible { |
| 156 |
background: #ffffff; |
| 157 |
color: #020202; |
| 158 |
outline: 1px solid #020202; |
| 159 |
outline-offset: 0; |
| 160 |
text-decoration: none; |
| 161 |
} |
| 162 |
|
| 163 |
.posi-deact-p-wdesignkit .posi-deact-consent { |
| 164 |
color: #808080; |
| 165 |
} |
| 166 |
|