UNPKG

bismillahcss

Version:

The next-gen utility-first CSS framework for modern, futuristic web development.

416 lines (361 loc) 10.4 kB
/** * BismillahCSS Modern UI Extension * Modern UI components and utilities with bismillah- prefix */ /* Modern Card Styles */ .bismillah-card-glass { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 1rem; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); } .bismillah-card-modern { background: white; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; } .bismillah-card-modern:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } /* Gradient Backgrounds */ .bismillah-gradient-blue { background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%); } .bismillah-gradient-green { background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%); } .bismillah-gradient-sunset { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); } .bismillah-gradient-dark { background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%); } /* Modern Button Styles */ .bismillah-btn-modern { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 500; letter-spacing: 0.025em; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; } .bismillah-btn-modern::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.2); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; z-index: -1; } .bismillah-btn-modern:hover::after { transform: scaleX(1); transform-origin: left; } .bismillah-btn-outline-modern { padding: 0.75rem 1.5rem; border-radius: 0.5rem; background: transparent; font-weight: 500; letter-spacing: 0.025em; transition: all 0.3s ease; position: relative; border: 1px solid currentColor; } .bismillah-btn-outline-modern:hover { background: rgba(0, 0, 0, 0.05); } /* Glassmorphism Elements */ .bismillah-glass { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); } .bismillah-glass-dark { background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.05); color: white; } /* Modern Form Elements */ .bismillah-input-modern { padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02); } .bismillah-input-modern:focus { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); outline: none; } .bismillah-input-modern::placeholder { color: rgba(0, 0, 0, 0.3); } .bismillah-select-modern { padding: 0.75rem 2.5rem 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; } /* Modern Badges */ .bismillah-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; line-height: 1; white-space: nowrap; } .bismillah-badge-soft-blue { background-color: rgba(59, 130, 246, 0.1); color: rgba(59, 130, 246, 1); } .bismillah-badge-soft-green { background-color: rgba(16, 185, 129, 0.1); color: rgba(16, 185, 129, 1); } .bismillah-badge-soft-red { background-color: rgba(239, 68, 68, 0.1); color: rgba(239, 68, 68, 1); } .bismillah-badge-soft-yellow { background-color: rgba(245, 158, 11, 0.1); color: rgba(245, 158, 11, 1); } /* Modern Dividers */ .bismillah-divider-gradient { height: 1px; background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent); border: none; margin: 1.5rem 0; } .bismillah-divider-dots { height: 1px; background-image: linear-gradient(to right, currentColor 33%, rgba(255, 255, 255, 0) 0%); background-position: bottom; background-size: 8px 1px; background-repeat: repeat-x; border: none; margin: 1.5rem 0; } /* Modern Scrollbar */ .bismillah-scrollbar-thin { scrollbar-width: thin; } .bismillah-scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; } .bismillah-scrollbar-thin::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 3px; } .bismillah-scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 3px; } .bismillah-scrollbar-thin::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); } /* Modern Tooltip */ .bismillah-tooltip { position: relative; display: inline-block; } .bismillah-tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-5px); padding: 0.5rem 0.75rem; border-radius: 0.375rem; background: rgba(0, 0, 0, 0.8); color: white; font-size: 0.75rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.2s ease; pointer-events: none; z-index: 10; } .bismillah-tooltip:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-10px); } /* Hero Section */ .bismillah-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, #23272A, #5865F2); color: #fff; } .bismillah-hero-title { font-size: clamp(2rem, 7vw, 4rem); font-weight: 800; margin-bottom: 1rem; background: linear-gradient(90deg, #EB459E, #5865F2, #57F287); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 20px rgba(255,255,255,0.2); } .bismillah-hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: 2rem; max-width: 760px; color: rgba(255,255,255,0.85); } .bismillah-hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; } .bismillah-section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; } .bismillah-section-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; } .bismillah-section-divider { text-align: center; padding: 2rem 0; margin: 2rem 0; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.4rem; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(88,101,242,0.3), rgba(255,255,255,0.05)); border-radius: 12px; } .bismillah-section-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.25rem; } /* Modern Skeleton Loading */ .bismillah-skeleton { background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.12) 37%, rgba(0, 0, 0, 0.06) 63%); background-size: 400% 100%; animation: bismillah-skeleton-loading 1.4s ease infinite; } @keyframes bismillah-skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } } /* Modern Switch */ .bismillah-switch { position: relative; display: inline-block; width: 3rem; height: 1.5rem; } .bismillah-switch input { opacity: 0; width: 0; height: 0; } .bismillah-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .bismillah-switch-slider:before { position: absolute; content: ""; height: 1.1rem; width: 1.1rem; left: 0.2rem; bottom: 0.2rem; background-color: white; transition: .4s; border-radius: 50%; } .bismillah-switch input:checked + .bismillah-switch-slider { background-color: #6366f1; } .bismillah-switch input:checked + .bismillah-switch-slider:before { transform: translateX(1.5rem); } /* Modern Avatar Group */ .bismillah-avatar-group { display: flex; } .bismillah-avatar-group > * { margin-left: -0.75rem; border: 2px solid white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .bismillah-avatar-group > *:first-child { margin-left: 0; } /* Modern Notification Badge */ .bismillah-notification-badge { position: relative; display: inline-flex; } .bismillah-notification-badge::after { content: attr(data-count); position: absolute; top: -0.5rem; right: -0.5rem; display: flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.25rem; border-radius: 9999px; background-color: #ef4444; color: white; font-size: 0.75rem; font-weight: 500; }