style.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. import styled from 'styled-components';
  2. import hr from '../../statics/images/hr.gif';
  3. export const ArticleWrapper = styled.div`
  4. .pattern-center-blank{
  5. padding-top: 75px;
  6. background-color: #fff;
  7. }
  8. @media(max-width:768px){
  9. .pattern-center-blank{
  10. padding-top: 50px;
  11. }
  12. }
  13. `;
  14. export const ArticleTop = styled.div`
  15. position: relative;
  16. top: 0;
  17. left: 0;
  18. width: 100%;
  19. overflow: hidden;
  20. &:before{
  21. content: "";
  22. position: absolute;
  23. top: 0;
  24. bottom: 0;
  25. left: 0;
  26. right: 0;
  27. background-color: rgba(0,0,0,.3);
  28. }
  29. .pattern-attachment-img{
  30. background-repeat: no-repeat;
  31. background-size: cover;
  32. background-position: center center;
  33. background-origin: border-box;
  34. width: 100%;
  35. height: 400px;
  36. img{
  37. width: 100%;
  38. height: 100%;
  39. object-fit: cover;
  40. pointer-events: none;
  41. }
  42. }
  43. .single-header{
  44. max-width: 900px;
  45. padding: 0 10px;
  46. margin-left: auto;
  47. margin-right: auto;
  48. text-align: left;
  49. top: auto;
  50. bottom: 20px;
  51. position: absolute;
  52. left: 0;
  53. right: 0;
  54. color: #fff;
  55. text-shadow: 2px 2px 10px #000;
  56. z-index: 1;
  57. .entry-title{
  58. font-size: 32px;
  59. width: 100%;
  60. color: #fff;
  61. font-weight: bold;
  62. }
  63. .entry-census{
  64. color: #fff;
  65. font-size: 14px;
  66. padding: 18px 0 0;
  67. line-height: 39px;
  68. span{
  69. color: #fff;
  70. font-size: 14px;
  71. img{
  72. width: 35px;
  73. height: 35px;
  74. border-radius: 100%;
  75. float: left;
  76. margin-right: 12px;
  77. }
  78. }
  79. .bull {
  80. margin: 0 5px;
  81. }
  82. }
  83. }
  84. @media(max-width:768px){
  85. .pattern-attachment-img{
  86. height:280px;
  87. }
  88. .single-header{
  89. .entry-title{
  90. font-size: 24px;
  91. }
  92. .entry-census{
  93. padding:0;
  94. }
  95. }
  96. }
  97. `;
  98. export const MainWrapper = styled.div`
  99. min-height:600px;
  100. max-width: 1200px;
  101. padding: 0 10px;
  102. margin-left: auto;
  103. margin-right: auto;
  104. padding-top:50px;
  105. background-color: rgba(255,255,255,.8);
  106. @keyframes main {
  107. 0% {
  108. opacity: 0;
  109. transform: translateY(50px)
  110. }
  111. 100% {
  112. opacity: 1;
  113. transform: translateY(0)
  114. }
  115. }
  116. .cell{
  117. margin-right:25px;
  118. }
  119. .entry-content {
  120. position: relative;
  121. animation: main 1s;
  122. }
  123. .entry-content .begin,.single-begin {
  124. float: left;
  125. font-size: 3.6em;
  126. line-height: 1em;
  127. margin-right: 3px;
  128. margin-top: 2px;
  129. font-weight: 700
  130. }
  131. @media screen and (max-width: 860px) {
  132. .entry-content .begin,.single-begin {
  133. margin-top:6px
  134. }
  135. }
  136. .entry-content ul {
  137. list-style: disc;
  138. border: 1px dashed #e4e4e4;
  139. padding: 15px 10px 15px 50px;
  140. color: #616161;
  141. margin-left: 0;
  142. border-radius: 10px;
  143. margin:16px 0;
  144. }
  145. .entry-content ol {
  146. list-style: decimal;
  147. border: 1px dashed #e4e4e4;
  148. padding: 15px 10px 15px 50px;
  149. color: #616161;
  150. margin-left: 0;
  151. border-radius: 10px;
  152. margin:16px 0;
  153. }
  154. .entry-content table {
  155. display: block;
  156. width: 100%;
  157. overflow: auto;
  158. }
  159. .entry-content table th {
  160. font-weight: 600;
  161. }
  162. .entry-content table th,.entry-content table td {
  163. padding: 6px 13px;
  164. border: 1px solid #dfe2e5;
  165. }
  166. .entry-content table tr {
  167. background-color: #fff;
  168. border-top: 1px solid #c6cbd1;
  169. }
  170. .entry-content table tr:nth-child(2n) {
  171. background-color: #f6f8fa;
  172. }
  173. .entry-content blockquote {
  174. padding: 0 1em;
  175. color: #6a737d;
  176. border-left: .25em solid #dfe2e5;
  177. }
  178. .entry-content blockquote>:first-child {
  179. margin-top: 0;
  180. }
  181. .entry-content blockquote>:last-child {
  182. margin-bottom: 0;
  183. }
  184. .entry-content ol li,.entry-content ul li {
  185. padding: 8px 0
  186. }
  187. .entry-content h3 {
  188. padding-bottom: 8px;
  189. border-bottom: 1px dashed #ddd;
  190. color: #737373;
  191. margim:17px 0;
  192. }
  193. .entry-content h3,.entry-content h4,.entry-content h5 {
  194. padding-left: 16px;
  195. }
  196. .entry-content h1{
  197. margin:16px 0;
  198. clear:both;
  199. font-size:24px;
  200. color:rgb(64, 64, 64);
  201. }
  202. .entry-content h2{
  203. margin:18px 0;
  204. clear:both;
  205. font-size:22px;
  206. color:rgb(64, 64, 64);
  207. }
  208. .entry-content h3{
  209. margin:17px 0;
  210. clear:both;
  211. font-size:20px;
  212. color:rgb(64, 64, 64);
  213. }
  214. .entry-content h4{
  215. margin:16px 0;
  216. clear:both;
  217. font-size:18px;
  218. color:rgb(64, 64, 64);
  219. }
  220. .entry-content h5{
  221. margin:15px 0;
  222. clear:both;
  223. font-size:16px;
  224. color:rgb(64, 64, 64);
  225. }
  226. .entry-content h6{
  227. margin:14px 0;
  228. clear:both;
  229. font-size:14px;
  230. color:rgb(64, 64, 64);
  231. }
  232. .entry-content h2:after,.entry-content h1:after {
  233. content: "\\00B6";
  234. position: absolute;
  235. color: #ff6d6d;
  236. font-family: 'Merriweather Sans',Helvetica,Tahoma,Arial,'PingFang SC','Hiragino Sans GB','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;
  237. padding-left: 6px;
  238. font-size: 1.03em;
  239. }
  240. .entry-content h3:after {
  241. content: "#";
  242. left: 0;
  243. position: absolute;
  244. color: #ff6d6d;
  245. }
  246. .entry-content h4:after {
  247. content: "▌";
  248. left: 0;
  249. position: absolute;
  250. color: #ff6d6d;
  251. }
  252. .entry-content h5:after {
  253. content: "♯";
  254. left: 0;
  255. position: absolute;
  256. color: #ff6d6d;
  257. }
  258. .entry-content a {
  259. color: #e67474;
  260. position: relative;
  261. }
  262. .entry-content a:hover {
  263. color: orange;
  264. text-decoration: none;
  265. }
  266. .entry-content a:after {
  267. content: '';
  268. position: absolute;
  269. width: 100%;
  270. transform: scaleX(0);
  271. height: 2px;
  272. bottom: 0;
  273. left: 0;
  274. background-color: orange;
  275. transform-origin: bottom right;
  276. transition: transform .25s ease-out;
  277. }
  278. .entry-content a:hover:after {
  279. transform: scaleX(1);
  280. transform-origin: bottom left;
  281. }
  282. .entry-content p {
  283. color: #797979;
  284. margin: 15px 0 22px;
  285. line-height: 30px;
  286. }
  287. .entry-content hr {
  288. max-width: 100%;
  289. height: 50px;
  290. background: url(${hr}) 100% no-repeat;
  291. border: none;
  292. margin-top: 15px;
  293. margin-bottom: 15px;
  294. }
  295. .entry-content .post-password-form {
  296. text-align: center;
  297. }
  298. .entry-content a img.alignleft,.entry-content a img.alignright,.entry-content a img.aligncenter {
  299. cursor: -webkit-zoom-in;
  300. }
  301. .entry-content img{
  302. max-width:100%;
  303. }
  304. pre{
  305. position: relative;
  306. background: #2b3940;
  307. border-radius: 5px;
  308. line-height: 1.6;
  309. margin-bottom: 1.6em;
  310. font-size: 15px;
  311. max-width: 100%;
  312. overflow: auto;
  313. text-shadow: none;
  314. color: #000;
  315. padding: 20px;
  316. box-shadow: 0 10px 30px 0px rgba(0,0,0,.4);
  317. }
  318. code{
  319. color: #ead857;
  320. word-break: break-word;
  321. padding: 2px;
  322. text-shadow: none;
  323. border-radius: 0 0 5px 5px;
  324. }
  325. .example {
  326. text-align: center;
  327. border-radius: 4px;
  328. margin-bottom: 20px;
  329. padding: 30px 50px;
  330. margin: 20px 0;
  331. i{
  332. background-color: #FE9600;
  333. }
  334. }
  335. .toc{
  336. width:200px;
  337. h3{
  338. padding: 7px 0 7px 16px;
  339. line-height: 1.143;
  340. font-size: 16px;
  341. font-weight: bold;
  342. color: #FE9600;
  343. }
  344. .ant-anchor-link-active > .ant-anchor-link-title{
  345. color: #FE9600;
  346. }
  347. .ant-anchor-link-title:hover{
  348. color: #FE9600;
  349. }
  350. .ant-anchor-ink-ball{
  351. border: 2px solid #FE9600;
  352. }
  353. }
  354. .flex-items{
  355. align-items: initial;
  356. }
  357. .single-reward{
  358. position: relative;
  359. width: 100%;
  360. margin: 35px auto;
  361. text-align: center;
  362. z-index: 90;
  363. .reward-open {
  364. position: relative;
  365. width: 40px;
  366. height: 40px;
  367. font-size: 18px;
  368. padding: 7px;
  369. color: #fff;
  370. text-align: center;
  371. display: inline-block;
  372. border-radius: 100%;
  373. background: #d34836;
  374. cursor: pointer;
  375. }
  376. .reward-open:hover .reward-main{
  377. display: block;
  378. }
  379. .reward-main{
  380. position: absolute;
  381. top: 40px;
  382. left: -157px;
  383. margin: 0;
  384. padding: 15px 0 0;
  385. width: 355px;
  386. background: 0 0;
  387. display: none;
  388. animation: main .4s;
  389. }
  390. .reward-row{
  391. list-style: disc;
  392. border: 1px dashed #e4e4e4;
  393. margin: 0 auto;
  394. padding: 20px 15px 10px;
  395. background: #f5f5f5;
  396. display: inline-block;
  397. border-radius: 4px;
  398. cursor: auto;
  399. li{
  400. list-style-type: none;
  401. padding: 0 12px;
  402. display: inline-block;
  403. img{
  404. width: 130px;
  405. max-width: 130px;
  406. border-radius: 3px;
  407. position: relative;
  408. }
  409. p{
  410. color: #666666;
  411. font-size: 12px;
  412. text-align: center;
  413. }
  414. }
  415. }
  416. }
  417. @media(max-width:768px){
  418. padding:10px;
  419. min-height:400px;
  420. .cell{
  421. margin:0;
  422. }
  423. .toc{
  424. display:none;
  425. }
  426. }
  427. `;
  428. export const CommentsWrapper = styled.div`
  429. padding-top: 40px;
  430. .comments-list-title{
  431. width: 100%;
  432. margin: 0 auto;
  433. margin-bottom: 40px;
  434. color: #7d7d7d;
  435. font-weight: 400;
  436. span{
  437. font-size: 13px;
  438. font-weight: 400;
  439. color: #909090;
  440. }
  441. }
  442. .commentwrap{
  443. margin: 0 auto 30px;
  444. .comment{
  445. .commentinfo{
  446. img{
  447. width:40px;
  448. height:40px;
  449. border-radius: 100%;
  450. box-shadow: 0 1px 10px -6px rgba(0,0,0,.5);
  451. margin-right: 15px;
  452. }
  453. .commeta{
  454. h2{
  455. color: #FE9600;
  456. font-size: 15px;
  457. font-weight: 600;
  458. line-height:20px;
  459. }
  460. h3{
  461. line-height:20px;
  462. font-size: 12px;
  463. letter-spacing: 0px;
  464. text-transform: none;
  465. color: rgba(0,0,0,.35);
  466. }
  467. }
  468. .comment-reply-link{
  469. font-size: 12px;
  470. display: block;
  471. margin-left: 10px;
  472. float: right;
  473. text-transform: uppercase;
  474. color: #fff;
  475. height: 20px;
  476. background-color: #FE9600;
  477. line-height: 20px;
  478. padding: 0 6px;
  479. border-radius: 3px;
  480. cursor: url(${require('../../statics/images/ayuda.cur')}),auto;
  481. opacity: 0;
  482. transition: color .2s ease-out,border .2s ease-out,opacity .2s ease-out;
  483. }
  484. }
  485. &:hover .comment-reply-link{
  486. opacity: .9;
  487. }
  488. .body{
  489. line-height: 32px;
  490. color: #63686d;
  491. border-bottom: 1px solid rgba(0,0,0,.05);
  492. position: relative;
  493. p{
  494. font-size: 14px;
  495. line-height: 30px;
  496. margin-top: 10px;
  497. padding-bottom: 20px;
  498. padding-left: 3px;
  499. color: #63686d;
  500. span{
  501. font-size: 12px;
  502. color: #909090;
  503. margin-right:3px;
  504. }
  505. }
  506. }
  507. hr{
  508. height: 0;
  509. width: 100%;
  510. background: #eee;
  511. border: 0;
  512. margin: 40px 0
  513. }
  514. }
  515. }
  516. .pagination{
  517. margin:20px 0;
  518. .ant-pagination-item{
  519. border:none;
  520. font-family: inherit;
  521. font-size: 15px;
  522. }
  523. .ant-pagination-item a{
  524. font-family: inherit;
  525. font-size: 15px;
  526. }
  527. .ant-pagination-item-active a{
  528. color: #FE9600;
  529. }
  530. .ant-pagination-item:focus a, .ant-pagination-item:hover a{
  531. color: #FE9600;
  532. }
  533. .ant-pagination-next,.ant-pagination-prev{
  534. color: #FE9600;
  535. font-family: inherit;
  536. font-size: 15px;
  537. }
  538. .ant-pagination-next span,.ant-pagination-prev span{
  539. color: #FE9600;
  540. font-family: inherit;
  541. font-size: 15px;
  542. }
  543. .ant-pagination-next:hover span,.ant-pagination-prev:hover span{
  544. color: #FE9600;
  545. }
  546. .ant-pagination-disabled span{
  547. color: rgba(0, 0, 0, 0.25);
  548. }
  549. .ant-pagination-disabled:hover span{
  550. color: rgba(0, 0, 0, 0.25);
  551. }
  552. }
  553. .text{
  554. font-size:14px;
  555. padding: 20px 0;
  556. }
  557. `;
  558. export const CommentTextarea = styled.div`
  559. position: relative
  560. .commentbody{
  561. width:100%;
  562. background: #fff;
  563. padding: 21px 21px 20px;
  564. font-size: 14px;
  565. display: block;
  566. height: 180px;
  567. margin-bottom: 10px;
  568. color: #535a63;
  569. border: 1px solid #ddd;
  570. background-color: transparent;
  571. background-image: url(https://view.moezx.cc/images/2018/03/24/comment-bg.png);
  572. background-size: contain;
  573. background-repeat: no-repeat;
  574. background-position: right;
  575. resize: vertical;
  576. border-radius: 6px;
  577. outline:none;
  578. }
  579. .commentbody:focus{
  580. border: 1px solid #FE9600;
  581. }
  582. .form-submit {
  583. clear: both;
  584. display: block;
  585. overflow: hidden;
  586. margin: 20px 0;
  587. input{
  588. background: #fff;
  589. border-radius: 6px;
  590. width:100%;
  591. margin: 0;
  592. padding: 15px 25px;
  593. text-transform: none;
  594. color: #535a63;
  595. -webkit-transition: all .1s ease-out;
  596. -moz-transition: all .1s ease-out;
  597. transition: all .1s ease-out;
  598. box-shadow: none;
  599. border: 1px solid #ccc;
  600. text-shadow: none;
  601. cursor: url(${require('../../statics/images/ayuda.cur')}),auto;
  602. }
  603. input:hover{
  604. border: 1px solid #fe9600;
  605. border-color: #FE9600;
  606. color: #FE9600;
  607. }
  608. }
  609. `;