|
48 | 48 | .ping-badge.ping-warn { color: #FF9800; } |
49 | 49 | .ping-badge.ping-bad { color: #f44336; } |
50 | 50 |
|
51 | | - .test-controller { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999; width: max(280px, 25vw); max-width: 85vw; pointer-events: auto; } |
| 51 | + .test-controller { position: fixed; top: 59px; right: 15px; z-index: 999; pointer-events: auto; } |
52 | 52 | .test-controller.hidden { display: none; } |
53 | | - .test-controller-toggle { width: 100%; height: 45px; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: rgba(255, 255, 255, 0.8); font-size: 15px; cursor: pointer; transition: all 0.3s; } |
54 | | - .test-controller-toggle:hover { background: rgba(0, 0, 0, 0.9); border-color: rgba(255, 255, 255, 0.3); color: #fff; } |
55 | | - .test-controller-toggle .emoji { font-size: 20px; } |
56 | | - .test-controller-toggle .arrow { font-size: 12px; transition: transform 0.3s; } |
57 | | - .test-controller.expanded .test-controller-toggle .arrow { transform: rotate(180deg); } |
58 | | - .test-controller-links { display: none; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; } |
| 53 | + .test-controller-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; font-size: 20px; cursor: pointer; transition: all 0.3s; } |
| 54 | + .test-controller-toggle:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.05); } |
| 55 | + .test-controller.expanded .test-controller-toggle { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); } |
| 56 | + .test-controller-links { display: none; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px; background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; min-width: 180px; position: absolute; right: 0; } |
59 | 57 | .test-controller.expanded .test-controller-links { display: flex; } |
60 | | - .test-controller-link { display: flex; align-items: center; justify-content: center; height: 40px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; color: #1AAFFF; text-decoration: none; font-size: 14px; transition: all 0.3s; } |
| 58 | + .test-controller-link { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; color: #1AAFFF; text-decoration: none; font-size: 12px; white-space: nowrap; transition: all 0.3s; } |
61 | 59 | .test-controller-link:hover { background: rgba(255, 255, 255, 0.15); border-color: #1AAFFF; } |
62 | | - |
63 | | - @media (orientation: landscape) and (max-height: 600px) { |
64 | | - .test-controller { bottom: 10px; width: max(250px, 20vw); } |
65 | | - .test-controller-toggle { height: 38px; font-size: 14px; } |
66 | | - .test-controller-links { padding: 10px; gap: 6px; } |
67 | | - .test-controller-link { height: 35px; font-size: 13px; } |
68 | | - } |
69 | 60 | </style> |
70 | 61 | </head> |
71 | 62 | <body> |
|
75 | 66 | <div class="ping-badge" id="pingBadge"></div> |
76 | 67 | </div> |
77 | 68 | <div class="test-controller" id="testController"> |
78 | | - <button class="test-controller-toggle" id="testControllerToggle"> |
79 | | - <span class="emoji">+</span> |
80 | | - <span>Test Controller</span> |
81 | | - <span class="arrow">v</span> |
82 | | - </button> |
| 69 | + <button class="test-controller-toggle" id="testControllerToggle" title="Test Controller">🎮</button> |
83 | 70 | <div class="test-controller-links"> |
84 | | - <a href="https://hardwaretester.com/gamepad" target="_blank" rel="noopener" class="test-controller-link">hardwaretester.com/gamepad</a> |
| 71 | + <a href="https://hardwaretester.com/gamepad" target="_blank" rel="noopener" class="test-controller-link">hardwaretester.com</a> |
85 | 72 | <a href="https://gamepadtester.com/" target="_blank" rel="noopener" class="test-controller-link">gamepadtester.com</a> |
86 | 73 | </div> |
87 | 74 | </div> |
|
0 commit comments