Skip to content

Commit

Permalink
relocate markdwon styles
Browse files Browse the repository at this point in the history
  • Loading branch information
iceljc committed Nov 11, 2024
1 parent 2454b44 commit 4dc184a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 72 deletions.
72 changes: 0 additions & 72 deletions src/lib/scss/custom/common/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,75 +180,3 @@ button:focus {
.thin-scrollbar {
scrollbar-width: thin;
}

.markdown-container {
overflow-x: auto;
scrollbar-width: thin;

&:has(.language-sql),
&:has(.language-java),
&:has(.language-javascript),
&:has(.language-typescript),
&:has(.language-csharp),
&:has(.language-python),
&:has(.language-json) {
background-color: black;
color: white;
border-radius: 5px;
padding: 5px 10px;
}

pre {
-ms-overflow-style: none !important;
white-space: pre-wrap;
margin-top: 1em;
margin-bottom: 1em;
}

pre::-webkit-scrollbar {
display: none !important;
}

table {
margin-top: 1em !important;
margin-bottom: 1em !important;
border-radius: 5px;

th, td {
padding: 3px 5px !important;
}
}

p {
margin-top: 0 !important;
margin-bottom: 0 !important;
}

ul {
list-style-position: inside !important;
}
}

.markdown-lite {
table {
th, td {
border: 1px solid white;
}
}

a {
color: white;
}
}

.markdown-dark {
table {
th, td {
border: 1px solid $primary;
}
}

a {
color: $primary;
}
}
72 changes: 72 additions & 0 deletions src/lib/scss/custom/components/_markdown.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
.markdown-container {
overflow-x: auto;
scrollbar-width: thin;

&:has(.language-sql),
&:has(.language-java),
&:has(.language-javascript),
&:has(.language-typescript),
&:has(.language-csharp),
&:has(.language-python),
&:has(.language-json) {
background-color: black;
color: white !important;
border-radius: 5px;
padding: 5px 10px;
}

pre {
-ms-overflow-style: none !important;
white-space: pre-wrap;
margin-top: 1em;
margin-bottom: 1em;
}

pre::-webkit-scrollbar {
display: none !important;
}

table {
margin-top: 1em !important;
margin-bottom: 1em !important;
border-radius: 5px;

th, td {
padding: 3px 5px !important;
}
}

p {
margin-top: 0 !important;
margin-bottom: 0 !important;
}

ul {
list-style-position: inside !important;
}
}

.markdown-lite {
table {
th, td {
border: 1px solid white;
}
}

a {
color: white;
}
}

.markdown-dark {
table {
th, td {
border: 1px solid $primary;
}
}

a {
color: $primary;
}
}

.code-block {
position: relative;
background-color: black;
Expand Down

0 comments on commit 4dc184a

Please sign in to comment.