Skip to content

Commit 8f389c2

Browse files
committed
scss 수정
1 parent 11ee073 commit 8f389c2

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

assets/css/main.scss

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
--vercel-code-operator: var(--v-blue-600);
3939
--vercel-code-added: var(--v-green-700);
4040
--vercel-code-removed: var(--v-red-700);
41+
--vercel-inline-code-bg: rgba(15, 23, 42, 0.06);
42+
--vercel-inline-code-hover-bg: rgba(15, 23, 42, 0.1);
43+
--vercel-inline-code-border: rgba(15, 23, 42, 0.12);
44+
--vercel-inline-code-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.35);
45+
--vercel-inline-code-text: #121826;
46+
--vercel-inline-code-font-size: 0.84em;
47+
--vercel-inline-code-padding-y: 0.16em;
48+
--vercel-inline-code-padding-x: 0.42em;
49+
--vercel-inline-code-radius: 5px;
4150
}
4251
/* 전체 백그라운드 색상 설정 */
4352
html, body {
@@ -260,32 +269,40 @@ article, main, .main {
260269
}
261270

262271
.ohouse-post-content :not(pre) > code {
263-
background: var(--vercel-code-surface);
264-
padding: 0.25em 0.6em;
265-
border-radius: 6px;
266-
font-size: 0.9em;
267-
color: var(--vercel-code-text);
272+
background: var(--vercel-inline-code-bg);
273+
padding: var(--vercel-inline-code-padding-y) var(--vercel-inline-code-padding-x);
274+
border-radius: var(--vercel-inline-code-radius);
275+
font-size: var(--vercel-inline-code-font-size);
276+
color: var(--vercel-inline-code-text);
268277
font-family: var(--monospace);
269-
border: 1px solid var(--vercel-code-border);
270-
box-shadow: 0 10px 24px -18px rgba(12, 14, 18, 0.9);
278+
border: 1px solid var(--vercel-inline-code-border);
279+
box-shadow: var(--vercel-inline-code-shadow);
271280
transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
272281
}
273282

274283
.ohouse-post-content :not(pre) > code:hover {
275284
transform: translateY(-1px);
276-
background-color: #141821;
277-
box-shadow: 0 18px 40px -26px rgba(12, 14, 18, 0.98);
285+
background-color: var(--vercel-inline-code-hover-bg);
286+
box-shadow: 0 16px 32px -26px rgba(15, 23, 42, 0.42);
287+
}
288+
289+
.ohouse-post-content :not(pre) > code::selection {
290+
background-color: rgba(82, 174, 255, 0.22);
291+
color: var(--vercel-inline-code-text);
278292
}
279293

280-
.ohouse-post-content :not(pre) > code::selection,
281294
.ohouse-post-content pre code::selection,
282295
.ohouse-post-content pre span::selection,
283296
.ohouse-post-content pre::selection {
284297
background-color: rgba(82, 174, 255, 0.28);
285298
color: var(--vercel-code-text);
286299
}
287300

288-
.ohouse-post-content :not(pre) > code::-moz-selection,
301+
.ohouse-post-content :not(pre) > code::-moz-selection {
302+
background-color: rgba(82, 174, 255, 0.22);
303+
color: var(--vercel-inline-code-text);
304+
}
305+
289306
.ohouse-post-content pre code::-moz-selection,
290307
.ohouse-post-content pre span::-moz-selection,
291308
.ohouse-post-content pre::-moz-selection {

0 commit comments

Comments
 (0)