| 1 |
/* Resets and typography */ |
| 2 |
#convertkit-restrict-content *, |
| 3 |
#convertkit-restrict-content-modal * { |
| 4 |
box-sizing: border-box; |
| 5 |
} |
| 6 |
|
| 7 |
#convertkit-restrict-content h3, |
| 8 |
#convertkit-restrict-content-modal h3 { |
| 9 |
margin: 0 0 20px 0; |
| 10 |
padding: 0; |
| 11 |
font-size: 24px; |
| 12 |
line-height: 40px; |
| 13 |
font-style: normal; |
| 14 |
} |
| 15 |
|
| 16 |
#convertkit-restrict-content h4, |
| 17 |
#convertkit-restrict-content-modal h4 { |
| 18 |
margin: 0 0 5px 0; |
| 19 |
padding: 0; |
| 20 |
font-size: 18px; |
| 21 |
line-height: 30px; |
| 22 |
font-style: normal; |
| 23 |
} |
| 24 |
|
| 25 |
#convertkit-restrict-content p, |
| 26 |
#convertkit-restrict-content-modal p { |
| 27 |
margin: 0 0 20px 0; |
| 28 |
padding: 0; |
| 29 |
font-size: 16px; |
| 30 |
line-height: 28px; |
| 31 |
} |
| 32 |
|
| 33 |
#convertkit-restrict-content small, |
| 34 |
#convertkit-restrict-content-modal small { |
| 35 |
display: block; |
| 36 |
font-size: 13px; |
| 37 |
line-height: 22px; |
| 38 |
color: #111; |
| 39 |
} |
| 40 |
|
| 41 |
/* Overlay */ |
| 42 |
#convertkit-restrict-content { |
| 43 |
width: 100%; |
| 44 |
background: #f9f7f4; |
| 45 |
color: #373f45; |
| 46 |
margin: 30px auto; |
| 47 |
padding: 40px; |
| 48 |
text-align: center; |
| 49 |
box-sizing: border-box; |
| 50 |
border-radius: 8px; |
| 51 |
} |
| 52 |
|
| 53 |
/* Actions */ |
| 54 |
#convertkit-restrict-content .convertkit-product a { |
| 55 |
display: inline-block; |
| 56 |
text-decoration: none; |
| 57 |
height: 42px; |
| 58 |
line-height: 42px; |
| 59 |
font-size: 15px; |
| 60 |
margin: 0; |
| 61 |
padding: 0 20px !important; |
| 62 |
border: none; |
| 63 |
border-radius: 3px; |
| 64 |
} |
| 65 |
|
| 66 |
/* Notices */ |
| 67 |
.convertkit-restrict-content-notice { |
| 68 |
display: inline-block; |
| 69 |
margin: 0 0 20px 0; |
| 70 |
padding: 0 0 0 30px; |
| 71 |
color: #d3434a; |
| 72 |
font-size: 12px; |
| 73 |
line-height: 24px; |
| 74 |
font-weight: 400; |
| 75 |
background-image: url(../images/error.svg); |
| 76 |
background-repeat: no-repeat; |
| 77 |
background-size: 24px 24px; |
| 78 |
} |
| 79 |
|
| 80 |
|
| 81 |
/* Buttons */ |
| 82 |
form.convertkit-restrict-content-form input[type="submit"] { |
| 83 |
height: 42px; |
| 84 |
line-height: 42px; |
| 85 |
font-size: 15px; |
| 86 |
margin: 0; |
| 87 |
padding: 0 20px !important; |
| 88 |
border: none; |
| 89 |
border-radius: 3px; |
| 90 |
} |
| 91 |
|
| 92 |
/* Email input with inline button */ |
| 93 |
form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field { |
| 94 |
display: grid; |
| 95 |
grid-template-areas: "email button"; |
| 96 |
grid-template-columns: 3fr 1fr; |
| 97 |
grid-column-gap: 5px; |
| 98 |
text-align: left; |
| 99 |
max-width: 500px; |
| 100 |
height: 56px; |
| 101 |
margin: 0 auto 20px auto; |
| 102 |
padding: 6px 10px; |
| 103 |
background-image: url(../images/email.svg); |
| 104 |
background-repeat: no-repeat; |
| 105 |
background-color: #fff; |
| 106 |
background-size: 15px 15px; |
| 107 |
background-position: 18px 20px; |
| 108 |
border: 1px solid #fff; |
| 109 |
border-radius: 3px; |
| 110 |
} |
| 111 |
|
| 112 |
form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field.convertkit-restrict-content-error { |
| 113 |
border-color: #d3434a; |
| 114 |
} |
| 115 |
|
| 116 |
form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field input[type="email"] { |
| 117 |
grid-area: email; |
| 118 |
text-indent: 35px; |
| 119 |
height: 42px; |
| 120 |
line-height: 42px; |
| 121 |
margin: 0; |
| 122 |
padding: 0; |
| 123 |
font-size: 15px; |
| 124 |
background: none; |
| 125 |
border: none; |
| 126 |
} |
| 127 |
|
| 128 |
form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field input[type="submit"] { |
| 129 |
grid-area: button; |
| 130 |
} |
| 131 |
|
| 132 |
/* One time code */ |
| 133 |
form.convertkit-restrict-content-form div#convertkit-subscriber-code-container { |
| 134 |
width: 427px; |
| 135 |
height: 100px; |
| 136 |
border: 1px solid #dce1e5; |
| 137 |
border-radius: 4px; |
| 138 |
margin: 0 auto 20px auto; |
| 139 |
overflow: hidden; |
| 140 |
background: #dce1e5; |
| 141 |
} |
| 142 |
|
| 143 |
form.convertkit-restrict-content-form div#convertkit-subscriber-code-container.convertkit-restrict-content-error { |
| 144 |
border-color: #d3434a; |
| 145 |
} |
| 146 |
|
| 147 |
form.convertkit-restrict-content-form div#convertkit-subscriber-code-container input#convertkit-subscriber-code { |
| 148 |
--otp-digits: 6; |
| 149 |
--otp-height: 98px; |
| 150 |
--otp-number-width: 70px; |
| 151 |
--otp-letter-spacing: 41px; |
| 152 |
--otp-text-indent: 20px; |
| 153 |
--otp-border-color: #dce1e5; |
| 154 |
--otp-text-color: #697177; |
| 155 |
--otp-font-size: 50px; |
| 156 |
--_otp-digit: 0; |
| 157 |
all: unset; |
| 158 |
text-align: left; |
| 159 |
margin: 0; |
| 160 |
padding: 0; |
| 161 |
background: |
| 162 |
linear-gradient(90deg, #dce1e5 var(--otp-number-width), transparent 0), |
| 163 |
linear-gradient(90deg, #fff var(--otp-number-width), transparent 0); |
| 164 |
background-position: calc(var(--_otp-digit) * (calc(var(--otp-number-width) + 1px))) 0, 0 0; |
| 165 |
background-repeat: no-repeat, repeat-x; |
| 166 |
background-size: calc(var(--otp-number-width) + 1px) 100%; |
| 167 |
inline-size: calc(var(--otp-digits) * calc(var(--otp-number-width) + 1px)); |
| 168 |
letter-spacing: var(--otp-letter-spacing); |
| 169 |
text-indent: var(--otp-text-indent); |
| 170 |
width: calc((var(--otp-number-width) * var(--otp-digits)) + var(--otp-digits)); |
| 171 |
height: var(--otp-height); |
| 172 |
color: var(--otp-text-color); |
| 173 |
font-size: var(--otp-font-size); |
| 174 |
font-family: monospace; |
| 175 |
font-weight: 400; |
| 176 |
} |
| 177 |
|
| 178 |
/* Modal */ |
| 179 |
#convertkit-restrict-content-modal-background { |
| 180 |
display: none; |
| 181 |
position: fixed; |
| 182 |
width: 100%; |
| 183 |
height: 100%; |
| 184 |
z-index: 999998; |
| 185 |
top: 0; |
| 186 |
left: 0; |
| 187 |
background: rgba(9, 13, 22, 0.8); |
| 188 |
} |
| 189 |
|
| 190 |
#convertkit-restrict-content-modal { |
| 191 |
box-sizing: border-box; |
| 192 |
display: none; |
| 193 |
position: fixed; |
| 194 |
z-index: 999999; |
| 195 |
width: 730px; |
| 196 |
height: 328px; |
| 197 |
top: calc(50% - 164px); |
| 198 |
left: calc(50% - 365px); |
| 199 |
margin: 0; |
| 200 |
padding: 80px 115px; |
| 201 |
background: #fff; |
| 202 |
border: 1px solid #fff; |
| 203 |
border-radius: 8px; |
| 204 |
text-align: center; |
| 205 |
} |
| 206 |
|
| 207 |
#convertkit-restrict-content-modal-loading { |
| 208 |
box-sizing: border-box; |
| 209 |
display: none; |
| 210 |
position: absolute; |
| 211 |
z-index: 1000000; |
| 212 |
width: 100%; |
| 213 |
height: 100%; |
| 214 |
top: 0; |
| 215 |
left: 0; |
| 216 |
margin: 0; |
| 217 |
padding: 0; |
| 218 |
background: url(../images/spinner.gif) center no-repeat rgba(255, 255, 255, 0.8); |
| 219 |
border: none; |
| 220 |
border-radius: 8px; |
| 221 |
text-align: center; |
| 222 |
} |
| 223 |
|
| 224 |
#convertkit-restrict-content-modal form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field { |
| 225 |
background-color: #f4f6f8; |
| 226 |
} |
| 227 |
|
| 228 |
#convertkit-restrict-content-modal-close { |
| 229 |
position: absolute; |
| 230 |
top: 25px; |
| 231 |
right: 25px; |
| 232 |
text-indent: -9999px; |
| 233 |
background-image: url(../images/cross.svg); |
| 234 |
background-repeat: no-repeat; |
| 235 |
background-size: 12px 12px; |
| 236 |
background-color: transparent; |
| 237 |
border: none; |
| 238 |
cursor: pointer; |
| 239 |
} |
| 240 |
|
| 241 |
/* Responsive */ |
| 242 |
@media screen and (max-width: 730px) { |
| 243 |
|
| 244 |
#convertkit-restrict-content { |
| 245 |
padding: 20px; |
| 246 |
} |
| 247 |
|
| 248 |
#convertkit-restrict-content .convertkit-restrict-content-actions { |
| 249 |
padding: 10px; |
| 250 |
} |
| 251 |
|
| 252 |
#convertkit-restrict-content input[type="email"], |
| 253 |
#convertkit-restrict-content input[type="text"], |
| 254 |
#convertkit-restrict-content input#convertkit-subscriber-code { |
| 255 |
width: 100%; |
| 256 |
} |
| 257 |
|
| 258 |
form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field { |
| 259 |
grid-template-areas: |
| 260 |
"email email" |
| 261 |
"button button"; |
| 262 |
max-width: 100%; |
| 263 |
height: auto; |
| 264 |
} |
| 265 |
|
| 266 |
form.convertkit-restrict-content-form div#convertkit-restrict-content-email-field input[type="submit"] { |
| 267 |
margin-top: 10px; |
| 268 |
} |
| 269 |
|
| 270 |
#convertkit-restrict-content-modal { |
| 271 |
width: 90%; |
| 272 |
height: auto; |
| 273 |
left: 5%; |
| 274 |
padding: 40px; |
| 275 |
} |
| 276 |
|
| 277 |
form.convertkit-restrict-content-form div#convertkit-subscriber-code-container { |
| 278 |
width: 213px; |
| 279 |
height: 50px; |
| 280 |
} |
| 281 |
|
| 282 |
form.convertkit-restrict-content-form div#convertkit-subscriber-code-container input#convertkit-subscriber-code { |
| 283 |
--otp-height: 49px; |
| 284 |
--otp-number-width: 35px; |
| 285 |
--otp-letter-spacing: 20px; |
| 286 |
--otp-text-indent: 10px; |
| 287 |
--otp-font-size: 25px; |
| 288 |
} |
| 289 |
} |
| 290 |
|