sokuree_web_front/src/pages/NewsDetail.css

165 lines
2.8 KiB
CSS

/* NewsDetail.css */
.news-detail-container {
padding-top: 100px;
padding-bottom: 80px;
min-height: 100vh;
background-color: #f9fafb;
display: flex;
justify-content: center;
}
.news-article {
background-color: white;
max-width: 800px;
width: 100%;
margin: 0 20px;
padding: 3rem;
border-radius: 1rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
.news-article {
padding: 1.5rem;
margin: 0 10px;
}
}
/* Loading & Error */
.news-detail-loading,
.news-detail-error {
min-height: 100vh;
padding-top: 100px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.back-link {
color: #2563eb;
text-decoration: none;
font-weight: 600;
margin-top: 1rem;
}
/* Header */
.article-header {
margin-bottom: 2rem;
text-align: center;
}
.article-meta {
font-size: 0.9rem;
color: #6b7280;
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
}
.article-meta-divider {
margin: 0 0.5rem;
}
.article-title {
font-size: 2.25rem;
font-weight: 800;
color: #111827;
line-height: 1.3;
}
/* Image */
.article-image-wrapper {
margin-bottom: 2.5rem;
border-radius: 0.75rem;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.article-image {
width: 100%;
height: auto;
display: block;
}
/* Content */
.article-content {
font-size: 1.125rem;
line-height: 1.8;
color: #374151;
margin-bottom: 3rem;
}
.article-content p {
margin-bottom: 1.5rem;
}
.article-content h2 {
font-size: 1.75rem;
font-weight: 700;
color: #111827;
margin-top: 2.5rem;
margin-bottom: 1.25rem;
}
.article-content h3 {
font-size: 1.5rem;
font-weight: 600;
color: #1f2937;
margin-top: 2rem;
margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
margin-bottom: 1.5rem;
padding-left: 1.5rem;
}
.article-content li {
margin-bottom: 0.5rem;
}
.article-content a {
color: #2563eb;
text-decoration: underline;
}
.article-content blockquote {
border-left: 4px solid #2563eb;
padding-left: 1rem;
font-style: italic;
color: #4b5563;
margin: 2rem 0;
}
.article-content img {
max-width: 100%;
height: auto;
border-radius: 0.5rem;
margin: 2rem 0;
}
/* Footer */
.article-footer {
border-top: 1px solid #e5e7eb;
padding-top: 2rem;
text-align: center;
}
.back-button {
display: inline-block;
padding: 0.75rem 2rem;
background-color: #f3f4f6;
color: #374151;
font-weight: 600;
border-radius: 0.5rem;
text-decoration: none;
transition: background-color 0.2s;
}
.back-button:hover {
background-color: #e5e7eb;
}