zhangdocs 1.1.29 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/zhangdocs.js +8 -4
- package/.zhangdocs/server.log +1 -0
- package/README.md +32 -30
- package/index.js +9 -3
- package/lib/build.js +32 -13
- package/lib/server-worker.js +63 -0
- package/lib/server.js +135 -0
- package/package.json +1 -1
- package/theme/handbook/gitignore +1 -0
- package/theme/handbook/head.ejs +11 -1
- package/theme/handbook/layout.ejs +636 -67
- package/theme/handbook/source/css/_partial/markdown.styl +19 -0
- package/theme/handbook/source/css/main.styl +40 -28
|
@@ -30,6 +30,25 @@
|
|
|
30
30
|
cursor: zoom-in
|
|
31
31
|
&:hover
|
|
32
32
|
opacity: 0.9
|
|
33
|
+
&.mermaid-preview-image
|
|
34
|
+
background: #fff
|
|
35
|
+
padding: 10px
|
|
36
|
+
border: 1px solid #e5e7eb
|
|
37
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08)
|
|
38
|
+
.mermaid
|
|
39
|
+
display: flex
|
|
40
|
+
justify-content: center
|
|
41
|
+
overflow-x: auto
|
|
42
|
+
overflow-y: hidden
|
|
43
|
+
padding: 8px 0
|
|
44
|
+
background: #fff
|
|
45
|
+
border-radius: 6px
|
|
46
|
+
|
|
47
|
+
svg
|
|
48
|
+
width: 130% !important
|
|
49
|
+
height: auto !important
|
|
50
|
+
min-width: 1100px
|
|
51
|
+
max-width: none !important
|
|
33
52
|
a
|
|
34
53
|
color: #0969da
|
|
35
54
|
text-decoration: none
|
|
@@ -167,6 +167,17 @@ $hover-color = #1ABC9C // 悬停绿色
|
|
|
167
167
|
background: rgba($primary-color, 0.1)
|
|
168
168
|
color: $primary-color
|
|
169
169
|
font-weight: 600
|
|
170
|
+
&.menu-ancestor-item
|
|
171
|
+
> a
|
|
172
|
+
background: rgba($primary-color, 0.06)
|
|
173
|
+
color: darken($primary-color, 10%)
|
|
174
|
+
&.menu-current-item
|
|
175
|
+
> a,
|
|
176
|
+
> a.menu-current-link
|
|
177
|
+
background: rgba($primary-color, 0.14)
|
|
178
|
+
color: $primary-color
|
|
179
|
+
font-weight: 700
|
|
180
|
+
border-left: 3px solid $primary-color
|
|
170
181
|
ul
|
|
171
182
|
margin-left: 20px
|
|
172
183
|
margin-top: 5px
|
|
@@ -516,53 +527,54 @@ table
|
|
|
516
527
|
|
|
517
528
|
// 滚动到底部按钮
|
|
518
529
|
.scroll-to-bottom
|
|
519
|
-
position: fixed
|
|
520
|
-
bottom: 30px
|
|
521
|
-
right:
|
|
522
|
-
width:
|
|
523
|
-
height:
|
|
524
|
-
background:
|
|
525
|
-
border:
|
|
530
|
+
position: fixed !important
|
|
531
|
+
bottom: 30px !important
|
|
532
|
+
right: 5px !important
|
|
533
|
+
width: 36px !important
|
|
534
|
+
height: 36px !important
|
|
535
|
+
background: transparent
|
|
536
|
+
border: none
|
|
526
537
|
border-radius: 50%
|
|
527
|
-
cursor: pointer
|
|
528
|
-
z-index:
|
|
538
|
+
cursor: pointer !important
|
|
539
|
+
z-index: 99999 !important
|
|
529
540
|
display: none
|
|
530
541
|
align-items: center
|
|
531
542
|
justify-content: center
|
|
532
|
-
box-shadow:
|
|
533
|
-
transition:
|
|
543
|
+
box-shadow: none
|
|
544
|
+
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease
|
|
534
545
|
color: $text-color
|
|
535
546
|
padding: 0
|
|
536
547
|
-webkit-tap-highlight-color: transparent
|
|
537
548
|
opacity: 0
|
|
538
549
|
visibility: hidden
|
|
550
|
+
pointer-events: auto
|
|
551
|
+
user-select: none
|
|
539
552
|
|
|
540
553
|
&:hover
|
|
541
|
-
background:
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
transform: translateY(-3px)
|
|
545
|
-
box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4)
|
|
554
|
+
background: rgba(74, 144, 226, 0.1)
|
|
555
|
+
color: $primary-color
|
|
556
|
+
transform: translateY(-2px)
|
|
546
557
|
|
|
547
558
|
&:active
|
|
548
|
-
transform: translateY(
|
|
549
|
-
box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3)
|
|
559
|
+
transform: translateY(0)
|
|
550
560
|
|
|
551
561
|
svg
|
|
552
|
-
width:
|
|
553
|
-
height:
|
|
562
|
+
width: 16px
|
|
563
|
+
height: 16px
|
|
564
|
+
pointer-events: none
|
|
554
565
|
|
|
555
566
|
&.show
|
|
556
|
-
display: flex
|
|
557
|
-
opacity: 1
|
|
558
|
-
visibility: visible
|
|
567
|
+
display: flex !important
|
|
568
|
+
opacity: 1 !important
|
|
569
|
+
visibility: visible !important
|
|
570
|
+
pointer-events: auto !important
|
|
559
571
|
|
|
560
572
|
@media mq-mobile
|
|
561
573
|
bottom: 20px
|
|
562
|
-
right:
|
|
563
|
-
width:
|
|
564
|
-
height:
|
|
574
|
+
right: 5px
|
|
575
|
+
width: 32px
|
|
576
|
+
height: 32px
|
|
565
577
|
|
|
566
578
|
svg
|
|
567
|
-
width:
|
|
568
|
-
height:
|
|
579
|
+
width: 14px
|
|
580
|
+
height: 14px
|