Skip to content

Commit

Permalink
Update index.css (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
martyna-mindsdb committed Jan 25, 2024
1 parent 7901ef3 commit 5ab4314
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/blog-starter-kit/themes/enterprise/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,44 @@ td code::before, td code::after {
.dark td code::before, .dark td code::after{
content: "" !important;
}

/* Override to remove the backtick */
.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 {
content: none;
}

.prose code {
border-radius: 0.25rem;
font-weight: 400 !important;
padding: 0.25rem;
--tw-text-opacity: 1;
color: rgba(0, 0, 0, var(--tw-text-opacity));
font-size: 80%;
background: #f0efed;
}

.dark .prose code {
--tw-bg-opacity: 1;
background-color: rgba(36, 41, 46, var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgba(238, 238, 238, var(--tw-text-opacity));
}

.prose pre {
padding-top: 2rem !important;
padding-bottom: 2rem !important;
}

.prose pre code {
background-color: transparent;
border-radius: 0px;
font-weight: 500 !important;
padding: 0px;
font-size: 100%;
color: #fafafa;
}

.dark .prose pre code {
background-color: transparent;
color: #ddd;
}

0 comments on commit 5ab4314

Please sign in to comment.