Skip to content

Commit

Permalink
Merge pull request #4159 from JetBrains/post-core-api-fix
Browse files Browse the repository at this point in the history
Post core api fix
  • Loading branch information
zoobestik authored Apr 26, 2024
2 parents b6054eb + 18d3e93 commit 80f5964
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ object StdlibPrepareDokkaTemplates: BuildType({
params {
param("env.ALGOLIA_INDEX_NAME", "api-core")
param("env.DOKKA_NOINDEX", "true")
param("env.DOKKA_CUSTOM_BODY", "core-api")
}
})
2 changes: 1 addition & 1 deletion dokka-templates/base.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<link rel="stylesheet" href="/_assets/dokka-template.css">
<@resources/>
</head>
<body>
<body class="${process.env.DOKKA_CUSTOM_BODY}">
<div class="root">
{% ktl_component "header" searchAlgoliaIndexName="${process.env.ALGOLIA_INDEX_NAME}" %}
<@header.display/>
Expand Down
4 changes: 4 additions & 0 deletions static/js/page/dokka-template/control-pane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@
margin-right: -8px;
}
}

.core-api #searchBar {
display: none!important;
}
49 changes: 25 additions & 24 deletions static/js/page/dokka-template/layout.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
/* Fix global dokka styles */
header ul {
position: inherit;
}
/* / Fix global dokka styles */

.root {
display: flex;
flex-direction: column;
}

#sideMenu {
@media (min-width: 760px) {
padding-left: 16px;
/* Fix global dokka styles */
.ktl-dokka-header nav > ul {
position: inherit;
}
}

@media (max-width: 759px) {
#leftColumn.open ~ #ktl-main #searchBar {
display: none;
}
}
/* / Fix global dokka styles */

#main {
box-sizing: border-box;
#sideMenu {
@media (min-width: 760px) {
padding-left: 16px;
}
}

@media (max-width: 759px) {
padding-left: 24px;
#leftColumn.open ~ #ktl-main #searchBar {
display: none;
}
}

@media (max-width: 759px) {
padding-left: 8px;
#main {
box-sizing: border-box;

@media (max-width: 759px) {
padding-left: 24px;
}

@media (max-width: 759px) {
padding-left: 8px;
}
}
}

.main-content {
flex-grow: 1;
.main-content {
flex-grow: 1;
}
}

0 comments on commit 80f5964

Please sign in to comment.