CodeIDE / src /App.css
FrederickSundeep's picture
commit initial 09-12-2025 009
ac3107a
raw
history blame
8.1 kB
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
* {
box-sizing: border-box;
}
.ide-root {
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
overflow: hidden;
}
/* Themes */
.ide-dark {
background: #1e1e1e;
color: #ddd;
}
.ide-light {
background: #f5f5f5;
color: #222;
}
/* Menubar */
.ide-menubar {
height: 32px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
background: #2d2d2d;
color: #ddd;
font-size: 13px;
}
.ide-menubar-left,
.ide-menubar-right {
display: flex;
align-items: center;
gap: 8px;
}
.ide-logo {
font-weight: 600;
margin-right: 12px;
}
.ide-menu-item {
border: none;
background: transparent;
color: inherit;
padding: 2px 6px;
border-radius: 3px;
cursor: pointer;
}
.ide-menu-item:hover {
background: rgba(255, 255, 255, 0.08);
}
/* Menu dropdowns */
.ide-menu-wrapper {
position: relative;
}
.ide-menu-dropdown {
position: absolute;
top: 100%;
left: 0;
background: #252526;
border: 1px solid #3c3c3c;
min-width: 160px;
z-index: 50;
display: flex;
flex-direction: column;
}
.ide-menu-dropdown button {
border: none;
background: transparent;
color: #ddd;
text-align: left;
padding: 4px 10px;
font-size: 13px;
cursor: pointer;
}
.ide-menu-dropdown button:hover {
background: rgba(255, 255, 255, 0.08);
}
/* Body: sidebar + main */
.ide-body {
flex: 1;
display: flex;
min-height: 0;
}
/* Sidebar */
.ide-sidebar {
width: 210px;
background: #252526;
color: #ccc;
display: flex;
flex-direction: column;
border-right: 1px solid #333;
}
.ide-sidebar-header {
height: 32px;
padding: 4px 8px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid #333;
}
.ide-icon-button {
border: none;
background: transparent;
color: #ccc;
cursor: pointer;
font-size: 16px;
line-height: 1;
}
.ide-icon-button:hover {
color: #fff;
}
.ide-file-list {
flex: 1;
overflow-y: auto;
padding: 4px 0;
}
.ide-file-item {
display: flex;
align-items: center;
padding: 3px 8px;
gap: 6px;
font-size: 13px;
cursor: pointer;
}
.ide-file-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.ide-file-item-active {
background: #37373d;
}
.ide-file-icon {
width: 18px;
}
.ide-file-name {
flex: 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
/* Main area */
.ide-main {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
/* Tabs */
.ide-tabs {
height: 34px;
display: flex;
align-items: center;
justify-content: space-between;
background: #252526;
border-bottom: 1px solid #333;
}
.ide-tab-list {
display: flex;
height: 100%;
overflow-x: auto;
}
.ide-tab {
display: flex;
align-items: center;
padding: 0 10px;
font-size: 13px;
border-right: 1px solid #333;
cursor: pointer;
color: #ccc;
}
.ide-tab-active {
background: #1e1e1e;
color: #fff;
}
.ide-tab-close {
border: none;
background: transparent;
color: inherit;
margin-left: 6px;
cursor: pointer;
}
.ide-tab-close:hover {
color: #f66;
}
.ide-tab-actions {
display: flex;
align-items: center;
gap: 8px;
padding-right: 8px;
}
.ide-select {
background: #1e1e1e;
color: #eee;
border: 1px solid #555;
border-radius: 3px;
font-size: 12px;
padding: 2px 4px;
}
.ide-button {
border: 1px solid #555;
background: #0e639c;
color: #fff;
padding: 3px 10px;
border-radius: 3px;
font-size: 12px;
cursor: pointer;
}
.ide-button:hover {
background: #1177bb;
}
/* Editor */
.ide-editor-wrapper {
flex: 1;
min-height: 0;
}
/* Bottom panel */
.ide-bottom-panel {
height: 180px;
display: flex;
border-top: 1px solid #333;
background: #1e1e1e;
}
.ide-output-panel,
.ide-agent-panel {
flex: 1;
display: flex;
flex-direction: column;
border-right: 1px solid #333;
}
.ide-agent-panel {
border-right: none;
}
.ide-panel-header {
height: 24px;
padding: 2px 8px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom: 1px solid #333;
color: #ccc;
}
.ide-output-content {
flex: 1;
margin: 0;
padding: 6px 8px;
font-size: 12px;
background: #1e1e1e;
color: #dcdcdc;
overflow: auto;
white-space: pre-wrap;
}
.ide-agent-textarea {
flex: 1;
resize: none;
border: none;
outline: none;
padding: 6px 8px;
background: #1e1e1e;
color: #ddd;
font-size: 12px;
font-family: inherit;
}
/* Explanation section inside AI panel */
.ide-explanation {
border-top: 1px solid #333;
max-height: 50%;
display: flex;
flex-direction: column;
}
/* Status bar */
.ide-statusbar {
height: 22px;
background: #007acc;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 16px;
padding: 0 10px;
}
/* Global layout */
.ide-root {
display: flex;
flex-direction: column;
height: 100vh;
font-family: "Consolas", monospace;
}
/* Dark & light themes */
.ide-dark { background: #1e1e1e; color: #eee; }
.ide-light { background: #fafafa; color: #111; }
/* Menubar */
.ide-menubar {
display: flex;
justify-content: space-between;
padding: 4px 10px;
background: #252526;
color: #eee;
font-size: 14px;
border-bottom: 1px solid #444;
}
.ide-menubar button {
margin-right: 6px;
background: transparent;
border: none;
color: inherit;
cursor: pointer;
}
.ide-logo {
font-weight: bold;
margin-right: 12px;
}
/* Body */
.ide-body {
flex: 1;
display: flex;
overflow: hidden;
}
/* Sidebar */
.ide-sidebar {
width: 210px;
background: #252526;
padding: 5px;
border-right: 1px solid #444;
overflow-y: auto;
font-size: 14px;
}
.tree-item {
padding: 4px 6px;
cursor: pointer;
user-select: none;
}
.tree-item:hover {
background: #3a3d41;
}
/* Editor */
.ide-main {
flex: 1;
display: flex;
flex-direction: column;
}
/* Bottom panels */
.ide-panels {
background: #1e1e1e;
border-top: 1px solid #444;
padding: 6px;
font-size: 13px;
height: 28%;
overflow-y: auto;
}
.ide-output {
background: #000;
color: #0f0;
padding: 6px;
min-height: 60px;
max-height: 120px;
overflow-y: auto;
border-radius: 4px;
}
.ide-input-box {
width: 100%;
margin-top: 4px;
padding: 4px;
}
/* Problems panel */
.ide-problems-panel {
margin-top: 6px;
padding: 4px;
background: #3c0000;
color: #fff;
border-left: 3px solid red;
font-size: 12px;
}
/* AI popup */
.ai-popup {
position: absolute;
bottom: 35%;
right: 5px;
width: 230px;
background: #333;
border: 1px solid #444;
border-radius: 6px;
padding: 4px;
animation: fadeIn 0.25s ease-in-out;
}
.ai-suggest {
padding: 4px;
cursor: pointer;
}
.ai-suggest:hover {
background: #444;
}
/* Search popup */
.search-dialog {
position: absolute;
right: 10px;
top: 50px;
background: #333;
padding: 10px;
border: 1px solid #444;
border-radius: 5px;
}
.search-dialog input {
width: 200px;
}
/* Context menu */
.ide-context-menu {
position: absolute;
background: #333;
color: #eee;
border: 1px solid #555;
border-radius: 5px;
padding: 4px;
}
.ide-context-menu div {
padding: 4px 8px;
cursor: pointer;
}
.ide-context-menu div:hover {
background: #555;
}
/* Animation */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}