UNPKG

canoejs

Version:

A lightweight, widget-based UI framework

339 lines (283 loc) 6.11 kB
/* CanoeJS Landing Page Styles */ /* Base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; } /* Typography */ h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; margin-bottom: 0.5rem; } h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; } p { margin-bottom: 1rem; color: #666; } /* Buttons */ .btn { display: inline-block; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.3s ease; text-align: center; } .btn-primary { background: linear-gradient(45deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } .btn-secondary { background: #6c757d; color: white; } .btn-success { background: #28a745; color: white; } .btn-danger { background: #dc3545; color: white; } .btn-warning { background: #ffc107; color: #212529; } .btn-info { background: #17a2b8; color: white; } /* Cards */ .card { background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); padding: 2rem; margin: 1rem 0; transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } /* Badges */ .badge { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 500; border-radius: 20px; margin: 0.25rem; } .badge-primary { background: #007bff; color: white; } .badge-secondary { background: #6c757d; color: white; } .badge-success { background: #28a745; color: white; } .badge-danger { background: #dc3545; color: white; } .badge-warning { background: #ffc107; color: #212529; } .badge-info { background: #17a2b8; color: white; } .badge-light { background: #f8f9fa; color: #212529; } .badge-dark { background: #343a40; color: white; } /* Layout */ .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } .row { display: flex; flex-wrap: wrap; gap: 1rem; } .col { display: flex; flex-direction: column; } /* Alerts */ .alert { padding: 1rem; border-radius: 8px; margin: 1rem 0; border-left: 4px solid; } .alert-info { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; } .alert-success { background: #d4edda; border-color: #28a745; color: #155724; } .alert-warning { background: #fff3cd; border-color: #ffc107; color: #856404; } .alert-danger { background: #f8d7da; border-color: #dc3545; color: #721c24; } /* Code blocks */ .code-block { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 1rem; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 0.9rem; overflow-x: auto; } .code-block .keyword { color: #007bff; } .code-block .string { color: #28a745; } .code-block .comment { color: #6c757d; font-style: italic; } /* Links */ a { color: #007bff; text-decoration: none; transition: color 0.3s ease; } a:hover { color: #0056b3; text-decoration: underline; } /* Responsive design */ @media (max-width: 768px) { .container { padding: 0 0.5rem; } .card { padding: 1rem; } h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.5rem; } .row { flex-direction: column; } .btn { width: 100%; margin-bottom: 0.5rem; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.6s ease-out; } /* Performance optimizations */ .card, .btn, .badge { will-change: transform; } /* Focus styles for accessibility */ .btn:focus, a:focus { outline: 2px solid #007bff; outline-offset: 2px; } /* Loading spinner */ .spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #f3f3f3; border-top: 2px solid #007bff; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Utility classes */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; } .p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; } .d-none { display: none; } .d-block { display: block; } .d-flex { display: flex; } .d-inline { display: inline; } .d-inline-block { display: inline-block; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; } .align-center { align-items: center; } .align-start { align-items: flex-start; } .align-end { align-items: flex-end; }