Aicode / styles.css
cikimiki's picture
Upload 7 files
6987311 verified
Raw
History Blame Contribute Delete
6.51 kB
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #1e1e1e;
color: #ffffff;
height: 100vh;
overflow: hidden;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
/* Header Styles */
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.header h1 {
font-size: 1.5rem;
font-weight: 600;
color: white;
}
.header h1 i {
margin-right: 10px;
color: #ffd700;
}
.header-right {
display: flex;
gap: 10px;
}
.select-style {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 8px 12px;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
backdrop-filter: blur(10px);
}
.select-style:focus {
outline: none;
border-color: #ffd700;
}
.select-style option {
background: #2d2d2d;
color: white;
}
/* Toolbar Styles */
.toolbar {
background: #2d2d2d;
padding: 10px 20px;
display: flex;
gap: 20px;
align-items: center;
border-bottom: 1px solid #404040;
}
.toolbar-group {
display: flex;
gap: 5px;
align-items: center;
}
.btn {
background: #404040;
border: 1px solid #555;
color: white;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
display: flex;
align-items: center;
gap: 5px;
transition: all 0.2s ease;
}
.btn:hover {
background: #505050;
border-color: #666;
}
.btn:active {
transform: translateY(1px);
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: #667eea;
}
.btn-primary:hover {
background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
.btn-small {
padding: 4px 8px;
font-size: 12px;
}
/* Main Content */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Tabs */
.tabs-container {
background: #2d2d2d;
display: flex;
align-items: center;
border-bottom: 1px solid #404040;
}
.tabs {
display: flex;
overflow-x: auto;
scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
display: none;
}
.tab {
background: #404040;
border: 1px solid #555;
padding: 8px 15px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
min-width: 120px;
border-bottom: none;
transition: all 0.2s ease;
}
.tab.active {
background: #1e1e1e;
border-bottom: 2px solid #667eea;
}
.tab:hover {
background: #505050;
}
.tab-close {
width: 16px;
height: 16px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
transition: all 0.2s ease;
}
.tab-close:hover {
background: #ff4757;
color: white;
}
.add-tab {
background: transparent;
border: none;
color: #888;
padding: 8px;
cursor: pointer;
transition: color 0.2s ease;
}
.add-tab:hover {
color: #fff;
}
/* Editor Container */
.editor-container {
flex: 1;
display: flex;
background: #1e1e1e;
overflow: hidden;
}
.editor-wrapper {
flex: 1;
position: relative;
}
.CodeMirror {
height: 100% !important;
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
font-size: 14px;
line-height: 1.5;
}
.CodeMirror-gutters {
background: #252526 !important;
border-right: 1px solid #404040 !important;
}
.CodeMirror-linenumber {
color: #858585 !important;
}
.CodeMirror-cursor {
border-left: 2px solid #ffffff !important;
}
.CodeMirror-selected {
background: rgba(102, 126, 234, 0.3) !important;
}
/* Output Panel */
.output-panel {
background: #1e1e1e;
border-top: 1px solid #404040;
height: 200px;
display: flex;
flex-direction: column;
}
.output-header {
background: #2d2d2d;
padding: 8px 15px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #404040;
}
.output-header h3 {
font-size: 14px;
color: #fff;
display: flex;
align-items: center;
gap: 8px;
}
.output-content {
flex: 1;
padding: 10px;
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
font-size: 13px;
overflow-y: auto;
background: #0f0f0f;
}
.output-line {
margin-bottom: 5px;
color: #e0e0e0;
}
.output-line.error {
color: #ff6b6b;
}
.output-line.success {
color: #51cf66;
}
.output-line.info {
color: #74c0fc;
}
/* Status Bar */
.status-bar {
background: #007acc;
padding: 5px 15px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: white;
}
.status-left,
.status-right {
display: flex;
gap: 15px;
}
/* Responsive Design */
@media (max-width: 768px) {
.header {
flex-direction: column;
gap: 10px;
padding: 10px;
}
.toolbar {
flex-wrap: wrap;
gap: 10px;
padding: 10px;
}
.output-panel {
height: 150px;
}
.btn {
padding: 6px 10px;
font-size: 12px;
}
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
background: #555;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #666;
}
/* Animation for buttons */
@keyframes buttonPress {
0% { transform: scale(1); }
50% { transform: scale(0.95); }
100% { transform: scale(1); }
}
.btn:active {
animation: buttonPress 0.1s ease;
}
/* Loading animation */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading {
animation: spin 1s linear infinite;
}
/* Code completion popup */
.CodeMirror-hints {
background: #2d2d2d !important;
border: 1px solid #404040 !important;
border-radius: 4px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
.CodeMirror-hint {
color: #e0e0e0 !important;
padding: 4px 8px !important;
}
.CodeMirror-hint-active {
background: #404040 !important;
color: #ffffff !important;
}