Skip to content

Commit

Permalink
CRISTAL-450: Code block are not styled
Browse files Browse the repository at this point in the history
* Moved styles to c-article.vue based on the comments on the PR (#652 (comment))
  • Loading branch information
tkrieck committed Feb 6, 2025
1 parent a7f0a18 commit 455b329
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 12 additions & 0 deletions skin/src/vue/c-article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ watch(
}
}
/*
* Code block style.
* TODO: replace with a code macro rendering as soon as we support macro.
*/
:deep(.box .code),
:deep(.doc-content.editor pre) {
font-family: var(--cr-font-mono);
background: var(--cr-color-neutral-100);
border-radius: var(--cr-border-radius-medium);
padding: var(--cr-spacing-small);
}
/*TABLE STYLES*/
/*TODO: Check a better way to write these styles without the global tag. Currently impossible to use :deep because the html inside the document content is not assigned an ID */
.content {
Expand Down
10 changes: 0 additions & 10 deletions skin/src/vue/c-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,6 @@ WIKI STYLES
TODO: Discuss and move them to a more appropriate place
*/

/*CODE*/
:deep(.box) {
:deep(.code) {
font-family: var(--cr-font-mono);
background: var(--cr-color-neutral-100);
border-radius: var(--cr-border-radius-medium);
padding: var(--cr-spacing-small);
}
}

/*LINKS*/

:deep(.content a) {
Expand Down

0 comments on commit 455b329

Please sign in to comment.