mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Updated minimal signup form to be centered by default
no issue Added `margin: 0 auto;` css by default.
This commit is contained in:
parent
66ca072055
commit
12f7fd0153
@ -96,7 +96,7 @@ export default class SignupFormEmbedModal extends Component {
|
||||
options[`label-${i + 1}`] = label.name;
|
||||
}
|
||||
|
||||
let style = 'min-height: 58px; max-width: 440px;';
|
||||
let style = 'min-height: 58px; max-width: 440px; margin: 0 auto;';
|
||||
|
||||
if (this.style === 'all-in-one') {
|
||||
// We serve twice the size of the icon to support high resolution screens
|
||||
@ -113,7 +113,7 @@ export default class SignupFormEmbedModal extends Component {
|
||||
|
||||
if (preview) {
|
||||
if (this.style === 'minimal') {
|
||||
style = 'max-width: 440px;width: 100%;position: absolute; left: 50%; top:50%; transform: translate(-50%, -50%);';
|
||||
style = 'min-height: 58px; max-width: 440px;width: 100%;position: absolute; left: 50%; top:50%; transform: translate(-50%, -50%);';
|
||||
} else {
|
||||
style = 'height: 100vh';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user