Skip to content

Commit

Permalink
CRISTAL-450: Code block are not styled (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrieck authored Feb 7, 2025
1 parent 76bfde6 commit 4939927
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 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: 7 additions & 3 deletions skin/src/vue/c-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ TODO: these rules about opening and closing the sidebar should be better organiz
display: block;
}

/*
WIKI STYLES
TODO: Discuss and move them to a more appropriate place
*/

/*LINKS*/

:deep(.content a) {
Expand Down Expand Up @@ -316,11 +321,10 @@ TODO: these rules about opening and closing the sidebar should be better organiz
}
}
}

/*
WIKI STYLES
TODO: Discuss and move them to a more appropriate place
END WIKI STYLES
*/

@container xwCristal (max-width: 600px) {
:deep(.wrapper.sidebar-is-collapsed) {
&:has(.main-sidebar.is-visible) {
Expand Down

0 comments on commit 4939927

Please sign in to comment.