diff --git a/css/base/common.css b/css/base/common.css index 6d8d2d71..5169aa57 100644 --- a/css/base/common.css +++ b/css/base/common.css @@ -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 { @@ -226,6 +310,7 @@ padding: 0 16px; } + /* button */ .btn--lg { width: 240px; font-size: var(--text-2lg-size); @@ -233,12 +318,14 @@ 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; } @@ -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; + } } \ No newline at end of file diff --git a/css/pages/auth/style.css b/css/pages/auth/style.css new file mode 100644 index 00000000..0959ee3f --- /dev/null +++ b/css/pages/auth/style.css @@ -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; + } +} \ No newline at end of file diff --git a/css/style.css b/css/style.css index 3da907c6..9a33d3a3 100644 --- a/css/style.css +++ b/css/style.css @@ -1,6 +1,6 @@ /** * @version 1.0 - * @date 2025-07-02 + * @date 2025-07-13 * @author Yeonsu Webpublisher * @link https://velog.io/@iamsuuya/posts **/ @@ -8,204 +8,3 @@ @import './base/base.css'; @import './base/common.css'; -/* 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; -} - -/*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 .input--error { - outline: 1px solid var(--color-error); -} - -.form .error-message { - color: var(--color-error); - 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: 50%; - right: 24px; - transform: translateY(-50%); - 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 .btn--submit { - width: 100%; - height: 56px; -} - - -/* [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; - } - - .form { - gap: 16px 0; - } - - .form .form__label { - font-size: var(--text-md-size); - line-height: var(--text-md-height); - margin-bottom: 8px; - } -} \ No newline at end of file diff --git a/index.html b/index.html index 81a9bb44..689a15a5 100644 --- a/index.html +++ b/index.html @@ -3,20 +3,20 @@ - - - + + + - + - + 판다마켓 @@ -31,7 +31,7 @@

@@ -40,7 +40,7 @@

일상의 모든 물건을
거래해 보세요

- 구경하러 가기 + 구경하러 가기
@@ -84,8 +84,8 @@

믿을 수 있는
판다마켓 중고 거래