Skip to content

Commit 5ab4314

Browse files
Update index.css (#11)
1 parent 7901ef3 commit 5ab4314

File tree

1 file changed

+41
-0
lines changed
  • packages/blog-starter-kit/themes/enterprise/styles

1 file changed

+41
-0
lines changed

packages/blog-starter-kit/themes/enterprise/styles/index.css

+41
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,44 @@ td code::before, td code::after {
3030
.dark td code::before, .dark td code::after{
3131
content: "" !important;
3232
}
33+
34+
/* Override to remove the backtick */
35+
.hashnode-content-style :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before, .hashnode-content-style :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
36+
content: none;
37+
}
38+
39+
.prose code {
40+
border-radius: 0.25rem;
41+
font-weight: 400 !important;
42+
padding: 0.25rem;
43+
--tw-text-opacity: 1;
44+
color: rgba(0, 0, 0, var(--tw-text-opacity));
45+
font-size: 80%;
46+
background: #f0efed;
47+
}
48+
49+
.dark .prose code {
50+
--tw-bg-opacity: 1;
51+
background-color: rgba(36, 41, 46, var(--tw-bg-opacity));
52+
--tw-text-opacity: 1;
53+
color: rgba(238, 238, 238, var(--tw-text-opacity));
54+
}
55+
56+
.prose pre {
57+
padding-top: 2rem !important;
58+
padding-bottom: 2rem !important;
59+
}
60+
61+
.prose pre code {
62+
background-color: transparent;
63+
border-radius: 0px;
64+
font-weight: 500 !important;
65+
padding: 0px;
66+
font-size: 100%;
67+
color: #fafafa;
68+
}
69+
70+
.dark .prose pre code {
71+
background-color: transparent;
72+
color: #ddd;
73+
}

0 commit comments

Comments
 (0)