style.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. .w,
  6. .top-bar,
  7. .banner,
  8. .menu,
  9. .course-list {
  10. width: 17.325rem;
  11. margin: 0 auto;
  12. }
  13. html {
  14. font-size: 5.33333333vw;
  15. background-color: #eff0f4;
  16. }
  17. a {
  18. text-decoration: none;
  19. }
  20. .top-bar {
  21. display: flex;
  22. height: 4.375rem;
  23. line-height: 4.375rem;
  24. justify-content: space-between;
  25. align-items: center;
  26. }
  27. .top-bar a {
  28. color: #24253d;
  29. font-size: 1.25rem;
  30. }
  31. .top-bar a i {
  32. color: #999;
  33. font-size: 1rem;
  34. }
  35. .banner img {
  36. width: 100%;
  37. }
  38. .menu {
  39. height: 8.225rem;
  40. display: flex;
  41. flex-flow: row wrap;
  42. justify-content: space-between;
  43. align-content: space-evenly;
  44. }
  45. .menu a {
  46. width: 8.175rem;
  47. height: 2.6rem;
  48. line-height: 2.6rem;
  49. color: white;
  50. border-radius: 0.25rem;
  51. }
  52. .menu a i {
  53. margin: 0 0.5rem 0 0.95rem;
  54. }
  55. .menu .course {
  56. background-color: #f97053;
  57. }
  58. .menu .star {
  59. background-color: #cd6efe;
  60. }
  61. .menu .sub {
  62. background-color: #fe4479;
  63. }
  64. .menu .download {
  65. background-color: #1bc4fb;
  66. }
  67. .course-list {
  68. height: 9.85rem;
  69. display: flex;
  70. flex-flow: column;
  71. justify-content: space-between;
  72. margin-bottom: 1.15rem;
  73. }
  74. .course-list .title {
  75. display: flex;
  76. justify-content: space-between;
  77. align-items: center;
  78. }
  79. .course-list .title h2 {
  80. font-size: 0.825rem;
  81. color: #24253d;
  82. border-left: 2px solid #3a84ff;
  83. padding: 4px;
  84. }
  85. .course-list .title a {
  86. font-size: 0.7rem;
  87. color: #656565;
  88. }
  89. .item-list {
  90. width: 18rem;
  91. display: flex;
  92. overflow: auto;
  93. }
  94. .item {
  95. flex: none;
  96. box-sizing: border-box;
  97. width: 8rem;
  98. height: 8.1rem;
  99. padding: 0 0.55rem;
  100. background-color: #fff;
  101. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  102. border-radius: 5px;
  103. display: flex;
  104. flex-flow: column;
  105. justify-content: space-evenly;
  106. margin-right: 0.6rem;
  107. }
  108. .item img {
  109. width: 100%;
  110. vertical-align: top;
  111. }
  112. .item .course-title {
  113. font-size: 0.66666667rem;
  114. color: #24253d;
  115. }
  116. .item .user-info {
  117. display: flex;
  118. align-items: center;
  119. }
  120. .item .avatar {
  121. width: 1.05rem;
  122. height: 1.05rem;
  123. }
  124. .item .nickname {
  125. margin-left: 6px;
  126. font-size: 0.6rem;
  127. color: #969393;
  128. }
  129. /*# sourceMappingURL=./style.css.map */