File size: 2,048 Bytes
dd4c5da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Courier New', monospace;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
}
header {
background: #333;
color: #fff;
padding: 1rem;
text-align: center;
}
header h1 {
font-size: 1.8rem;
}
.container {
display: flex;
flex-direction: column;
padding: 1rem;
gap: 1rem;
max-width: 1200px;
margin: 0 auto;
}
.viewer-container {
position: relative;
width: 100%;
background: #000;
border-radius: 8px;
overflow: hidden;
min-height: 400px;
}
#ascii-canvas {
width: 100%;
height: 100%;
font-family: 'Courier New', monospace;
font-size: 8px;
line-height: 1;
letter-spacing: 0;
color: #fff;
white-space: pre;
}
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 1.2rem;
}
.controls-panel {
background: #fff;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.control-group {
margin-bottom: 1.5rem;
}
.control-group h3 {
margin-bottom: 0.8rem;
border-bottom: 1px solid #eee;
padding-bottom: 0.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
}
select, input[type="range"], button {
width: 100%;
padding: 0.5rem;
margin-bottom: 1rem;
border: 1px solid #ddd;
border-radius: 4px;
font-family: inherit;
}
button {
background: #333;
color: #fff;
border: none;
cursor: pointer;
transition: background 0.3s;
}
button:hover {
background: #555;
}
input[type="checkbox"] {
margin-right: 0.5rem;
}
footer {
text-align: center;
padding: 1rem;
background: #333;
color: #fff;
margin-top: 2rem;
}
@media (min-width: 768px) {
.container {
flex-direction: row;
}
.viewer-container {
flex: 2;
}
.controls-panel {
flex: 1;
min-width: 300px;
}
} |