Browse Source

修改函数文档样式

drake 3 years ago
parent
commit
45da1c5cc2
3 changed files with 17 additions and 3 deletions
  1. 7 0
      docs/api/styles/jetbrains-mono.css
  2. 9 2
      docs/api/styles/style.css
  3. 1 1
      net/build.gradle

+ 7 - 0
docs/api/styles/jetbrains-mono.css

@@ -6,3 +6,10 @@
     font-weight: normal;
     font-style: normal;
 }
+@font-face{
+    font-family: 'HYZhengYuan';
+    src: local('HYZhengYuan'),
+         url('https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/font/HYZhengYuan.ttf') format('truetype');
+    font-weight: normal;
+    font-style: normal;
+}

+ 9 - 2
docs/api/styles/style.css

@@ -98,6 +98,11 @@ html ::-webkit-scrollbar-thumb {
     color: var(--average-color);
     outline: none;
     margin: 0 8px;
+    font-family: "JetBrains Mono", "HYZhengYuan";
+}
+
+.breadcrumbs {
+    font-family: "JetBrains Mono", "HYZhengYuan";
 }
 
 .section-tab:hover {
@@ -378,6 +383,7 @@ code.paragraph {
     position: relative;
     user-select: none; /* there's a weird bug with text selection */
     padding: 8px 0;
+    font-family: "JetBrains Mono", "HYZhengYuan";
 }
 
 .sideMenuPart a {
@@ -517,7 +523,7 @@ h1.cover {
 
 h2 {
     color: #393939;
-    font-size: 31px;
+    font-size: 20px;
     line-height: 40px;
     letter-spacing: -0.5px;
 }
@@ -1108,6 +1114,7 @@ td.content {
 
 .footer > span {
     padding: 0 16px;
+    font-family: "JetBrains Mono", "HYZhengYuan";
 }
 
 .footer a {
@@ -1153,7 +1160,7 @@ div.runnablesample {
 
 @media screen and (max-width: 1119px) {
     h1.cover {
-        font-size: 48px;
+        font-size: 32px;
         line-height: 48px;
         padding-bottom: 8px;
     }

+ 1 - 1
net/build.gradle

@@ -20,7 +20,7 @@ apply plugin: "kotlin-kapt"
 apply plugin: 'org.jetbrains.dokka'
 
 apply plugin: "com.github.dcendents.android-maven"
-group = "com.gitlab.liangjingkanji"
+group = "com.github.liangjingkanji"
 
 android {
     compileSdkVersion 30