Newer
Older
express-blog / public / css / blog_index.css
@Jason Jason on 27 Jun 2 KB modified: content
/* Blog Index Styles */
.post {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.post:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-left-color: #2c3e50;
  transform: translateY(-2px);
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-link {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-link:hover {
  color: #1a73e8;
  text-decoration: underline;
}

.post-date {
  display: inline-block;
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.post-tags {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  font-size: 0.8rem;
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.6rem;
  border-radius: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #bbdefb;
}

.post-tag:hover {
  background-color: #1976d2;
  color: #ffffff;
  transform: scale(1.05);
}

.post-excerpt {
  margin-bottom: 1.5rem;
  color: #495057;
  line-height: 1.6;
}

.post-excerpt p {
  margin-bottom: 1rem;
}

.post-excerpt p:last-child {
  margin-bottom: 0;
}

.post-readmore {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.post-readmore a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.post-readmore a:hover {
  color: #2c3e50;
  text-decoration: underline;
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .post {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .post-title {
    font-size: 1.3rem;
  }
  
  .post-tags {
    margin-top: 0.5rem;
  }
  
  .post-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}