国内流行的内容管理系统(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.

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