CodeIDE / src /App.css
FrederickSundeep's picture
commit initial 09-12-2025 004
9e370f5
raw
history blame
5.54 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;
}