styles.styl 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. .main-inner
  2. width 60%
  3. // 文章块添加阴影
  4. .post-block
  5. margin-top 60px
  6. padding 25px
  7. box-shadow 0 0 5px rgb(210 210 210)
  8. // Custom styles.
  9. .post {
  10. margin-bottom: 60px;
  11. margin-top: 0;
  12. padding: 25px;
  13. -moz-box-shadow: 0 0 5px rgba(202, 203, 204, .5);
  14. -webkit-box-shadow: 0 0 5px rgba(202, 203, 203, .5);
  15. }
  16. // Custom styles.
  17. code {
  18. background: #fbf7f8;
  19. color: #ff7600;
  20. margin: 2px;
  21. }
  22. // 大代码块的自定义样式
  23. .highlight, pre {
  24. border-radius: 3px;
  25. margin: 5px 0;
  26. padding: 5px;
  27. }
  28. .highlight, code, pre {
  29. border: 1px solid #d6d6d6;
  30. }
  31. //全文字体
  32. body {
  33. font-family: 'Noto Serif SC',"PingFang SC","Microsoft YaHei",sans-serif;
  34. }
  35. code, pre {
  36. font-family: 'Roboto Mono',consolas,Menlo,monospace,"PingFang SC","Microsoft YaHei";
  37. }
  38. .post-body[itemprop="articleBody"] p {
  39. color: rgb(63, 63, 63);
  40. font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  41. font-size: 14px;
  42. letter-spacing: normal;
  43. }
  44. // 菜单栏样式
  45. .header {
  46. background: #ffffff !important;
  47. }
  48. //去除菜单项左边icon
  49. .menu-item .fa {
  50. display: none;
  51. }
  52. //更改菜单项字体大小
  53. .menu-item a, .menu-item span.exturl {
  54. font-size: 1.025em;
  55. }
  56. .menu-item-active a, .menu .menu-item a:hover, .menu .menu-item span.exturl:hover {
  57. background: #ffffff;
  58. color: #000;
  59. font-size: 1.125em;
  60. }
  61. //去掉网站名上下的横线
  62. .logo-line-before i, .logo-line-after i {
  63. display: none;
  64. }
  65. //更改网站名字体大小
  66. .site-title {
  67. font-size: 2em;
  68. }
  69. // 菜单栏样式结束
  70. //侧边栏样式
  71. .sidebar {
  72. background: #bbbbbb1a;
  73. bottom: 0;
  74. position: fixed;
  75. box-shadow: inset 0 0px 0px #0000;
  76. top: 0;
  77. z-index: 200;
  78. }
  79. //目录与站点概览链接样式
  80. .sidebar-nav li{
  81. color: #555;
  82. font-size: 1em;
  83. }
  84. .sidebar-nav li:hover{
  85. color: #222;
  86. }
  87. .sidebar-nav li.sidebar-nav-overview {
  88. margin-left: 10px;
  89. }
  90. .sidebar-nav .sidebar-nav-active {
  91. border-bottom-color: #222;
  92. color: #222;
  93. }
  94. .sidebar-nav .sidebar-nav-active:hover {
  95. border-bottom-color: #222;
  96. color: #222;
  97. }
  98. //目录样式
  99. .post-toc ol a {
  100. border-bottom-color: #5550;
  101. }
  102. .post-toc .nav .active-current > a {
  103. color: #222;
  104. }
  105. .post-toc .nav .active > a {
  106. border-bottom-color: #222;
  107. color: #222;
  108. }
  109. .post-toc .nav .active-current > a:hover {
  110. color: #222;
  111. }
  112. //头像样式
  113. .site-author-image {
  114. border: 0px solid #333;
  115. }
  116. //name字体颜色
  117. .site-author-name {
  118. color: #222;
  119. }
  120. //description颜色
  121. .site-description {
  122. color: #222;
  123. }
  124. //sidebar-item颜色
  125. .sidebar a, .sidebar span.exturl {
  126. border-bottom-color: #2220;
  127. color: #222;
  128. }
  129. .sidebar a:hover, .sidebar span.exturl:hover {
  130. border-bottom-color: #2220;
  131. color: #22222282;
  132. }
  133. //RSS样式
  134. .feed-link a, .chat a {
  135. border: 0px solid #fc6423;
  136. }
  137. .feed-link a:hover, .chat a:hover {
  138. background: #bbbbbb1a;
  139. border: 0px solid #fc6423;
  140. color: #222;
  141. }
  142. .fa-feed:before, .fa-rss:before {
  143. color: #222;
  144. }
  145. //社交链接样式
  146. .links-of-author a::before, .links-of-author span.exturl::before {
  147. display: none;
  148. }
  149. //展开按钮
  150. .toggle .toggle-line {
  151. background: #222;
  152. height: 3px;
  153. }
  154. .sidebar-toggle {
  155. background: #bbb0;
  156. height: 20px;
  157. width: 25px;
  158. }
  159. //返回顶部按钮
  160. .back-to-top {
  161. background: #2220;
  162. color: #222;
  163. }
  164. //侧边栏样式结束
  165. //文章块添加阴影
  166. .post-block{
  167. margin-top: 60px;
  168. margin-bottom: 60px;
  169. border-radius: 20px; //文章背景设置圆角
  170. padding: 30px 60px 30px 60px;
  171. background:rgba(255,255,255,0.5) none repeat scroll !important; //添加透明效果
  172. // -webkit-box-shadow: 0 0 15px rgba(202, 203, 203, .8); //文章块阴影
  173. // -moz-box-shadow: 0 0 15px rgba(202, 203, 204, .8);
  174. }
  175. //调节文章宽度
  176. .main-inner {
  177. // width: 65%;
  178. }
  179. //调整子标题文本大小
  180. .site-subtitle {
  181. font-size: 1em;
  182. }
  183. //加入背景图片
  184. //body {
  185. // background: url(/images/background.jpg)
  186. // background-repeat: no-repeat;
  187. // background-attachment:fixed;
  188. // background-position:50% 50%;
  189. //}
  190. //调整文章块底部空白大小
  191. .post-eof {
  192. margin: 20px auto 20px;
  193. }
  194. //调整按钮透明度
  195. .btn {
  196. background: rgba(255,255,255,0);
  197. }
  198. // 重点文字样式1 - 黄色背景标注
  199. .highlight-text {
  200. background-color: #fff566;
  201. padding: 2px 5px;
  202. border-radius: 3px;
  203. }
  204. // 重点文字样式2 - 波浪下划线
  205. .wavy-underline {
  206. text-decoration: wavy underline #ff3333;
  207. }
  208. // 重点文字样式3 - 渐变色文字
  209. .gradient-text {
  210. background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  211. -webkit-background-clip: text;
  212. color: transparent;
  213. font-weight: bold;
  214. }
  215. // 重点文字样式4 - 阴影效果
  216. .shadow-text {
  217. text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  218. }
  219. // 重点文字样式5 - 边框包围
  220. .border-text {
  221. border: 2px solid #1890ff;
  222. padding: 0 5px;
  223. border-radius: 4px;
  224. }
  225. @keyframes highlight {
  226. 0% { background-color: #fffae6; }
  227. 50% { background-color: #fff5cc; }
  228. 100% { background-color: #fffae6; }
  229. }
  230. .animated-highlight {
  231. animation: highlight 2s infinite;
  232. padding: 10px;
  233. border-radius: 5px;
  234. font-weight: bold;
  235. }
  236. .warning {
  237. color: #d9534f; /* 红色字体 */
  238. font-weight: bold;
  239. }
  240. .warning:before {
  241. content: "⚠️"; /* 警告符号 */
  242. margin-right: 8px;
  243. }
  244. .important-note {
  245. border-left: 4px solid #007BFF; /* 蓝色强调 */
  246. background-color: #f9f9f9; /* 浅灰背景 */
  247. padding: 10px 15px;
  248. font-style: italic;
  249. }
  250. .card {
  251. background-color: #e7f3fe; /* 浅蓝背景 */
  252. border: 1px solid #b3d8ff; /* 蓝色边框 */
  253. padding: 15px;
  254. border-radius: 8px;
  255. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  256. font-size: 1rem;
  257. }
  258. /* 标签容器 */
  259. .tag-container {
  260. margin-top: 10px;
  261. display: flex;
  262. flex-wrap: wrap;
  263. align-items: center;
  264. justify-content: flex-start;
  265. margin-bottom: 20px;
  266. gap: 5px;
  267. }
  268. /* 主标签样式 */
  269. .main-tag {
  270. font-size: 11px;
  271. font-weight: bold;
  272. background: linear-gradient(45deg, #ff416c, #ff4b2b);
  273. color: white;
  274. padding: 2px 5px;
  275. border-radius: 4px;
  276. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  277. }
  278. /* 次要标签样式 */
  279. .sub-tag {
  280. font-size: 10px;
  281. font-weight: 400;
  282. background: linear-gradient(45deg, #1fa2ff, #12d8fa);
  283. color: white;
  284. padding: 2px 5px;
  285. border-radius: 4px;
  286. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  287. }
  288. .ai-tag {
  289. position: relative;
  290. display: inline-block;
  291. padding: 0px 9px;
  292. font-size: 12px;
  293. color: white;
  294. background: linear-gradient(135deg, #6366F1, #8B5CF6);
  295. border-radius: 6px;
  296. box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  297. overflow: hidden;
  298. transition: all 0.3s ease;
  299. }
  300. .ai-tag::before {
  301. content: "";
  302. position: absolute;
  303. top: -50%;
  304. left: -50%;
  305. width: 200%;
  306. height: 200%;
  307. background: linear-gradient(45deg,
  308. rgba(255, 255, 255, 0) 0%,
  309. rgba(255, 255, 255, 0.25) 50%,
  310. rgba(255, 255, 255, 0) 100%);
  311. transform: rotate(45deg);
  312. animation: shine 3s infinite linear;
  313. }
  314. .ai-tag:hover {
  315. transform: translateY(-3px);
  316. box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  317. }
  318. @keyframes shine {
  319. 0% {
  320. left: -100%;
  321. top: -100%;
  322. }
  323. 100% {
  324. left: 100%;
  325. top: 100%;
  326. }
  327. }
  328. /* 闪烁动画效果 */
  329. @keyframes pulse {
  330. 0%, 100% {
  331. opacity: 1;
  332. text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  333. transform: scale(1);
  334. }
  335. 50% {
  336. opacity: 0.9;
  337. text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  338. transform: scale(1.02);
  339. }
  340. }
  341. .ai-tag .blink {
  342. animation: pulse 2s infinite ease-in-out;
  343. display: inline-block;
  344. }
  345. /* 引言样式 */
  346. .article-quote {
  347. position: relative;
  348. margin: 2em 0;
  349. padding: 1.5em 2em;
  350. background: #f8f9fa;
  351. border-left: 4px solid #6b90da;
  352. border-radius: 3px;
  353. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  354. }
  355. .article-quote::before {
  356. content: '"';
  357. position: absolute;
  358. top: 10px;
  359. left: 10px;
  360. font-size: 3em;
  361. color: #6b90da;
  362. opacity: 0.2;
  363. }
  364. /* 正文分割样式 */
  365. .content-divider {
  366. margin: 2em 0;
  367. text-align: center;
  368. overflow: hidden;
  369. }
  370. .content-divider::before {
  371. content: "✧";
  372. color: #6b90da;
  373. margin: 0 0.5em;
  374. }
  375. .content-divider::after {
  376. content: "✧";
  377. color: #6b90da;
  378. margin: 0 0.5em;
  379. }
  380. /* 1. 动态渐变分隔线 */
  381. .divider-gradient {
  382. height: 3px;
  383. background: linear-gradient(90deg, #12c2e9, #c471ed, #f64f59);
  384. margin: 2em 0;
  385. background-size: 200% 100%;
  386. animation: gradient-move 3s infinite linear;
  387. }
  388. @keyframes gradient-move {
  389. 0% { background-position: 0% 50%; }
  390. 100% { background-position: 200% 50%; }
  391. }
  392. /* 2. 波浪分隔线 */
  393. .divider-wave {
  394. height: 60px;
  395. background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f3f4f6'/%3E%3C/path%3E%3C/svg%3E");
  396. background-size: cover;
  397. margin: 2em 0;
  398. }
  399. /* 3. 科技感分隔线 */
  400. .divider-tech {
  401. position: relative;
  402. height: 2px;
  403. background: #000;
  404. margin: 2em 0;
  405. overflow: hidden;
  406. }
  407. .divider-tech::before {
  408. content: '';
  409. position: absolute;
  410. top: 0;
  411. left: 0;
  412. height: 100%;
  413. width: 50%;
  414. background: linear-gradient(90deg, transparent, #00ff4c);
  415. animation: tech-line 2s infinite;
  416. }
  417. @keyframes tech-line {
  418. 0% { transform: translateX(-200%); }
  419. 100% { transform: translateX(400%); }
  420. }
  421. /* 4. 星空分隔线 */
  422. .divider-stars {
  423. height: 3px;
  424. background: #000;
  425. margin: 2em 0;
  426. position: relative;
  427. overflow: hidden;
  428. }
  429. .divider-stars::after {
  430. content: '★ ★ ★';
  431. position: absolute;
  432. top: -14px;
  433. left: 50%;
  434. transform: translateX(-50%);
  435. color: #ffd700;
  436. animation: twinkle 1.5s infinite;
  437. }
  438. @keyframes twinkle {
  439. 0%, 100% { opacity: 1; }
  440. 50% { opacity: 0.3; }
  441. }