style.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. import styled from "styled-components";
  2. export const LinksWrapper = styled.div`
  3. .pattern-center-blank{
  4. padding-top: 75px;
  5. background-color: #fff;
  6. }
  7. @media(max-width:768px){
  8. .pattern-center-blank{
  9. padding-top: 50px;
  10. }
  11. }
  12. `;
  13. export const LinksTop = styled.div`
  14. position: relative;
  15. top: 0;
  16. left: 0;
  17. width: 100%;
  18. overflow: hidden;
  19. &:before{
  20. content: "";
  21. position: absolute;
  22. top: 0;
  23. bottom: 0;
  24. left: 0;
  25. right: 0;
  26. background-color: rgba(0,0,0,.3);
  27. }
  28. &:after{
  29. content: '';
  30. width: 150%;
  31. height: 4.375rem;
  32. background: #fff;
  33. left: -25%;
  34. bottom: -2.875rem;
  35. border-radius: 100%;
  36. position: absolute;
  37. }
  38. .pattern-attachment-img{
  39. background-repeat: no-repeat;
  40. background-size: cover;
  41. background-position: center center;
  42. background-origin: border-box;
  43. width: 100%;
  44. height: 400px;
  45. img{
  46. width: 100%;
  47. height: 100%;
  48. object-fit: cover;
  49. pointer-events: none;
  50. }
  51. }
  52. .pattern-header {
  53. position: absolute;
  54. top: 45%;
  55. left: 0;
  56. right: 0;
  57. text-align: center;
  58. color: #fff;
  59. z-index: 1;
  60. h1{
  61. color: #fff;
  62. font-size: 40px;
  63. font-weight: 500;
  64. width: 80%;
  65. margin: auto;
  66. padding: 0;
  67. border: 0;
  68. }
  69. }
  70. @media(max-width:768px){
  71. .pattern-attachment-img{
  72. height:280px;
  73. }
  74. .pattern-header {
  75. top:40%;
  76. h1{
  77. font-size:24px;
  78. }
  79. }
  80. }
  81. `;
  82. export const MainWrapper = styled.div`
  83. min-height:600px;
  84. max-width: 900px;
  85. padding: 0 10px;
  86. margin-left: auto;
  87. margin-right: auto;
  88. padding-top:50px;
  89. background-color: rgba(255,255,255,.8);
  90. animation: main 1s;
  91. .flex-items{
  92. align-items: start;
  93. }
  94. .toc{
  95. .ant-anchor-link-active > .ant-anchor-link-title{
  96. color: #FE9600;
  97. }
  98. .ant-anchor-link-title:hover{
  99. color: #FE9600;
  100. }
  101. .ant-anchor-ink-ball{
  102. border: 2px solid #FE9600;
  103. }
  104. }
  105. @keyframes main {
  106. 0% {
  107. opacity: 0;
  108. transform: translateY(50px)
  109. }
  110. 100% {
  111. opacity: 1;
  112. transform: translateY(0)
  113. }
  114. }
  115. .example{
  116. height:52px;
  117. line-height:52px;
  118. text-align: center;
  119. i{
  120. background-color: #FE9600;
  121. }
  122. }
  123. .links>p{
  124. width: 100%;
  125. padding: 20px 0;
  126. text-align: center;
  127. margin: 40px 0 80px;
  128. display: inline-block;
  129. color: #989898;
  130. font-size: 15px;
  131. }
  132. .links .link-title {
  133. padding-left: 0;
  134. border-left: none;
  135. margin: 50px 0 20px;
  136. .fake-title {
  137. font-weight: 400;
  138. color: #6d6d6d;
  139. padding-left: 10px;
  140. border-left: 3px solid orange;
  141. }
  142. }
  143. .links ul {
  144. margin: 0;
  145. list-style: none;
  146. padding: 0;
  147. width: 100%;
  148. display: inline-block;
  149. }
  150. .links ul li {
  151. width: 32%;
  152. float: left;
  153. border: 1px solid #ececec;
  154. padding: 10px 30px;
  155. margin: 10px 4px;
  156. position: relative;
  157. overflow: hidden;
  158. -webkit-transition: all .3s;
  159. transition: all .3s;
  160. border-radius: 10px;
  161. }
  162. .links ul li:before {
  163. content: "";
  164. background-color: #FE9600;
  165. -webkit-transform: skew(45deg,0);
  166. transform: skew(45deg,0);
  167. width: 0;
  168. height: 100%;
  169. position: absolute;
  170. top: 0;
  171. left: -60px;
  172. z-index: -1;
  173. -webkit-transition: all .5s;
  174. transition: all .5s;
  175. }
  176. .links ul li img {
  177. float: right;
  178. box-shadow: inset 0 0 10px #000;
  179. padding: 5px;
  180. opacity: 1;
  181. transform: rotate(0deg);
  182. -webkit-transform: rotate(0deg);
  183. -moz-transform: rotate(0deg);
  184. -o-transform: rotate(0deg);
  185. -ms-transform: rotate(0deg);
  186. transition: all ease 1s;
  187. -webkit-transition: all ease 1s;
  188. -moz-transition: all ease 1s;
  189. -o-transition: all ease 1s;
  190. margin-top: 5px;
  191. width: 65px;
  192. height: 65px;
  193. padding: 2px;
  194. border-radius: 100%;
  195. }
  196. .links ul li .sitename {
  197. color: #FE9600;
  198. padding-bottom: 10px;
  199. display: block;
  200. -webkit-transition: all .3s;
  201. transition: all .3s;
  202. overflow: hidden;
  203. text-overflow: ellipsis;
  204. -o-text-overflow: ellipsis;
  205. white-space: nowrap;
  206. }
  207. .linkdes {
  208. color: #949494;
  209. font-size: 13px;
  210. padding: 10px 0;
  211. min-height:46px;
  212. border-top: 1px dashed #ddd;
  213. text-overflow: ellipsis;
  214. overflow: hidden;
  215. white-space: nowrap;
  216. line-height: 25px;
  217. -webkit-transition: all .5s;
  218. transition: all .5s;
  219. }
  220. .post-list-show {
  221. animation: post-list-show .5s;
  222. -webkit-animation: post-list-show .5s;
  223. opacity: 1;
  224. }
  225. @keyframes post-list-show {
  226. 0% {
  227. opacity: 0;
  228. -webkit-transform: translateY(80px);
  229. transform: translateY(80px)
  230. }
  231. 100% {
  232. opacity: 1;
  233. -webkit-transform: translateY(0);
  234. transform: translateY(0)
  235. }
  236. }
  237. @media(min-width:768px){
  238. .links ul li:hover {
  239. color: #27323a;
  240. border-color: #FE9600;
  241. border: 1px solid #FE9600;
  242. }
  243. .links ul li:hover:before {
  244. width: 180%;
  245. }
  246. .links ul li:hover img {
  247. transform: rotate(360deg);
  248. -webkit-transform: rotate(360deg);
  249. -moz-transform: rotate(360deg);
  250. -o-transform: rotate(360deg);
  251. -ms-transform: rotate(360deg);
  252. }
  253. .links ul li:hover .linkdes {
  254. border-top: 1px dashed #fff;
  255. }
  256. }
  257. @media(max-width:768px){
  258. padding-top:30px;
  259. min-height:400px;
  260. .toc-box{
  261. display: none;
  262. }
  263. .page-header{
  264. margin-bottom: 30px;
  265. h1{
  266. font-size: 16px;
  267. font-weight: 400;
  268. border: 1px dashed #ddd;
  269. padding:10px;
  270. color: #828282;
  271. }
  272. }
  273. }
  274. @media (max-width: 768px){
  275. .links ul li {
  276. width: 48.6%;
  277. }
  278. }
  279. @media (max-width: 630px){
  280. .links ul li {
  281. width: 100%;
  282. margin:10px 0;
  283. }
  284. }
  285. `;