diff --git a/index.html b/index.html index fcbc59e..f8adac2 100644 --- a/index.html +++ b/index.html @@ -132,7 +132,10 @@ border-radius: 8px; padding: 30px; z-index: 1000; - max-width: 500px; + max-width: 90vw; + width: 800px; + max-height: 80vh; + overflow-y: auto; display: none; } @@ -140,16 +143,26 @@ margin-bottom: 20px; color: #fff; font-size: 18px; + text-align: center; + } + + .help-content { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 30px; + margin-top: 20px; } #help-popup .help-section { - margin-bottom: 20px; + margin-bottom: 0; } #help-popup .help-section h4 { color: #ccc; margin-bottom: 10px; font-size: 14px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + padding-bottom: 5px; } #help-popup .help-section p { @@ -383,6 +396,125 @@ z-index: 1001; display: none; } + + /* Responsive Design */ + @media (max-width: 768px) { + #topbar { + flex-wrap: wrap; + height: auto; + padding: 10px; + } + + #topbar .title { + margin-right: 10px; + margin-bottom: 5px; + } + + #topbar .controls { + flex-wrap: wrap; + gap: 5px; + margin-left: 0; + } + + #topbar button { + padding: 4px 8px; + font-size: 11px; + } + + #topbar label { + font-size: 11px !important; + margin-right: 5px !important; + } + + #topbar select { + padding: 2px !important; + font-size: 11px !important; + } + + #help-popup { + width: 95vw; + max-width: 95vw; + max-height: 90vh; + padding: 20px; + } + + .help-content { + grid-template-columns: 1fr; + gap: 20px; + } + + #editor-panel { + height: 120px; + } + + #editor { + font-size: 14px; + padding: 10px; + } + + #shader-library { + width: 100%; + right: -100%; + } + + #shader-library-trigger { + width: 30px; + } + } + + @media (max-width: 480px) { + #topbar { + padding: 5px; + } + + #topbar .title { + font-size: 12px; + } + + #topbar button { + padding: 3px 6px; + font-size: 10px; + } + + #topbar label { + font-size: 10px !important; + } + + #topbar select { + font-size: 10px !important; + } + + #help-popup { + padding: 15px; + } + + #help-popup h3 { + font-size: 16px; + } + + #help-popup .help-section h4 { + font-size: 13px; + } + + #help-popup .help-section p { + font-size: 11px; + } + + #editor-panel { + height: 100px; + } + + #editor { + font-size: 12px; + padding: 8px; + } + } + + @media (min-width: 1200px) { + .help-content { + grid-template-columns: repeat(3, 1fr); + } + }
@@ -457,50 +589,52 @@Ctrl+Enter - Execute shader code
-F11 - Toggle fullscreen
-H - Hide/show UI
-R - Generate random shader
-S - Share current shader (copy URL)
-? - Show this help
-Hover over the right edge of the screen to access the shader library
-Save shaders with custom names and search through them
-Use edit to rename, del to delete
-x, y - Pixel coordinates
-t - Time (enables animation)
-i - Pixel index
-mouseX, mouseY - Mouse position (0.0 to 1.0)
-^ & | - XOR, AND, OR
-<< >> - Bit shift left/right
-+ - * / % - Math operations
-Classic - Original colorful mode
-Grayscale - Black and white
-Red/Green/Blue - Single color channels
-HSV - Hue-based coloring
-Rainbow - Spectrum coloring
-Export PNG - Save current frame as image
+Ctrl+Enter - Execute shader code
+F11 - Toggle fullscreen
+H - Hide/show UI
+R - Generate random shader
+S - Share current shader (copy URL)
+? - Show this help
+x, y - Pixel coordinates
+t - Time (enables animation)
+i - Pixel index
+mouseX, mouseY - Mouse position (0.0 to 1.0)
+^ & | - XOR, AND, OR
+<< >> - Bit shift left/right
++ - * / % - Math operations
+Hover over the right edge of the screen to access the shader library
+Save shaders with custom names and search through them
+Use edit to rename, del to delete
+Classic - Original colorful mode
+Grayscale - Black and white
+Red/Green/Blue - Single color channels
+HSV - Hue-based coloring
+Rainbow - Spectrum coloring
+Export PNG - Save current frame as image
+