Skip to content

Commit

Permalink
Fix: sample spacing, blockquote, playground initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
zoobestik committed Feb 1, 2023
1 parent 28ac4e1 commit 5474214
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Expand Up @@ -305,6 +305,14 @@ function refreshFiltering() {
refreshFilterButtons()
refreshPlatformTabs()
refreshNoContentNotification()
refreshPlaygroundSamples()
}

function refreshPlaygroundSamples() {
document.querySelectorAll('code.runnablesample').forEach(node => {
const playground = node.KotlinPlayground;
playground && playground.view.codemirror.refresh();
});
}

function refreshNoContentNotification() {
Expand Down
10 changes: 9 additions & 1 deletion plugins/base/src/main/resources/dokka/styles/style.css
Expand Up @@ -135,6 +135,11 @@ blockquote {
color: var(--average-color);
}

.theme-dark blockquote {
color: var(--default-font-color);
border-left-color: var(--code-background);
}

pre {
display: block;
}
Expand Down Expand Up @@ -573,10 +578,13 @@ td:first-child {
}

.main-content p.paragraph,
.sample-container {
.sample-container, blockquote,
.content > .symbol {
margin-top: 8px;
}

blockquote,
.content > .symbol:first-of-type,
p.paragraph:first-child,
.brief p.paragraph {
margin-top: 0;
Expand Down

0 comments on commit 5474214

Please sign in to comment.