style.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. import styled from "styled-components";
  2. export const SiteMain = styled.div`
  3. .post-list {
  4. margin: 0 0 8%;
  5. position: relative;
  6. }
  7. .post-list-show {
  8. animation: post-list-show .5s;
  9. -webkit-animation: post-list-show .5s;
  10. opacity: 1;
  11. }
  12. @keyframes post-list-show {
  13. 0% {
  14. opacity: 0;
  15. -webkit-transform: translateY(80px);
  16. transform: translateY(80px)
  17. }
  18. 100% {
  19. opacity: 1;
  20. -webkit-transform: translateY(0);
  21. transform: translateY(0)
  22. }
  23. }
  24. .feature {
  25. position: absolute;
  26. margin-top: 10px;
  27. img {
  28. width: 100px;
  29. height: 100px;
  30. border-radius: 50%;
  31. padding: 2px;
  32. border: 1px solid #dadada;
  33. position: relative;
  34. }
  35. }
  36. .entry-title {
  37. font-size: 20px;
  38. font-weight: 400;
  39. line-height: 50px;
  40. margin: 0 0 0 17%;
  41. position: relative;
  42. z-index: 1;
  43. display: inline-block;
  44. overflow: hidden;
  45. text-overflow: ellipsis;
  46. white-space: nowrap;
  47. width: 70%;
  48. a {
  49. display:block;
  50. color: #504e4e;
  51. }
  52. &:hover a{
  53. color: #FE9600;
  54. }
  55. }
  56. .p-time {
  57. position: absolute;
  58. right: 0;
  59. top: 16px;
  60. font-size: 12px;
  61. color: #989898;
  62. letter-spacing: 0;
  63. i{
  64. font-size: 14px;
  65. margin-right: 5px;
  66. }
  67. }
  68. .post-list p {
  69. min-height: 60px;
  70. margin: 0 0 0 17%;
  71. font-size: 15px;
  72. color: rgba(0,0,0,.66);
  73. letter-spacing: 0;
  74. line-height: 30px;
  75. }
  76. .entry-footer {
  77. margin: 0 0 0 17%;
  78. list-style: none;
  79. }
  80. .post-more {
  81. margin-top: 10px;
  82. text-align: right;
  83. i {
  84. font-size: 25px;
  85. color: #666;
  86. }
  87. }
  88. .info-meta {
  89. margin-top: 10px;
  90. position: absolute;
  91. top: 20px;
  92. opacity: 0;
  93. padding-top: 8px;
  94. border-top: 1px solid #ddd;
  95. -webkit-transform: translate3d(-150px,0,0);
  96. transform: translate3d(-150px,0,0);
  97. visibility: hidden;
  98. transition: .7s all ease;
  99. -webkit-transition: .6s all ease;
  100. -moz-transition: .6s all linear;
  101. -o-transition: .6s all ease;
  102. -ms-transition: .6s all ease;
  103. }
  104. .comnum {
  105. float: left;
  106. }
  107. .info-meta span {
  108. color: #000;
  109. font-size: 13px;
  110. vertical-align: bottom;
  111. }
  112. .info-meta i {
  113. margin-top: 3px;
  114. margin-right: 10px;
  115. float: left;
  116. }
  117. .info-meta a {
  118. color: #000;
  119. }
  120. .post-list hr {
  121. width: 30%;
  122. height: 1px;
  123. margin: 0 auto;
  124. border: 0;
  125. background: #efefef;
  126. margin-top: 20px;
  127. }
  128. .post-list:hover .info-meta {
  129. -webkit-transform: translate3d(-230px,0,0);
  130. transform: translate3d(-230px,0,0);
  131. opacity: 1;
  132. visibility: visible;
  133. }
  134. @media(max-width:768px){
  135. .feature{
  136. img{
  137. width: 52px;
  138. height: 52px;
  139. }
  140. }
  141. .entry-title{
  142. margin: 0 0 0 65px;
  143. font-size: 16px;
  144. line-height: 30px;
  145. }
  146. .p-time {
  147. position: relative;
  148. margin: -15px 0 0 65px;
  149. }
  150. .post-list p{
  151. margin: 20px 0 0 65px;
  152. font-size: 14px;
  153. height: 30px;
  154. overflow: hidden;
  155. margin-bottom: 40px;
  156. }
  157. .entry-footer{
  158. display:none;
  159. }
  160. }
  161. `;