Ghost/ghost/admin/app/styles/layouts/auth.css

307 lines
5.5 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Authentication /ghost/[signin/signup/forgotten/reset]
/* ---------------------------------------------------------- */
.ghost-login,
.ghost-signup,
.ghost-forgotten,
.ghost-reset {
background: var(--darkgrey);
2015-05-16 14:43:12 +03:00
color: var(--midgrey);
2015-05-14 16:45:37 +03:00
}
.ghost-login main,
.ghost-signup main,
.ghost-forgotten main,
.ghost-reset main {
padding-top: 15px;
}
.ghost-login input,
.ghost-signup input,
.ghost-forgotten input,
.ghost-reset input {
2015-05-16 14:43:12 +03:00
position: relative;
margin: 0;
2015-05-14 16:45:37 +03:00
border: none;
background: color(var(--darkgrey) lightness(+10%));
box-shadow: none;
2015-05-16 14:43:12 +03:00
color: #fff;
font-size: 1.1em;
line-height: 1.4em;
font-weight: 200;
2015-05-14 16:45:37 +03:00
transition: background ease 0.25s;
}
.ghost-login input:focus,
.ghost-signup input:focus,
.ghost-forgotten input:focus,
.ghost-reset input:focus {
border: none;
background: color(var(--darkgrey) lightness(+15%));
}
.ghost-login input:-webkit-autofill,
.ghost-signup input:-webkit-autofill,
.ghost-forgotten input:-webkit-autofill,
.ghost-reset input:-webkit-autofill {
2015-05-16 00:28:30 +03:00
-webkit-box-shadow: 0 0 0 1000px var(--lightgrey) inset !important;
2015-05-14 16:45:37 +03:00
}
.login-box,
.signup-box,
.forgotten-box,
.reset-box {
display: table;
margin: 0 auto;
padding: 0;
2015-05-16 14:43:12 +03:00
max-width: 530px;
height: 90%;
2015-05-14 16:45:37 +03:00
}
@media (max-width: 630px) {
.login-box,
.signup-box,
.forgotten-box,
.reset-box {
max-width: 264px;
text-align: center;
}
}
/* Sign in
/* ---------------------------------------------------------- */
.login-form {
2015-05-16 14:43:12 +03:00
display: table-cell;
2015-05-14 16:45:37 +03:00
max-width: 530px;
color: color(var(--midgrey) lightness(+15%));
vertical-align: middle;
}
@media (max-width: 630px) {
.login-form {
max-width: 264px;
}
}
.login-form .email-wrap,
.login-form .password-wrap {
position: relative;
float: left;
2015-05-16 14:43:12 +03:00
margin: 0 0 5px 0;
2015-05-14 16:45:37 +03:00
}
@media (max-width: 630px) {
.login-form .email-wrap,
.login-form .password-wrap {
margin-bottom: 1em;
}
}
.login-form .email-wrap {
margin-right: 3px;
}
@media (max-width: 630px) {
.login-form .email-wrap {
margin-right: 0;
}
}
.login-form .email,
.login-form .password {
display: inline-block;
clear: both;
padding: 8px 0 8px 8px;
width: 216px;
}
@media (max-width: 630px) {
.login-form .email,
.login-form .password {
width: 264px;
border-radius: 2px;
}
}
@media (min-width: 631px) {
.login-form .email {
border-radius: 2px 0 0 2px;
}
.login-form .password {
border-radius: 0 2px 2px 0;
}
}
.login-form button {
2015-05-16 14:43:12 +03:00
margin-left: 10px;
2015-05-14 16:45:37 +03:00
width: 85px;
height: 37px;
}
@media (max-width: 630px) {
.login-form button {
margin: 0;
margin-bottom: 1em;
2015-05-16 14:43:12 +03:00
width: 100%;
2015-05-14 16:45:37 +03:00
}
}
.login-form .meta {
clear: both;
color: var(--midgrey);
}
.login-form .forgotten-link {
display: inline-block;
margin: 0;
padding: 0;
2015-05-16 14:43:12 +03:00
width: auto;
height: auto;
2015-05-14 16:45:37 +03:00
color: color(var(--midgrey) lightness(-10%));
text-transform: none;
letter-spacing: 0;
2015-05-16 14:43:12 +03:00
font-size: 1.25rem;
2015-05-14 16:45:37 +03:00
}
.login-form a {
color: color(var(--midgrey) lightness(-10%));
font-size: 0.9em;
}
.login-form a:hover {
color: color(var(--midgrey) lightness(+5%));
text-decoration: none;
}
/* Signup / Reset Password
/* ---------------------------------------------------------- */
.signup-form,
.reset-form {
2015-05-16 14:43:12 +03:00
display: table-cell;
2015-05-14 16:45:37 +03:00
max-width: 280px;
color: color(var(--midgrey) lightness(+15%));
vertical-align: middle;
}
@media (max-width: 630px) {
.signup-form,
.reset-form {
width: 264px;
}
}
.signup-form .password-wrap,
.reset-form .password-wrap {
position: relative;
2015-05-16 14:43:12 +03:00
display: table;
float: left;
2015-05-14 16:45:37 +03:00
margin: 0 0 1em 0;
background: color(var(--darkgrey) lightness(+10%));
}
.signup-form input,
.reset-form input {
padding: 8px 10px;
2015-05-16 14:43:12 +03:00
width: 280px;
2015-05-14 16:45:37 +03:00
}
@media (max-width: 630px) {
.signup-form input,
.reset-form input {
width: 264px;
}
}
.signup-form .name-wrap,
.reset-form .name-wrap {
position: relative;
border-radius: 2px;
}
.signup-form .name,
.reset-form .name {
border-radius: 2px;
}
.signup-form .email-wrap,
.reset-form .email-wrap {
position: relative;
border-radius: 2px;
}
.signup-form .email,
.reset-form .email {
border-radius: 2px;
}
.signup-form .password-wrap,
.reset-form .password-wrap {
position: relative;
border-radius: 2px;
}
.signup-form .password,
.reset-form .password {
border-radius: 2px;
}
.signup-form button,
.reset-form button {
margin: 0 0 1em 0;
padding: 0.5em 1.37em;
min-width: 80px;
2015-05-16 14:43:12 +03:00
min-height: 30px;
width: 100%;
height: 36px;
2015-05-14 16:45:37 +03:00
box-shadow: rgba(255, 255, 255, 0.15) 0 1px 0 inset;
}
/* Forgotten password
/* ---------------------------------------------------------- */
.forgotten-form {
2015-05-16 14:43:12 +03:00
display: table-cell;
2015-05-14 16:45:37 +03:00
max-width: 280px;
color: color(var(--midgrey) lightness(+15%));
vertical-align: middle;
}
.forgotten-form .email-wrap {
position: relative;
float: left;
2015-05-16 14:43:12 +03:00
margin: 0 0 1em 0;
2015-05-14 16:45:37 +03:00
width: 100%;
2015-05-16 14:43:12 +03:00
border-radius: 2px;
2015-05-14 16:45:37 +03:00
}
.forgotten-form .email {
padding: 8px 10px;
border-radius: 2px;
}
.forgotten-form button {
width: 100%;
height: 37px;
}
.private-login h1 {
margin-bottom: 2rem;
text-indent: 0;
}
.private-login .form-group {
margin: 0;
}
.private-login input[type="password"] {
padding: 9px 7px;
border-radius: 3px 3px 0 0;
}
.private-login-button {
padding: 9px 1.8em;
border-radius: 0 0 3px 3px;
}