PozoApp/src/AdminPanel/Blog/Blog.scss

264 lines
5.8 KiB
SCSS
Raw Normal View History

.pozo-blogs-page {
padding: 20px 0;
.pozo-blog-page-title {
margin-top: 5rem;
text-align: left;
font-size: 1.8rem;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 10px;
max-width: 100%;
padding: 0 108px;
}
.pozo-blog-page-subtitle {
text-align: left;
font-size: 1rem;
font-weight: 400;
color: #666;
margin-bottom: 20px;
max-width: 100%;
padding: 0 108px;
line-height: 1.5;
}
}
.pozo-blogs-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 24px;
padding: 24px;
max-width: 1200px;
margin: 0 auto;
}
.pozo-blog-card {
background: #ffffff;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
cursor: pointer;
width: 100%;
&:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
.pozo-blog-card-image img {
transform: scale(1.02);
}
}
.pozo-blog-card-image {
position: relative;
height: 220px;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.pozo-blog-card-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(148, 86, 210, 0.1) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
&:hover .pozo-blog-card-overlay {
opacity: 1;
}
}
.pozo-blog-card-content {
padding: 24px;
.pozo-blog-tags-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 6px;
font-size: 12px;
font-family: "Poppins";
font-weight: 400;
color: #525252;
}
.pozo-blog-card-excerpt {
color: #000000;
line-height: 1.6;
margin-bottom: 20px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
height: 80px;
}
.pozo-blog-card-meta {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 16px;
border-top: 1px solid #f0f0f0;
.pozo-blog-date {
font-size: 12px;
color: #505050;
font-family: "Poppins";
font-weight: 400;
}
.pozo-blog-author-info {
display: flex;
flex-direction: column;
gap: 4px;
.pozo-blog-author {
font-weight: 600;
color: #1a1a1a;
font-size: 0.9rem;
}
.pozo-blog-date {
color: #888;
font-size: 0.2rem !important;
}
}
.pozo-blog-read-time {
background: #f8f9fa;
color: #666;
padding: 6px 12px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 500;
}
}
.pozo-blog-publish-time {
display: flex;
justify-content: flex-end;
padding-top: 8px;
border-top: 1px solid #f0f0f0;
margin-top: 8px;
.pozo-blog-read-time {
background: #4a90e2;
color: #ffffff;
padding: 6px 12px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 500;
display: none;
}
}
}
}
// Responsive design
@media (max-width: 768px) {
.pozo-blogs-page {
padding: 10px 0;
.pozo-blog-page-title {
font-size: 2rem;
margin-bottom: 10px;
padding: 0 18px !important;
}
.pozo-blog-page-subtitle {
font-size: 0.9rem;
margin-bottom: 20px;
padding: 0 18px !important;
}
}
.pozo-blogs-grid {
grid-template-columns: 1fr;
gap: 16px;
padding: 16px;
}
.pozo-blog-card .pozo-blog-card-content {
padding: 16px;
}
}
.pozo-blog-master-card {
width: 100%;
.Navbar-Master,
.appNameLeft {
color: #000 !important;
}
.navbarOption {
> p:nth-child(2) {
display: none;
}
}
}
.pozo-blog-empty-state {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
height: 300px;
text-align: center;
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
border-radius: 16px;
border: 2px dashed #e0e0e0;
margin: 20px 0;
p {
color: #666;
font-size: 1.1rem;
font-weight: 500;
margin: 0;
line-height: 1.6;
}
}
.pozo-no-blogs-message {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
text-align: center;
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
border-radius: 16px;
border: 2px dashed #e0e0e0;
margin: 20px 0;
.pozo-no-blogs-icon {
font-size: 4rem;
opacity: 0.7;
}
h3 {
color: #1a1a1a;
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 12px;
}
p {
color: #c40000;
font-size: 1rem;
line-height: 1.6;
margin: 0;
}
}