investHomeGroup.css 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021
  1. html,
  2. body {
  3. width: 7680px;
  4. min-height: 2130px;
  5. height: 100%;
  6. font-size: 20px;
  7. color: #fff;
  8. font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, 'PingFang SC',
  9. 'Hiragino Sans GB', Arial, sans-serif;
  10. overflow-y: hidden;
  11. }
  12. *,
  13. *:before,
  14. *:after {
  15. padding: 0;
  16. margin: 0;
  17. box-sizing: border-box;
  18. }
  19. a {
  20. text-decoration: none;
  21. cursor: pointer;
  22. }
  23. [v-cloak] {
  24. display: none;
  25. }
  26. #app {
  27. background: url('../images/page-bg.png') center center no-repeat;
  28. background-size: 100% 100%;
  29. padding-top: 10px;
  30. width: 100%;
  31. height: 100%;
  32. overflow: hidden;
  33. color: #fff;
  34. display: grid;
  35. grid-template-columns: repeat(3, 1fr);
  36. padding: 10px;
  37. }
  38. #app > div {
  39. width: 100%;
  40. height: 100%;
  41. }
  42. div {
  43. overflow: hidden;
  44. }
  45. .my-header {
  46. position: relative;
  47. height: 70px;
  48. line-height: 70px;
  49. background: url('../images/header-bg.png') center center no-repeat;
  50. background-size: 100% 100%;
  51. text-align: center;
  52. font-weight: bold;
  53. font-size: 32px;
  54. font-weight: 600;
  55. }
  56. .my-header span {
  57. background: linear-gradient(-3deg, #99eeff 0%, #99eeff 30%, #ffffff 91%);
  58. -webkit-background-clip: text;
  59. -webkit-text-fill-color: transparent;
  60. }
  61. .my-header span.right {
  62. position: absolute;
  63. right: 60px;
  64. top: 0px;
  65. font-size: 16px;
  66. }
  67. .LeftBox,
  68. .CenterBox,
  69. .RightBox {
  70. padding: 0 20px;
  71. }
  72. .CenterBox > .main {
  73. width: 100%;
  74. height: calc(100% - 70px);
  75. display: grid;
  76. grid-template-columns: 3fr 4fr 3fr;
  77. gap: 10px;
  78. }
  79. .LeftBox > .main {
  80. width: 100%;
  81. height: calc(100% - 70px);
  82. display: grid;
  83. grid-template-columns: repeat(2, 1fr);
  84. grid-template-rows: repeat(3, 1fr);
  85. gap: 10px;
  86. }
  87. .RightBox > .main {
  88. width: 100%;
  89. height: calc(100% - 70px);
  90. display: grid;
  91. grid-template-rows: 5fr 8fr 11fr;
  92. gap: 10px;
  93. }
  94. .LeftBox .card {
  95. width: 100%;
  96. height: 100%;
  97. overflow: hidden;
  98. background: url('../groupImg/frame1.png') center center no-repeat;
  99. background-size: 100% 100%;
  100. }
  101. .title {
  102. position: relative;
  103. text-align: center;
  104. height: 100px;
  105. line-height: 100px;
  106. }
  107. .title .text {
  108. font-size: 30px;
  109. font-weight: 600;
  110. color: #05fbfe;
  111. text-shadow: 0px 2px 10px rgba(10, 30, 52, 0.48);
  112. background: linear-gradient(0deg, #ffffff 0%, #63dcff 0%, #e0f3ff 100%);
  113. -webkit-background-clip: text;
  114. -webkit-text-fill-color: transparent;
  115. position: relative;
  116. }
  117. .title .text::before {
  118. position: absolute;
  119. content: ' ';
  120. top: 15px;
  121. left: -40px;
  122. width: 30px;
  123. height: 10px;
  124. background: url('../images/title-left2.png') no-repeat;
  125. }
  126. .title .text::after {
  127. position: absolute;
  128. content: ' ';
  129. top: 15px;
  130. right: -40px;
  131. width: 30px;
  132. height: 10px;
  133. background: url('../images/title-right2.png') no-repeat;
  134. }
  135. .content {
  136. height: calc(100% - 110px);
  137. padding: 0 15px 10px;
  138. }
  139. .left-lt .content {
  140. display: grid;
  141. grid-template-columns: repeat(2, 1fr);
  142. gap: 10px;
  143. }
  144. .left-lt .content > div:first-child {
  145. display: grid;
  146. gap: 10px;
  147. grid-template-rows: repeat(2, 1fr);
  148. }
  149. .LeftBox .content-left-top {
  150. width: 100%;
  151. display: flex;
  152. align-items: center;
  153. height: 100%;
  154. }
  155. .LeftBox .item2 {
  156. width: 50%;
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. }
  161. .LeftBox .item2 .item2-title {
  162. font-weight: bold;
  163. font-size: 30px;
  164. }
  165. .LeftBox .item2 .item2-title span {
  166. font-weight: 500;
  167. font-size: 12px;
  168. }
  169. .LeftBox .item2 .item2-img {
  170. width: 150px;
  171. height: 150px;
  172. /* margin-top: -20px; */
  173. }
  174. .LeftBox .item2 .item2-text {
  175. color: #fff;
  176. font-size: 20px;
  177. }
  178. .LeftBox .content-left-top {
  179. width: 100%;
  180. display: flex;
  181. align-items: center;
  182. height: 100%;
  183. }
  184. .LeftBox .content-left-bottom {
  185. width: 100%;
  186. height: 100%;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. }
  191. .LeftBox .total {
  192. text-align: center;
  193. width: 200px;
  194. height: 30px;
  195. position: absolute;
  196. left: calc(50% - 100px);
  197. bottom: 7%;
  198. font-weight: bold;
  199. color: #2cb7e0;
  200. font-size: 20px;
  201. }
  202. .LeftBox .commonBack,.RightBox .commonBack {
  203. background-color: #062c4d;
  204. border-radius: 15px;
  205. }
  206. .LeftBox .left-rt .content {
  207. display: grid;
  208. grid-template-rows: repeat(2, 1fr);
  209. gap: 10px;
  210. }
  211. .LeftBox .left-rt .content > div:first-child {
  212. display: grid;
  213. gap: 10px;
  214. grid-template-columns: 3fr 4fr 4fr;
  215. }
  216. .LeftBox .left-rt .item3 {
  217. display: flex;
  218. flex-direction: column;
  219. align-items: center;
  220. justify-content: center;
  221. }
  222. .LeftBox .left-rt .item3 .item3-title {
  223. font-weight: bold;
  224. font-size: 30px;
  225. color: #69c0ff;
  226. }
  227. .LeftBox .left-rt .item3 .item3-title span {
  228. font-size: 14px;
  229. font-weight: 500;
  230. }
  231. .left-rt .item3 .item3-img {
  232. margin-top: -20px;
  233. width: 100px;
  234. height: 102px;
  235. margin-bottom: 18px;
  236. }
  237. .LeftBox .left-rt .item3 .item3-text {
  238. font-size: 14px;
  239. color: #fff;
  240. }
  241. .LeftBox .left-rt .item4-text {
  242. font-size: 20px;
  243. }
  244. .LeftBox .left-rt .item4 .item4-title {
  245. position: relative;
  246. padding-left: 10px;
  247. color: #69c0ff;
  248. margin-left: 10px;
  249. margin-top: 5px;
  250. font-size: 30px;
  251. }
  252. .LeftBox .left-rt .item4 .item4-title::before {
  253. content: '';
  254. position: absolute;
  255. left: 0;
  256. top: 50%;
  257. transform: translate(0, -50%);
  258. width: 5px;
  259. height: 5px;
  260. border-radius: 50%;
  261. background-color: #69c0ff;
  262. }
  263. .LeftBox .left-rt .item4 .item4-con {
  264. display: flex;
  265. align-items: center;
  266. justify-content: space-around;
  267. height: 100%;
  268. margin-top: 20px;
  269. }
  270. .LeftBox .left-rt .item4 .item4-con .item {
  271. display: flex;
  272. flex-direction: column;
  273. align-items: center;
  274. justify-content: center;
  275. margin: 0 30px;
  276. }
  277. .LeftBox .left-rt .item4 .item4-con .item .title {
  278. color: #69c0ff;
  279. font-weight: bold;
  280. font-size: 28px;
  281. height: 30px !important;
  282. line-height: 30px !important;
  283. margin-top: 10px;
  284. }
  285. .LeftBox .left-rt .item4 .item4-con .item .title span {
  286. font-weight: 500;
  287. font-size: 24px;
  288. }
  289. .LeftBox .left-rt .item4 .item4-con .item .text {
  290. font-size: 24px;
  291. color: #fff;
  292. }
  293. .LeftBox .left-rtb {
  294. display: grid;
  295. gap: 10px;
  296. grid-template-columns: repeat(2, 1fr);
  297. }
  298. .LeftBox .left-rc {
  299. display: grid;
  300. gap: 10px;
  301. grid-template-columns: repeat(2, 1fr);
  302. grid-template-rows: repeat(2, 1fr);
  303. }
  304. .LeftBox .left-lb,
  305. .left-rb {
  306. display: grid;
  307. gap: 10px;
  308. grid-template-columns: repeat(2, 1fr);
  309. }
  310. .CenterBox .center-l .card,.CenterBox .center-r .card {
  311. width: 100%;
  312. height: 100%;
  313. overflow: hidden;
  314. background: url('../groupImg/frame2.png') center center no-repeat;
  315. background-size: 100% 100%;
  316. }
  317. .CenterBox .center-l,.CenterBox .center-r{
  318. display: grid;
  319. gap: 10px;
  320. grid-template-rows: repeat(3, 1fr);
  321. }
  322. .CenterBox .boxs {
  323. display: grid;
  324. grid-template-columns: repeat(2, 1fr);
  325. grid-template-rows: repeat(2, 1fr);
  326. padding: 10px;
  327. color: #40A9FF;
  328. height: 100%;
  329. }
  330. .CenterBox .boxs > div {
  331. flex: 0 0 50%;
  332. background: url('../groupImg/left1-bg.png') no-repeat center;
  333. background-size: 100% 100%;
  334. padding: 20px 30px;
  335. display: flex;
  336. justify-content: center;
  337. align-items: center;
  338. flex-direction: column;
  339. }
  340. .CenterBox .boxs > div > p {
  341. width: 80%;
  342. }
  343. .CenterBox .boxs > div > p:nth-child(1){
  344. display: flex;
  345. justify-content: space-between;
  346. }
  347. .CenterBox .boxs > div > p:nth-child(2) {
  348. margin-top: 25px;
  349. text-align: left;
  350. }
  351. .CenterBox .boxs .name {
  352. color: #f3f3f3;
  353. font-size: 30px;
  354. }
  355. .CenterBox .boxs .change {
  356. color: #32EDAA;
  357. }
  358. .CenterBox .boxs .change.up {
  359. color: #ED3248;
  360. }
  361. .CenterBox .boxs .num {
  362. font-size: 30px;
  363. font-weight: 600;
  364. margin-right: 5px;
  365. }
  366. .CenterBox .boxs .el-icon-more {
  367. font-size: 35px;
  368. }
  369. .CenterBox .top {
  370. display: flex;
  371. justify-content: space-between;
  372. }
  373. .CenterBox .top .box {
  374. flex: 1;
  375. margin: 0 10px;
  376. display: flex;
  377. flex-direction: column;
  378. align-items: center;
  379. color: #40A9FF;
  380. }
  381. /* .CenterBox .t {
  382. padding: 15px 0;
  383. display: flex;
  384. align-items: center;
  385. background-color: rgba(59,211,255,0.05);
  386. } */
  387. .CenterBox .t {
  388. padding: 25px 0;
  389. display: flex;
  390. font-size: 30px;
  391. font-weight: 600;
  392. align-items: center;
  393. justify-content: center;
  394. background-color: rgba(18, 61, 98, .6);
  395. }
  396. .CenterBox .b {
  397. padding: 15px 0;
  398. display: flex;
  399. align-items: center;
  400. justify-content: space-around;
  401. background-color: rgba(7, 42, 76, .6);
  402. padding: 15px 0;
  403. }
  404. .CenterBox .b span {
  405. color: #40A9FF;
  406. font-size: 34px;
  407. font-weight: 900;
  408. }
  409. .CenterBox .t img {
  410. margin-right: 10px;
  411. }
  412. .CenterBox .box > div {
  413. width: 100%;
  414. }
  415. .CenterBox .box > img {
  416. width: 40px;
  417. }
  418. .CenterBox .box > div p {
  419. font-size: 26px;
  420. color: #e1e3ef;
  421. }
  422. .CenterBox .box > div span {
  423. display: inline-block;
  424. font-size: 34px;
  425. margin-right: 5px;
  426. font-weight: bolder;
  427. margin-top: 5px;
  428. }
  429. .CenterBox .map-box {
  430. height: 100%;
  431. position: relative;
  432. padding: 30px 0;
  433. }
  434. .CenterBox .status {
  435. position: absolute;
  436. /* bottom: 20px; */
  437. bottom: 200px;
  438. right: 15px;
  439. background-color: rgba(3,10,12,0.46);
  440. border: 1px solid #4A57CF;
  441. }
  442. .CenterBox .status p {
  443. background-color: #02397F;
  444. line-height: 45px;
  445. text-align: center;
  446. font-size: 25px;
  447. color: #40A9FF;
  448. }
  449. .CenterBox .status li {
  450. line-height: 30px;
  451. padding-right: 15px;
  452. list-style: none;
  453. position: relative;
  454. font-size: 20px;
  455. }
  456. .CenterBox .status li::before {
  457. content: '';
  458. position: absolute;
  459. left: -15px;
  460. top: 50%;
  461. transform: translate(0, -50%);
  462. width: 5px;
  463. height: 5px;
  464. background-color: #00FFFF;
  465. border-radius: 50%;
  466. }
  467. .CenterBox .status i {
  468. font-size: 20px;
  469. font-weight: 600;
  470. color: #40A9FF;
  471. }
  472. .CenterBox .tooltip-cont {
  473. margin: -15px;
  474. border: 1px solid #3699FF;
  475. border-radius: 8px;
  476. padding: 15px;
  477. background-color: rgb(39 122 145 / 0.36);
  478. font-size: 30px;
  479. }
  480. .CenterBox .tooltip-cont p {
  481. line-height: 1.8;
  482. color: #f3f3f3;
  483. position: relative;
  484. padding-left: 12px;
  485. }
  486. .CenterBox .tooltip-cont p::before {
  487. position: absolute;
  488. display: inline-block;
  489. content: '';
  490. left: -10px;
  491. top: 20px;
  492. width: 15px;
  493. height: 15px;
  494. border-radius: 50%;
  495. background-color: #40A9FF;
  496. }
  497. .CenterBox .tooltip-cont span{
  498. color: #69C0FF;
  499. }
  500. .RightBox .right-t{
  501. display: grid;
  502. gap: 10px;
  503. grid-template-columns: 3fr 1fr;
  504. background: url('../groupImg/langBack.png') no-repeat center;
  505. background-size: 100% 100%;
  506. padding: 10px;
  507. }
  508. .RightBox .right-c,.RightBox .right-b{
  509. display: grid;
  510. gap: 10px;
  511. grid-template-columns: repeat(2, 1fr);
  512. }
  513. .RightBox .right-c >div,.RightBox .right-b >div{
  514. background: url('../groupImg/cBack.png') no-repeat center;
  515. background-size: 100% 100%;
  516. padding: 10px;
  517. }
  518. .RightBox .top-lb {
  519. padding: 0px 30px;
  520. display: grid;
  521. /* grid-template-columns: repeat(11, 1fr); */
  522. grid-template-columns: 2.5fr 1fr 2.5fr 1fr 2.5fr 1fr 2.5fr 1fr 2.5fr 1fr 2.5fr;
  523. gap: 10px;
  524. padding-bottom: 20px;
  525. }
  526. .RightBox .top-lb > .topCard:nth-child(odd) > div:first-child,.RightBox .top-rb > .topCard:nth-child(odd) > div:first-child {
  527. width: 190px;
  528. height: 190px;
  529. background-size: 100% 100%;
  530. }
  531. .RightBox .top-lb > .topCard:nth-child(even) > div:first-child,.RightBox .top-rb > .topCard:nth-child(even) > div:first-child {
  532. width: 100px;
  533. height: 100px;
  534. background-size: 100% 100%;
  535. }
  536. .RightBox .titleBackBlue{
  537. background: url('../images5/completed.png') no-repeat center;
  538. background-size: 95% 95%;
  539. }
  540. .RightBox .titleBackYellow{
  541. background: url('../images5/completed2.png') no-repeat center;
  542. background-size: 95% 95%;
  543. }
  544. .RightBox .top-rb{
  545. padding: 0px 30px;
  546. display: grid;
  547. grid-template-columns: 2.5fr 1fr 2.5fr;
  548. gap: 10px;
  549. padding-bottom: 20px;
  550. }
  551. .RightBox .top-rb > .topCard:nth-child(odd) > div:first-child {
  552. background: url('../images5/completed.png') no-repeat center;
  553. background-size: 95% 95%;
  554. }
  555. .RightBox .top-lb > .topCard:nth-child(even) > div:first-child {
  556. background: url('../images5/completedDot.png') no-repeat center;
  557. background-size: 100% auto;
  558. background-position: 0 25%;
  559. }
  560. .RightBox .top-rb > .topCard:nth-child(even) > div:first-child {
  561. background: url('../images5/completedDot.png') no-repeat;
  562. background-size: 100% auto;
  563. background-position: 0 35%;
  564. }
  565. .RightBox .centerBack {
  566. background: url('../images5/back2.png') no-repeat;
  567. background-size: 100% 100%;
  568. }
  569. .RightBox .center-l {
  570. display: grid;
  571. grid-template-columns: repeat(3, 1fr);
  572. gap: 10px;
  573. padding: 20px !important;
  574. }
  575. .RightBox .center-l > div {
  576. background: url('../images5/center-left-list-back.png') no-repeat;
  577. background-size: 100% 100%;
  578. text-align: center;
  579. padding: 10%;
  580. }
  581. .RightBox .center-l-title {
  582. width: 100%;
  583. height: 10%;
  584. margin-top: 15%;
  585. font-size: 30px;
  586. font-weight: bold;
  587. }
  588. .RightBox .center-l-list{
  589. height: 30%;
  590. margin: 15% 0;
  591. background: url('../images5/project.png') no-repeat center;
  592. background-size: 100% auto;
  593. font-size: 26px;
  594. }
  595. .RightBox .center-l-list2{
  596. height: 30%;
  597. background: url('../images5/pin.png') no-repeat center;
  598. background-size: 100% auto;
  599. font-size: 26px;
  600. }
  601. .RightBox .right-br{
  602. display: grid;
  603. gap: 10px;
  604. grid-template-rows: repeat(2, 1fr);
  605. }
  606. .RightBox .right-brt{
  607. display: grid;
  608. gap: 10px;
  609. grid-template-columns: repeat(2, 1fr);
  610. }
  611. /* 公共css */
  612. /* 宽高纵横比 */
  613. .aspect-auto {
  614. aspect-ratio: auto;
  615. }
  616. .aspect-square {
  617. aspect-ratio: 1 / 1;
  618. }
  619. .aspect-video {
  620. aspect-ratio: 16 / 9;
  621. }
  622. /* aspect-[4/3] */
  623. /* 居中 */
  624. .mx-auto {
  625. margin: 0 auto;
  626. }
  627. /* 设置容器内的列数/每列距离 */
  628. .columns-1 {
  629. columns: 1;
  630. }
  631. /* columns-[20px] */
  632. /* 盒子模型 */
  633. .box-border {
  634. box-sizing: border-box;
  635. }
  636. .box-content {
  637. box-sizing: content-box;
  638. }
  639. /* 消失 */
  640. .hidden {
  641. display: none;
  642. }
  643. /* 块级元素 */
  644. .block {
  645. display: block;
  646. }
  647. /* 行内块 */
  648. .inline-block {
  649. display: inline-block;
  650. }
  651. /* 行内元素 */
  652. .inline {
  653. display: inline;
  654. }
  655. /* 弹性布局 */
  656. .flex {
  657. display: flex;
  658. }
  659. /* 主轴起点在左边 */
  660. .flex-row {
  661. flex-direction: row;
  662. }
  663. /* 主轴起点在右边 */
  664. .flex-row-reverse {
  665. flex-direction: row-reverse;
  666. }
  667. /* 主轴竖向排列,在上面 */
  668. .flex-col {
  669. flex-direction: column;
  670. }
  671. /* 主轴竖向排列,在下面 */
  672. .flex-col-reverse {
  673. flex-direction: column-reverse;
  674. }
  675. /* 自动换行 */
  676. .flex-wrap {
  677. flex-wrap: wrap;
  678. }
  679. /* 自动换行下起点 */
  680. .flex-wrap-reverse {
  681. flex-wrap: wrap-reverse;
  682. }
  683. /* 不换行 */
  684. .flex-nowrap {
  685. flex-wrap: nowrap;
  686. }
  687. /* 弹性成长 */
  688. .grow {
  689. flex-grow: 1;
  690. }
  691. /* 不允许弹性成长 */
  692. .grow-0 {
  693. flex-grow: 0;
  694. }
  695. /* 主轴从左开始 */
  696. .justify-start {
  697. justify-content: flex-start;
  698. }
  699. /* 主轴从右开始 */
  700. .justify-end {
  701. justify-content: flex-end;
  702. }
  703. /* 主轴剧中 */
  704. .justify-center {
  705. justify-content: center;
  706. }
  707. /* 主轴两端无间隔 */
  708. .justify-between {
  709. justify-content: space-between;
  710. }
  711. /* 主轴两端有间隔 */
  712. .justify-around {
  713. justify-content: space-around;
  714. }
  715. /* 所有间隔相等 */
  716. .justify-evenly {
  717. justify-content: space-evenly;
  718. }
  719. /* 纵向起点最上方 */
  720. .items-start {
  721. align-items: flex-start;
  722. }
  723. /* 纵向起点最下方 */
  724. .items-end {
  725. align-items: flex-end;
  726. }
  727. .items-center {
  728. align-items: center;
  729. }
  730. /* 网格布局 */
  731. .grid {
  732. display: grid;
  733. }
  734. /* 有几列 */
  735. .grid-cols-4 {
  736. grid-template-columns: repeat(4, minmax(0, 1fr));
  737. grid-template-columns: repeat(4, 1fr);
  738. }
  739. /* 有几行 */
  740. .grid-rows-3 {
  741. grid-template-rows: repeat(3, minmax(0, 1fr));
  742. grid-template-rows: repeat(3, 1fr);
  743. }
  744. /* 容器中的内容上下布局 */
  745. .grid-center {
  746. align-items: center;
  747. }
  748. /* 间距 */
  749. .gap-7 {
  750. gap: 1.75rem;
  751. }
  752. /* 允许弹性成长 */
  753. .shrink {
  754. flex-shrink: 1;
  755. }
  756. /* 不允许弹性成长 */
  757. .shrink-0 {
  758. flex-shrink: 0;
  759. }
  760. /* 不允许成长也不允许收缩 */
  761. .flex-none {
  762. flex: none;
  763. }
  764. /* 浮动布局 */
  765. .float-right {
  766. float: right;
  767. }
  768. .float-left {
  769. float: left;
  770. }
  771. .clear-both {
  772. clear: both;
  773. }
  774. /* 溢出 */
  775. .overflow-auto {
  776. overflow: auto;
  777. }
  778. .overflow-hidden {
  779. overflow: hidden;
  780. }
  781. .overflow-scroll {
  782. overflow: scroll;
  783. }
  784. .overflow-x-auto {
  785. overflow-x: auto;
  786. }
  787. .overflow-y-auto {
  788. overflow-y: auto;
  789. }
  790. /* 定位 */
  791. .fixed {
  792. position: fixed;
  793. }
  794. .absolute {
  795. position: absolute;
  796. }
  797. .relative {
  798. position: relative;
  799. }
  800. .top-0 {
  801. top: 0px;
  802. }
  803. .right-0 {
  804. right: 0px;
  805. }
  806. .bottom-0 {
  807. bottom: 0px;
  808. }
  809. .left-0 {
  810. left: 0px;
  811. }
  812. /* top-[3px] */
  813. /* z-[100] */
  814. /* 显示隐藏未脱离文档流 */
  815. .visible {
  816. visibility: visible;
  817. }
  818. .invisible {
  819. visibility: hidden;
  820. }
  821. /* 内边距 */
  822. .p-0 {
  823. padding: 0px;
  824. }
  825. .px-0 {
  826. padding-left: 0px;
  827. padding-right: 0px;
  828. }
  829. .py-0 {
  830. padding-top: 0px;
  831. padding-bottom: 0px;
  832. }
  833. .pt-0 {
  834. padding-top: 0px;
  835. }
  836. .pr-0 {
  837. padding-right: 0px;
  838. }
  839. .pb-0 {
  840. padding-bottom: 0px;
  841. }
  842. .pl-0 {
  843. padding-left: 0px;
  844. }
  845. /* p-[5px] */
  846. /* 外边距 */
  847. .m-0 {
  848. margin: 0px;
  849. }
  850. .mx-0 {
  851. margin-left: 0px;
  852. margin-right: 0px;
  853. }
  854. .my-0 {
  855. margin-top: 0px;
  856. margin-bottom: 0px;
  857. }
  858. .mt-0 {
  859. margin-top: 0px;
  860. }
  861. .mr-0 {
  862. margin-right: 0px;
  863. }
  864. .mb-0 {
  865. margin-bottom: 0px;
  866. }
  867. .ml-0 {
  868. margin-left: 0px;
  869. }
  870. /* m-[5px] */
  871. /* 宽度 */
  872. .w-full {
  873. width: 100%;
  874. }
  875. .w-screen {
  876. width: 100vw;
  877. }
  878. /* w-[32rem] */
  879. /* min-w-[50%] */
  880. /* max-w-[50%] */
  881. /* 高度 */
  882. .h-full {
  883. height: 100%;
  884. }
  885. .h-screen {
  886. height: 100vh;
  887. }
  888. /* h-[32rem] */
  889. /* min-h-[50%] */
  890. /* max-h-[32rem] */
  891. /* 字体 */
  892. .text-xs {
  893. font-size: 0.75rem; /* 12px */
  894. line-height: 1rem; /* 16px */
  895. }
  896. .text-sm {
  897. font-size: 0.875rem; /* 14px */
  898. line-height: 1.25rem; /* 20px */
  899. }
  900. .text-base {
  901. font-size: 1rem; /* 16px */
  902. line-height: 1.5rem; /* 24px */
  903. }
  904. .text-lg {
  905. font-size: 1.125rem; /* 18px */
  906. line-height: 1.75rem; /* 28px */
  907. }
  908. .text-xl {
  909. font-size: 1.25rem; /* 20px */
  910. line-height: 1.75rem; /* 28px */
  911. }
  912. .text-2xl {
  913. font-size: 1.5rem; /* 24px */
  914. line-height: 2rem; /* 32px */
  915. }
  916. .text-3xl {
  917. font-size: 1.875rem; /* 30px */
  918. line-height: 2.25rem; /* 36px */
  919. }
  920. .text-4xl {
  921. font-size: 2.25rem; /* 36px */
  922. line-height: 2.5rem; /* 40px */
  923. }
  924. .text-5xl {
  925. font-size: 3rem; /* 48px */
  926. line-height: 1;
  927. }
  928. .text-6xl {
  929. font-size: 3.75rem; /* 60px */
  930. line-height: 1;
  931. }
  932. .text-7xl {
  933. font-size: 4.5rem; /* 72px */
  934. line-height: 1;
  935. }
  936. .text-8xl {
  937. font-size: 6rem; /* 96px */
  938. line-height: 1;
  939. }
  940. .text-9xl {
  941. font-size: 8rem; /* 128px */
  942. line-height: 1;
  943. }
  944. /* text-[14px] */
  945. /* 字体粗细font-weight */
  946. /* font-[1100] */
  947. /* https://tailwindcss.com/docs/font-weight */
  948. /* 字体间距letter-spacing */
  949. /* tracking-[.25em] */
  950. /* 行高line-height */
  951. /* leading-[3rem] */
  952. /* 无列表样式 */
  953. .list-none {
  954. list-style-type: none;
  955. }
  956. /* 小圆点 */
  957. .list-disc {
  958. list-style-type: disc;
  959. }
  960. /* 数字列表 */
  961. .list-decimal {
  962. list-style-type: decimal;
  963. }
  964. .text-left {
  965. text-align: left;
  966. }
  967. .text-center {
  968. text-align: center;
  969. }
  970. .text-right {
  971. text-align: right;
  972. }
  973. /* 所有文本头尾对齐 */
  974. .text-justify {
  975. text-align: justify;
  976. }
  977. /* 文本颜色 */
  978. /* text-[#50d71e] */
  979. /* https://tailwindcss.com/docs/text-color */
  980. /* 下划线 */
  981. .underline {
  982. text-decoration-line: underline;
  983. }
  984. /* 上划线 */
  985. .overline {
  986. text-decoration-line: overline;
  987. }
  988. /* 中划线 */
  989. .line-through {
  990. text-decoration-line: line-through;
  991. }
  992. /* 无划线 */
  993. .no-underline {
  994. text-decoration-line: none;
  995. }
  996. /* 全小写 */
  997. .lowercase {
  998. text-transform: lowercase;
  999. }
  1000. /* 全大写 */
  1001. .uppercase {
  1002. text-transform: uppercase;
  1003. }
  1004. /* 首字母大写 */
  1005. .capitalize {
  1006. text-transform: capitalize;
  1007. }