index.css 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. .operation-container[data-v-1cf27b2a] {
  27. padding: 0.625rem;
  28. box-sizing: border-box;
  29. }
  30. .section[data-v-1cf27b2a] {
  31. margin-bottom: 0.9375rem;
  32. background: #ffffff;
  33. border-radius: 0.5rem;
  34. padding: 0.625rem;
  35. padding-right: 0;
  36. box-shadow: 0 0.0625rem 0.375rem rgba(0, 0, 0, 0.05);
  37. }
  38. .section .section-title[data-v-1cf27b2a] {
  39. font-size: 1.5625rem;
  40. font-weight: 600;
  41. color: #333;
  42. padding: 0.625rem;
  43. padding-top: 0;
  44. border-bottom: 0.0625rem solid #f0f0f0;
  45. margin-bottom: 0.625rem;
  46. }
  47. .section .grid-container[data-v-1cf27b2a] {
  48. display: flex;
  49. flex-wrap: wrap;
  50. padding: 0.3125rem;
  51. }
  52. .section .grid-container .grid-item[data-v-1cf27b2a] {
  53. width: calc(50% - 0.625rem);
  54. min-height: 4.625rem;
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. text-align: center;
  59. padding: 0.625rem 0.9375rem;
  60. line-height: 1.875rem;
  61. font-size: 1.5625rem;
  62. border-radius: 0.375rem;
  63. color: #ffffff;
  64. transition: all 0.3s;
  65. white-space: pre-wrap;
  66. box-sizing: border-box;
  67. margin-right: 0.625rem;
  68. margin-bottom: 0.625rem;
  69. }
  70. .section .grid-container .grid-item[style*="grid-column: span 2"][data-v-1cf27b2a] {
  71. width: calc(100% - 0.625rem);
  72. margin-right: 0.625rem;
  73. }
  74. .section .grid-container .grid-item.primary[data-v-1cf27b2a] {
  75. background: linear-gradient(135deg, #4cd964, #3ac555);
  76. }
  77. .section .grid-container .grid-item.primary[data-v-1cf27b2a]:active {
  78. background: linear-gradient(135deg, #3ac555, #2fb548);
  79. }
  80. .section .grid-container .grid-item.warning[data-v-1cf27b2a] {
  81. background: linear-gradient(135deg, #ff9500, #ff8000);
  82. }
  83. .section .grid-container .grid-item.warning[data-v-1cf27b2a]:active {
  84. background: linear-gradient(135deg, #ff8000, #e67300);
  85. }
  86. .section .grid-container .grid-item[data-v-1cf27b2a]:active {
  87. transform: scale(0.98);
  88. }