国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

757 lines
13KB

  1. /* Copyright 2020 The [ZiXue.CN] Authors. All rights reserved.
  2. license that can be found in the LICENSE file. */
  3. .flink,.flink a,.copyright,.copyright a {
  4. color: white;
  5. }
  6. .copyright {
  7. background-color: #12451F;
  8. padding:.5em;
  9. }
  10. form.search {
  11. display: flex;
  12. width: 100%;
  13. }
  14. /* spec */
  15. ul.spec > li > a > img,.article-spec > a > img {
  16. width: 120px;
  17. }
  18. ul.spec .border-bottom-dashed {
  19. border-bottom: dashed 1px #929292;
  20. }
  21. ul.spec > li .title a {
  22. color: #212529;
  23. }
  24. ul.spec > li .title h4 {
  25. display: inline;
  26. }
  27. ul.spec > li .title .label {
  28. background-color: #B7E9B4;
  29. color: #008E38;
  30. padding: 0 5px;
  31. border-radius: 3px;
  32. }
  33. ul.spec > li .description, ul.spec > li .description a {
  34. color: #868686;
  35. font-size: 16px;
  36. line-height: 24px;
  37. display: -webkit-box;
  38. -webkit-line-clamp: 3;
  39. -webkit-box-orient: vertical;
  40. overflow: hidden;
  41. }
  42. /* 通用列表 */
  43. ul.items > li .type {
  44. background-color: #008E38;
  45. color: white;
  46. font-size: 14px;
  47. height: 18px;
  48. line-height: 18px;
  49. position: relative;
  50. padding: 0 5px;
  51. top: -3px;
  52. margin-right: 10px;
  53. }
  54. ul.items > li .pane {
  55. background-color: #008E38;
  56. width: 10px;
  57. height: 10px;
  58. display: inline-block;
  59. vertical-align: middle;
  60. margin-right: 10px;
  61. margin-bottom: 10px;
  62. }
  63. ul.items > li .caption {
  64. line-height: 32px;
  65. }
  66. ul.items > li .title,ul.items > li .caption a {
  67. display: inline;
  68. line-height: 18px;
  69. color: #212529;
  70. }
  71. ul.items > li .description, ul.items > li .description a, ul.items > li .addinfo {
  72. color: #868686;
  73. display: -webkit-box;
  74. -webkit-line-clamp: 3;
  75. -webkit-box-orient: vertical;
  76. overflow: hidden;
  77. line-height: 26px;
  78. word-break:break-all;
  79. }
  80. ul.items > li .addinfo {
  81. font-size: 14px;
  82. }
  83. ul.items .border-bottom-dashed {
  84. border-bottom: dashed 1px #929292;
  85. }
  86. ul.items img {
  87. max-width: 100px;
  88. }
  89. ul.items > li .label {
  90. border: 1px solid #FF8400;
  91. color: #FF8400;
  92. height: 24px;
  93. border-radius: 3px;
  94. font-size: 12px;
  95. line-height: 24px;
  96. margin-left: 5px;
  97. padding: 0 5px;
  98. }
  99. ul.items > li .label:hover {
  100. border: 1px solid #FF8400;
  101. color: white;
  102. text-decoration-line: none;
  103. background-color: #FF8400;
  104. height: 24px;
  105. border-radius: 3px;
  106. font-size: 12px;
  107. line-height: 24px;
  108. margin-left: 5px;
  109. padding: 0 5px;
  110. }
  111. ul.items > li .source {
  112. font-size: 14px;
  113. }
  114. /* 自学网列表群组 */
  115. .list-group-dede {
  116. text-align: center;
  117. font-size: 16px;
  118. }
  119. .dropdown-dede .dropdown-menu {
  120. width: 100%;
  121. text-align: center;
  122. }
  123. .dropdown-dede .dropdown-menu>.dropdown-item.active {
  124. background-color: white;
  125. color: #FF8400;
  126. }
  127. .dropdown-dede,.dropdown-dede a {
  128. width: 100%;
  129. }
  130. .dropdown-dede,.dropdown-item {
  131. padding: .25rem 1.5rem;
  132. text-align: left;
  133. border-bottom: 1px dashed #D7D7D7;
  134. }
  135. .dropdown-dede,.dropdown-item:last-child {
  136. border-bottom: none;
  137. }
  138. .list-group-dede .list-group-item.active {
  139. z-index: 2;
  140. color: #ff8400;
  141. background-color: white;
  142. }
  143. .list-group-dede {
  144. border: 1px solid #96D6A8;
  145. border-radius: 10px;
  146. }
  147. .list-group-dede .list-group-item {
  148. position: relative;
  149. display: block;
  150. padding: .75rem 1.25rem;
  151. background-color: #fff;
  152. border: none;
  153. font-weight: 600;
  154. border-bottom: 1px dashed #D7D7D7;
  155. }
  156. .list-group-dede .list-group-item.active {
  157. border: none;
  158. border-bottom: 1px dashed #D7D7D7;
  159. }
  160. .list-group-dede .list-group-item+.list-group-item.active {
  161. margin-top: 0px;
  162. }
  163. .list-group-dede .list-group-item:last-child {
  164. border-bottom: none;
  165. }
  166. /* dedecard */
  167. .ddcard,.ddcard-normal {
  168. border: none;
  169. }
  170. .ddcard-normal{
  171. box-shadow: 1px 0px 5px 5px #F2F2F2;
  172. padding: .25em;
  173. }
  174. .ddcard-normal ul {
  175. padding: .5em;
  176. }
  177. .ddcard > .card-header {
  178. background-color: white;
  179. padding: 0;
  180. border-bottom: solid 5px #008E38;
  181. }
  182. .ddcard-normal > .card-header {
  183. background-color: white;
  184. padding: 0;
  185. border-bottom: none;
  186. }
  187. .ddcard-normal > .card-header .caption {
  188. font-size: 18px;
  189. font-weight: 600;
  190. }
  191. .ddcard-normal > .card-header .caption a{
  192. color: #008E38;
  193. }
  194. .ddcard-normal > .card-header .caption::before {
  195. content: " ";
  196. background-color: #008E38;
  197. padding: 4px;
  198. margin-right: 10px;
  199. }
  200. .ddcard > .card-header .caption {
  201. font-size: 18px;
  202. }
  203. .ddcard > .card-header .caption span {
  204. display: inline-block;
  205. background: #008E38;
  206. padding: 5px 15px;
  207. color: white;
  208. margin-bottom: -3px;
  209. }
  210. .ddcard > .card-header .more a,.ddcard-normal > .card-header .more a{
  211. color: #008E38;
  212. font-size: 14px;
  213. line-height: 26px;
  214. }
  215. .ddcard > .list-group {
  216. margin-left: 20px;
  217. }
  218. .ddcard > .list-group .label,.ddcard-normal > .list-group .label {
  219. float: right;
  220. font-size: 14px;
  221. padding: 3px;
  222. color: #12451F;
  223. background-color: #B6E9B4;
  224. border-radius: 3px;
  225. margin-left: 5px;
  226. }
  227. .ddcard-normal > .list-group .time {
  228. color: #C0C0C0;
  229. }
  230. .ddcard-normal > ul > li,.ddcard-normal > ol > li {
  231. border-bottom: dashed 1px #CFCFCF;
  232. list-style: none;
  233. }
  234. .ddcard-normal > ul > li.media img {
  235. width: 75px;
  236. height: 57px;
  237. }
  238. .ddcard-normal > ul > li.media h4 {
  239. font-size: 16px;
  240. }
  241. .ddcard-normal .more {
  242. padding-right: 1.5em;
  243. }
  244. .ddcard-normal > .list-group > li i {
  245. color: #60B983;
  246. }
  247. .ddcard > ul > li,.ddcard > ol > li,.ddcard-normal > ul > li,.ddcard-normal > ol > li {
  248. padding: 5px 0;
  249. color: #C0C0C0;
  250. overflow: hidden;
  251. white-space: nowrap;
  252. text-overflow: ellipsis;
  253. }
  254. .ddcard > ul > li:nth-child(1),.ddcard > ol > li:nth-child(1),
  255. .ddcard-normal > ul > li:nth-child(1),.ddcard-normal > ol > li:nth-child(1) {
  256. margin-top: 10px;
  257. overflow: hidden;
  258. white-space: nowrap;
  259. text-overflow: ellipsis;
  260. }
  261. .ddcard > ul > li a ,.ddcard > ol > li a,.ddcard-normal > ul > li a ,.ddcard-normal > ol > li a{
  262. color: #272727;
  263. }
  264. .ddcard > ol > li::before,.ddcard-normal > ol > li::before {
  265. background-color: #FF8400;
  266. color: white;
  267. padding: 3px;
  268. margin-left: -10px;
  269. margin-right: 10px;
  270. border-radius: 3px;
  271. }
  272. .ddcard > ol > li:nth-child(1)::before,.ddcard-normal > ol > li:nth-child(1)::before {
  273. content: "1";
  274. background-color: #FF8400;
  275. color: white;
  276. padding: 3px 6px;
  277. margin-left: 0px;
  278. margin-right: 10px;
  279. border-radius: 3px;
  280. width: 6px;
  281. }
  282. .ddcard > ol > li:nth-child(2)::before,.ddcard-normal > ol > li:nth-child(2)::before {
  283. content: "2";
  284. background-color: #FFB400;
  285. color: white;
  286. padding: 3px 5px;
  287. margin-left: 0px;
  288. margin-right: 10px;
  289. border-radius: 3px;
  290. }
  291. .ddcard > ol > li:nth-child(3)::before,.ddcard-normal > ol > li:nth-child(3)::before {
  292. content: "3";
  293. background-color: #FFCC00;
  294. color: white;
  295. padding: 3px 5px;
  296. margin-left: 0px;
  297. margin-right: 10px;
  298. border-radius: 3px;
  299. }
  300. /* 特殊标题 */
  301. h1.dede::before {
  302. content: " ";
  303. background-color: #008E38;
  304. padding: 4px;
  305. margin-right: 10px;
  306. }
  307. h2.dede::before {
  308. content: " ";
  309. background-color: #008E38;
  310. padding: 4px;
  311. margin-right: 10px;
  312. }
  313. h3.dede::before {
  314. content: " ";
  315. background-color: #008E38;
  316. padding: 4px;
  317. margin-right: 10px;
  318. }
  319. h4.dede::before {
  320. content: " ";
  321. background-color: #008E38;
  322. padding: 4px;
  323. margin-right: 10px;
  324. }
  325. h5.dede::before {
  326. content: " ";
  327. background-color: #008E38;
  328. padding: 4px;
  329. margin-right: 10px;
  330. }
  331. h3.dede-box::before {
  332. content: " ";
  333. background-color: #B7E9B4;
  334. padding: 4px;
  335. margin-bottom: 4px;
  336. margin-right: 10px;
  337. display: inline-block;
  338. }
  339. h4.dede-box::before {
  340. content: " ";
  341. background-color: #B7E9B4;
  342. padding: 4px;
  343. margin-bottom: 4px;
  344. margin-right: 10px;
  345. display: inline-block;
  346. }
  347. h5.dede-box::before {
  348. content: " ";
  349. background-color: #B7E9B4;
  350. padding: 4px;
  351. margin-bottom: 4px;
  352. margin-right: 10px;
  353. display: inline-block;
  354. }
  355. /* 导航 */
  356. .nav.dede .nav-link {
  357. color: #858585;
  358. border: solid 1px #858585;
  359. }
  360. .nav.dede .nav-link.active {
  361. color: white;
  362. border: solid 1px #FF8400;
  363. }
  364. .nav.dede .nav-link:hover {
  365. color: white;
  366. background-color: #FF8400;
  367. border: solid 1px #FF8400;
  368. }
  369. .nav.dede .nav-link.disabled {
  370. color: #6c757d;
  371. pointer-events: none;
  372. cursor: default;
  373. }
  374. /* 站点全局导航部分 */
  375. nav.navbar.dede {
  376. padding: 0;
  377. }
  378. nav.navbar.dede .dropdown-item.active, .dropdown-item:active {
  379. color:#ff8400;
  380. text-decoration: none;
  381. background-color:#fff;
  382. }
  383. nav.navbar.dede .navbar-brand{
  384. display: none;
  385. }
  386. nav.navbar.dede .nav-item{
  387. width: 7em;
  388. text-align: center;
  389. padding: .5em 0;
  390. }
  391. nav.navbar.dede .nav-item.active{
  392. background-color: #ff8400;
  393. }
  394. nav.location {
  395. padding: .5em;
  396. border: solid 1px #B5B5B5;
  397. border-radius: 10px;
  398. display: flex;
  399. flex-direction: row;
  400. }
  401. nav.location .caption{
  402. display: inline-block;
  403. line-height: 20px;
  404. font-size: 18px;
  405. font-weight: 600;
  406. color: #008E38;
  407. width: 75px;
  408. text-align: center;
  409. padding: 0 5px 0 5px;
  410. position: relative;
  411. }
  412. nav.location .dede {
  413. padding-inline-start: 0px;
  414. margin-bottom: 0;
  415. }
  416. nav.location .dede li {
  417. float: left;
  418. list-style-type: none;
  419. }
  420. nav.location .dede li .nav-link {
  421. color: #272727;
  422. }
  423. nav.location .dede li.active .nav-link {
  424. color: #ff8400;
  425. }
  426. .dede-title > .dede, .dede-title > .dede-box {
  427. display: inline-block;
  428. }
  429. .dede-title > .items{
  430. display: inline-block;
  431. }
  432. /* 面包屑 */
  433. .position .breadcrumb .breadcrumb-item a {
  434. color: #008E38;
  435. }
  436. /* 滚动到顶部 */
  437. #btnScrollTop {
  438. display: none;
  439. position: fixed;
  440. bottom: 20px;
  441. right: 20px;
  442. z-index: 99;
  443. font-size: 18px;
  444. border: none;
  445. outline: none;
  446. background-color: #EC982C;
  447. color: white;
  448. cursor: pointer;
  449. padding: 10px 15px;
  450. border-radius: 10px;
  451. }
  452. #btnScrollTop:hover {
  453. background-color: #E77817;
  454. }
  455. /*展开搜索*/
  456. .showhide-info .btn-show,.showhide-info .btn-hide{
  457. margin: 20px auto;
  458. }
  459. /*展开状态*/
  460. .showhide-info.show .box {
  461. height: 100%;
  462. }
  463. .showhide-info.show .btn-show{
  464. display: none;
  465. }
  466. .showhide-info.show .btn-hide{
  467. display: block;
  468. }
  469. /*收缩状态*/
  470. .showhide-info.hide .box{
  471. height: 300px;
  472. overflow: hidden;
  473. }
  474. .showhide-info.hide .btn-showhide{
  475. position: relative;
  476. padding-top: 20px;
  477. padding-bottom: 30px;
  478. }
  479. .showhide-info.hide .gradient{
  480. position: absolute;
  481. top: -79px;
  482. left: 0;
  483. height: 80px;
  484. width: 100%;
  485. background-image: -webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,0)),to(#fff));
  486. background-image: -webkit-linear-gradient(top,rgba(255,255,255,0),#fff);
  487. background-image: linear-gradient(-180deg,rgba(255,255,255,0),#fff);
  488. }
  489. .showhide-info.hide .btn-show{
  490. display: block;
  491. }
  492. .showhide-info.hide .btn-hide{
  493. display: none;
  494. }
  495. /* 文章内容样式 */
  496. .article-main h2 {
  497. line-height: 1.5em;
  498. }
  499. .article-meta small {
  500. color: #868686;
  501. margin-left: 1em;
  502. }
  503. .article-main .body {
  504. word-break: break-all;
  505. }
  506. .article-main .body img,.article-main .body video {
  507. max-width: 100%!important;
  508. height: auto !important;
  509. visibility: visible !important;
  510. }
  511. .article-main .body table {
  512. width: 100% !important;
  513. }
  514. /* 站点头部nav */
  515. .site-nav {
  516. font-size: 14px;
  517. }
  518. .site-nav .title b {
  519. color: #ff8400;
  520. }
  521. .site-nav .user a {
  522. color: #008E38;
  523. }
  524. #body-pic img {
  525. max-width: 40%!important;
  526. }
  527. .image-item img{
  528. height: 160px;
  529. }
  530. .list-image img {
  531. width: 130px;
  532. max-width: 130px!important;
  533. }
  534. .flink {
  535. background-color: #008e38!important;
  536. }
  537. .flink,.flink a,.copyright,.copyright a {
  538. color: white;
  539. }
  540. @media only screen and (max-width: 1199px) {
  541. .ddcard > .card-header .caption span {
  542. font-size: 14px;
  543. }
  544. }
  545. @media only screen and (max-width: 576px) {
  546. .logo {
  547. text-align: center;
  548. }
  549. nav.navbar.dede .nav-item{
  550. width: 100%;
  551. }
  552. nav.navbar.dede .navbar-brand{
  553. display: block;
  554. margin-left: 10px;
  555. }
  556. .dropdown-dede,.dropdown-item {
  557. text-align: center;
  558. }
  559. .ddcard > .card-header .caption span {
  560. font-size: 16px;
  561. }
  562. }
  563. @media only screen and (max-width: 768px) {
  564. nav.navbar.dede .nav-item{
  565. width: 100%;
  566. }
  567. nav.navbar.dede .navbar-brand{
  568. display: block;
  569. margin-left: 10px;
  570. }
  571. .dropdown-dede,.dropdown-item {
  572. text-align: center;
  573. }
  574. .ddcard > .card-header .caption span {
  575. font-size: 14px;
  576. }
  577. }
  578. .digg .comment-container {
  579. width: 200px;
  580. padding: 10px 20px;
  581. border: 1px solid #f2f2f2;
  582. border-radius: 20px;
  583. margin: 0 6px;
  584. cursor: pointer;
  585. }
  586. .digg .comment-container:hover {
  587. background-color: #FFFCE0;
  588. }
  589. .digg .comment-top {
  590. display: flex;
  591. flex-direction: row;
  592. align-items: center;
  593. margin-bottom: 10px;
  594. }
  595. .digg .comment-top-text {
  596. color: #497cf6;
  597. margin-left: 10px;
  598. }
  599. .digg .comment-top-text-danger {
  600. color: #d21d35;
  601. margin-left: 10px;
  602. }
  603. .digg .text-like {
  604. color: #497cf6;
  605. }
  606. .digg .text-unlike {
  607. color: #d21d35
  608. }
  609. .digg .comment-top p {
  610. margin-bottom: unset;
  611. }
  612. .prenext .pagination-previous, .pagination-next {
  613. font-size: 14px;
  614. color: #a6a5a6;
  615. padding: 6px 14px;
  616. border-radius: 34px;
  617. border: 1px solid #f0f0f0;
  618. cursor: pointer;
  619. }
  620. .prenext .pagination-previous:hover, .pagination-next:hover {
  621. color: #c2e5d0;
  622. background-color: #1eac5a;
  623. }
  624. .actbox {
  625. float: right;
  626. padding:10px;
  627. }
  628. .actbox ul {
  629. list-style: none;
  630. }
  631. .actbox ul li {
  632. float: left;
  633. margin-left: 10px;
  634. }