217 lines
3.7 KiB
Plaintext
217 lines
3.7 KiB
Plaintext
/* Story-specific styles */
|
|
.story-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #f5f5f5;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.story-header {
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.story-header h1 {
|
|
font-size: 2em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.story-meta {
|
|
font-style: italic;
|
|
color: #555;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.story-content {
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.story-content p {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.story-content h2 {
|
|
margin-top: 30px;
|
|
margin-bottom: 15px;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.story-content h3 {
|
|
margin-top: 25px;
|
|
margin-bottom: 10px;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.story-content ul, .story-content ol {
|
|
margin-bottom: 15px;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.story-content li {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.story-content blockquote {
|
|
margin: 20px 0;
|
|
padding: 10px 20px;
|
|
border-left: 4px solid #ccc;
|
|
background-color: #f9f9f9;
|
|
font-style: italic;
|
|
}
|
|
|
|
.story-content img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin: 20px 0;
|
|
display: block;
|
|
}
|
|
|
|
.story-content .image-caption {
|
|
text-align: center;
|
|
font-style: italic;
|
|
margin-top: -15px;
|
|
margin-bottom: 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.story-content code {
|
|
font-family: monospace;
|
|
background-color: #f0f0f0;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.story-content pre {
|
|
background-color: #f0f0f0;
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
overflow-x: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.story-content pre code {
|
|
background-color: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
.story-navigation {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
.story-nav-link {
|
|
padding: 8px 15px;
|
|
background-color: #f0f0f0;
|
|
color: #004494; /* Darker blue for 7:1+ contrast ratio */
|
|
text-decoration: none;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.story-nav-link:hover {
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
.story-nav-link.prev::before {
|
|
content: "← ";
|
|
}
|
|
|
|
.story-nav-link.next::after {
|
|
content: " →";
|
|
}
|
|
|
|
.story-tags {
|
|
margin-top: 20px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.story-tag {
|
|
display: inline-block;
|
|
background-color: #e0e0e0;
|
|
color: #333;
|
|
padding: 3px 8px;
|
|
margin-right: 5px;
|
|
margin-bottom: 5px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Story index page styles */
|
|
.stories-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.story-card {
|
|
background-color: #f5f5f5;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.story-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.story-card-content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.story-card h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 10px;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.story-card p {
|
|
margin-bottom: 15px;
|
|
color: #555;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.story-card-link {
|
|
display: inline-block;
|
|
padding: 5px 10px;
|
|
background-color: #f0f0f0;
|
|
color: #004494; /* Darker blue for 7:1+ contrast ratio */
|
|
text-decoration: none;
|
|
border-radius: 3px;
|
|
font-size: 0.9em;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.story-card-link:hover {
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.stories-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.story-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.story-header h1 {
|
|
font-size: 1.8em;
|
|
}
|
|
|
|
.story-content h2 {
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
.story-content h3 {
|
|
font-size: 1.2em;
|
|
}
|
|
}
|