@umijs/plugin-docs 4.0.0-rc.1 → 4.0.0-rc.10
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/client/theme-blog/index.ts +1 -0
- package/client/theme-doc/LangSwitch.tsx +10 -3
- package/client/theme-doc/Layout.tsx +46 -5
- package/client/theme-doc/Logo.tsx +7 -3
- package/client/theme-doc/Search.tsx +3 -3
- package/client/theme-doc/ThemeSwitch.tsx +2 -2
- package/client/theme-doc/Toc.tsx +8 -2
- package/client/theme-doc/components/Announcement.tsx +7 -0
- package/client/theme-doc/components/FeatureItem.tsx +48 -0
- package/client/theme-doc/components/Features.tsx +44 -0
- package/client/theme-doc/components/Hero.tsx +10 -7
- package/client/theme-doc/components/Message.tsx +22 -16
- package/client/theme-doc/context.ts +1 -0
- package/client/theme-doc/firefox-polyfill.css +32 -0
- package/client/theme-doc/index.ts +4 -1
- package/client/theme-doc/tailwind.css +89 -5
- package/client/theme-doc/tailwind.out.css +333 -65
- package/client/theme-doc/useLanguage.ts +8 -3
- package/compiled/@mdx-js/mdx/LICENSE +21 -0
- package/compiled/@mdx-js/mdx/index.js +8 -0
- package/compiled/@mdx-js/mdx/package.json +1 -0
- package/compiled/rehype-slug/LICENSE +22 -0
- package/compiled/rehype-slug/index.js +1 -0
- package/compiled/rehype-slug/package.json +1 -0
- package/dist/compiler.d.ts +1 -1
- package/dist/compiler.js +13 -13
- package/dist/index.js +54 -18
- package/package.json +24 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.0.
|
|
2
|
+
! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -502,6 +502,123 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
+
.features {
|
|
506
|
+
background-image: radial-gradient(#f8f8f5 20%, transparent 20%);
|
|
507
|
+
background-color: white;
|
|
508
|
+
background-size: 6px 6px;
|
|
509
|
+
width: 100%;
|
|
510
|
+
-ms-overflow-style: none;
|
|
511
|
+
scrollbar-width: none;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.features::-webkit-scrollbar {
|
|
515
|
+
display: none;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.mdx-message {
|
|
519
|
+
border-left-width: 8px;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.mdx-message > p {
|
|
523
|
+
margin-top: 0px;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.mdx-message-info {
|
|
527
|
+
--tw-border-opacity: 1;
|
|
528
|
+
border-color: rgb(147 197 253 / var(--tw-border-opacity));
|
|
529
|
+
--tw-bg-opacity: 1;
|
|
530
|
+
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.dark .mdx-message-info {
|
|
534
|
+
--tw-border-opacity: 1;
|
|
535
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
536
|
+
--tw-bg-opacity: 1;
|
|
537
|
+
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.mdx-message-info > p {
|
|
541
|
+
--tw-text-opacity: 1;
|
|
542
|
+
color: rgb(30 58 138 / var(--tw-text-opacity));
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.dark .mdx-message-info > p {
|
|
546
|
+
--tw-text-opacity: 1;
|
|
547
|
+
color: rgb(30 58 138 / var(--tw-text-opacity));
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.mdx-message-success {
|
|
551
|
+
--tw-border-opacity: 1;
|
|
552
|
+
border-color: rgb(134 239 172 / var(--tw-border-opacity));
|
|
553
|
+
--tw-bg-opacity: 1;
|
|
554
|
+
background-color: rgb(240 253 244 / var(--tw-bg-opacity));
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.dark .mdx-message-success {
|
|
558
|
+
--tw-border-opacity: 1;
|
|
559
|
+
border-color: rgb(34 197 94 / var(--tw-border-opacity));
|
|
560
|
+
--tw-bg-opacity: 1;
|
|
561
|
+
background-color: rgb(220 252 231 / var(--tw-bg-opacity));
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.mdx-message-success > p {
|
|
565
|
+
--tw-text-opacity: 1;
|
|
566
|
+
color: rgb(20 83 45 / var(--tw-text-opacity));
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.dark .mdx-message-success > p {
|
|
570
|
+
--tw-text-opacity: 1;
|
|
571
|
+
color: rgb(20 83 45 / var(--tw-text-opacity));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.mdx-message-warning {
|
|
575
|
+
--tw-border-opacity: 1;
|
|
576
|
+
border-color: rgb(253 186 116 / var(--tw-border-opacity));
|
|
577
|
+
--tw-bg-opacity: 1;
|
|
578
|
+
background-color: rgb(255 247 237 / var(--tw-bg-opacity));
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.dark .mdx-message-warning {
|
|
582
|
+
--tw-border-opacity: 1;
|
|
583
|
+
border-color: rgb(249 115 22 / var(--tw-border-opacity));
|
|
584
|
+
--tw-bg-opacity: 1;
|
|
585
|
+
background-color: rgb(255 237 213 / var(--tw-bg-opacity));
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.mdx-message-warning > p {
|
|
589
|
+
--tw-text-opacity: 1;
|
|
590
|
+
color: rgb(124 45 18 / var(--tw-text-opacity));
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.dark .mdx-message-warning > p {
|
|
594
|
+
--tw-text-opacity: 1;
|
|
595
|
+
color: rgb(124 45 18 / var(--tw-text-opacity));
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.mdx-message-error {
|
|
599
|
+
--tw-border-opacity: 1;
|
|
600
|
+
border-color: rgb(252 165 165 / var(--tw-border-opacity));
|
|
601
|
+
--tw-bg-opacity: 1;
|
|
602
|
+
background-color: rgb(254 242 242 / var(--tw-bg-opacity));
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.dark .mdx-message-error {
|
|
606
|
+
--tw-border-opacity: 1;
|
|
607
|
+
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
608
|
+
--tw-bg-opacity: 1;
|
|
609
|
+
background-color: rgb(254 226 226 / var(--tw-bg-opacity));
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.mdx-message-error > p {
|
|
613
|
+
--tw-text-opacity: 1;
|
|
614
|
+
color: rgb(127 29 29 / var(--tw-text-opacity));
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.dark .mdx-message-error > p {
|
|
618
|
+
--tw-text-opacity: 1;
|
|
619
|
+
color: rgb(127 29 29 / var(--tw-text-opacity));
|
|
620
|
+
}
|
|
621
|
+
|
|
505
622
|
.fixed {
|
|
506
623
|
position: fixed;
|
|
507
624
|
}
|
|
@@ -543,10 +660,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
543
660
|
top: 3rem;
|
|
544
661
|
}
|
|
545
662
|
|
|
546
|
-
.top-16 {
|
|
547
|
-
top: 4rem;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
663
|
.right-2 {
|
|
551
664
|
right: 0.5rem;
|
|
552
665
|
}
|
|
@@ -602,6 +715,11 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
602
715
|
margin-right: 0.25rem;
|
|
603
716
|
}
|
|
604
717
|
|
|
718
|
+
.my-4 {
|
|
719
|
+
margin-top: 1rem;
|
|
720
|
+
margin-bottom: 1rem;
|
|
721
|
+
}
|
|
722
|
+
|
|
605
723
|
.ml-4 {
|
|
606
724
|
margin-left: 1rem;
|
|
607
725
|
}
|
|
@@ -618,6 +736,22 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
618
736
|
margin-top: 0.75rem;
|
|
619
737
|
}
|
|
620
738
|
|
|
739
|
+
.mb-8 {
|
|
740
|
+
margin-bottom: 2rem;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.mt-4 {
|
|
744
|
+
margin-top: 1rem;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.mt-8 {
|
|
748
|
+
margin-top: 2rem;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.mb-24 {
|
|
752
|
+
margin-bottom: 6rem;
|
|
753
|
+
}
|
|
754
|
+
|
|
621
755
|
.mb-4 {
|
|
622
756
|
margin-bottom: 1rem;
|
|
623
757
|
}
|
|
@@ -634,6 +768,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
634
768
|
display: block;
|
|
635
769
|
}
|
|
636
770
|
|
|
771
|
+
.inline {
|
|
772
|
+
display: inline;
|
|
773
|
+
}
|
|
774
|
+
|
|
637
775
|
.flex {
|
|
638
776
|
display: flex;
|
|
639
777
|
}
|
|
@@ -674,6 +812,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
674
812
|
height: 100%;
|
|
675
813
|
}
|
|
676
814
|
|
|
815
|
+
.h-72 {
|
|
816
|
+
height: 18rem;
|
|
817
|
+
}
|
|
818
|
+
|
|
677
819
|
.h-\[calc\(100vh-60px\)\] {
|
|
678
820
|
height: calc(100vh - 60px);
|
|
679
821
|
}
|
|
@@ -742,6 +884,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
742
884
|
width: 0.75rem;
|
|
743
885
|
}
|
|
744
886
|
|
|
887
|
+
.w-5\/6 {
|
|
888
|
+
width: 83.333333%;
|
|
889
|
+
}
|
|
890
|
+
|
|
745
891
|
.w-4 {
|
|
746
892
|
width: 1rem;
|
|
747
893
|
}
|
|
@@ -827,6 +973,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
827
973
|
flex-direction: column;
|
|
828
974
|
}
|
|
829
975
|
|
|
976
|
+
.flex-wrap {
|
|
977
|
+
flex-wrap: wrap;
|
|
978
|
+
}
|
|
979
|
+
|
|
830
980
|
.items-center {
|
|
831
981
|
align-items: center;
|
|
832
982
|
}
|
|
@@ -851,6 +1001,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
851
1001
|
overflow: hidden;
|
|
852
1002
|
}
|
|
853
1003
|
|
|
1004
|
+
.overflow-y-auto {
|
|
1005
|
+
overflow-y: auto;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
854
1008
|
.overflow-x-hidden {
|
|
855
1009
|
overflow-x: hidden;
|
|
856
1010
|
}
|
|
@@ -931,16 +1085,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
931
1085
|
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
|
|
932
1086
|
}
|
|
933
1087
|
|
|
934
|
-
.bg-gray-300 {
|
|
935
|
-
--tw-bg-opacity: 1;
|
|
936
|
-
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
.bg-blue-300 {
|
|
940
|
-
--tw-bg-opacity: 1;
|
|
941
|
-
background-color: rgb(147 197 253 / var(--tw-bg-opacity));
|
|
942
|
-
}
|
|
943
|
-
|
|
944
1088
|
.bg-gray-700 {
|
|
945
1089
|
--tw-bg-opacity: 1;
|
|
946
1090
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
@@ -961,21 +1105,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
961
1105
|
background-color: rgb(37 99 235 / var(--tw-bg-opacity));
|
|
962
1106
|
}
|
|
963
1107
|
|
|
964
|
-
.bg-green-50 {
|
|
965
|
-
--tw-bg-opacity: 1;
|
|
966
|
-
background-color: rgb(240 253 244 / var(--tw-bg-opacity));
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
.bg-orange-50 {
|
|
970
|
-
--tw-bg-opacity: 1;
|
|
971
|
-
background-color: rgb(255 247 237 / var(--tw-bg-opacity));
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
.bg-red-50 {
|
|
975
|
-
--tw-bg-opacity: 1;
|
|
976
|
-
background-color: rgb(254 242 242 / var(--tw-bg-opacity));
|
|
977
|
-
}
|
|
978
|
-
|
|
979
1108
|
.object-cover {
|
|
980
1109
|
-o-object-fit: cover;
|
|
981
1110
|
object-fit: cover;
|
|
@@ -1029,6 +1158,21 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1029
1158
|
padding-right: 0.25rem;
|
|
1030
1159
|
}
|
|
1031
1160
|
|
|
1161
|
+
.py-12 {
|
|
1162
|
+
padding-top: 3rem;
|
|
1163
|
+
padding-bottom: 3rem;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.px-6 {
|
|
1167
|
+
padding-left: 1.5rem;
|
|
1168
|
+
padding-right: 1.5rem;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.py-36 {
|
|
1172
|
+
padding-top: 9rem;
|
|
1173
|
+
padding-bottom: 9rem;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1032
1176
|
.pt-4 {
|
|
1033
1177
|
padding-top: 1rem;
|
|
1034
1178
|
}
|
|
@@ -1073,16 +1217,21 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1073
1217
|
line-height: 1.75rem;
|
|
1074
1218
|
}
|
|
1075
1219
|
|
|
1076
|
-
.text-5xl {
|
|
1077
|
-
font-size: 3rem;
|
|
1078
|
-
line-height: 1;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
1220
|
.text-3xl {
|
|
1082
1221
|
font-size: 1.875rem;
|
|
1083
1222
|
line-height: 2.25rem;
|
|
1084
1223
|
}
|
|
1085
1224
|
|
|
1225
|
+
.text-4xl {
|
|
1226
|
+
font-size: 2.25rem;
|
|
1227
|
+
line-height: 2.5rem;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.text-5xl {
|
|
1231
|
+
font-size: 3rem;
|
|
1232
|
+
line-height: 1;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1086
1235
|
.font-extrabold {
|
|
1087
1236
|
font-weight: 800;
|
|
1088
1237
|
}
|
|
@@ -1111,34 +1260,24 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1111
1260
|
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
1112
1261
|
}
|
|
1113
1262
|
|
|
1114
|
-
.text-
|
|
1115
|
-
--tw-text-opacity: 1;
|
|
1116
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
.text-blue-300 {
|
|
1120
|
-
--tw-text-opacity: 1;
|
|
1121
|
-
color: rgb(147 197 253 / var(--tw-text-opacity));
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
.text-blue-900 {
|
|
1263
|
+
.text-gray-900 {
|
|
1125
1264
|
--tw-text-opacity: 1;
|
|
1126
|
-
color: rgb(
|
|
1265
|
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1127
1266
|
}
|
|
1128
1267
|
|
|
1129
|
-
.text-
|
|
1268
|
+
.text-gray-500 {
|
|
1130
1269
|
--tw-text-opacity: 1;
|
|
1131
|
-
color: rgb(
|
|
1270
|
+
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1132
1271
|
}
|
|
1133
1272
|
|
|
1134
|
-
.text-
|
|
1273
|
+
.text-white {
|
|
1135
1274
|
--tw-text-opacity: 1;
|
|
1136
|
-
color: rgb(
|
|
1275
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1137
1276
|
}
|
|
1138
1277
|
|
|
1139
|
-
.text-
|
|
1278
|
+
.text-blue-300 {
|
|
1140
1279
|
--tw-text-opacity: 1;
|
|
1141
|
-
color: rgb(
|
|
1280
|
+
color: rgb(147 197 253 / var(--tw-text-opacity));
|
|
1142
1281
|
}
|
|
1143
1282
|
|
|
1144
1283
|
.opacity-0 {
|
|
@@ -1161,6 +1300,12 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1161
1300
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1162
1301
|
}
|
|
1163
1302
|
|
|
1303
|
+
.shadow-lg {
|
|
1304
|
+
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
1305
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
1306
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1164
1309
|
.shadow-xl {
|
|
1165
1310
|
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
1166
1311
|
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
|
|
@@ -1177,15 +1322,16 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1177
1322
|
outline-offset: 2px;
|
|
1178
1323
|
}
|
|
1179
1324
|
|
|
1180
|
-
.outline-0 {
|
|
1181
|
-
outline-width: 0px;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
1325
|
.blur {
|
|
1185
1326
|
--tw-blur: blur(8px);
|
|
1186
1327
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1187
1328
|
}
|
|
1188
1329
|
|
|
1330
|
+
.\!blur {
|
|
1331
|
+
--tw-blur: blur(8px) !important;
|
|
1332
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1189
1335
|
.blur-xl {
|
|
1190
1336
|
--tw-blur: blur(24px);
|
|
1191
1337
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -1200,6 +1346,11 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1200
1346
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1201
1347
|
}
|
|
1202
1348
|
|
|
1349
|
+
.backdrop-filter {
|
|
1350
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1351
|
+
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1203
1354
|
.transition {
|
|
1204
1355
|
transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
|
|
1205
1356
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
@@ -1321,7 +1472,6 @@ article h6 {
|
|
|
1321
1472
|
article p {
|
|
1322
1473
|
margin-top: 1rem;
|
|
1323
1474
|
font-size: 1rem;
|
|
1324
|
-
font-weight: 300;
|
|
1325
1475
|
line-height: 2rem;
|
|
1326
1476
|
--tw-text-opacity: 1;
|
|
1327
1477
|
color: rgb(55 65 81 / var(--tw-text-opacity));
|
|
@@ -1527,7 +1677,39 @@ article a:hover {
|
|
|
1527
1677
|
}
|
|
1528
1678
|
|
|
1529
1679
|
article a {
|
|
1530
|
-
background-image: linear-gradient(
|
|
1680
|
+
background-image: linear-gradient(
|
|
1681
|
+
transparent 60%,
|
|
1682
|
+
rgba(130, 199, 255, 0.28) 55%
|
|
1683
|
+
);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.link-with-underline {
|
|
1687
|
+
margin-left: 0.25rem;
|
|
1688
|
+
margin-right: 0.25rem;
|
|
1689
|
+
--tw-text-opacity: 1;
|
|
1690
|
+
color: rgb(37 99 235 / var(--tw-text-opacity));
|
|
1691
|
+
transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
|
|
1692
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1693
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
|
|
1694
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1695
|
+
transition-duration: 150ms;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.link-with-underline:hover {
|
|
1699
|
+
--tw-text-opacity: 1;
|
|
1700
|
+
color: rgb(147 197 253 / var(--tw-text-opacity));
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.dark .link-with-underline {
|
|
1704
|
+
--tw-text-opacity: 1;
|
|
1705
|
+
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
.link-with-underline {
|
|
1709
|
+
background-image: linear-gradient(
|
|
1710
|
+
transparent 60%,
|
|
1711
|
+
rgba(130, 199, 255, 0.28) 55%
|
|
1712
|
+
);
|
|
1531
1713
|
}
|
|
1532
1714
|
|
|
1533
1715
|
/*article pre {*/
|
|
@@ -1559,13 +1741,22 @@ article hr {
|
|
|
1559
1741
|
}
|
|
1560
1742
|
|
|
1561
1743
|
html {
|
|
1562
|
-
scroll-behavior: smooth
|
|
1744
|
+
scroll-behavior: smooth;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
:root {
|
|
1748
|
+
--anchor-offset: 28px;
|
|
1563
1749
|
}
|
|
1564
1750
|
|
|
1565
1751
|
/** Anchor with offset for headings */
|
|
1566
1752
|
|
|
1567
|
-
h1,
|
|
1568
|
-
|
|
1753
|
+
h1,
|
|
1754
|
+
h2,
|
|
1755
|
+
h3,
|
|
1756
|
+
h4,
|
|
1757
|
+
h5,
|
|
1758
|
+
h6 {
|
|
1759
|
+
scroll-margin-top: calc(var(--anchor-offset) + 88px);
|
|
1569
1760
|
}
|
|
1570
1761
|
|
|
1571
1762
|
.before\:absolute::before {
|
|
@@ -1621,6 +1812,12 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1621
1812
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1622
1813
|
}
|
|
1623
1814
|
|
|
1815
|
+
.hover\:scale-105:hover {
|
|
1816
|
+
--tw-scale-x: 1.05;
|
|
1817
|
+
--tw-scale-y: 1.05;
|
|
1818
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1624
1821
|
.hover\:border-gray-100:hover {
|
|
1625
1822
|
--tw-border-opacity: 1;
|
|
1626
1823
|
border-color: rgb(243 244 246 / var(--tw-border-opacity));
|
|
@@ -1641,6 +1838,12 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1641
1838
|
color: rgb(59 130 246 / var(--tw-text-opacity));
|
|
1642
1839
|
}
|
|
1643
1840
|
|
|
1841
|
+
.hover\:shadow-2xl:hover {
|
|
1842
|
+
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
1843
|
+
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
1844
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1644
1847
|
.hover\:shadow-blue-700:hover {
|
|
1645
1848
|
--tw-shadow-color: #1d4ed8;
|
|
1646
1849
|
--tw-shadow: var(--tw-shadow-colored);
|
|
@@ -1651,6 +1854,16 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1651
1854
|
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
|
|
1652
1855
|
}
|
|
1653
1856
|
|
|
1857
|
+
.dark .dark\:features-dark {
|
|
1858
|
+
--tw-bg-opacity: 1;
|
|
1859
|
+
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
|
|
1860
|
+
background-image: radial-gradient(#2a2a2a 20%, transparent 20%);
|
|
1861
|
+
background-size: 6px 6px;
|
|
1862
|
+
width: 100%;
|
|
1863
|
+
-ms-overflow-style: none;
|
|
1864
|
+
scrollbar-width: none;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1654
1867
|
.dark .dark\:border-gray-800 {
|
|
1655
1868
|
--tw-border-opacity: 1;
|
|
1656
1869
|
border-color: rgb(31 41 55 / var(--tw-border-opacity));
|
|
@@ -1661,6 +1874,11 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1661
1874
|
border-color: rgb(55 65 81 / var(--tw-border-opacity));
|
|
1662
1875
|
}
|
|
1663
1876
|
|
|
1877
|
+
.dark .dark\:border-gray-500 {
|
|
1878
|
+
--tw-border-opacity: 1;
|
|
1879
|
+
border-color: rgb(107 114 128 / var(--tw-border-opacity));
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1664
1882
|
.dark .dark\:border-b-gray-800 {
|
|
1665
1883
|
--tw-border-opacity: 1;
|
|
1666
1884
|
border-bottom-color: rgb(31 41 55 / var(--tw-border-opacity));
|
|
@@ -1711,6 +1929,21 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1711
1929
|
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
1712
1930
|
}
|
|
1713
1931
|
|
|
1932
|
+
.dark .dark\:text-gray-200 {
|
|
1933
|
+
--tw-text-opacity: 1;
|
|
1934
|
+
color: rgb(229 231 235 / var(--tw-text-opacity));
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
.dark .dark\:text-gray-300 {
|
|
1938
|
+
--tw-text-opacity: 1;
|
|
1939
|
+
color: rgb(209 213 219 / var(--tw-text-opacity));
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
.dark .dark\:shadow-gray-700 {
|
|
1943
|
+
--tw-shadow-color: #374151;
|
|
1944
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1714
1947
|
.dark .dark\:invert {
|
|
1715
1948
|
--tw-invert: invert(100%);
|
|
1716
1949
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -1769,6 +2002,10 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1769
2002
|
.md\:w-4 {
|
|
1770
2003
|
width: 1rem;
|
|
1771
2004
|
}
|
|
2005
|
+
|
|
2006
|
+
.md\:w-1\/2 {
|
|
2007
|
+
width: 50%;
|
|
2008
|
+
}
|
|
1772
2009
|
}
|
|
1773
2010
|
|
|
1774
2011
|
@media (min-width: 1024px) {
|
|
@@ -1776,6 +2013,10 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1776
2013
|
margin: 3rem;
|
|
1777
2014
|
}
|
|
1778
2015
|
|
|
2016
|
+
.lg\:mb-16 {
|
|
2017
|
+
margin-bottom: 4rem;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1779
2020
|
.lg\:block {
|
|
1780
2021
|
display: block;
|
|
1781
2022
|
}
|
|
@@ -1788,6 +2029,10 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1788
2029
|
height: calc(100vh - 8rem);
|
|
1789
2030
|
}
|
|
1790
2031
|
|
|
2032
|
+
.lg\:h-96 {
|
|
2033
|
+
height: 24rem;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
1791
2036
|
.lg\:w-1\/2 {
|
|
1792
2037
|
width: 50%;
|
|
1793
2038
|
}
|
|
@@ -1796,9 +2041,17 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1796
2041
|
width: 16rem;
|
|
1797
2042
|
}
|
|
1798
2043
|
|
|
1799
|
-
.lg\:
|
|
1800
|
-
|
|
1801
|
-
|
|
2044
|
+
.lg\:w-1\/3 {
|
|
2045
|
+
width: 33.333333%;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
.lg\:w-3\/4 {
|
|
2049
|
+
width: 75%;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
.lg\:px-2 {
|
|
2053
|
+
padding-left: 0.5rem;
|
|
2054
|
+
padding-right: 0.5rem;
|
|
1802
2055
|
}
|
|
1803
2056
|
|
|
1804
2057
|
.lg\:py-12 {
|
|
@@ -1811,6 +2064,21 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
1811
2064
|
padding-right: 8rem;
|
|
1812
2065
|
}
|
|
1813
2066
|
|
|
2067
|
+
.lg\:text-base {
|
|
2068
|
+
font-size: 1rem;
|
|
2069
|
+
line-height: 1.5rem;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
.lg\:text-5xl {
|
|
2073
|
+
font-size: 3rem;
|
|
2074
|
+
line-height: 1;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
.lg\:text-xl {
|
|
2078
|
+
font-size: 1.25rem;
|
|
2079
|
+
line-height: 1.75rem;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
1814
2082
|
.lg\:text-7xl {
|
|
1815
2083
|
font-size: 4.5rem;
|
|
1816
2084
|
line-height: 1;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import { history } from 'umi';
|
|
1
3
|
import { useThemeContext } from './context';
|
|
2
4
|
|
|
3
5
|
interface useLanguageResult {
|
|
@@ -33,22 +35,25 @@ function useLanguage(): useLanguageResult {
|
|
|
33
35
|
|
|
34
36
|
// 切换到默认语言
|
|
35
37
|
if (locale === languages[0].locale && isFromPath) {
|
|
38
|
+
window.localStorage.removeItem('umi_locale');
|
|
36
39
|
let p = location.pathname.split('/');
|
|
37
40
|
p.shift();
|
|
38
41
|
p.shift();
|
|
39
|
-
|
|
42
|
+
history.push('/' + p.join('/'));
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
|
|
46
|
+
window.localStorage.setItem('umi_locale', locale);
|
|
47
|
+
|
|
43
48
|
// 当前在默认语言,切换到其他语言
|
|
44
49
|
if (!isFromPath) {
|
|
45
|
-
|
|
50
|
+
history.push('/' + locale + location.pathname);
|
|
46
51
|
return;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
let p = location.pathname.split('/');
|
|
50
55
|
p[1] = locale;
|
|
51
|
-
|
|
56
|
+
history.push('/' + p.join('/'));
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
function render(key: string) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Compositor, Inc. and Vercel, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|