socialsphere / style.css
walolorj's picture
make it a social media app
8dbb3cf verified
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #3b82f6;
--secondary: #10b981;
--dark: #1e293b;
--light: #f8fafc;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
background-color: #f1f5f9;
color: #1e293b;
}
.post-card {
transition: all 0.3s ease;
border-bottom: 1px solid #e2e8f0;
}
.post-card:last-child {
border-bottom: none;
}
.post-card:hover {
background-color: #f8fafc;
}
.interaction-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 20px;
cursor: pointer;
transition: all 0.2s ease;
color: #64748b;
}
.interaction-btn:hover {
background-color: #e2e8f0;
color: #3b82f6;
}
.interaction-btn.active {
color: #ef4444;
}
.interaction-btn.active:hover {
background-color: #fee2e2;
}
/* Stories */
.story-ring {
background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.post-content {
line-height: 1.6;
}
/* Post form styling */
#post-form textarea {
resize: none;
}
/* Dropdown menu */
.group:hover .group-hover\:block {
display: block;
}
.user-avatar {
transition: transform 0.2s ease;
}
.user-avatar:hover {
transform: scale(1.05);
}
.trend-tag {
transition: all 0.2s ease;
}
.trend-tag:hover {
transform: scale(1.05);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Animation for new posts */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.5s ease forwards;
}