@umijs/plugin-docs 4.0.0-rc.11 → 4.0.0-rc.12

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.
@@ -60,6 +60,7 @@ export default (props: any) => {
60
60
 
61
61
  {isHomePage ? (
62
62
  <div id="article-body">
63
+ {/* @ts-ignore */}
63
64
  <Helmet>
64
65
  <title>
65
66
  {title}
@@ -32,6 +32,7 @@ export default () => {
32
32
  className="w-full lg:m-12 mb-12 border
33
33
  border-gray-100 p-8 rounded-xl z-20"
34
34
  >
35
+ {/* @ts-ignore */}
35
36
  <Helmet>
36
37
  <title>
37
38
  {route.titles[0].title} | {themeConfig.title}
@@ -90,6 +90,26 @@ article a {
90
90
  );
91
91
  }
92
92
 
93
+ article table {
94
+ @apply table-auto w-full shadow rounded-xl text-left overflow-hidden dark:shadow-gray-800 my-8
95
+ }
96
+
97
+ article table thead {
98
+ @apply bg-blue-100 dark:bg-gray-800
99
+ }
100
+
101
+ article table thead th {
102
+ @apply py-3 px-4 text-gray-700 dark:text-white
103
+ }
104
+
105
+ article table tbody tr {
106
+ @apply border-b border-b-zinc-100 dark:border-b-gray-600
107
+ }
108
+
109
+ article table tbody td {
110
+ @apply py-2 px-4 text-gray-700 dark:text-white
111
+ }
112
+
93
113
  .link-with-underline {
94
114
  @apply text-blue-600 mx-1 hover:text-blue-300 transition dark:text-blue-400;
95
115
  background-image: linear-gradient(
@@ -1683,6 +1683,73 @@ article a {
1683
1683
  );
1684
1684
  }
1685
1685
 
1686
+ article table {
1687
+ margin-top: 2rem;
1688
+ margin-bottom: 2rem;
1689
+ width: 100%;
1690
+ table-layout: auto;
1691
+ overflow: hidden;
1692
+ border-radius: 0.75rem;
1693
+ text-align: left;
1694
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
1695
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
1696
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1697
+ }
1698
+
1699
+ .dark article table {
1700
+ --tw-shadow-color: #1f2937;
1701
+ --tw-shadow: var(--tw-shadow-colored);
1702
+ }
1703
+
1704
+ article table thead {
1705
+ --tw-bg-opacity: 1;
1706
+ background-color: rgb(219 234 254 / var(--tw-bg-opacity));
1707
+ }
1708
+
1709
+ .dark article table thead {
1710
+ --tw-bg-opacity: 1;
1711
+ background-color: rgb(31 41 55 / var(--tw-bg-opacity));
1712
+ }
1713
+
1714
+ article table thead th {
1715
+ padding-top: 0.75rem;
1716
+ padding-bottom: 0.75rem;
1717
+ padding-left: 1rem;
1718
+ padding-right: 1rem;
1719
+ --tw-text-opacity: 1;
1720
+ color: rgb(55 65 81 / var(--tw-text-opacity));
1721
+ }
1722
+
1723
+ .dark article table thead th {
1724
+ --tw-text-opacity: 1;
1725
+ color: rgb(255 255 255 / var(--tw-text-opacity));
1726
+ }
1727
+
1728
+ article table tbody tr {
1729
+ border-bottom-width: 1px;
1730
+ --tw-border-opacity: 1;
1731
+ border-bottom-color: rgb(244 244 245 / var(--tw-border-opacity));
1732
+ }
1733
+
1734
+ .dark article table tbody tr {
1735
+ --tw-border-opacity: 1;
1736
+ border-bottom-color: rgb(75 85 99 / var(--tw-border-opacity));
1737
+ }
1738
+
1739
+ article table tbody td {
1740
+ padding-top: 0.5rem;
1741
+ padding-bottom: 0.5rem;
1742
+ padding-left: 1rem;
1743
+ padding-right: 1rem;
1744
+ --tw-text-opacity: 1;
1745
+ color: rgb(55 65 81 / var(--tw-text-opacity));
1746
+ }
1747
+
1748
+ .dark article table tbody td {
1749
+ --tw-text-opacity: 1;
1750
+ color: rgb(255 255 255 / var(--tw-text-opacity));
1751
+ }
1752
+
1686
1753
  .link-with-underline {
1687
1754
  margin-left: 0.25rem;
1688
1755
  margin-right: 0.25rem;