sg-mobile / css /style.css
khairul91's picture
Rename style.css to css/style.css
8c77628 verified
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.floating {
animation: float 3s ease-in-out infinite;
}
.chat-container {
height: 400px;
overflow-y: auto;
}
.share-btn {
display: none;
}
/* Smooth transitions */
#mobile-menu {
transition: all 0.3s ease;
}
/* ======================================= */
/* ๐Ÿ“Œ sistem menu humburger Prevent body scroll when menu is open on mobile */
/* ======================================= */
body.menu-open {
overflow: hidden;
}
/* Responsive adjustments */
@media (max-width: 767px) {
#mobile-menu {
position: fixed;
top: 70px; /* Adjust based on navbar height */
left: 0;
right: 0;
background: white;
max-height: calc(100vh - 70px);
overflow-y: auto;
border-top: 1px solid #e5e7eb;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
#mobile-menu .container {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
#mobile-menu.hidden {
transform: translateY(-100%);
opacity: 0;
pointer-events: none;
}
#mobile-menu:not(.hidden) {
transform: translateY(0);
opacity: 1;
}
}
/* Animasi untuk card hover */
.service-card {
transform: translateY(0);
transition: all 0.3s ease;
}
.service-card:hover {
transform: translateY(-8px);
}
/* Active filter button style */
.filter-btn.active {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Smooth filter animation */
.service-grid {
transition: all 0.4s ease;
}
/* Hide elements with opacity for filter effect */
.service-card.hidden {
opacity: 0;
transform: scale(0.9);
height: 0;
margin: 0;
padding: 0;
overflow: hidden;
border: 0;
}
/* ======================================= */
/* ๐Ÿ“Œ Sistem tema malam Theme Variables */
/* ======================================= */
/* CSS: Dark Theme & Animations (PWA)*/
:root {
--primary-color: #3b82f6;
--bg-color: #ffffff;
--text-color: #1f2937;
--card-bg: #f9fafb;
--border-color: #e5e7eb;
}
.dark {
--primary-color: #60a5fa;
--bg-color: #111827;
--text-color: #f9fafb;
--card-bg: #1f2937;
--border-color: #374151;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
transition: all 0.3s ease;
}
.card {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 1rem;
}
/* PWA Install Prompt */
.pwa-install-prompt {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--card-bg);
border: 1px solid var(--border-color);
padding: 1rem;
border-radius: 0.75rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
z-index: 1000;
animation: slideUp 0.5s ease;
}
@keyframes slideUp {
from { transform: translateY(100px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
/* ====================================== */
/* ๐ŸŽ€ bisnes kad */
/* ====================================== */
.actions {
display: flex;
gap: 10px;
justify-content: center;
margin-top: 20px;
}
.share {
background: #ce1126;
color: white;
padding: 10px 20px;
border-radius: 25px;
cursor: pointer;
border: none;
font-weight: bold;
transition: 0.3s;
}
.pdf {
background: #d4af37;
color: white;
padding: 10px 20px;
border-radius: 25px;
cursor: pointer;
border: none;
font-weight: bold;
transition: 0.3s;
}
.share:hover, .pdf:hover {
transform: scale(1.05);
opacity: 0.9;
}