|
661 | 661 | padding: 10px; |
662 | 662 | } |
663 | 663 |
|
| 664 | + /* 右上角按钮样式 */ |
| 665 | + .top-right-buttons { |
| 666 | + position: fixed; |
| 667 | + top: 20px; |
| 668 | + right: 20px; |
| 669 | + display: flex; |
| 670 | + gap: 10px; |
| 671 | + z-index: 1000; |
| 672 | + } |
| 673 | + |
| 674 | + .top-button { |
| 675 | + display: flex; |
| 676 | + align-items: center; |
| 677 | + justify-content: center; |
| 678 | + width: 50px; |
| 679 | + height: 50px; |
| 680 | + border-radius: 50%; |
| 681 | + text-decoration: none; |
| 682 | + transition: all 0.3s ease; |
| 683 | + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); |
| 684 | + backdrop-filter: blur(10px); |
| 685 | + border: 1px solid rgba(255, 255, 255, 0.2); |
| 686 | + } |
| 687 | + |
| 688 | + .github-button { |
| 689 | + background: linear-gradient(135deg, rgba(36, 41, 46, 0.9), rgba(68, 77, 86, 0.9)); |
| 690 | + color: white; |
| 691 | + } |
| 692 | + |
| 693 | + .github-button:hover { |
| 694 | + background: linear-gradient(135deg, rgba(36, 41, 46, 1), rgba(68, 77, 86, 1)); |
| 695 | + transform: translateY(-2px); |
| 696 | + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); |
| 697 | + } |
| 698 | + |
| 699 | + .jsrei-button { |
| 700 | + background: linear-gradient(135deg, rgba(66, 153, 225, 0.9), rgba(102, 126, 234, 0.9)); |
| 701 | + color: white; |
| 702 | + } |
| 703 | + |
| 704 | + .jsrei-button:hover { |
| 705 | + background: linear-gradient(135deg, rgba(66, 153, 225, 1), rgba(102, 126, 234, 1)); |
| 706 | + transform: translateY(-2px); |
| 707 | + box-shadow: 0 6px 20px rgba(66, 153, 225, 0.3); |
| 708 | + } |
| 709 | + |
| 710 | + .top-button svg { |
| 711 | + width: 24px; |
| 712 | + height: 24px; |
| 713 | + fill: currentColor; |
| 714 | + } |
| 715 | + |
| 716 | + .top-button .jsrei-text { |
| 717 | + font-size: 12px; |
| 718 | + font-weight: bold; |
| 719 | + letter-spacing: 0.5px; |
| 720 | + } |
| 721 | + |
| 722 | + /* 响应式设计 */ |
| 723 | + @media (max-width: 768px) { |
| 724 | + .top-right-buttons { |
| 725 | + top: 15px; |
| 726 | + right: 15px; |
| 727 | + gap: 8px; |
| 728 | + } |
| 729 | + |
| 730 | + .top-button { |
| 731 | + width: 45px; |
| 732 | + height: 45px; |
| 733 | + } |
| 734 | + |
| 735 | + .top-button svg { |
| 736 | + width: 20px; |
| 737 | + height: 20px; |
| 738 | + } |
| 739 | + |
| 740 | + .top-button .jsrei-text { |
| 741 | + font-size: 10px; |
| 742 | + } |
| 743 | + } |
| 744 | + |
664 | 745 | /* 图片预览相关样式 */ |
665 | 746 | .image-preview-overlay { |
666 | 747 | position: fixed; |
|
958 | 1039 | </style> |
959 | 1040 | </head> |
960 | 1041 | <body> |
| 1042 | +<!-- 右上角按钮 --> |
| 1043 | +<div class="top-right-buttons"> |
| 1044 | + <a href="https://github.com/JSREI/userscript-template" target="_blank" class="top-button github-button" title="GitHub 仓库"> |
| 1045 | + <svg viewBox="0 0 16 16"> |
| 1046 | + <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/> |
| 1047 | + </svg> |
| 1048 | + </a> |
| 1049 | + <a href="https://jsrei.org/" target="_blank" class="top-button jsrei-button" title="JSREI 组织首页"> |
| 1050 | + <span class="jsrei-text">JSREI</span> |
| 1051 | + </a> |
| 1052 | +</div> |
| 1053 | + |
961 | 1054 | <header> |
962 | 1055 | <h1>UserScript Template</h1> |
963 | 1056 | <p>现代化油猴脚本开发模板 - 支持模块化开发、热加载、npm包管理</p> |
|
0 commit comments