index.css 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @import '../common/index.css';
  2. .van-grid-item {
  3. position: relative;
  4. float: left;
  5. box-sizing: border-box;
  6. }
  7. .van-grid-item--square {
  8. height: 0;
  9. }
  10. .van-grid-item__content {
  11. display: -webkit-flex;
  12. display: flex;
  13. -webkit-flex-direction: column;
  14. flex-direction: column;
  15. box-sizing: border-box;
  16. height: 100%;
  17. padding: 16px 8px;
  18. padding: var(--grid-item-content-padding, 16px 8px);
  19. background-color: #fff;
  20. background-color: var(--grid-item-content-background-color, #fff);
  21. }
  22. .van-grid-item__content:after {
  23. z-index: 1;
  24. border-width: 0 1px 1px 0;
  25. border-bottom-width: var(--border-width-base, 1px);
  26. border-right-width: var(--border-width-base, 1px);
  27. border-top-width: 0;
  28. }
  29. .van-grid-item__content--surround:after {
  30. border-width: 1px;
  31. border-width: var(--border-width-base, 1px);
  32. }
  33. .van-grid-item__content--center {
  34. -webkit-align-items: center;
  35. align-items: center;
  36. -webkit-justify-content: center;
  37. justify-content: center;
  38. }
  39. .van-grid-item__content--square {
  40. position: absolute;
  41. top: 0;
  42. right: 0;
  43. left: 0;
  44. }
  45. .van-grid-item__content--horizontal {
  46. -webkit-flex-direction: row;
  47. flex-direction: row;
  48. }
  49. .van-grid-item__content--horizontal .van-grid-item__icon + .van-grid-item__text {
  50. margin-top: 0;
  51. margin-left: 8px;
  52. }
  53. .van-grid-item__content--clickable:active {
  54. background-color: #f2f3f5;
  55. background-color: var(--grid-item-content-active-color, #f2f3f5);
  56. }
  57. .van-grid-item__icon {
  58. display: -webkit-flex;
  59. display: flex;
  60. -webkit-align-items: center;
  61. align-items: center;
  62. font-size: 26px;
  63. font-size: var(--grid-item-icon-size, 26px);
  64. height: 26px;
  65. height: var(--grid-item-icon-size, 26px);
  66. }
  67. .van-grid-item__text {
  68. word-wrap: break-word;
  69. color: #646566;
  70. color: var(--grid-item-text-color, #646566);
  71. font-size: 12px;
  72. font-size: var(--grid-item-text-font-size, 12px);
  73. }
  74. .van-grid-item__icon + .van-grid-item__text {
  75. margin-top: 8px;
  76. }