gemini-p5-editor / src /app /globals.css
kcimc's picture
add route to hide key
daf5695
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: #1e1e1e;
--foreground: #ffffff;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
color: var(--foreground);
background: var(--background);
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
/* Add CodeMirror styles */
.CodeMirror {
height: calc(100vh - 100px) !important;
font-family: var(--font-geist-mono);
}
/* Add styles for the iframe */
#canvas-column iframe {
border: none;
background: white;
}
/* Remove the fixed height constraint */
.cm-editor {
height: 100vh !important;
}
/* Add these styles to center the p5.js sketch */
.sketch-container {
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
background-color: var(--background);
}
iframe {
border: none;
background-color: white;
}
/* Bottom controls styling */
.bottom-controls {
backdrop-filter: blur(8px);
background-color: rgba(30, 30, 30, 0.95);
border: 1px solid rgba(75, 85, 99, 0.4);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
/* Input and select styling */
.control-input {
background-color: rgba(31, 41, 55, 0.7) !important;
border: 1px solid rgba(75, 85, 99, 0.4) !important;
transition: all 0.2s ease;
}
.control-input:hover {
border-color: rgba(147, 197, 253, 0.4) !important;
}
.control-input:focus {
border-color: rgb(59, 130, 246) !important;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
outline: none;
}
/* Button styling */
.control-button {
font-weight: 500;
transition: all 0.2s ease;
border: 1px solid transparent;
}
.control-button:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.control-button:active {
transform: translateY(0);
}
.control-button.active {
background-color: rgb(59, 130, 246) !important;
border-color: rgb(37, 99, 235) !important;
}
/* Remove checkbox and label styling since we're not using them anymore */