minasamy2025's picture
حسن بعمق وابداع
ef13d78 verified
Raw History Blame Contribute Delete
2.43 kB
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
transition: background-color 0.3s, color 0.3s;
}
pre, code {
font-family: 'Fira Code', monospace;
}
/* Dark mode transition */
.dark pre, .dark code {
background-color: #1a202c;
}
/* Mobile menu styles */
@media (max-width: 768px) {
nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #1e40af;
flex-direction: column;
padding: 1rem;
z-index: 1000;
}
nav a {
padding: 0.5rem 1rem;
display: block;
}
nav.flex {
display: flex;
}
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
.dark ::-webkit-scrollbar-track {
background: #2d3748;
}
.dark ::-webkit-scrollbar-thumb {
background: #4a5568;
}
.dark ::-webkit-scrollbar-thumb:hover {
background: #718096;
}
/* Animation for buttons */
button {
transition: all 0.2s ease-in-out;
}
/* Console output animations */
#output-console div {
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
/* Console scrollbar */
#output-console::-webkit-scrollbar {
width: 6px;
}
#output-console::-webkit-scrollbar-thumb {
background-color: rgba(255,255,255,0.2);
border-radius: 3px;
}
#output-console::-webkit-scrollbar-track {
background-color: transparent;
}
/* Tooltip styles */
[data-tooltip] {
position: relative;
cursor: pointer;
}
[data-tooltip]:hover::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
z-index: 10;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.editor-container {
flex-direction: column;
}
.sidebar {
width: 100%;
margin-bottom: 1rem;
}
}