Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions css/base/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,90 @@
background-image: url(../../img/ico/ico_instagram.svg);
}

/*form*/
.form {
display: grid;
gap: 24px 0;
}

.form .form__label {
display: block;
font-size: var(--text-2lg-size);
line-height: var(--text-2lg-height);
font-weight: 700;
margin-bottom: 16px;
}

.form .form__input {
display: block;
width: 100%;
height: 56px;
background: var(--color-gray-100);
border-radius: 12px;
padding: 0 24px;
color: var(--color-gray-800);
}

.form .form__input::placeholder {
color: var(--color-gray-400);
}

.form .form__input:focus {
outline: 1px solid var(--color-primary-100);
}

.form .form__input:-webkit-autofill{
-webkit-box-shadow: 0 0 0 1000px var(--color-gray-100) inset;
}

.form .message {
display: block;
margin-top: 8px;
padding: 0 16px;
font-size: var(--text-md-size);
line-height: var(--text-md-height);
font-weight: 600;
}

.form .password-input {
position: relative;
}

.form .password-input .form__input {
padding-right: 72px;
}

.form .password-input__toggle {
position: absolute;
top: 16px;
right: 24px;
width: 24px;
height: 24px;
mask-image: url(../../img/ico/ico-visibility-off.svg);
-webkit-mask-image: url(../../img/ico/ico-visibility-off.svg);
background: var(--color-gray-600);
z-index: 1;
}

.form .password-input__toggle[aria-pressed="true"] {
mask-image: url(../../img/ico/ico-visibility-on.svg);
-webkit-mask-image: url(../../img/ico/ico-visibility-on.svg);
}

.form .status--error .form__input {
outline: 1px solid var(--color-error);
}

.form .status--error .message {
color: var(--color-error);
}

.form .btn--submit {
width: 100%;
height: 56px;
}


/* [Tablet] media query */
@media screen and (max-width: 1199px) {
.wrap .inner {
Expand All @@ -226,19 +310,22 @@
padding: 0 16px;
}

/* button */
.btn--lg {
width: 240px;
font-size: var(--text-2lg-size);
line-height: var(--text-2lg-height);
padding: 11px 40px;
}

/* header */
body:not([class*=sign-]) .header .ico--logo {
background: var(--ico-logo-text);
width: 103px;
height: 51px;
}

/* footer */
.footer {
padding: 32px 0 30px;
}
Expand All @@ -253,4 +340,16 @@
.footer .copyright {
order: 3;
}


/* form */
.form {
gap: 16px 0;
}

.form .form__label {
font-size: var(--text-md-size);
line-height: var(--text-md-height);
margin-bottom: 8px;
}
}
115 changes: 115 additions & 0 deletions css/pages/auth/style.css
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호 경로만 봐도 어떤 목적의 스타일인지 알겠네요 👍👍

Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/* auth header */
body[class*=sign-] .header {
position: relative;
height: auto;
display: flex;
justify-content: center;
border: 0;
background-color: transparent;
margin-bottom: 40px;
}

body[class*=sign-] .header .ico--logo {
width: 396px;
height: 132px;
}

/* auth */
body[class*=sign-] .wrap {
padding: 60px 0;
}

/* sign-in/sign-out */
body[class*=sign-] .wrap {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}

body[class*=sign-] .inner {
max-width: calc(640px + 104px);
padding: 0 52px;
margin: 0 auto;
}

body[class*=sign-] .main {
display: grid;
gap: 24px 0;
}

body[class*=sign-] .sns-login {
background: #E6F2FF;
border-radius: 8px;
font-weight: 500;
padding: 16px 23px;
display: flex;
align-items: center;
justify-content: space-between;
}

body[class*=sign-] .sns-list {
display: flex;
align-items: center;
gap: 0 16px;
}

body[class*=sign-] .sns-list .ico {
width: 42px;
height: 42px;
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
}

body[class*=sign-] .sns-list a {
display: block;
}

body[class*=sign-] .sns-list .ico--google {
background-image: url(../../../img/ico/ico-google.svg);
}

body[class*=sign-] .sns-list .ico--kakao {
background-image: url(../../../img/ico/ico_kakao.svg);
}

body[class*=sign-] .auth-find {
font-weight: 500;
text-align: center;
font-size: var(--text-md-size);
line-height: var(--text-md-height);
}

body[class*=sign-] .auth-find .btn {
margin-left: 4px;
}


/* [Tablet] media query */
@media screen and (max-width: 1199px) {
body[class*=sign-] .wrap {
padding: 48px 0;
}
}

/* [Mobile] media query */
@media screen and (max-width: 767px) {
body[class*=sign-] .header {
margin-bottom: 24px;
}

body[class*=sign-] .header .ico--logo {
width: 198px;
height: 66px;
}

body[class*=sign-] .wrap {
padding: 24px 0;
}

body[class*=sign-] .inner {
padding: 0 16px;
max-width: 400px;
}
}
Loading
Loading