style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. div,ul,li {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. ul,li {
  6. list-style: none;
  7. }
  8. a {
  9. text-decoration: none;
  10. color: #000;
  11. }
  12. .calendar {
  13. width: 100%;
  14. }
  15. .calendar-header {
  16. width: 100%;
  17. text-align: center;
  18. padding: 13px 0;
  19. line-height: 14px;
  20. border-bottom: 1px solid #ddd;
  21. }
  22. .calendar-header>i{
  23. display: inline-block;
  24. width: 14px;
  25. height: 14px;
  26. vertical-align: -2px;
  27. position: relative;
  28. }
  29. .calendar-header>span {
  30. margin: 0 5%;
  31. }
  32. .calendar-header>.icon-left:before,
  33. .calendar-header>.icon-left:after,
  34. .calendar-header>.icon-right:before,
  35. .calendar-header>.icon-right:after
  36. {
  37. content: '';
  38. position: absolute;
  39. top: 0;
  40. left: 0;
  41. }
  42. .calendar-header>.icon-left:before {
  43. border: 7px solid red;
  44. border-color: transparent #666 transparent transparent;
  45. -webkit-transform: translateX(-50%);
  46. -moz-transform: translateX(-50%);
  47. -ms-transform: translateX(-50%);
  48. -o-transform: translateX(-50%);
  49. transform: translateX(-50%);
  50. }
  51. .calendar-header>.icon-left:after {
  52. border: 7px solid #fff;
  53. border-color: transparent #fff transparent transparent;
  54. -webkit-transform: translateX(-40%);
  55. -moz-transform: translateX(-40%);
  56. -ms-transform: translateX(-40%);
  57. -o-transform: translateX(-40%);
  58. transform: translateX(-40%);
  59. }
  60. .calendar-header>.icon-right:before {
  61. border: 7px solid red;
  62. border-color: transparent transparent transparent #666;
  63. -webkit-transform: translateX(50%);
  64. -moz-transform: translateX(50%);
  65. -ms-transform: translateX(50%);
  66. -o-transform: translateX(50%);
  67. transform: translateX(50%);
  68. }
  69. .calendar-header>.icon-right:after {
  70. border: 7px solid #fff;
  71. border-color: transparent transparent transparent #fff;
  72. -webkit-transform: translateX(40%);
  73. -moz-transform: translateX(40%);
  74. -ms-transform: translateX(40%);
  75. -o-transform: translateX(40%);
  76. transform: translateX(40%);
  77. }
  78. .calendar-body>.c-body-head {
  79. width: 100%;
  80. display: flex;
  81. }
  82. .calendar-body>.c-body-head>li {
  83. flex : 1;
  84. text-align: center;
  85. padding: 10px 0;
  86. }
  87. .calendar-body>.c-body-content {
  88. width: 100%;
  89. }
  90. .calendar-body>.c-body-content>ul {
  91. display: flex;
  92. }
  93. .calendar-body>.c-body-content>ul>li {
  94. flex: 1;
  95. text-align: center;
  96. padding: 5px 0;
  97. }
  98. .content-row>.item-gray>a {
  99. color: #ccc;
  100. }
  101. .content-row>.item-tag>a {
  102. position: relative;
  103. }
  104. .content-row>.item-tag>a:after{
  105. content: '';
  106. width: 8px;
  107. height: 8px;
  108. position: absolute;
  109. bottom: -3px;
  110. left: 50%;
  111. -webkit-transform: translate3D(-50%, 70%, 0);
  112. -moz-transform: translate3D(-50%, 70%, 0);
  113. -ms-transform: translate3D(-50%, 70%, 0);
  114. -o-transform: translate3D(-50%, 70%, 0);
  115. transform: translate3D(-50%, 70%, 0);
  116. background-color: #b0ceee;
  117. border-radius: 50%;
  118. }
  119. .content-row>li>a {
  120. width: 30px;
  121. height: 30px;
  122. line-height: 30px;
  123. text-align: center;
  124. display: inline-block;
  125. }
  126. .content-row>.item-current, .content-row>.item-active {
  127. text-align: center;
  128. }
  129. .content-row>.item-current>a {
  130. background-color: #1a85ff;
  131. color: #fff;
  132. border-radius: 50%;
  133. }
  134. .content-row>.item-active>a {
  135. background-color: #31a0c6;
  136. color: #fff;
  137. border-radius: 50%;
  138. }