mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-01-21 07:30:57 +08:00
414 lines
6.8 KiB
CSS
414 lines
6.8 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #f0f0f0;
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.connection-panel {
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.status {
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.status.connected {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.status.disconnected {
|
|
background-color: #f44336;
|
|
color: white;
|
|
}
|
|
|
|
#ipInput {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
width: 200px;
|
|
}
|
|
|
|
#connectBtn {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
background-color: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
#connectBtn:hover {
|
|
background-color: #1976D2;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#captureBtn, #cropBtn {
|
|
padding: 12px 24px;
|
|
font-size: 16px;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
min-width: 160px;
|
|
}
|
|
|
|
#captureBtn {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
#captureBtn:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
#cropBtn {
|
|
background-color: #2196F3;
|
|
}
|
|
|
|
#cropBtn:hover {
|
|
background-color: #1976D2;
|
|
}
|
|
|
|
#captureBtn:disabled, #cropBtn:disabled {
|
|
background-color: #cccccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.image-container {
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
min-height: 300px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
#screenshotImg {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: none;
|
|
}
|
|
|
|
#screenshotImg[src] {
|
|
display: block;
|
|
}
|
|
|
|
.toggle-button {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 1000;
|
|
padding: 10px;
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.ai-settings {
|
|
position: fixed;
|
|
top: 70px;
|
|
right: 20px;
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
z-index: 999;
|
|
width: 300px;
|
|
max-width: 90vw;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.ai-settings.hidden {
|
|
transform: translateX(120%);
|
|
}
|
|
|
|
.setting-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.setting-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.setting-group input[type="password"],
|
|
.setting-group input[type="text"],
|
|
.setting-group select,
|
|
.setting-group textarea {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.setting-group input[type="range"] {
|
|
width: 80%;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#temperatureValue {
|
|
display: inline-block;
|
|
width: 15%;
|
|
text-align: right;
|
|
}
|
|
|
|
.crop-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.9);
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
touch-action: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.crop-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
height: calc(100% - 80px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.crop-area {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Cropper.js custom styles */
|
|
.cropper-container {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
max-width: none !important;
|
|
max-height: none !important;
|
|
}
|
|
|
|
.cropper-wrap-box {
|
|
background-color: rgba(0,0,0,0.8);
|
|
}
|
|
|
|
.cropper-view-box,
|
|
.cropper-face {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.cropper-point {
|
|
width: 20px;
|
|
height: 20px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.cropper-point.point-se,
|
|
.cropper-point.point-sw,
|
|
.cropper-point.point-ne,
|
|
.cropper-point.point-nw {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.cropper-line,
|
|
.cropper-point {
|
|
background-color: #2196F3;
|
|
}
|
|
|
|
.crop-container.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.crop-actions {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 15px;
|
|
z-index: 1001;
|
|
background: rgba(0,0,0,0.8);
|
|
gap: 10px;
|
|
}
|
|
|
|
.crop-actions .action-button {
|
|
flex: 1;
|
|
max-width: 200px;
|
|
margin: 0 5px;
|
|
font-size: 16px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.crop-actions .action-button.confirm {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
.crop-actions .action-button.confirm:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 12px 24px;
|
|
font-size: 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: #2196F3;
|
|
color: white;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.action-button:hover {
|
|
background: #1976D2;
|
|
}
|
|
|
|
.claude-actions {
|
|
margin-top: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.claude-actions.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.claude-response {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px 8px 0 0;
|
|
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
|
|
z-index: 998;
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.claude-response.hidden {
|
|
transform: translateY(100%);
|
|
}
|
|
|
|
.response-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.response-header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.close-button {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: #666;
|
|
}
|
|
|
|
.response-content {
|
|
white-space: pre-wrap;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
.connection-panel {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
padding: 15px;
|
|
}
|
|
|
|
#ipInput {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.toggle-button {
|
|
top: 10px;
|
|
right: 10px;
|
|
}
|
|
|
|
.ai-settings {
|
|
top: 60px;
|
|
right: 10px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.crop-actions {
|
|
bottom: 10px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 10px 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.claude-response {
|
|
padding: 15px;
|
|
max-height: 60vh;
|
|
}
|
|
}
|