code {
/* font-family: 'Courier New', Courier, monospace; */
background-color: #f4f4f4;
color: #333;
padding: 2px 4px;
border-radius: 4px;
font-size: 90%;
font-weight: bold;
}
pre {
font-family: 'Courier New', monospace;
background-color: #f4f4f4;
padding: 1em;
border-radius: 5px;
border: 1px solid #ddd;
overflow-x: auto;
white-space: pre-wrap; /* This helps with wrapping long lines */
word-wrap: break-word; /* Prevents overflow */
line-height: 1.5;
color: #333;
}
/*
This CSS file provides styles for an ordered list to make it
look more like a step-by-step guide with custom numbering,
styled to match the provided file list component.
*/
/* Container for the list */
ol {
list-style: none;
padding: 0;
counter-reset: step-counter;
margin: 1rem 0;
font-family: 'Inter', sans-serif;
}
/* Style for each list item, simulating the file list item's look */
ol li {
background-color: #f7f9fc;
/* border: 1px solid #e0e6ed; */
border-radius: 8px;
padding: 1rem;
margin-bottom: 0.75rem;
display: flex;
align-items: flex-start;
gap: 1rem;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: pointer; /* Added a cursor pointer to make it feel clickable */
}
/* Add a hover effect to match the file list */
ol li:hover {
background-color: #e6e9ef; /* Adjusted hover color to be slightly darker */
/* transform: translateY(-2px); */
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* The magic for the step prefix using a pseudo-element */
ol li::before {
font-size: 0.9rem;
font-weight: bold;
color: #3b82f6; /* Used the vibrant blue from the icon */
flex-shrink: 0;
}
/* Styling for the text content within the list item */
ol li p {
margin: 0;
font-size: 0.9rem;
line-height: 1.5;
color: #333;
}
.d2h-code-line,
.d2h-code-side-line {
position: static !important;
}
/* Optional: Prevent sticky file headers */
.d2h-file-header {
position: static !important;
}