case-study / src /styles.css
AINovice2005's picture
Add the files.
1a36fbe verified
/* ===========================
Typography & Readability
=========================== */
body {
font-size: 1.1rem;
line-height: 1.7;
color: #333;
}
/* Better heading hierarchy */
h1, h2, h3, h4, h5, h6 {
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 600;
line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
/* ===========================
Links
=========================== */
a {
text-decoration: none;
color: #2780e3;
transition: color 0.2s ease;
}
a:hover {
color: #1a5fb4;
text-decoration: underline;
}
/* ===========================
Code Styling
=========================== */
code {
background-color: #f6f6f6;
padding: 0.2em 0.4em;
border-radius: 3px;
font-size: 0.9em;
color: #e83e8c;
}
pre {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px;
padding: 1.25em;
overflow-x: auto;
line-height: 1.5;
}
pre code {
background-color: transparent;
padding: 0;
color: inherit;
font-size: 0.9rem;
}
/* ===========================
Images
=========================== */
img {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin: 1.5rem 0;
}
/* Center images with captions */
figure {
margin: 2rem 0;
text-align: center;
}
figcaption {
font-size: 0.9rem;
color: #666;
margin-top: 0.5rem;
font-style: italic;
}
/* ===========================
Sidebar
=========================== */
.sidebar-title {
font-weight: 600;
font-size: 1rem;
}
.sidebar nav[role="doc-toc"] ul {
padding-left: 0;
}
.sidebar-item {
padding: 0.25rem 0;
}
/* ===========================
Tables
=========================== */
table {
width: 100%;
margin: 1.5rem 0;
border-collapse: collapse;
}
thead {
background-color: #f8f9fa;
border-bottom: 2px solid #dee2e6;
}
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #dee2e6;
}
th {
font-weight: 600;
}
tr:hover {
background-color: #f8f9fa;
}
/* ===========================
Blockquotes
=========================== */
blockquote {
border-left: 4px solid #2780e3;
padding-left: 1.5rem;
margin: 1.5rem 0;
color: #666;
font-style: italic;
background-color: #f8f9fa;
padding: 1rem 1.5rem;
border-radius: 4px;
}
/* ===========================
Lists
=========================== */
ul, ol {
margin: 1rem 0;
padding-left: 2rem;
}
li {
margin: 0.5rem 0;
}
/* ===========================
Callout Boxes Enhancement
=========================== */
.callout {
margin: 1.5rem 0;
border-radius: 6px;
border-left: 4px solid;
}
.callout-note {
border-left-color: #2780e3;
}
.callout-warning {
border-left-color: #f0ad4e;
}
.callout-important {
border-left-color: #d9534f;
}
.callout-tip {
border-left-color: #5cb85c;
}
/* ===========================
Content Width & Spacing
=========================== */
.quarto-title-block {
margin-bottom: 2rem;
}
#quarto-content {
padding-top: 1rem;
}
/* Better paragraph spacing */
p {
margin: 1rem 0;
}
/* ===========================
Navigation
=========================== */
.navbar {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* ===========================
Responsive Design
=========================== */
@media (max-width: 768px) {
body {
font-size: 1rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
img {
margin: 1rem 0;
}
}
/* ===========================
Print Styles
=========================== */
@media print {
.sidebar, .navbar, .quarto-navigation {
display: none;
}
body {
font-size: 12pt;
}
a {
color: #000;
text-decoration: none;
}
img {
box-shadow: none;
}
}