aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-04-15 10:30:52 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-23 13:31:17 +0200
commit02a46b2035e6d7bf1b93b15d4d2e39933191b90d (patch)
tree480467b47f0c48e91c4926b1194488ab3c2f19cb /core/src
parentf55620e397aa4db4c208996d1662f610cad58db5 (diff)
downloaddokka-02a46b2035e6d7bf1b93b15d4d2e39933191b90d.tar.gz
dokka-02a46b2035e6d7bf1b93b15d4d2e39933191b90d.tar.bz2
dokka-02a46b2035e6d7bf1b93b15d4d2e39933191b90d.zip
Adjusts to css: font-families, font size, active navigation part style
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/resources/dokka/scripts/navigationLoader.js5
-rw-r--r--core/src/main/resources/dokka/styles/jetbrains-mono.css13
-rw-r--r--core/src/main/resources/dokka/styles/style.css16
3 files changed, 29 insertions, 5 deletions
diff --git a/core/src/main/resources/dokka/scripts/navigationLoader.js b/core/src/main/resources/dokka/scripts/navigationLoader.js
index ecbabb4c..b30a866d 100644
--- a/core/src/main/resources/dokka/scripts/navigationLoader.js
+++ b/core/src/main/resources/dokka/scripts/navigationLoader.js
@@ -25,7 +25,10 @@ revealNavigationForCurrentPage = () => {
parts.forEach(part => {
if (part.attributes['pageId'].value.indexOf(pageId) !== -1 && found === 0) {
found = 1;
- if (part.classList.contains("hidden")) part.classList.remove("hidden");
+ if (part.classList.contains("hidden")){
+ part.classList.remove("hidden");
+ part.setAttribute('data-active',"");
+ }
revealParents(part)
}
});
diff --git a/core/src/main/resources/dokka/styles/jetbrains-mono.css b/core/src/main/resources/dokka/styles/jetbrains-mono.css
new file mode 100644
index 00000000..2af32a92
--- /dev/null
+++ b/core/src/main/resources/dokka/styles/jetbrains-mono.css
@@ -0,0 +1,13 @@
+@font-face{
+ font-family: 'JetBrains Mono';
+ src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff2/JetBrainsMono-Regular.woff2') format('woff2');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face{
+ font-family: 'JetBrains Mono';
+ src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff2/JetBrainsMono-Bold.woff2') format('woff2');
+ font-weight: bold;
+ font-style: normal;
+} \ No newline at end of file
diff --git a/core/src/main/resources/dokka/styles/style.css b/core/src/main/resources/dokka/styles/style.css
index 720998ad..caa088b4 100644
--- a/core/src/main/resources/dokka/styles/style.css
+++ b/core/src/main/resources/dokka/styles/style.css
@@ -1,5 +1,6 @@
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300i,400,700);
-
+@import url('https://rsms.me/inter/inter.css');
+@import url('jetbrains-mono.css');
#container {
display: flex;
@@ -163,9 +164,12 @@
}
body, table {
- font: 14px/1.5 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-family: 'Inter';
background: #F4F4F4;
- font-weight: 300;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 14px;
+ line-height: 24px;
margin: 0;
max-width: 1440px;
}
@@ -193,7 +197,7 @@ td:first-child {
}
.symbol {
- font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ font-family: JetBrains Mono;
font-size: 12px;
min-height: 43px;
}
@@ -536,6 +540,10 @@ td.content {
display: none
}
+.sideMenuPart[data-active] {
+ background: rgba(91, 93, 239, 0.15);
+ border-left: 4px solid #5B5DEF;
+}
@media print, screen and (max-width: 960px) {