teaching-case.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. .teaching_case {
  28. display: flex;
  29. justify-content: space-between;
  30. margin-bottom: 10px;
  31. background-color: #ffffff;
  32. padding: 20rpx 30rpx;
  33. }
  34. .teaching_case .img {
  35. width: 180rpx;
  36. height: 180rpx;
  37. }
  38. .teaching_case .img image {
  39. width: 100%;
  40. height: 100%;
  41. }
  42. .teaching_case .right {
  43. padding-left: 15px;
  44. flex: 1;
  45. width: 100rpx;
  46. display: flex;
  47. flex-direction: column;
  48. align-content: flex-end;
  49. }
  50. .teaching_case .right .title {
  51. display: flex;
  52. margin-bottom: 5px;
  53. }
  54. .teaching_case .right .title .tag {
  55. border: 1px #00b2b6 solid;
  56. font-size: 12px;
  57. display: flex;
  58. white-space: nowrap;
  59. justify-content: center;
  60. align-items: center;
  61. padding: 2px 4px;
  62. border-radius: 3px;
  63. margin-right: 10rpx;
  64. color: #00b2b6;
  65. }
  66. .teaching_case .right .title text {
  67. font-weight: bold;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. white-space: nowrap;
  71. }
  72. .teaching_case .right .introduce {
  73. font-size: 16px;
  74. color: #a7a7a7;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. white-space: nowrap;
  78. }
  79. .teaching_case .right .operate {
  80. display: flex;
  81. justify-content: space-between;
  82. align-items: flex-end;
  83. flex-grow: 1;
  84. }
  85. .teaching_case .right .operate .left {
  86. display: flex;
  87. justify-content: space-between;
  88. align-items: center;
  89. }
  90. .teaching_case .right .operate .left .opr {
  91. display: flex;
  92. align-items: center;
  93. }
  94. .teaching_case .right .operate .left .pernum {
  95. color: #666666;
  96. font-size: 14px;
  97. }
  98. .teaching_case .right .operate .left .price {
  99. font-size: 18px;
  100. font-weight: bold;
  101. color: #f8a551;
  102. padding-right: 10rpx;
  103. }
  104. .teaching_case .right .operate .btn {
  105. z-index: 5;
  106. font-size: 12px;
  107. background-color: #3081e8;
  108. color: #fff;
  109. border-radius: 30px;
  110. margin: 0;
  111. float: right;
  112. letter-spacing: 1px;
  113. }