teaching-case.wxss 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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: 20px;
  31. padding-right: 20px;
  32. }
  33. .teaching_case .img {
  34. width: 180rpx;
  35. height: 180rpx;
  36. }
  37. .teaching_case .img image {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. .teaching_case .right {
  42. padding-left: 15px;
  43. flex: 1;
  44. width: 100rpx;
  45. display: flex;
  46. flex-direction: column;
  47. align-content: flex-end;
  48. }
  49. .teaching_case .right .title {
  50. display: flex;
  51. margin-bottom: 5px;
  52. }
  53. .teaching_case .right .title .tag {
  54. border: 1px #00b2b6 solid;
  55. font-size: 12px;
  56. display: flex;
  57. white-space: nowrap;
  58. justify-content: center;
  59. align-items: center;
  60. padding: 2px 4px;
  61. border-radius: 3px;
  62. margin-right: 10rpx;
  63. color: #00b2b6;
  64. }
  65. .teaching_case .right .title text {
  66. overflow: hidden;
  67. text-overflow: ellipsis;
  68. white-space: nowrap;
  69. }
  70. .teaching_case .right .introduce {
  71. font-size: 16px;
  72. color: #a7a7a7;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. white-space: nowrap;
  76. }
  77. .teaching_case .right .operate {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: flex-end;
  81. }
  82. .teaching_case .right .operate .left {
  83. display: flex;
  84. justify-content: space-between;
  85. width: 200rpx;
  86. }
  87. .teaching_case .right .operate .btn {
  88. width: 80px;
  89. font-size: 12px;
  90. background-color: #3081e8;
  91. color: #fff;
  92. border-radius: 30px;
  93. margin: 0;
  94. float: right;
  95. margin-top: 10px;
  96. }