fmt/doc/fmt.css

56 lines
1.2 KiB
CSS
Raw Normal View History

2024-06-04 18:20:59 +00:00
:root {
2024-06-05 02:46:45 +00:00
--md-primary-fg-color: #0050D0;
2024-06-04 18:20:59 +00:00
}
2024-06-02 00:45:06 +00:00
.md-grid {
max-width: 960px;
}
2024-06-01 14:32:43 +00:00
.docblock {
2024-06-01 16:24:32 +00:00
border-left: .05rem solid var(--md-primary-fg-color);
}
.docblock-desc {
margin-left: 1em;
2024-06-01 14:32:43 +00:00
}
2024-06-03 03:46:16 +00:00
2024-06-05 02:46:45 +00:00
pre > code.decl {
white-space: pre-wrap;
}
2024-06-05 13:19:40 +00:00
code.decl > div {
text-indent: -2ch; /* Negative indent to counteract the indent on the first line */
padding-left: 2ch; /* Add padding to the left to create an indent */
}
2024-06-03 03:46:16 +00:00
.features-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center; /* Center the items horizontally */
}
.feature {
flex: 1 1 calc(50% - 20px); /* Two columns with space between */
max-width: 600px; /* Set the maximum width for the feature boxes */
box-sizing: border-box;
padding: 10px;
overflow: hidden; /* Hide overflow content */
text-overflow: ellipsis; /* Handle text overflow */
white-space: normal; /* Allow text wrapping */
}
.feature h2 {
margin-top: 0px;
font-weight: bold;
}
@media (max-width: 768px) {
.feature {
flex: 1 1 100%; /* Stack columns on smaller screens */
max-width: 100%; /* Allow full width on smaller screens */
white-space: normal; /* Allow text wrapping on smaller screens */
}
}