index.wxss 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. page {
  28. background-color: #f9f9f9;
  29. height: 100%;
  30. }
  31. .exercise {
  32. padding: 40rpx;
  33. }
  34. .exercise .title {
  35. font-size: 60rpx;
  36. font-weight: 900;
  37. }
  38. .exercise .subTitle {
  39. margin: 20rpx 0;
  40. color: #666;
  41. }
  42. .exercise .firstCard,
  43. .exercise .secondCard {
  44. width: 98%;
  45. height: 300rpx;
  46. margin: 30rpx 0;
  47. border-radius: 20rpx;
  48. display: flex;
  49. align-items: center;
  50. box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, 0.1);
  51. }
  52. .exercise .firstCard .left,
  53. .exercise .secondCard .left {
  54. width: 40%;
  55. text-align: center;
  56. }
  57. .exercise .firstCard .left .t-icon,
  58. .exercise .secondCard .left .t-icon {
  59. width: 100rpx;
  60. height: 100rpx;
  61. }
  62. .exercise .firstCard .left .custom-t-icon-rili,
  63. .exercise .secondCard .left .custom-t-icon-rili {
  64. width: 120rpx;
  65. height: 120rpx;
  66. }
  67. .exercise .firstCard .right,
  68. .exercise .secondCard .right {
  69. flex: 1;
  70. padding: 0 20rpx;
  71. }
  72. .exercise .firstCard .right .partName,
  73. .exercise .secondCard .right .partName {
  74. font-size: 52rpx;
  75. font-weight: 600;
  76. margin-bottom: 36rpx;
  77. }
  78. .exercise .firstCard .right .tip,
  79. .exercise .secondCard .right .tip {
  80. color: #333;
  81. }
  82. .exercise .firstCard {
  83. margin-top: 60rpx;
  84. background: linear-gradient(to right, #f8a189, #f9ece5);
  85. }
  86. .exercise .secondCard {
  87. background: linear-gradient(to right, #96bef3, #e8f2f8);
  88. }