diff --git a/.gitignore b/.gitignore index 24201fa..8674649 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,7 @@ npm-debug.log* # Test coverage/ + +# Reference theme sample (do not commit) +ZCF-v1.0.5/ +sample 깃에 올리지말것/ diff --git a/assets/css/main.css b/assets/css/main.css index 393be6f..f35f78d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -4,22 +4,37 @@ @layer base { :root { - --site-bg: #fbfbfa; - --site-panel: #f6f6f5; - --site-panel-strong: #ffffff; + --site-bg: #fcfcfc; + --site-panel: #fcfcfc; + --site-panel-strong: #fcfcfc; --site-text: #111111; --site-muted: #454545; --site-soft: #6f7480; --site-line: #e2e2e0; - --site-input: #f2f2f1; + --site-input: #fcfcfc; --site-accent: #ff4f2e; --site-accent-text: #ffffff; --site-invert: #111111; --site-invert-text: #ffffff; } + :root[data-theme='dark'] { + --site-bg: #050505; + --site-panel: #080808; + --site-panel-strong: #0d0d0d; + --site-text: #f4f4f2; + --site-muted: #c7c7c2; + --site-soft: #8b8e96; + --site-line: #252525; + --site-input: #171717; + --site-accent: #ff4f2e; + --site-accent-text: #ffffff; + --site-invert: #f4f4f2; + --site-invert-text: #111111; + } + @media (prefers-color-scheme: dark) { - :root { + :root:not([data-theme='light']) { --site-bg: #050505; --site-panel: #080808; --site-panel-strong: #0d0d0d; @@ -62,17 +77,6 @@ background: var(--site-bg); } - .site-content-grid { - @apply mx-auto grid max-w-[1294px] grid-cols-1 px-4 lg:grid-cols-[287px_minmax(0,720px)_287px] lg:px-0; - min-height: calc(100vh - 57px); - background: var(--site-bg); - } - - .site-content-grid--menu-closed { - @apply lg:grid-cols-[minmax(0,720px)_287px]; - max-width: 1007px; - } - .site-section { border-bottom: 1px solid var(--site-line); background: var(--site-bg); @@ -131,15 +135,48 @@ border: 1px solid var(--site-line); background: var(--site-input); color: var(--site-text); + transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; } .site-button { background: var(--site-invert); color: var(--site-invert-text); + transition: opacity 0.2s ease, transform 0.2s ease; + } + + .site-button:hover { + opacity: 0.9; } .site-accent-button { background: var(--site-accent); color: var(--site-accent-text); + transition: opacity 0.2s ease, transform 0.2s ease; } + + .site-accent-button:hover { + opacity: 0.92; + } + + .site-interactive { + transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease; + } + + .site-interactive:hover { + color: var(--site-text); + } + + .site-input:hover, + .site-input:focus-visible { + border-color: color-mix(in srgb, var(--site-text) 24%, var(--site-line)); + } + + .site-panel-hover { + transition: background-color 0.2s ease; + } + + .site-panel-hover:hover { + background: color-mix(in srgb, var(--site-panel) 72%, var(--site-text)); + } + } diff --git a/components/site/LeftSidebar.vue b/components/site/LeftSidebar.vue index a2d9095..124c3ca 100644 --- a/components/site/LeftSidebar.vue +++ b/components/site/LeftSidebar.vue @@ -1,4 +1,13 @@ diff --git a/components/site/PostCard.vue b/components/site/PostCard.vue index dee0abd..d053f84 100644 --- a/components/site/PostCard.vue +++ b/components/site/PostCard.vue @@ -8,7 +8,7 @@ defineProps({