Make init fresh page more responsive
This commit is contained in:
parent
a7354da38f
commit
aa449b12b2
3 changed files with 76 additions and 29 deletions
|
@ -15,7 +15,7 @@ input[type="email"],
|
||||||
input[type="password"],
|
input[type="password"],
|
||||||
input[type="text"] {
|
input[type="text"] {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 5px;
|
/*border-radius: 5px;*/
|
||||||
font: 18px var(--base-type);
|
font: 18px var(--base-type);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,9 @@ section.restore-fresh,
|
||||||
section.restore-backup {
|
section.restore-backup {
|
||||||
margin: 15% auto;
|
margin: 15% auto;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
width: 500px;
|
max-width: 500px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 28.5% 1fr;
|
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
@ -60,16 +59,11 @@ section.password-reset form input {
|
||||||
|
|
||||||
/* SITE RESTORE */
|
/* SITE RESTORE */
|
||||||
|
|
||||||
section.restore-fresh form button {
|
/*section.restore-fresh form input {
|
||||||
padding: 10px 5px;
|
|
||||||
width: 82%;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.restore-fresh form input {
|
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
section.restore-backup form button {
|
section.restore-backup form button {
|
||||||
padding: 10px 5px;
|
padding: 10px 5px;
|
||||||
|
@ -85,20 +79,13 @@ section.restore-backup form input {
|
||||||
/* RESPONSIVE */
|
/* RESPONSIVE */
|
||||||
|
|
||||||
@media only screen and (max-width: 500px) {
|
@media only screen and (max-width: 500px) {
|
||||||
section.login,
|
|
||||||
section.password-reset,
|
|
||||||
section.restore-fresh,
|
|
||||||
section.restore-backup {
|
|
||||||
width: 97%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 375px) {
|
|
||||||
section.login,
|
section.login,
|
||||||
section.password-reset,
|
section.password-reset,
|
||||||
section.restore-fresh,
|
section.restore-fresh,
|
||||||
section.restore-backup {
|
section.restore-backup {
|
||||||
grid-template-columns: 1fr;
|
flex-direction: column;
|
||||||
|
margin: 10px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
section.login img,
|
section.login img,
|
||||||
|
@ -108,3 +95,43 @@ section.restore-backup form input {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Atomic */
|
||||||
|
.p1 { padding: 5px; }
|
||||||
|
.mr2 { margin-right: 10px; }
|
||||||
|
.mb2 { margin-bottom: 10px; }
|
||||||
|
|
||||||
|
.items-center {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grow {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rounded {
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label {
|
||||||
|
height: 30px;
|
||||||
|
width: 90px;
|
||||||
|
margin-right: 1px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: var(--secondary);
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-input {
|
||||||
|
height: 30px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-button {
|
||||||
|
padding: 10px 5px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,35 @@
|
||||||
<div>
|
<div>
|
||||||
<a href="/dashboard">
|
<a href="/dashboard">
|
||||||
<img alt="fipamo logo" class="logo-medium" src="/assets/images/global/fipamo-logo-secondary.svg"/>
|
<img alt="fipamo logo" class="logo-medium mr2" src="/assets/images/global/fipamo-logo-secondary.svg"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<form id="init-form" method="POST" onsubmit="return false;">
|
<form id="init-form" method="POST" onsubmit="return false;">
|
||||||
<label class="inline">handle</label><input type="text" class="inline" name="new_member_handle" id="new_member_handle" placeholder="handle"/>
|
|
||||||
<label class="inline">email</label><input type="text" class="inline" name="new_member_email" id="new_member_email" placeholder="email"/>
|
<label class="items-center rounded mb2">
|
||||||
<label class="inline">password</label><input type="password" class="inline" name="new_member_pass" id="new_member_pass" placeholder="password"/>
|
<span class="form-label p1 items-center">Handle</span>
|
||||||
<label class="inline">confirm</label><input type="password" class="inline" name="new_member_pass2" id="new_member_pass2" placeholder="password confirm"/>
|
<input class="form-input p1 grow" type="text" name="new_member_handle" id="new_member_handle" placeholder="handle"/>
|
||||||
<label class="inline">site title</label><input type="text" class="inline" name="new_member_title" id="new_member_title" placeholder="title"/>
|
</label>
|
||||||
<button id="init-blog" data-action='blog-init' type='submit'>SET UP YOUR SITE</button>
|
|
||||||
<br/><br/>
|
<label class="items-center rounded mb2">
|
||||||
<button class="init-option" id="init-switch-restore">RESTORE FROM BACKUP</button>
|
<span class="form-label p1 items-center">Email</span>
|
||||||
|
<input class="form-input p1 grow" type="text" name="new_member_email" id="new_member_email" placeholder="email"/>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label class="items-center rounded mb2">
|
||||||
|
<span class="form-label p1 items-center">Password</span>
|
||||||
|
<input class="form-input p1 grow" type="password" name="new_member_pass" id="new_member_pass" placeholder="password"/>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label class="items-center rounded mb2">
|
||||||
|
<span class="form-label p1 items-center">Confirm</span>
|
||||||
|
<input class="form-input p1 grow" type="password" name="new_member_pass2" id="new_member_pass2" placeholder="password confirm"/>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<label class="items-center rounded mb2">
|
||||||
|
<span class="form-label p1 items-center">Site title</span>
|
||||||
|
<input class="form-input p1 grow" type="text" name="new_member_title" id="new_member_title" placeholder="title"/>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<button id="init-blog" class="form-button mb2" data-action='blog-init' type='submit'>SET UP YOUR SITE</button>
|
||||||
|
<button class="init-option form-button" id="init-switch-restore">RESTORE FROM BACKUP</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue