common.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. /*global*/
  2. html, body {
  3. height: 100%;
  4. -webkit-font-smoothing: antialiased;
  5. text-rendering: optimizeLegibility;
  6. -moz-osx-font-smoothing: grayscale;
  7. font-feature-settings: 'liga';
  8. -webkit-text-size-adjust: 100%;
  9. font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Source Han Sans CN, sans-serif;
  10. font-weight: 400;
  11. background: #f4f4f4;
  12. font-size: 14px;
  13. color: #616161;
  14. }
  15. body {
  16. background-color: #f4f4f4;
  17. }
  18. a {
  19. color: #333;
  20. }
  21. a:hover {
  22. color: #18bc9d;
  23. text-decoration: none;
  24. }
  25. .cl-header {
  26. background-color: #fff;
  27. /*height: 80px;*/
  28. /*line-height: 80px;*/
  29. box-shadow: 0 5px 15px rgba(153, 153, 153, 0.1)
  30. }
  31. .header-content {
  32. position: relative;
  33. }
  34. .cl-logo {
  35. position: absolute;
  36. left: 0;
  37. top: 0;
  38. height: 80px;
  39. width: 300px;
  40. overflow: hidden;
  41. }
  42. .cl-logo img {
  43. max-width: 100%;
  44. max-height: 100%;
  45. }
  46. @media (min-width: 992px) {
  47. .navbar-expand-lg .navbar-nav .nav-link {
  48. padding-right: 1rem;
  49. padding-left: 1rem;
  50. }
  51. }
  52. .navbar-toggler:not(:disabled):not(.disabled):focus {
  53. outline: none;
  54. }
  55. .navbar {
  56. padding: 0;
  57. }
  58. .navbar-light .navbar-nav .nav-link {
  59. font-size: 1.14rem;
  60. }
  61. .navbar-light .navbar-nav .active > .nav-link {
  62. color: #18bc9d;
  63. font-weight: bold;
  64. }
  65. .nav .nav-item a.active {
  66. color: #18bc9d;
  67. font-weight: bold;
  68. }
  69. .navbar .navbar-brand img {
  70. max-width: 100%;
  71. max-height: 100%;
  72. }
  73. #category .dropdown-menu li {
  74. padding: 5px 10px;
  75. }
  76. #category .dropdown-menu li.active {
  77. background: #eee;
  78. }
  79. .recommend-index {
  80. margin-bottom: 20px;
  81. }
  82. /*left*/
  83. .cl-left {
  84. margin: 20px 0;
  85. padding: 0;
  86. }
  87. .recommend-top {
  88. margin-bottom: 20px;
  89. }
  90. .recommend-bottom {
  91. display: flex;
  92. justify-content: space-between;
  93. }
  94. .recommend-item {
  95. width: 49%;
  96. /*height: 170px;*/
  97. overflow: hidden;
  98. }
  99. .cl-artical-content, .recommend-panel, .comment {
  100. background-color: #fff;
  101. padding: 0 20px 20px 20px;
  102. }
  103. /*card*/
  104. .cl-card {
  105. background-color: #fff;
  106. padding: 1rem;
  107. margin: 0 0 20px 0;
  108. }
  109. .cl-card .cl-card-image {
  110. overflow: hidden;
  111. }
  112. .cl-card .cl-card-image img {
  113. width: 100%;
  114. max-width: 100%;
  115. }
  116. .cl-card .cl-card-more a {
  117. color: #18bc9d;
  118. }
  119. .cl-card-main-title a:hover, .cl-card .cl-card-more a:hover {
  120. text-decoration: underline;
  121. }
  122. .cl-card-main-title {
  123. height: 2rem;
  124. overflow: hidden;
  125. }
  126. .cl-card-main-title a {
  127. font-size: 1.4rem;
  128. color: #333;
  129. font-weight: normal;
  130. }
  131. .cl-card-main-title a:hover {
  132. text-decoration: underline;
  133. }
  134. .cl-card-main-info {
  135. font-size: 1rem;
  136. color: #999;
  137. height: 3rem;
  138. overflow: hidden;
  139. margin: 0.5rem 0 2rem 0;
  140. }
  141. .img-zoom {
  142. overflow: hidden;
  143. display: inline-block;
  144. }
  145. .img-zoom img {
  146. -webkit-transition: all 0.3s;
  147. -moz-transition: all 0.3s;
  148. -o-transition: all 0.3s;
  149. transition: all 0.3s;
  150. }
  151. .img-zoom:hover img {
  152. -webkit-transform: scale(1.1);
  153. -moz-transform: scale(1.1);
  154. -o-transform: scale(1.1);
  155. -ms-transform: scale(1.1);
  156. transform: scale(1.1);
  157. }
  158. .object-responsive {
  159. position: relative;
  160. display: block;
  161. height: 0;
  162. padding: 0;
  163. overflow: hidden;
  164. }
  165. .object-responsive img {
  166. position: absolute;
  167. object-fit: cover;
  168. width: 100%;
  169. height: 100%;
  170. border: 0;
  171. }
  172. .object-responsive-16by9 {
  173. padding-bottom: 56.25%;
  174. }
  175. .object-responsive-4by3 {
  176. padding-bottom: 75%;
  177. }
  178. .object-responsive-square {
  179. padding-bottom: 100%;
  180. }
  181. /*page*/
  182. .pagination .page-item.active .page-link {
  183. background-color: #18bc9d;
  184. border-color: #18bc9d;
  185. color: #fff;
  186. }
  187. .pagination .page-item .page-link {
  188. color: #666;
  189. }
  190. .pagination {
  191. margin: 20px 0 0 0;
  192. }
  193. .pagination li.disabled .page-link {
  194. background-color: #eee;
  195. color: #999;
  196. }
  197. .pagination li.disabled {
  198. cursor: not-allowed;
  199. }
  200. /*right*/
  201. .cl-right {
  202. margin: 20px 0;
  203. }
  204. .right-card-main {
  205. background-color: #fff;
  206. margin: 0 0 20px 0;
  207. }
  208. .right-card-main .img-responsive {
  209. width: 100%;
  210. }
  211. .cl-code {
  212. width: 80%;
  213. margin: 10px auto;
  214. padding: 0 0 10px 0;
  215. }
  216. .right-card-title {
  217. font-size: 1.2rem;
  218. color: #666;
  219. font-weight: bold;
  220. padding: 15px 0 10px 10px;
  221. }
  222. .cl-code p {
  223. color: #999;
  224. line-height: 1.2rem;
  225. margin-top: 10px;
  226. text-align: center;
  227. }
  228. /*right-recommended*/
  229. .right-recommended {
  230. padding: 10px;
  231. height: 120px;
  232. overflow: hidden;
  233. }
  234. .right-recommended-list {
  235. list-style: none;
  236. padding: 0 10px 20px 10px;
  237. box-sizing: border-box;
  238. }
  239. .right-recommended-list i {
  240. color: #999;
  241. margin-right: 4px;
  242. }
  243. .right-recommended-list li {
  244. width: 100%;
  245. /*border-bottom: 1px dashed #eaeaea;*/
  246. color: #666;
  247. height: 40px;
  248. line-height: 40px;
  249. overflow: hidden;
  250. }
  251. /*label*/
  252. .label {
  253. list-style: none;
  254. display: flex;
  255. flex-wrap: wrap;
  256. padding: 10px;
  257. }
  258. .label li a {
  259. display: block;
  260. border: 1px solid #dbdbdb;
  261. padding: 2px 10px;
  262. margin: 0 8px 8px 0;
  263. color: #666;
  264. }
  265. .label li a:hover {
  266. background-color: #18bc9d;
  267. border-color: #18bc9d;
  268. color: #fff;
  269. }
  270. /*footer*/
  271. .cl-footer {
  272. background-color: #fbfbfb;
  273. text-align: center;
  274. padding: 2rem 0 1rem 0;
  275. margin: 1rem 0 0 0;
  276. border-top: 1px solid #f1f1f1;
  277. }
  278. .cl-footer-link a {
  279. font-size: 20px;
  280. padding: 1rem 0;
  281. color: #666;
  282. }
  283. .cl-copyright {
  284. color: #666;
  285. font-size: 14px;
  286. line-height: 0.8em;
  287. }
  288. /*artical*/
  289. .cl-artical {
  290. margin-bottom: 15px;
  291. }
  292. .cl-artical-title {
  293. padding: 20px 0 10px 0;
  294. }
  295. .cl-card-tag {
  296. color: #999;
  297. font-size: 1rem;
  298. }
  299. .cl-artical h1, .cl-artical h2, .cl-artical h3, .cl-artical h4, .cl-artical h5 {
  300. padding: 1.5rem 0 0.5rem 0;
  301. }
  302. .cl-artical h1 {
  303. font-size: 2rem;
  304. }
  305. .cl-artical h2 {
  306. font-size: 1.75rem;
  307. }
  308. .cl-artical h3 {
  309. font-size: 1.5rem;
  310. }
  311. .cl-artical h4 {
  312. font-size: 1.25rem;
  313. }
  314. .cl-artical h5 {
  315. font-size: 1rem;
  316. }
  317. .cl-artical {
  318. padding: 1.5rem 0 0 0;
  319. color: #666;
  320. }
  321. .cl-artical blockquote {
  322. font-size: 18px;
  323. padding: 2rem 1rem 2rem 2rem;
  324. border-left: 4px solid #3F6600;
  325. background-color: #f3f3f3;
  326. /*font-style: italic;*/
  327. font-weight: bold;
  328. line-height: 1.8em;
  329. }
  330. .cl-artical blockquote:before {
  331. content: " “ ";
  332. font-size: 60px;
  333. vertical-align: bottom;
  334. color: #3F6600;
  335. }
  336. .cl-artical blockquote span {
  337. font-size: 36px
  338. }
  339. .cl-artical p img {
  340. vertical-align: middle;
  341. width: 100%;
  342. max-width: 100%;
  343. height: auto;
  344. }
  345. .cl-artical p {
  346. padding: 0.5rem 0 0.5rem 0;
  347. line-height: 1.8rem;
  348. }
  349. .cl-content-info {
  350. color: #999;
  351. }
  352. /*comment panel*/
  353. .comment-panel {
  354. padding-bottom: 2rem;
  355. margin-top: 2rem;
  356. border-bottom: 1px solid #dee2e6;
  357. position: relative;
  358. }
  359. .comment-secondary-panel {
  360. padding-bottom: 0.5rem;
  361. margin-top: 1rem;
  362. padding-top: 1rem;
  363. background-color: #f4f4f4;
  364. position: relative;
  365. }
  366. .triangle-icon {
  367. position: absolute;
  368. left: 50px;
  369. top: -30px;
  370. color: #f4f4f4;
  371. font-size: 60px;
  372. }
  373. .comment-panel .comment-panel-portrait {
  374. position: absolute;
  375. top: 0;
  376. left: 0;
  377. }
  378. .comment-panel-portrait img {
  379. width: 60px;
  380. height: 60px;
  381. }
  382. .comment-panel .comment-panel-content {
  383. padding: 0 0 0 70px;
  384. width: 100%;
  385. }
  386. .comment-panel .comment-secondary-panel .comment-panel-content {
  387. padding: 0 0 10px 20px;
  388. width: 100%;
  389. }
  390. .comment-panel-content-item div {
  391. display: inline;
  392. padding: 0 0.5rem 0 0;
  393. font-size: 14px;
  394. color: #999;
  395. }
  396. .comment-panel-content-item .comment-author {
  397. font-size: 16px;
  398. color: #333;
  399. font-weight: bold;
  400. }
  401. .comment-panel .comment-panel-content .comment-panel-content-main {
  402. margin-top: 0.5rem;
  403. color: #666;
  404. }
  405. .comment-panel .comment-panel-secondary {
  406. border: 1px solid #e5e5e5;
  407. padding: 0.5rem 0.5rem 0 0.5rem;
  408. margin: 0.5rem 0;
  409. background-color: #fffffb;
  410. }
  411. .comment-panel .comment-reply {
  412. position: absolute;
  413. right: 5px;
  414. top: 2px;
  415. color: #eee;
  416. }
  417. .comment-panel .comment-reply a {
  418. color: #999;
  419. }
  420. @media (min-width: 576px) {
  421. .ll-panel {
  422. max-width: 30%;
  423. }
  424. }
  425. /*comment form*/
  426. .cl-comment-from {
  427. padding: 10px 0 0 0;
  428. }
  429. .cl-comment-from div {
  430. height: 3rem;
  431. border: 1px solid #dfdfdf;
  432. }
  433. .cl-comment-from button {
  434. float: right;
  435. border: none;
  436. background-color: #18bc9d;
  437. color: #fff;
  438. font-size: 16px;
  439. padding: 0.5rem 1rem;
  440. cursor: pointer;
  441. margin-top: 10px;
  442. }
  443. .cl-comment-from button:hover {
  444. background-color: #f38d00;
  445. }
  446. .cl-comment-from .input {
  447. border: 1px solid #ced4da;
  448. padding: 0.3rem 0.5rem;
  449. border-radius: 2px;
  450. }
  451. .cl-comment-from > div > textarea {
  452. border: none;
  453. width: 100%;
  454. height: 100%;
  455. line-height: 3rem;
  456. padding: 0 1rem;
  457. box-sizing: border-box;
  458. }
  459. .cl-comment-from > div > textarea:focus, .cl-comment-from button:focus {
  460. outline: none;
  461. }
  462. /*recommend aritical*/
  463. .recommend-panel {
  464. margin: 20px 0;
  465. }
  466. .recommend-panel a.recommend-panel-link {
  467. display: block;
  468. }
  469. .recommend-panel-bottom {
  470. padding: 0.5rem;
  471. font-size: 14px;
  472. }
  473. .ll-title {
  474. margin: 3rem 0 1rem 0;
  475. color: #333;
  476. }
  477. .recommend-panel-top {
  478. overflow: hidden;
  479. height: 12rem;
  480. }
  481. .recommend-panel-top img, .recommend-item img, .cl-card-image img {
  482. width: 100%;
  483. max-width: 100%;
  484. }
  485. #comments h3, #respond h3 {
  486. font-size: 1.2rem;
  487. margin-top: 5px;
  488. }
  489. #respond h3 a {
  490. font-size: 1rem;
  491. color: #007bff;
  492. }
  493. .comment-panel #respond {
  494. margin-top: 1rem;
  495. padding: 0 0 0 70px;
  496. }
  497. .floatbar {
  498. width: 50px;
  499. position: fixed;
  500. right: 0;
  501. bottom: 40px;
  502. z-index: 999;
  503. }
  504. .floatbar a {
  505. display: block;
  506. padding: 5px 10px;
  507. font-size: 30px;
  508. opacity: .5;
  509. }
  510. .floatbar a:hover {
  511. opacity: 1;
  512. }
  513. .pagination {
  514. padding-left: 0;
  515. margin: 17px 0;
  516. border-radius: 3px
  517. }
  518. .pagination > li {
  519. display: inline
  520. }
  521. .pagination > li > a, .pagination > li > span {
  522. position: relative;
  523. float: left;
  524. padding: 6px 12px;
  525. line-height: 1.42857143;
  526. text-decoration: none;
  527. color: #2c3e50;
  528. background-color: #fff;
  529. border: 1px solid #ddd;
  530. margin-left: -1px
  531. }
  532. .pagination > li:first-child > a, .pagination > li:first-child > span {
  533. margin-left: 0;
  534. border-bottom-left-radius: 3px;
  535. border-top-left-radius: 3px
  536. }
  537. .pagination > li:last-child > a, .pagination > li:last-child > span {
  538. border-bottom-right-radius: 3px;
  539. border-top-right-radius: 3px
  540. }
  541. .pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover {
  542. z-index: 2;
  543. color: #11181f;
  544. background-color: #eee;
  545. border-color: #ddd
  546. }
  547. .pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
  548. z-index: 3;
  549. color: #fff;
  550. background-color: #2c3e50;
  551. border-color: #2c3e50;
  552. cursor: default
  553. }
  554. .pagination > .disabled > a, .pagination > .disabled > a:focus, .pagination > .disabled > a:hover, .pagination > .disabled > span, .pagination > .disabled > span:focus, .pagination > .disabled > span:hover {
  555. color: #777;
  556. background-color: #fff;
  557. border-color: #ddd;
  558. cursor: not-allowed
  559. }
  560. .pager .pagination {
  561. margin: 0
  562. }
  563. .pager li {
  564. margin: 0 .4em;
  565. display: inline-block
  566. }
  567. .pager li:first-child > a, .pager li:first-child > span, .pager li:last-child > a, .pager li:last-child > span {
  568. padding: .5em 1.2em
  569. }
  570. .pager li > a, .pager li > span {
  571. border: 1px solid #e6e6e6;
  572. border-radius: .25em;
  573. padding: .5em .93em;
  574. font-size: 14px
  575. }
  576. /* 搜索建议 */
  577. .autocomplete-suggestions {
  578. text-align: left;
  579. cursor: default;
  580. background: #fff;
  581. border: 1px solid rgba(0, 0, 0, 0.15);
  582. border-radius: 2px;
  583. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  584. -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  585. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  586. background-clip: padding-box;
  587. position: absolute;
  588. display: none;
  589. z-index: 1036;
  590. max-height: 254px;
  591. overflow: hidden;
  592. overflow-y: auto;
  593. box-sizing: border-box;
  594. }
  595. .autocomplete-suggestions .autocomplete-suggestion {
  596. padding: 5px 12px;
  597. }
  598. .autocomplete-suggestions .autocomplete-suggestion:hover {
  599. background: #f0f0f0;
  600. }
  601. /* 加载更多 */
  602. .loadmore {
  603. width: 80%;
  604. margin: 1.5em auto;
  605. line-height: 1.6em;
  606. font-size: 14px;
  607. text-align: center;
  608. }
  609. .loadmore-tips {
  610. display: inline-block;
  611. vertical-align: middle;
  612. }
  613. .loadmore-line {
  614. border-top: 1px solid #E5E5E5;
  615. margin-top: 2.4em;
  616. }
  617. .loadmore-line .loadmore-tips {
  618. position: relative;
  619. top: -0.9em;
  620. padding: 0 .55em;
  621. background-color: #FFFFFF;
  622. color: #808080;
  623. }