Skip to content

Commit 2e55f00

Browse files
committed
Fixes and fine-tuning
1 parent eaca5d3 commit 2e55f00

File tree

6 files changed

+29
-17
lines changed

6 files changed

+29
-17
lines changed

src/Elastic.Markdown/Assets/markdown/code.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
background-color: #22272e;
1111
mix-blend-mode: unset;
1212
line-height: 1.5em;
13+
word-break: normal;
1314
}
1415
code:first-child {
1516
@apply rounded-t-sm;
@@ -63,6 +64,7 @@
6364
text-decoration: inherit;
6465
font-weight: inherit;
6566
mix-blend-mode: multiply;
67+
word-break: break-word;
6668
}
6769

6870
.hljs-built_in,

src/Elastic.Markdown/Assets/markdown/typography.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
h1 {
55
@apply text-ink-dark text-5xl font-semibold;
66
line-height: 1.2em;
7-
max-width: 805px; /* approximately 80ch */
7+
/*max-width: 805px; !* approximately 80ch *!*/
88
}
99

1010
h2 {
@@ -49,11 +49,11 @@
4949
line-height: 1.5em;
5050
}
5151

52-
#elastic-docs-v3 {
53-
&>p, &>ul, &>ol, &>.heading-wrapper {
54-
max-width: 80ch;
55-
}
56-
}
52+
/*#elastic-docs-v3 {*/
53+
/* &>p, &>ul, &>ol, &>.heading-wrapper, &>dl {*/
54+
/* max-width: 80ch;*/
55+
/* }*/
56+
/*}*/
5757

5858
a {
5959
@apply font-body text-blue-elastic hover:text-blue-elastic-100 underline;

src/Elastic.Markdown/Assets/styles.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,30 @@
233233

234234
.container {
235235
@apply lg:px-3;
236-
237236
max-width: 1250px !important;
238237
}
239238

240239
#elastic-nav {
241240
min-height: var(--offset-top);
242-
.oldNav {
243-
&>div {
244-
max-width: 100%;
241+
242+
@media screen and (min-width: 1200px) {
243+
.oldNav {
244+
&>div {
245+
max-width: 100%;
246+
}
247+
div:has(> div > nav) {
248+
flex-grow: 1;
249+
justify-content: center;
250+
}
245251
}
246-
div:has(> div > nav) {
247-
flex-grow: 1;
248-
justify-content: center;
252+
}
253+
@media screen and (min-width: 1536px) {
254+
.oldNav {
255+
nav {
256+
margin-left: -74px;
257+
}
249258
}
259+
250260
}
251261
}
252262

src/Elastic.Markdown/Assets/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
--breakpoint-sm: 640px;
33
--breakpoint-md: 768px;
44
--breakpoint-lg: 1280px;
5-
--breakpoint-xl: 1920px;
6-
--breakpoint-2xl: 2000px;
5+
--breakpoint-xl: 1536px;
6+
--breakpoint-2xl: 1920px;
77

88
--font-sans:
99
'Mier B', 'Inter', ui-sans-serif, system-ui, sans-serif,

src/Elastic.Markdown/Slices/Layout/_TableOfContents.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@using Elastic.Markdown.Helpers;
22
@inherits RazorSlice<LayoutViewModel>
3-
<aside class="sidebar hidden lg:block order-2">
3+
<aside class="sidebar hidden lg:block order-2 max-w-65">
44
<nav id="toc-nav" class="sidebar-nav">
55
<div id="page-version-dropdown" tabindex="1"
66
class="mt-6 block group font-sans text-sm relative z-50">

src/Elastic.Markdown/Slices/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{
2626
<div class="w-full h-full grid grid-cols-1 md:grid-cols-[calc(var(--spacing)*65)_1fr] px-6">
2727
@await RenderPartialAsync(_PagesNav.Create(Model))
28-
<div class="order-2 grid grid-cols-1 md:grid-cols-[95ch_calc(var(--spacing)*65)] justify-center">
28+
<div class="order-2 grid grid-cols-1 md:grid-cols-[clamp(40ch,80ch,100%)] lg:grid-cols-[80ch_1fr] xl:grid-cols-[90ch_calc(var(--spacing)*65)] justify-center">
2929
@await RenderPartialAsync(_TableOfContents.Create(Model))
3030
<main id="content-container" class="w-full flex flex-col order-1 relative pb-30 overflow-x-hidden">
3131
<div class="w-full absolute top-0 left-0 right-0 htmx-indicator" id="htmx-indicator" role="status">

0 commit comments

Comments
 (0)