ROSS09's picture
🐳 13/03 - 06:20 - The rest of the buttons look like problems. Contest leaderboard: Discuss. Everything is missing. Nothing is clickable on it. Just showing index.html file. So I just want you. 2B sc
9d822c3 verified
Raw History Blame Contribute Delete
4.59 kB
/* Custom Styles for CodeJudge Pro */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1f2937;
}
::-webkit-scrollbar-thumb {
background: #4b5563;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #6b7280;
}
/* Monaco Editor Customization */
.monaco-editor {
border-radius: 0.5rem;
}
.monaco-editor .margin {
background-color: #111827 !important;
}
/* Code Highlighting */
code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.875rem;
}
/* Progress Animations */
.progress-animation {
width: 30%;
animation: progress 1.5s ease-in-out infinite alternate;
}
.progress-animation-wide {
width: 60%;
animation: progress-wide 2s ease-in-out infinite alternate;
}
@keyframes progress {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(300%);
}
}
@keyframes progress-wide {
0% {
transform: translateX(-60%);
}
100% {
transform: translateX(160%);
}
}
/* Tab Transitions */
.tab-content {
transition: opacity 0.2s ease;
}
/* Status Colors */
.status-accepted {
background-color: rgba(34, 197, 94, 0.1);
border-color: rgba(34, 197, 94, 0.3);
}
.status-wrong-answer {
background-color: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.3);
}
.status-compilation-error {
background-color: rgba(245, 158, 11, 0.1);
border-color: rgba(245, 158, 11, 0.3);
}
.status-runtime-error {
background-color: rgba(249, 115, 22, 0.1);
border-color: rgba(249, 115, 22, 0.3);
}
.status-time-limit {
background-color: rgba(168, 85, 247, 0.1);
border-color: rgba(168, 85, 247, 0.3);
}
.status-memory-limit {
background-color: rgba(139, 92, 246, 0.1);
border-color: rgba(139, 92, 246, 0.3);
}
/* Test Case Result Cards */
.test-case-card {
transition: all 0.2s ease;
}
.test-case-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
/* Custom Checkbox */
.custom-checkbox {
appearance: none;
width: 18px;
height: 18px;
border: 2px solid #4b5563;
border-radius: 4px;
background-color: #111827;
cursor: pointer;
position: relative;
}
.custom-checkbox:checked {
background-color: #3b82f6;
border-color: #3b82f6;
}
.custom-checkbox:checked::after {
content: '✓';
position: absolute;
color: white;
font-size: 12px;
font-weight: bold;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Editor Theme Variables */
:root {
--editor-bg: #111827;
--editor-border: #374151;
--editor-text: #e5e7eb;
}
.light-theme {
--editor-bg: #f9fafb;
--editor-border: #d1d5db;
--editor-text: #111827;
}
/* Animation for new submissions */
@keyframes pulse-submission {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.pulse-submission {
animation: pulse-submission 1.5s ease-in-out infinite;
}
/* Result Badge Animation */
@keyframes badge-pop {
0% {
transform: scale(0.8);
opacity: 0;
}
70% {
transform: scale(1.1);
}
100% {
transform: scale(1);
opacity: 1;
}
}
.badge-pop {
animation: badge-pop 0.3s ease-out;
}
/* Modal Styles */
.modal-backdrop {
backdrop-filter: blur(4px);
}
/* Submission Item Hover */
.submission-item {
transition: all 0.2s ease;
}
.submission-item:hover {
transform: translateX(4px);
}
/* Custom Test Case Styles */
.custom-test-case {
border-left: 4px solid #3b82f6;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
.editor-container {
height: 400px;
}
.grid-cols-1.md\\:grid-cols-2 {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.editor-container {
height: 350px;
}
.flex-col-on-mobile {
flex-direction: column;
}
.text-right-on-mobile {
text-align: right;
}
}
/* Smooth Transitions */
.tab-content, .output-tab, .modal-content {
transition: all 0.3s ease;
}
/* Code Editor Improvements */
.monaco-editor .scroll-decoration {
box-shadow: none !important;
}
/* Loading Animation */
@keyframes fade-in-out {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
.fade-in-out {
animation: fade-in-out 1.5s ease-in-out infinite;
}