course-card-title.vue 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div class="classification-title">
  3. <i class="left"></i>
  4. <h3>{{ title }}</h3>
  5. <i class="right"></i>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: "course-card-title",
  11. props: {
  12. title: ''
  13. }
  14. }
  15. </script>
  16. <style lang="scss" scoped>
  17. .classification-title {
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. i {
  22. display: inline-block;
  23. width: 67px;
  24. height: 26px;
  25. }
  26. i.left {
  27. transform: rotate(-180deg);
  28. background-image: url("~static/images/client/course/animation/title-line.png");
  29. }
  30. i.right {
  31. background-image: url("~static/images/client/course/animation/title-line.png");
  32. }
  33. h3 {
  34. font-size: 36px;
  35. font-weight: 400;
  36. color: #333333;
  37. margin: 0 45px;
  38. }
  39. @media (max-width: 768px){
  40. i {
  41. display: inline-block;
  42. width: 50px;
  43. height: 22px;
  44. }
  45. h3 {
  46. font-size: 16px;
  47. font-weight: 400;
  48. color: #333333;
  49. margin: 0 15px;
  50. }
  51. }
  52. }
  53. </style>