PluginProbe
Code Snippets / 4.0.0-beta.2
Code Snippets v4.0.0-beta.2
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / css / common / _upsell.scss

_upsell.scss in Code Snippets 4.0.0-beta.2, at css/common/_upsell.scss

155 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'theme';
2
3 .code-snippets-upsell-banner {
4 display: flex;
5 flex-direction: row;
6 align-items: center;
7 padding: 12px;
8 gap: 10px;
9 background: var(--cs-color-surface);
10 border: 1px solid var(--cs-color-border);
11 border-radius: 5px;
12
13 p {
14 margin: 0;
15 }
16
17 .components-external-link__contents {
18 text-decoration: none;
19 }
20
21 .button-primary {
22 background-color: var(--cs-color-secondary);
23 border: 0;
24 font-weight: bold;
25 margin-inline-start: auto;
26
27 &:hover, &:focus {
28 background-color: var(--cs-color-primary-hover);
29 }
30 }
31
32 .button-link.button-small {
33 text-decoration: none;
34 font-weight: normal;
35 padding: 0;
36 color: var(--cs-color-text-muted);
37 line-height: 1;
38 border: none;
39 }
40 }
41
42 .code-snippets-upsell-dialog,
43 .wrap .code-snippets-upsell-page {
44 h1 {
45 font-size: 32px;
46 margin: 0;
47
48 span {
49 color: var(--cs-color-secondary);
50 }
51 }
52
53 p {
54 margin-block: 0;
55 margin-inline: 2em;
56 font-size: 16px;
57 max-inline-size: 750px;
58 }
59
60 img {
61 inline-size: 82px;
62 }
63
64 ul {
65 display: grid;
66 inline-size: 100%;
67 grid-auto-flow: column;
68 grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
69 max-inline-size: 750px;
70 }
71
72 li {
73 display: flex;
74 flex-flow: row;
75 gap: 11px;
76 font-size: 14px;
77 }
78
79 li::before {
80 content: '';
81 color: #fff;
82 inline-size: 24px;
83 block-size: 24px;
84 border-radius: 50%;
85 background-color: var(--cs-color-primary-hover);
86 display: flex;
87 justify-content: center;
88 align-items: center;
89 }
90
91 .button.button-large {
92 background-color: var(--cs-color-secondary);
93 padding-block: 15px;
94 padding-inline: 20px;
95 font-size: 16px;
96 line-height: inherit;
97 margin-block: 16px 24px;
98 margin-inline: auto;
99 border-color: currentcolor;
100
101 // Matches the specificity of the native-control override in _wp-admin.scss
102 // (.wrap .button-primary:not(.button-link):hover:not(:disabled)) so this
103 // upsell-specific hover styling isn't overridden by the shared button rule.
104 &:is(:hover, :focus):not(.button-link, :disabled) {
105 background-color: var(--cs-color-primary-hover);
106 border-color: var(--cs-color-primary-hover);
107 }
108 }
109 }
110
111 .code-snippets-upsell-page,
112 .code-snippets-upsell-dialog .components-modal__content {
113 margin: 0;
114 padding-block: 48px;
115 padding-inline: 80px;
116 }
117
118 .code-snippets-upsell-page,
119 .code-snippets-upsell-dialog {
120 color: #1c3f41;
121 line-height: 1.5;
122 background: linear-gradient(116.04deg, #edfcff -0.75%, #fcdfd4 93.04%);
123 box-shadow: 0 4px 80px rgb(0 0 0 / 10%);
124 border-radius: 5px;
125 }
126
127 // Bleed the upsell to the full width of the admin content area and fill the
128 // remaining viewport height, so it reads as a full page rather than a small
129 // boxed card floating in the subpage. 168px accounts for the WP admin bar
130 // (32px) plus the plugin toolbar (136px).
131 .code-snippets-upsell-page {
132 box-sizing: border-box;
133 margin-inline-start: -22px;
134 inline-size: calc(100% + 42px);
135 min-block-size: calc(100vh - 168px);
136 border-radius: 0;
137 justify-content: center;
138 }
139
140 .code-snippets-upsell-page,
141 .code-snippets-upsell-dialog .components-modal__content > div:last-child {
142 display: flex;
143 flex-direction: column;
144 align-items: center;
145 text-align: center;
146 gap: 18px;
147 }
148
149 .code-snippets-upsell-dialog {
150 max-block-size: unset;
151 font-family: 'SF Pro', sans-serif;
152 inline-size: 794px;
153 overflow: auto;
154 }
155