style.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. /**
  2. * Customize default theme styling by overriding CSS variables:
  3. * https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
  4. */
  5. /**
  6. * Colors
  7. * -------------------------------------------------------------------------- */
  8. :root {
  9. --vp-c-brand: #646cff;
  10. --vp-c-brand-light: #747bff;
  11. --vp-c-brand-lighter: #9499ff;
  12. --vp-c-brand-lightest: #bcc0ff;
  13. --vp-c-brand-dark: #535bf2;
  14. --vp-c-brand-darker: #454ce1;
  15. --vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
  16. }
  17. /**
  18. * Component: Button
  19. * -------------------------------------------------------------------------- */
  20. :root {
  21. --vp-button-brand-border: var(--vp-c-brand-light);
  22. --vp-button-brand-text: var(--vp-c-white);
  23. --vp-button-brand-bg: var(--vp-c-brand);
  24. --vp-button-brand-hover-border: var(--vp-c-brand-light);
  25. --vp-button-brand-hover-text: var(--vp-c-white);
  26. --vp-button-brand-hover-bg: var(--vp-c-brand-light);
  27. --vp-button-brand-active-border: var(--vp-c-brand-light);
  28. --vp-button-brand-active-text: var(--vp-c-white);
  29. --vp-button-brand-active-bg: var(--vp-button-brand-bg);
  30. }
  31. /**
  32. * Component: Home
  33. * -------------------------------------------------------------------------- */
  34. :root {
  35. --vp-home-hero-name-color: transparent;
  36. --vp-home-hero-name-background: -webkit-linear-gradient(
  37. 120deg,
  38. #bd34fe 30%,
  39. #41d1ff
  40. );
  41. --vp-home-hero-image-background-image: linear-gradient(
  42. -45deg,
  43. #bd34fe 50%,
  44. #47caff 50%
  45. );
  46. --vp-home-hero-image-filter: blur(40px);
  47. }
  48. @media (min-width: 640px) {
  49. :root {
  50. --vp-home-hero-image-filter: blur(56px);
  51. }
  52. }
  53. @media (min-width: 960px) {
  54. :root {
  55. --vp-home-hero-image-filter: blur(72px);
  56. }
  57. }
  58. /**
  59. * Component: Custom Block
  60. * -------------------------------------------------------------------------- */
  61. :root {
  62. --vp-custom-block-tip-border: var(--vp-c-brand);
  63. --vp-custom-block-tip-text: var(--vp-c-brand-darker);
  64. --vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
  65. }
  66. .dark {
  67. --vp-custom-block-tip-border: var(--vp-c-brand);
  68. --vp-custom-block-tip-text: var(--vp-c-brand-lightest);
  69. --vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
  70. }
  71. /**
  72. * Component: Algolia
  73. * -------------------------------------------------------------------------- */
  74. .DocSearch {
  75. --docsearch-primary-color: var(--vp-c-brand) !important;
  76. }
  77. /**
  78. * VitePress: Custom fix
  79. * -------------------------------------------------------------------------- */
  80. /*
  81. Use lighter colors for links in dark mode for a11y.
  82. Also specify some classes twice to have higher specificity
  83. over scoped class data attribute.
  84. */
  85. .dark .vp-doc a,
  86. .dark .vp-doc a > code,
  87. .dark .VPNavBarMenuLink.VPNavBarMenuLink:hover,
  88. .dark .VPNavBarMenuLink.VPNavBarMenuLink.active,
  89. .dark .link.link:hover,
  90. .dark .link.link.active,
  91. .dark .edit-link-button.edit-link-button,
  92. .dark .pager-link .title {
  93. color: var(--vp-c-brand-lighter);
  94. }
  95. .dark .vp-doc a:hover,
  96. .dark .vp-doc a > code:hover {
  97. color: var(--vp-c-brand-lightest);
  98. opacity: 1;
  99. }
  100. /* Transition by color instead of opacity */
  101. .dark .vp-doc .custom-block a {
  102. transition: color 0.25s;
  103. }
  104. .VPContent> .VPHome> .container{
  105. width: 100% !important;
  106. padding: 0 !important;
  107. margin: 0 !important;
  108. max-width: 100%;
  109. }
  110. .VPHome table svg{
  111. width: 24px;
  112. display: inline-block;
  113. margin: 0 5px;
  114. }
  115. .VPContent> .VPHome {
  116. margin-bottom: 0;
  117. }
  118. .VPContent> .VPHome> .container .feature{
  119. text-align: center;
  120. margin: 40px;
  121. }
  122. .VPContent> .VPHome> .container .feature p{
  123. color: #999;
  124. }
  125. .aieditor-home table{
  126. display: inline-table;
  127. background: none;
  128. border-collapse: separate;
  129. border-spacing: 30px 0px;
  130. max-width:1280px;
  131. }
  132. .aieditor-home table th{
  133. background: none;
  134. border: none;
  135. }
  136. .aieditor-home thead tr :not(:first-child){
  137. border-bottom: solid 1px #ddd;
  138. margin: 10px;
  139. font-weight: bold;
  140. font-size: 16px;
  141. }
  142. .aieditor-home table tr{
  143. background: none;
  144. border: none;
  145. }
  146. .aieditor-home table tr{
  147. height: 40px;
  148. }
  149. .aieditor-home table tbody tr:first-child{
  150. height: 20px;
  151. }
  152. .aieditor-home table td{
  153. background: none;
  154. border: none;
  155. }
  156. .aieditor-home table td svg{
  157. margin: -7px 0;
  158. }
  159. .aieditor-home table td:nth-of-type(1){
  160. color: #999;
  161. text-align: right;
  162. }
  163. .aieditor-home table td:nth-of-type(2) svg{
  164. fill: #8C8C8C;
  165. margin-right:10px;
  166. width: 20px;
  167. margin:-4px 0;
  168. /* padding: 0px; */
  169. }
  170. .aieditor-home table td:nth-of-type(3) svg{
  171. fill: #646cff;
  172. }
  173. /* versions table start */
  174. .vp-doc .versions table{
  175. display: table;
  176. width: 100%;
  177. table-layout: fixed;
  178. overflow-wrap: break-word;
  179. }
  180. .versions table th{
  181. background: none;
  182. border-width:0 0 1px 0;
  183. border-style: solid;
  184. border-color:#eee;
  185. }
  186. .versions thead tr :not(:first-child){
  187. margin: 10px;
  188. font-weight: bold;
  189. font-size: 18px;
  190. }
  191. .vp-doc .versions table tr{
  192. background: none;
  193. border-width:0 0 1px 0;
  194. border-style: solid;
  195. border-color:#eee;
  196. }
  197. .versions table tr{
  198. height: 50px;
  199. }
  200. .versions table tbody tr:first-child{
  201. height: 20px;
  202. }
  203. .versions table td{
  204. background: none;
  205. border: none;
  206. font-size:16px;
  207. }
  208. .versions table td:first-child{
  209. color: #999;
  210. font-size:16px;
  211. }
  212. .versions table td:first-child strong{
  213. color: #333;
  214. font-size: 16px;
  215. }
  216. .versions table td svg{
  217. margin: -7px 0;
  218. }
  219. /* versions table end */
  220. .versions{
  221. display: flex;
  222. padding: 20px 0;
  223. max-width: 1280px;
  224. }
  225. .feature-content{
  226. width: 70%;
  227. display: flex;
  228. flex-direction: column;
  229. justify-content: center;
  230. padding: 0 50px;
  231. }
  232. .feature-content>h1{
  233. margin-bottom:30px;
  234. }
  235. .feature-content>p{
  236. color:#666;
  237. }
  238. .feature-list{
  239. display: flex;
  240. padding: 20px 0;
  241. max-width: 1280px;
  242. }
  243. .excellent{
  244. display: flex;
  245. padding: 20px 0;
  246. max-width: 1280px;
  247. }
  248. .excellent-list{
  249. width: 46%;
  250. background: #f8f9fa;
  251. margin: 2%;
  252. padding:30px;
  253. border-radius: 15px;
  254. margin-right: 15px;
  255. }
  256. .version{
  257. display: flex;
  258. padding: 20px 0;
  259. max-width: 1280px
  260. }
  261. .version-list{
  262. width: 440px;
  263. background: #eeeff0;
  264. padding: 20px;
  265. border-radius: 5px;
  266. margin-right: 15px;
  267. }
  268. .subtitle{
  269. margin: 30px 0 40px;
  270. color: #999;
  271. }
  272. .aieditor-home{
  273. text-align: center;
  274. background-color: #f8f9fa;
  275. padding: 80px;
  276. }
  277. .banner-home {
  278. display: flex;
  279. align-items: center;
  280. margin: 60px auto;
  281. width: 50%;
  282. justify-content: center;
  283. }
  284. .banner-home img {
  285. max-width: 100%;
  286. border-radius: 3px;
  287. }
  288. .versions-qa{
  289. display: flex;
  290. padding: 5px 0;
  291. max-width: 1280px;
  292. width: 100vw;
  293. }
  294. .versions-qa-list{
  295. width: 50%;
  296. margin-left: 15px
  297. }
  298. .demo-content{
  299. text-align: center;
  300. background-color: #f8f9fa;
  301. padding: 80px;
  302. }
  303. .aie-menu-item{
  304. margin: 0 3px;
  305. }
  306. @media only screen and (max-width: 750px){
  307. .feature-list{
  308. display:flex;
  309. flex-direction: column;
  310. padding: 20px 0;
  311. max-width:100%;
  312. }
  313. .feature-image{
  314. width:96%;
  315. padding:0 2%;
  316. order:2;
  317. }
  318. .feature-content{
  319. width:96%;
  320. padding:0 2%;
  321. text-align:center;
  322. order:1;
  323. }
  324. .feature-content>h1{
  325. margin-bottom:10px;
  326. font-size:22px;
  327. line-height:20px;
  328. }
  329. .feature-content>p{
  330. margin:6px 0;
  331. font-size:14px;
  332. line-height: 22px;
  333. }
  334. .excellent{
  335. display: block;
  336. padding: 20px 0;
  337. max-width:100%;
  338. }
  339. .excellent-list{
  340. width: 90%;
  341. margin: 5%;
  342. padding:30px;
  343. border-radius: 15px;
  344. margin-right: 15px;
  345. }
  346. .version{
  347. display: block;
  348. padding: 20px 0;
  349. width: 100%;
  350. }
  351. .version-list{
  352. width: 90%;
  353. margin: 5%;
  354. padding: 20px;
  355. }
  356. .subtitle{
  357. margin: 10px 0 20px;
  358. color: #999;
  359. }
  360. .aieditor-home{
  361. padding:50px 20px;
  362. }
  363. .VPContent> .VPHome> .vp-doc table{
  364. width: 100%;
  365. border-collapse: collapse;
  366. border-spacing:0;
  367. }
  368. th, td {
  369. text-align: left;
  370. }
  371. .banner-home {
  372. width: 90%;
  373. margin: 30px auto;
  374. }
  375. .image-bg{
  376. z-index:-1;
  377. }
  378. .VPHome .image-container{
  379. margin: 100px auto 0;
  380. width: 90%;
  381. height: 320px;
  382. }
  383. .VPHome .image{
  384. order:3;
  385. }
  386. .VPHome .VPHero{
  387. padding:80px 28px;
  388. }
  389. .versions-qa{
  390. display: flex;
  391. flex-direction: column;
  392. padding:0;
  393. width: 100%;
  394. }
  395. .versions-qa-list{
  396. width: 90%;
  397. margin: 5px 5%;
  398. }
  399. .demo-content{
  400. text-align: center;
  401. background-color: #f8f9fa;
  402. padding: 20px;
  403. }
  404. }
  405. .VPSocialLink:last-child{
  406. background: #fff;
  407. width: 22px;
  408. height: 22px;
  409. border-radius: 50%;
  410. padding: 1px;
  411. border: 1px solid #333;
  412. margin-left: 8px;
  413. }